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

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



15068
15069
15070
# File 'generated/google/apis/compute_alpha/classes.rb', line 15068

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



15060
15061
15062
# File 'generated/google/apis/compute_alpha/classes.rb', line 15060

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



15066
15067
15068
# File 'generated/google/apis/compute_alpha/classes.rb', line 15066

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15073
15074
15075
15076
# File 'generated/google/apis/compute_alpha/classes.rb', line 15073

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