Class: Google::Apis::TpuV2alpha1::ListAcceleratorTypesResponse

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

Overview

Response for ListAcceleratorTypes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListAcceleratorTypesResponse

Returns a new instance of ListAcceleratorTypesResponse.



511
512
513
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 511

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

Instance Attribute Details

#accelerator_typesArray<Google::Apis::TpuV2alpha1::AcceleratorType>

The listed nodes. Corresponds to the JSON property acceleratorTypes



499
500
501
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 499

def accelerator_types
  @accelerator_types
end

#next_page_tokenString

The next page token or empty if none. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


504
505
506
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 504

def next_page_token
  @next_page_token
end

#unreachableArray<String>

Locations that could not be reached. Corresponds to the JSON property unreachable

Returns:

  • (Array<String>)


509
510
511
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 509

def unreachable
  @unreachable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
520
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 516

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