Class: Google::Apis::TpuV1::ListAcceleratorTypesResponse

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

Overview

Response for ListAcceleratorTypes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListAcceleratorTypesResponse

Returns a new instance of ListAcceleratorTypesResponse



83
84
85
# File 'generated/google/apis/tpu_v1/classes.rb', line 83

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

Instance Attribute Details

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

The listed nodes. Corresponds to the JSON property acceleratorTypes



76
77
78
# File 'generated/google/apis/tpu_v1/classes.rb', line 76

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)


81
82
83
# File 'generated/google/apis/tpu_v1/classes.rb', line 81

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



88
89
90
91
# File 'generated/google/apis/tpu_v1/classes.rb', line 88

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