Class: Google::Apis::PubsubV1beta1a::PublishBatchRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta1a::PublishBatchRequest
- 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 PublishBatch method.
Instance Attribute Summary collapse
-
#messages ⇒ Array<Google::Apis::PubsubV1beta1a::PubsubMessage>
The messages to publish.
-
#topic ⇒ String
The messages in the request will be published on this topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PublishBatchRequest
constructor
A new instance of PublishBatchRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PublishBatchRequest
Returns a new instance of PublishBatchRequest
256 257 258 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 256 def initialize(**args) update!(**args) end |
Instance Attribute Details
#messages ⇒ Array<Google::Apis::PubsubV1beta1a::PubsubMessage>
The messages to publish.
Corresponds to the JSON property messages
249 250 251 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 249 def @messages end |
#topic ⇒ String
The messages in the request will be published on this topic.
Corresponds to the JSON property topic
254 255 256 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 254 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
261 262 263 264 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 261 def update!(**args) @messages = args[:messages] if args.key?(:messages) @topic = args[:topic] if args.key?(:topic) end |