Class: Google::Apis::HypercomputeclusterV1::ComputeResourceConfig
- Inherits:
-
Object
- Object
- Google::Apis::HypercomputeclusterV1::ComputeResourceConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/hypercomputecluster_v1/classes.rb,
lib/google/apis/hypercomputecluster_v1/representations.rb,
lib/google/apis/hypercomputecluster_v1/representations.rb
Overview
Describes how a compute resource should be created at runtime.
Instance Attribute Summary collapse
-
#new_flex_start_instances ⇒ Google::Apis::HypercomputeclusterV1::NewFlexStartInstancesConfig
When set in a ComputeResourceConfig, indicates that VM instances should be created using Flex Start.
-
#new_on_demand_instances ⇒ Google::Apis::HypercomputeclusterV1::NewOnDemandInstancesConfig
When set in a ComputeResourceConfig, indicates that on-demand (i.e., using the standard provisioning model) VM instances should be created.
-
#new_reserved_instances ⇒ Google::Apis::HypercomputeclusterV1::NewReservedInstancesConfig
When set in a ComputeResourceConfig, indicates that VM instances should be created from a reservation.
-
#new_spot_instances ⇒ Google::Apis::HypercomputeclusterV1::NewSpotInstancesConfig
When set in a ComputeResourceConfig, indicates that spot VM instances should be created.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeResourceConfig
constructor
A new instance of ComputeResourceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeResourceConfig
Returns a new instance of ComputeResourceConfig.
303 304 305 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 303 def initialize(**args) update!(**args) end |
Instance Attribute Details
#new_flex_start_instances ⇒ Google::Apis::HypercomputeclusterV1::NewFlexStartInstancesConfig
When set in a ComputeResourceConfig, indicates that VM instances should be
created using Flex Start.
Corresponds to the JSON property newFlexStartInstances
282 283 284 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 282 def new_flex_start_instances @new_flex_start_instances end |
#new_on_demand_instances ⇒ Google::Apis::HypercomputeclusterV1::NewOnDemandInstancesConfig
When set in a ComputeResourceConfig, indicates that on-demand (i.e., using the
standard provisioning model) VM instances should be created.
Corresponds to the JSON property newOnDemandInstances
288 289 290 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 288 def new_on_demand_instances @new_on_demand_instances end |
#new_reserved_instances ⇒ Google::Apis::HypercomputeclusterV1::NewReservedInstancesConfig
When set in a ComputeResourceConfig, indicates that VM instances should be
created from a reservation.
Corresponds to the JSON property newReservedInstances
295 296 297 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 295 def new_reserved_instances @new_reserved_instances end |
#new_spot_instances ⇒ Google::Apis::HypercomputeclusterV1::NewSpotInstancesConfig
When set in a ComputeResourceConfig, indicates that spot VM instances should be created.
Corresponds to the JSON property newSpotInstances
301 302 303 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 301 def new_spot_instances @new_spot_instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
308 309 310 311 312 313 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 308 def update!(**args) @new_flex_start_instances = args[:new_flex_start_instances] if args.key?(:new_flex_start_instances) @new_on_demand_instances = args[:new_on_demand_instances] if args.key?(:new_on_demand_instances) @new_reserved_instances = args[:new_reserved_instances] if args.key?(:new_reserved_instances) @new_spot_instances = args[:new_spot_instances] if args.key?(:new_spot_instances) end |