Class: Google::Apis::ComputeAlpha::MachineTypesScopedList

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



25552
25553
25554
# File 'lib/google/apis/compute_alpha/classes.rb', line 25552

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



25544
25545
25546
# File 'lib/google/apis/compute_alpha/classes.rb', line 25544

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



25550
25551
25552
# File 'lib/google/apis/compute_alpha/classes.rb', line 25550

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25557
25558
25559
25560
# File 'lib/google/apis/compute_alpha/classes.rb', line 25557

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