Class: Google::Apis::PubsubV1beta1a::AcknowledgeRequest

Inherits:
Object
  • Object
show all
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 Acknowledge method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AcknowledgeRequest

Returns a new instance of AcknowledgeRequest



40
41
42
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 40

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

Instance Attribute Details

#ack_idArray<String>

The acknowledgment ID for the message being acknowledged. This was returned by the Pub/Sub system in the Pull response. Corresponds to the JSON property ackId

Returns:

  • (Array<String>)


33
34
35
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 33

def ack_id
  @ack_id
end

#subscriptionString

The subscription whose message is being acknowledged. Corresponds to the JSON property subscription

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 38

def subscription
  @subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45
46
47
48
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 45

def update!(**args)
  @ack_id = args[:ack_id] if args.key?(:ack_id)
  @subscription = args[:subscription] if args.key?(:subscription)
end