Class: Google::Apis::NotebooksV2::ListInstancesResponse

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

Overview

Response for listing notebook instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListInstancesResponse

Returns a new instance of ListInstancesResponse.



901
902
903
# File 'lib/google/apis/notebooks_v2/classes.rb', line 901

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

Instance Attribute Details

#instancesArray<Google::Apis::NotebooksV2::Instance>

A list of returned instances. Corresponds to the JSON property instances



886
887
888
# File 'lib/google/apis/notebooks_v2/classes.rb', line 886

def instances
  @instances
end

#next_page_tokenString

Page token that can be used to continue listing from the last result in the next list call. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


892
893
894
# File 'lib/google/apis/notebooks_v2/classes.rb', line 892

def next_page_token
  @next_page_token
end

#unreachableArray<String>

Locations that could not be reached. For example, ['us-west1-a', 'us-central1- b']. A ListInstancesResponse will only contain either instances or unreachables, Corresponds to the JSON property unreachable

Returns:

  • (Array<String>)


899
900
901
# File 'lib/google/apis/notebooks_v2/classes.rb', line 899

def unreachable
  @unreachable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



906
907
908
909
910
# File 'lib/google/apis/notebooks_v2/classes.rb', line 906

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