Class: Google::Apis::ComputeBeta::CapacityHistoryRequestInstanceProperties
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::CapacityHistoryRequestInstanceProperties
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Instance properties for this request.
Instance Attribute Summary collapse
-
#machine_type ⇒ String
The machine type for the VM, such as
n2-standard-4. -
#scheduling ⇒ Google::Apis::ComputeBeta::CapacityHistoryRequestInstancePropertiesScheduling
Scheduling options.
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.
8278 8279 8280 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8278 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
8271 8272 8273 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8271 def machine_type @machine_type end |
#scheduling ⇒ Google::Apis::ComputeBeta::CapacityHistoryRequestInstancePropertiesScheduling
Scheduling options.
Corresponds to the JSON property scheduling
8276 8277 8278 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8276 def scheduling @scheduling end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8283 8284 8285 8286 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8283 def update!(**args) @machine_type = args[:machine_type] if args.key?(:machine_type) @scheduling = args[:scheduling] if args.key?(:scheduling) end |