|
| 1 | +# Copyright 2019 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# NOTE: This file is auto generated by the elixir code generator program. |
| 16 | +# Do not edit this file manually. |
| 17 | + |
| 18 | +defmodule GoogleApi.NetworkManagement.V1beta1.Model.DirectVpcEgressConnectionInfo do |
| 19 | + @moduledoc """ |
| 20 | + For display only. Metadata associated with a serverless direct VPC egress connection. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `networkUri` (*type:* `String.t`, *default:* `nil`) - URI of direct access network. |
| 25 | + * `region` (*type:* `String.t`, *default:* `nil`) - Region in which the Direct VPC egress is deployed. |
| 26 | + * `selectedIpAddress` (*type:* `String.t`, *default:* `nil`) - Selected starting IP address, from the selected IP range. |
| 27 | + * `selectedIpRange` (*type:* `String.t`, *default:* `nil`) - Selected IP range. |
| 28 | + * `subnetworkUri` (*type:* `String.t`, *default:* `nil`) - URI of direct access subnetwork. |
| 29 | + """ |
| 30 | + |
| 31 | + use GoogleApi.Gax.ModelBase |
| 32 | + |
| 33 | + @type t :: %__MODULE__{ |
| 34 | + :networkUri => String.t() | nil, |
| 35 | + :region => String.t() | nil, |
| 36 | + :selectedIpAddress => String.t() | nil, |
| 37 | + :selectedIpRange => String.t() | nil, |
| 38 | + :subnetworkUri => String.t() | nil |
| 39 | + } |
| 40 | + |
| 41 | + field(:networkUri) |
| 42 | + field(:region) |
| 43 | + field(:selectedIpAddress) |
| 44 | + field(:selectedIpRange) |
| 45 | + field(:subnetworkUri) |
| 46 | +end |
| 47 | + |
| 48 | +defimpl Poison.Decoder, |
| 49 | + for: GoogleApi.NetworkManagement.V1beta1.Model.DirectVpcEgressConnectionInfo do |
| 50 | + def decode(value, options) do |
| 51 | + GoogleApi.NetworkManagement.V1beta1.Model.DirectVpcEgressConnectionInfo.decode(value, options) |
| 52 | + end |
| 53 | +end |
| 54 | + |
| 55 | +defimpl Poison.Encoder, |
| 56 | + for: GoogleApi.NetworkManagement.V1beta1.Model.DirectVpcEgressConnectionInfo do |
| 57 | + def encode(value, options) do |
| 58 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 59 | + end |
| 60 | +end |
0 commit comments