Class: Google::Apis::ObservabilityV1::ListBucketsResponse

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

Overview

Response for listing buckets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListBucketsResponse

Returns a new instance of ListBucketsResponse.



260
261
262
# File 'lib/google/apis/observability_v1/classes.rb', line 260

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

Instance Attribute Details

#bucketsArray<Google::Apis::ObservabilityV1::Bucket>

Optional. The list of buckets. Corresponds to the JSON property buckets



252
253
254
# File 'lib/google/apis/observability_v1/classes.rb', line 252

def buckets
  @buckets
end

#next_page_tokenString

Optional. A token that can be sent as page_token to retrieve the next page. When this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


258
259
260
# File 'lib/google/apis/observability_v1/classes.rb', line 258

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



265
266
267
268
# File 'lib/google/apis/observability_v1/classes.rb', line 265

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