Class: Google::Apis::TranscoderV1::PubsubDestination
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::PubsubDestination
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb
Overview
A Pub/Sub destination.
Instance Attribute Summary collapse
-
#topic ⇒ String
The name of the Pub/Sub topic to publish job completion notification to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubsubDestination
constructor
A new instance of PubsubDestination.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PubsubDestination
Returns a new instance of PubsubDestination.
1455 1456 1457 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#topic ⇒ String
The name of the Pub/Sub topic to publish job completion notification to. For
example: projects/project/topics/topic`.
Corresponds to the JSON propertytopic`
1453 1454 1455 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1453 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1460 1461 1462 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1460 def update!(**args) @topic = args[:topic] if args.key?(:topic) end |