Reference documentation and code samples for the Cluster Director V1BETA API class Google::Cloud::HypercomputeCluster::V1beta::NewSpotInstancesConfig.
When set in a ComputeResourceConfig, indicates that spot VM instances should be created.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#machine_type
def machine_type() -> ::String
Returns
-
(::String) — Required. Immutable. Name of the Compute Engine machine
type to use, e.g.
n2-standard-2.
#machine_type=
def machine_type=(value) -> ::String
Parameter
-
value (::String) — Required. Immutable. Name of the Compute Engine machine
type to use, e.g.
n2-standard-2.
Returns
-
(::String) — Required. Immutable. Name of the Compute Engine machine
type to use, e.g.
n2-standard-2.
#network_tags
def network_tags() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.
#network_tags=
def network_tags=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.
Returns
- (::Array<::String>) — Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.
#termination_action
def termination_action() -> ::Google::Cloud::HypercomputeCluster::V1beta::NewSpotInstancesConfig::TerminationAction
Returns
- (::Google::Cloud::HypercomputeCluster::V1beta::NewSpotInstancesConfig::TerminationAction) — Optional. Termination action for the instance. If not specified, Compute Engine sets the termination action to DELETE.
#termination_action=
def termination_action=(value) -> ::Google::Cloud::HypercomputeCluster::V1beta::NewSpotInstancesConfig::TerminationAction
Parameter
- value (::Google::Cloud::HypercomputeCluster::V1beta::NewSpotInstancesConfig::TerminationAction) — Optional. Termination action for the instance. If not specified, Compute Engine sets the termination action to DELETE.
Returns
- (::Google::Cloud::HypercomputeCluster::V1beta::NewSpotInstancesConfig::TerminationAction) — Optional. Termination action for the instance. If not specified, Compute Engine sets the termination action to DELETE.
#zone
def zone() -> ::String
Returns
-
(::String) — Required. Immutable. Name of the zone in which VM instances should run,
e.g.,
us-central1-a. Must be in the same region as the cluster, and must match the zone of any other resources specified in the cluster.
#zone=
def zone=(value) -> ::String
Parameter
-
value (::String) — Required. Immutable. Name of the zone in which VM instances should run,
e.g.,
us-central1-a. Must be in the same region as the cluster, and must match the zone of any other resources specified in the cluster.
Returns
-
(::String) — Required. Immutable. Name of the zone in which VM instances should run,
e.g.,
us-central1-a. Must be in the same region as the cluster, and must match the zone of any other resources specified in the cluster.