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

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



24272
24273
24274
# File 'lib/google/apis/compute_beta/classes.rb', line 24272

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

Instance Attribute Details

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

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



24264
24265
24266
# File 'lib/google/apis/compute_beta/classes.rb', line 24264

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



24270
24271
24272
# File 'lib/google/apis/compute_beta/classes.rb', line 24270

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24277
24278
24279
24280
# File 'lib/google/apis/compute_beta/classes.rb', line 24277

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