Google Cloud Hypercompute Cluster V1beta Client - Class ComputeResourceConfig (0.3.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class ComputeResourceConfig.
Describes how a compute resource should be created at runtime.
Generated from protobuf message google.cloud.hypercomputecluster.v1beta.ComputeResourceConfig
Namespace
Google \ Cloud \ HypercomputeCluster \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ new_on_demand_instances |
NewOnDemandInstancesConfig
Optional. Immutable. If set, indicates that this resource should use on-demand VMs. |
↳ new_spot_instances |
NewSpotInstancesConfig
Optional. Immutable. If set, indicates that this resource should use spot VMs. |
↳ new_reserved_instances |
NewReservedInstancesConfig
Optional. Immutable. If set, indicates that this resource should use reserved VMs. |
↳ new_flex_start_instances |
NewFlexStartInstancesConfig
Optional. Immutable. If set, indicates that this resource should use flex-start VMs. |
getNewOnDemandInstances
Optional. Immutable. If set, indicates that this resource should use on-demand VMs.
| Returns | |
|---|---|
| Type | Description |
NewOnDemandInstancesConfig|null |
|
hasNewOnDemandInstances
setNewOnDemandInstances
Optional. Immutable. If set, indicates that this resource should use on-demand VMs.
| Parameter | |
|---|---|
| Name | Description |
var |
NewOnDemandInstancesConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNewSpotInstances
Optional. Immutable. If set, indicates that this resource should use spot VMs.
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig|null |
|
hasNewSpotInstances
setNewSpotInstances
Optional. Immutable. If set, indicates that this resource should use spot VMs.
| Parameter | |
|---|---|
| Name | Description |
var |
NewSpotInstancesConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNewReservedInstances
Optional. Immutable. If set, indicates that this resource should use reserved VMs.
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig|null |
|
hasNewReservedInstances
setNewReservedInstances
Optional. Immutable. If set, indicates that this resource should use reserved VMs.
| Parameter | |
|---|---|
| Name | Description |
var |
NewReservedInstancesConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNewFlexStartInstances
Optional. Immutable. If set, indicates that this resource should use flex-start VMs.
| Returns | |
|---|---|
| Type | Description |
NewFlexStartInstancesConfig|null |
|
hasNewFlexStartInstances
setNewFlexStartInstances
Optional. Immutable. If set, indicates that this resource should use flex-start VMs.
| Parameter | |
|---|---|
| Name | Description |
var |
NewFlexStartInstancesConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConfig
| Returns | |
|---|---|
| Type | Description |
string |
|