Class: Google::Apis::EventarcV1::ChannelConnection
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::ChannelConnection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#activation_token ⇒ String
Input only.
-
#channel ⇒ String
Required.
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Required.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChannelConnection
constructor
A new instance of ChannelConnection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChannelConnection
Returns a new instance of ChannelConnection.
319 320 321 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 319 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activation_token ⇒ String
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.
Corresponds to the JSON property activationToken
289 290 291 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 289 def activation_token @activation_token end |
#channel ⇒ String
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.
Corresponds to the JSON property
channel`
296 297 298 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 296 def channel @channel end |
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
301 302 303 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 301 def create_time @create_time end |
#name ⇒ String
Required. The name of the connection.
Corresponds to the JSON property name
306 307 308 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 306 def name @name end |
#uid ⇒ String
Output only. Server assigned ID of the resource. The server guarantees
uniqueness and immutability until deleted.
Corresponds to the JSON property uid
312 313 314 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 312 def uid @uid end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
317 318 319 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 317 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
324 325 326 327 328 329 330 331 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 324 def update!(**args) @activation_token = args[:activation_token] if args.key?(:activation_token) @channel = args[:channel] if args.key?(:channel) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |