# 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.Spanner.V1.Model.InstanceConfig do @moduledoc """ A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication. ## Attributes * `displayName` (*type:* `String.t`, *default:* `nil`) - The name of this instance configuration as it appears in UIs. * `name` (*type:* `String.t`, *default:* `nil`) - A unique identifier for the instance configuration. Values are of the form `projects//instanceConfigs/a-z*` * `replicas` (*type:* `list(GoogleApi.Spanner.V1.Model.ReplicaInfo.t)`, *default:* `nil`) - The geographic placement of nodes in this instance configuration and their replication properties. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :displayName => String.t() | nil, :name => String.t() | nil, :replicas => list(GoogleApi.Spanner.V1.Model.ReplicaInfo.t()) | nil } field(:displayName) field(:name) field(:replicas, as: GoogleApi.Spanner.V1.Model.ReplicaInfo, type: :list) end defimpl Poison.Decoder, for: GoogleApi.Spanner.V1.Model.InstanceConfig do def decode(value, options) do GoogleApi.Spanner.V1.Model.InstanceConfig.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Spanner.V1.Model.InstanceConfig do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end