Class: Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pubsub_v1beta2/classes.rb,
lib/google/apis/pubsub_v1beta2/representations.rb,
lib/google/apis/pubsub_v1beta2/representations.rb

Overview

Request for the ModifyAckDeadline method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModifyAckDeadlineRequest

Returns a new instance of ModifyAckDeadlineRequest.



319
320
321
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 319

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ack_deadline_secondsFixnum

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

Returns:

  • (Fixnum)


307
308
309
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 307

def ack_deadline_seconds
  @ack_deadline_seconds
end

#ack_idString

The acknowledgment ID. Either this or ack_ids must be populated, but not both. Corresponds to the JSON property ackId

Returns:

  • (String)


312
313
314
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 312

def ack_id
  @ack_id
end

#ack_idsArray<String>

List of acknowledgment IDs. Corresponds to the JSON property ackIds

Returns:

  • (Array<String>)


317
318
319
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 317

def ack_ids
  @ack_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



324
325
326
327
328
# File 'lib/google/apis/pubsub_v1beta2/classes.rb', line 324

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)
end