Class: Google::Apis::ComputeAlpha::MachineTypesScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachineTypesScopedList

Returns a new instance of MachineTypesScopedList.



20467
20468
20469
# File 'generated/google/apis/compute_alpha/classes.rb', line 20467

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

Instance Attribute Details

#machine_typesArray<Google::Apis::ComputeAlpha::MachineType>

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



20459
20460
20461
# File 'generated/google/apis/compute_alpha/classes.rb', line 20459

def machine_types
  @machine_types
end

#warningGoogle::Apis::ComputeAlpha::MachineTypesScopedList::Warning

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



20465
20466
20467
# File 'generated/google/apis/compute_alpha/classes.rb', line 20465

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20472
20473
20474
20475
# File 'generated/google/apis/compute_alpha/classes.rb', line 20472

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