Class: Google::Apis::ComputeAlpha::CapacityHistoryRequestInstanceProperties
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityHistoryRequestInstanceProperties
- 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
Instance Attribute Summary collapse
-
#machine_type ⇒ String
The machine type for the VM, such as
n2-standard-4. -
#scheduling ⇒ Google::Apis::ComputeAlpha::CapacityHistoryRequestInstancePropertiesScheduling
Corresponds to the JSON property
scheduling.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityHistoryRequestInstanceProperties
constructor
A new instance of CapacityHistoryRequestInstanceProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityHistoryRequestInstanceProperties
Returns a new instance of CapacityHistoryRequestInstanceProperties.
8677 8678 8679 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8677 def initialize(**args) update!(**args) end |
Instance Attribute Details
#machine_type ⇒ String
The machine type for the VM, such as n2-standard-4.
Corresponds to the JSON property machineType
8670 8671 8672 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8670 def machine_type @machine_type end |
#scheduling ⇒ Google::Apis::ComputeAlpha::CapacityHistoryRequestInstancePropertiesScheduling
Corresponds to the JSON property scheduling
8675 8676 8677 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8675 def scheduling @scheduling end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8682 8683 8684 8685 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8682 def update!(**args) @machine_type = args[:machine_type] if args.key?(:machine_type) @scheduling = args[:scheduling] if args.key?(:scheduling) end |