Class: Google::Apis::EventarcV1::Channel
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::Channel
- 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 Channel resource. A Channel is a resource on which event providers publish their events. The published events are delivered through the transport associated with the channel. Note that a channel is associated with exactly one event provider.
Instance Attribute Summary collapse
-
#activation_token ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Required.
-
#provider ⇒ String
The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel.
-
#pubsub_topic ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Channel
constructor
A new instance of Channel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Channel
Returns a new instance of Channel.
223 224 225 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 223 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activation_token ⇒ String
Output only. The activation token for the channel. The token must be used by
the provider to register the channel for publishing.
Corresponds to the JSON property activationToken
178 179 180 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 178 def activation_token @activation_token end |
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
183 184 185 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 183 def create_time @create_time end |
#name ⇒ String
Required. The resource name of the channel. Must be unique within the location
on the project and must be in projects/project/locations/location/
channels/channel_id`format.
Corresponds to the JSON propertyname`
190 191 192 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 190 def name @name end |
#provider ⇒ String
The name of the event provider (e.g. Eventarc SaaS partner) associated with
the channel. This provider will be granted permissions to publish events to
the channel. Format: projects/project/locations/location/providers/
provider_id`.
Corresponds to the JSON propertyprovider`
198 199 200 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 198 def provider @provider end |
#pubsub_topic ⇒ String
Output only. The name of the Pub/Sub topic created and managed by Eventarc
system as a transport for the event delivery. Format: projects/project/
topics/topic_id`.
Corresponds to the JSON propertypubsubTopic`
205 206 207 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 205 def pubsub_topic @pubsub_topic end |
#state ⇒ String
Output only. The state of a Channel.
Corresponds to the JSON property state
210 211 212 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 210 def state @state end |
#uid ⇒ String
Output only. Server assigned unique identifier for the channel. The value is a
UUID4 string and guaranteed to remain unchanged until the resource is deleted.
Corresponds to the JSON property uid
216 217 218 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 216 def uid @uid end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
221 222 223 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 221 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
228 229 230 231 232 233 234 235 236 237 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 228 def update!(**args) @activation_token = args[:activation_token] if args.key?(:activation_token) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @provider = args[:provider] if args.key?(:provider) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) @state = args[:state] if args.key?(:state) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |