Class: Google::Apis::PubsubV1beta1a::PublishRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta1a::PublishRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsub_v1beta1a/classes.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb
Overview
Request for the Publish method.
Instance Attribute Summary collapse
-
#message ⇒ Google::Apis::PubsubV1beta1a::PubsubMessage
A message data and its labels.
-
#topic ⇒ String
The message in the request will be published on this topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PublishRequest
constructor
A new instance of PublishRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PublishRequest
Returns a new instance of PublishRequest.
290 291 292 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message ⇒ Google::Apis::PubsubV1beta1a::PubsubMessage
A message data and its labels.
Corresponds to the JSON property message
283 284 285 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 283 def @message end |
#topic ⇒ String
The message in the request will be published on this topic.
Corresponds to the JSON property topic
288 289 290 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 288 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
295 296 297 298 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 295 def update!(**args) @message = args[:message] if args.key?(:message) @topic = args[:topic] if args.key?(:topic) end |