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

Constructor Details

#initialize(**args) ⇒ MachineTypesScopedList

Returns a new instance of MachineTypesScopedList.



18284
18285
18286
# File 'generated/google/apis/compute_beta/classes.rb', line 18284

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



18276
18277
18278
# File 'generated/google/apis/compute_beta/classes.rb', line 18276

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



18282
18283
18284
# File 'generated/google/apis/compute_beta/classes.rb', line 18282

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18289
18290
18291
18292
# File 'generated/google/apis/compute_beta/classes.rb', line 18289

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