Class: Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/pubsub_v1beta2/classes.rb,
generated/google/apis/pubsub_v1beta2/representations.rb,
generated/google/apis/pubsub_v1beta2/representations.rb
Overview
Request for the ModifyAckDeadline method.
Instance Attribute Summary collapse
-
#ack_deadline_seconds ⇒ Fixnum
The new ack deadline with respect to the time this request was sent to the Pub/ Sub system.
-
#ack_id ⇒ String
The acknowledgment ID.
-
#ack_ids ⇒ Array<String>
List of acknowledgment IDs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModifyAckDeadlineRequest
constructor
A new instance of ModifyAckDeadlineRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ModifyAckDeadlineRequest
Returns a new instance of ModifyAckDeadlineRequest
489 490 491 |
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 489 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ack_deadline_seconds ⇒ Fixnum
The new ack deadline with respect to the time this request was sent to the Pub/
Sub system. Must be >= 0. For example, if the value is 10, the new ack
deadline will expire 10 seconds after the ModifyAckDeadline
call was made.
Specifying zero may immediately make the message available for another pull
request.
Corresponds to the JSON property ackDeadlineSeconds
487 488 489 |
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 487 def ack_deadline_seconds @ack_deadline_seconds end |
#ack_id ⇒ String
The acknowledgment ID. Either this or ack_ids must be populated, but not both.
Corresponds to the JSON property ackId
473 474 475 |
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 473 def ack_id @ack_id end |
#ack_ids ⇒ Array<String>
List of acknowledgment IDs.
Corresponds to the JSON property ackIds
478 479 480 |
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 478 def ack_ids @ack_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
494 495 496 497 498 |
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 494 def update!(**args) @ack_id = args[:ack_id] unless args[:ack_id].nil? @ack_ids = args[:ack_ids] unless args[:ack_ids].nil? @ack_deadline_seconds = args[:ack_deadline_seconds] unless args[:ack_deadline_seconds].nil? end |