Class: Google::Apis::PubsubV1beta1a::PullRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta1a::PullRequest
- 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 Pull method.
Instance Attribute Summary collapse
-
#return_immediately ⇒ Boolean
(also: #return_immediately?)
If this is specified as true the system will respond immediately even if it is not able to return a message in the Pull response.
-
#subscription ⇒ String
The subscription from which a message should be pulled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PullRequest
constructor
A new instance of PullRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PullRequest
Returns a new instance of PullRequest
475 476 477 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 475 def initialize(**args) update!(**args) end |
Instance Attribute Details
#return_immediately ⇒ Boolean Also known as: return_immediately?
If this is specified as true the system will respond immediately even if
it is not able to return a message in the Pull response. Otherwise the
system is allowed to wait until at least one message is available rather
than returning FAILED_PRECONDITION. The client may cancel the request if
it does not wish to wait any longer for the response.
Corresponds to the JSON property returnImmediately
467 468 469 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 467 def return_immediately @return_immediately end |
#subscription ⇒ String
The subscription from which a message should be pulled.
Corresponds to the JSON property subscription
473 474 475 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 473 def subscription @subscription end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
480 481 482 483 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 480 def update!(**args) @return_immediately = args[:return_immediately] if args.key?(:return_immediately) @subscription = args[:subscription] if args.key?(:subscription) end |