Class: Google::Apis::ObservabilityV1::ListViewsResponse

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 views.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListViewsResponse

Returns a new instance of ListViewsResponse.



424
425
426
# File 'lib/google/apis/observability_v1/classes.rb', line 424

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

Instance Attribute Details

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


417
418
419
# File 'lib/google/apis/observability_v1/classes.rb', line 417

def next_page_token
  @next_page_token
end

#viewsArray<Google::Apis::ObservabilityV1::View>

The list of views. Corresponds to the JSON property views



422
423
424
# File 'lib/google/apis/observability_v1/classes.rb', line 422

def views
  @views
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



429
430
431
432
# File 'lib/google/apis/observability_v1/classes.rb', line 429

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