|
| 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.Redis.V1.Model.PscAutoConnection do |
| 19 | + @moduledoc """ |
| 20 | + Details of consumer resources in a PSC connection that is created through Service Connectivity Automation. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `address` (*type:* `String.t`, *default:* `nil`) - Output only. The IP allocated on the consumer network for the PSC forwarding rule. |
| 25 | + * `connectionType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the PSC connection. |
| 26 | + * `forwardingRule` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. |
| 27 | + * `network` (*type:* `String.t`, *default:* `nil`) - Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}. |
| 28 | + * `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The consumer project_id where the forwarding rule is created from. |
| 29 | + * `pscConnectionId` (*type:* `String.t`, *default:* `nil`) - Output only. The PSC connection id of the forwarding rule connected to the service attachment. |
| 30 | + * `pscConnectionStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status. |
| 31 | + * `serviceAttachment` (*type:* `String.t`, *default:* `nil`) - Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}. |
| 32 | + """ |
| 33 | + |
| 34 | + use GoogleApi.Gax.ModelBase |
| 35 | + |
| 36 | + @type t :: %__MODULE__{ |
| 37 | + :address => String.t() | nil, |
| 38 | + :connectionType => String.t() | nil, |
| 39 | + :forwardingRule => String.t() | nil, |
| 40 | + :network => String.t() | nil, |
| 41 | + :projectId => String.t() | nil, |
| 42 | + :pscConnectionId => String.t() | nil, |
| 43 | + :pscConnectionStatus => String.t() | nil, |
| 44 | + :serviceAttachment => String.t() | nil |
| 45 | + } |
| 46 | + |
| 47 | + field(:address) |
| 48 | + field(:connectionType) |
| 49 | + field(:forwardingRule) |
| 50 | + field(:network) |
| 51 | + field(:projectId) |
| 52 | + field(:pscConnectionId) |
| 53 | + field(:pscConnectionStatus) |
| 54 | + field(:serviceAttachment) |
| 55 | +end |
| 56 | + |
| 57 | +defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.PscAutoConnection do |
| 58 | + def decode(value, options) do |
| 59 | + GoogleApi.Redis.V1.Model.PscAutoConnection.decode(value, options) |
| 60 | + end |
| 61 | +end |
| 62 | + |
| 63 | +defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.PscAutoConnection do |
| 64 | + def encode(value, options) do |
| 65 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 66 | + end |
| 67 | +end |
0 commit comments