Class: Google::Apis::ComputeBeta::AcceleratorTypesScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AcceleratorTypesScopedList

Returns a new instance of AcceleratorTypesScopedList



376
377
378
# File 'generated/google/apis/compute_beta/classes.rb', line 376

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

Instance Attribute Details

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

[Output Only] A list of accelerator types contained in this scope. Corresponds to the JSON property acceleratorTypes



368
369
370
# File 'generated/google/apis/compute_beta/classes.rb', line 368

def accelerator_types
  @accelerator_types
end

#warningGoogle::Apis::ComputeBeta::AcceleratorTypesScopedList::Warning

[Output Only] An informational warning that appears when the accelerator types list is empty. Corresponds to the JSON property warning



374
375
376
# File 'generated/google/apis/compute_beta/classes.rb', line 374

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



381
382
383
384
# File 'generated/google/apis/compute_beta/classes.rb', line 381

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