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

Constructor Details

#initialize(**args) ⇒ AcceleratorTypesScopedList

Returns a new instance of AcceleratorTypesScopedList.



387
388
389
# File 'generated/google/apis/compute_beta/classes.rb', line 387

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



379
380
381
# File 'generated/google/apis/compute_beta/classes.rb', line 379

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



385
386
387
# File 'generated/google/apis/compute_beta/classes.rb', line 385

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



392
393
394
395
# File 'generated/google/apis/compute_beta/classes.rb', line 392

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