Class: Google::Apis::PubsubV1beta1a::ListSubscriptionsResponse

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

Response for the ListSubscriptions 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) ⇒ ListSubscriptionsResponse

Returns a new instance of ListSubscriptionsResponse



135
136
137
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 135

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

Instance Attribute Details

#next_page_tokenString

If not empty, indicates that there are more subscriptions that match the request and this value should be passed to the next ListSubscriptionsRequest to continue. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


128
129
130
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 128

def next_page_token
  @next_page_token
end

#subscriptionArray<Google::Apis::PubsubV1beta1a::Subscription>

The subscriptions that match the request. Corresponds to the JSON property subscription



133
134
135
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 133

def subscription
  @subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



140
141
142
143
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 140

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