Class: Google::Apis::ComputeBeta::MachineTypesScopedList

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) ⇒ MachineTypesScopedList

Returns a new instance of MachineTypesScopedList.


5936
5937
5938
# File 'generated/google/apis/compute_beta/classes.rb', line 5936

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

Instance Attribute Details

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

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


5928
5929
5930
# File 'generated/google/apis/compute_beta/classes.rb', line 5928

def machine_types
  @machine_types
end

#warningGoogle::Apis::ComputeBeta::MachineTypesScopedList::Warning

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


5934
5935
5936
# File 'generated/google/apis/compute_beta/classes.rb', line 5934

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5941
5942
5943
5944
# File 'generated/google/apis/compute_beta/classes.rb', line 5941

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