Class: Google::Apis::PubsubV1beta1a::ModifyAckDeadlineRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta1a::ModifyAckDeadlineRequest
- 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 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.
-
#subscription ⇒ String
Next Index: 5 The name of the subscription from which messages are being pulled.
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
204 205 206 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 204 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
184 185 186 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 184 def ack_deadline_seconds @ack_deadline_seconds end |
#ack_id ⇒ String
The acknowledgment ID. Either this or ack_ids must be populated,
not both.
Corresponds to the JSON property ackId
190 191 192 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 190 def ack_id @ack_id end |
#ack_ids ⇒ Array<String>
List of acknowledgment IDs. Either this field or ack_id
should be populated, not both.
Corresponds to the JSON property ackIds
196 197 198 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 196 def ack_ids @ack_ids end |
#subscription ⇒ String
Next Index: 5
The name of the subscription from which messages are being pulled.
Corresponds to the JSON property subscription
202 203 204 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 202 def subscription @subscription end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
209 210 211 212 213 214 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 209 def update!(**args) @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) @ack_id = args[:ack_id] if args.key?(:ack_id) @ack_ids = args[:ack_ids] if args.key?(:ack_ids) @subscription = args[:subscription] if args.key?(:subscription) end |