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

Constructor Details

#initialize(**args) ⇒ ListSubscriptionsResponse

Returns a new instance of ListSubscriptionsResponse.



126
127
128
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 126

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)


119
120
121
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 119

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



124
125
126
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 124

def subscription
  @subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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