Class: Google::Apis::ComputeAlpha::CapacityHistoryRequestInstanceProperties

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

Overview

Instance properties for this request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityHistoryRequestInstanceProperties

Returns a new instance of CapacityHistoryRequestInstanceProperties.



8655
8656
8657
# File 'lib/google/apis/compute_alpha/classes.rb', line 8655

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

Instance Attribute Details

#machine_typeString

The machine type for the VM, such as n2-standard-4. Corresponds to the JSON property machineType

Returns:

  • (String)


8648
8649
8650
# File 'lib/google/apis/compute_alpha/classes.rb', line 8648

def machine_type
  @machine_type
end

#schedulingGoogle::Apis::ComputeAlpha::CapacityHistoryRequestInstancePropertiesScheduling

Scheduling options. Corresponds to the JSON property scheduling



8653
8654
8655
# File 'lib/google/apis/compute_alpha/classes.rb', line 8653

def scheduling
  @scheduling
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8660
8661
8662
8663
# File 'lib/google/apis/compute_alpha/classes.rb', line 8660

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