# 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.Eventarc.V1.Model.ChannelConnection do @moduledoc """ A representation of the ChannelConnection resource. A ChannelConnection is a resource which event providers create during the activation process to establish a connection between the provider and the subscriber channel. ## Attributes * `activationToken` (*type:* `String.t`, *default:* `nil`) - Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource. * `channel` (*type:* `String.t`, *default:* `nil`) - Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in `projects/{project}/location/{location}/channels/{channel_id}` format. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time. * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the connection. * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last-modified time. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :activationToken => String.t() | nil, :channel => String.t() | nil, :createTime => DateTime.t() | nil, :name => String.t() | nil, :uid => String.t() | nil, :updateTime => DateTime.t() | nil } field(:activationToken) field(:channel) field(:createTime, as: DateTime) field(:name) field(:uid) field(:updateTime, as: DateTime) end defimpl Poison.Decoder, for: GoogleApi.Eventarc.V1.Model.ChannelConnection do def decode(value, options) do GoogleApi.Eventarc.V1.Model.ChannelConnection.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Eventarc.V1.Model.ChannelConnection do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end