Class: Google::Apis::ComputeV1::MachineTypesScopedList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/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.



16627
16628
16629
# File 'generated/google/apis/compute_v1/classes.rb', line 16627

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

Instance Attribute Details

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

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



16619
16620
16621
# File 'generated/google/apis/compute_v1/classes.rb', line 16619

def machine_types
  @machine_types
end

#warningGoogle::Apis::ComputeV1::MachineTypesScopedList::Warning

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



16625
16626
16627
# File 'generated/google/apis/compute_v1/classes.rb', line 16625

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16632
16633
16634
16635
# File 'generated/google/apis/compute_v1/classes.rb', line 16632

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