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.
Constructor Details
#initialize(**args) ⇒ PublishBatchRequest
Returns a new instance of PublishBatchRequest.
245 246 247 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 245 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
238 239 240 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 238 def @messages end |
#topic ⇒ String
The messages in the request will be published on this topic.
Corresponds to the JSON property topic
243 244 245 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 243 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
250 251 252 253 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 250 def update!(**args) @messages = args[:messages] if args.key?(:messages) @topic = args[:topic] if args.key?(:topic) end |