Class: Google::Apis::TranscoderV1beta1::PubsubDestination

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/representations.rb

Overview

A Pub/Sub destination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PubsubDestination

Returns a new instance of PubsubDestination.



1346
1347
1348
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1346

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#topicString

The name of the Pub/Sub topic to publish job completion notification to. For example: projects/project/topics/topic`. Corresponds to the JSON propertytopic`

Returns:

  • (String)


1344
1345
1346
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1344

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1351
1352
1353
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1351

def update!(**args)
  @topic = args[:topic] if args.key?(:topic)
end