Class: Google::Apis::PubsubV1beta1a::PublishRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#messageGoogle::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
  @message
end

#topicString

The message in the request will be published on this topic. Corresponds to the JSON property topic

Returns:

  • (String)


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