Class: Google::Apis::PubsubV1::ModifyAckDeadlineRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::ModifyAckDeadlineRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsub_v1/classes.rb,
generated/google/apis/pubsub_v1/representations.rb,
generated/google/apis/pubsub_v1/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_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::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ModifyAckDeadlineRequest
Returns a new instance of ModifyAckDeadlineRequest
285 286 287 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 285 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. 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.
The minimum deadline you can specify is 0 seconds.
The maximum deadline you can specify is 600 seconds (10 minutes).
Corresponds to the JSON property ackDeadlineSeconds
278 279 280 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 278 def ack_deadline_seconds @ack_deadline_seconds end |
#ack_ids ⇒ Array<String>
List of acknowledgment IDs.
Corresponds to the JSON property ackIds
283 284 285 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 283 def ack_ids @ack_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
290 291 292 293 |
# File 'generated/google/apis/pubsub_v1/classes.rb', line 290 def update!(**args) @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) @ack_ids = args[:ack_ids] if args.key?(:ack_ids) end |