# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. defmodule GoogleApi.DNS.V1.Model.ResponsePolicy do @moduledoc """ A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. ## Attributes * `description` (*type:* `String.t`, *default:* `nil`) - User-provided description for this Response Policy. * `gkeClusters` (*type:* `list(GoogleApi.DNS.V1.Model.ResponsePolicyGKECluster.t)`, *default:* `nil`) - The list of Google Kubernetes Engine clusters to which this response policy is applied. * `id` (*type:* `String.t`, *default:* `nil`) - Unique identifier for the resource; defined by the server (output only). * `kind` (*type:* `String.t`, *default:* `dns#responsePolicy`) - * `labels` (*type:* `map()`, *default:* `nil`) - User labels. * `networks` (*type:* `list(GoogleApi.DNS.V1.Model.ResponsePolicyNetwork.t)`, *default:* `nil`) - List of network names specifying networks to which this policy is applied. * `responsePolicyName` (*type:* `String.t`, *default:* `nil`) - User assigned name for this Response Policy. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :description => String.t() | nil, :gkeClusters => list(GoogleApi.DNS.V1.Model.ResponsePolicyGKECluster.t()) | nil, :id => String.t() | nil, :kind => String.t() | nil, :labels => map() | nil, :networks => list(GoogleApi.DNS.V1.Model.ResponsePolicyNetwork.t()) | nil, :responsePolicyName => String.t() | nil } field(:description) field(:gkeClusters, as: GoogleApi.DNS.V1.Model.ResponsePolicyGKECluster, type: :list) field(:id) field(:kind) field(:labels, type: :map) field(:networks, as: GoogleApi.DNS.V1.Model.ResponsePolicyNetwork, type: :list) field(:responsePolicyName) end defimpl Poison.Decoder, for: GoogleApi.DNS.V1.Model.ResponsePolicy do def decode(value, options) do GoogleApi.DNS.V1.Model.ResponsePolicy.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.DNS.V1.Model.ResponsePolicy do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end