Google Cloud Hypercompute Cluster V1beta Client - Class ManagedInstanceGroup (0.6.0)

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class ManagedInstanceGroup.

A managed instance group based on a compute resource.

Generated from protobuf message google.cloud.hypercomputecluster.v1beta.ManagedInstanceGroup

Namespace

Google \ Cloud \ HypercomputeCluster \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ instance_group_manager string

Output only. Name of the managed instance group, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}. or projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}

↳ compute_id string

Required. ID of the compute resource used to create this managed instance group.

↳ target_size int|string

Optional. Target number of running instances for this managed instance group.

↳ storage_configs array<StorageConfig>

Optional. How storage resources should be mounted on each instance in this managed instance group.

↳ instance_template string

Output only. Instance template used to create instances in this group.

↳ resource_policy_config ResourcePolicyConfig

Optional. Resource policy configuration for this managed instance group.

↳ boot_disk BootDisk

Optional. Boot disk for the managed instance group.

↳ additional_disks array|Google\Protobuf\Internal\MapField

Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.

↳ startup_script string

Optional. Startup script to be run on each VM instance in the nodeset.

↳ enable_public_ips bool

Optional. Whether to enable public IPs for the instances in the managed instance group.

↳ enable_os_login bool

Optional. Whether OS Login should be enabled on instances in this managed instance group.

↳ startup_script_timeout Google\Protobuf\Duration

Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.

↳ metadata array|Google\Protobuf\Internal\MapField

Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.

↳ service_account ServiceAccount

Required. Immutable. Service account to be used by the instances in the managed instance group.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels that should be applied to each VM instance in the managed instance group.

getInstanceGroupManager

Output only. Name of the managed instance group, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}.

or projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}

Returns
Type Description
string

setInstanceGroupManager

Output only. Name of the managed instance group, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}.

or projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}

Parameter
Name Description
var string
Returns
Type Description
$this

getComputeId

Required. ID of the compute resource used to create this managed instance group.

Returns
Type Description
string

setComputeId

Required. ID of the compute resource used to create this managed instance group.

Parameter
Name Description
var string
Returns
Type Description
$this

getTargetSize

Optional. Target number of running instances for this managed instance group.

Returns
Type Description
int|string

setTargetSize

Optional. Target number of running instances for this managed instance group.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getStorageConfigs

Optional. How storage resources should be mounted on each instance in this managed instance group.

Returns
Type Description
Google\Protobuf\RepeatedField<StorageConfig>

setStorageConfigs

Optional. How storage resources should be mounted on each instance in this managed instance group.

Parameter
Name Description
var array<StorageConfig>
Returns
Type Description
$this

getInstanceTemplate

Output only. Instance template used to create instances in this group.

Returns
Type Description
string

setInstanceTemplate

Output only. Instance template used to create instances in this group.

Parameter
Name Description
var string
Returns
Type Description
$this

getResourcePolicyConfig

Optional. Resource policy configuration for this managed instance group.

Returns
Type Description
ResourcePolicyConfig|null

hasResourcePolicyConfig

clearResourcePolicyConfig

setResourcePolicyConfig

Optional. Resource policy configuration for this managed instance group.

Parameter
Name Description
var ResourcePolicyConfig
Returns
Type Description
$this

getBootDisk

Optional. Boot disk for the managed instance group.

Returns
Type Description
BootDisk|null

hasBootDisk

clearBootDisk

setBootDisk

Optional. Boot disk for the managed instance group.

Parameter
Name Description
var BootDisk
Returns
Type Description
$this

getAdditionalDisks

Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.

Returns
Type Description
Google\Protobuf\Internal\MapField

setAdditionalDisks

Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getStartupScript

Optional. Startup script to be run on each VM instance in the nodeset.

Returns
Type Description
string

setStartupScript

Optional. Startup script to be run on each VM instance in the nodeset.

Parameter
Name Description
var string
Returns
Type Description
$this

getEnablePublicIps

Optional. Whether to enable public IPs for the instances in the managed instance group.

Returns
Type Description
bool

setEnablePublicIps

Optional. Whether to enable public IPs for the instances in the managed instance group.

Parameter
Name Description
var bool
Returns
Type Description
$this

getEnableOsLogin

Optional. Whether OS Login should be enabled on instances in this managed instance group.

Returns
Type Description
bool

setEnableOsLogin

Optional. Whether OS Login should be enabled on instances in this managed instance group.

Parameter
Name Description
var bool
Returns
Type Description
$this

getStartupScriptTimeout

Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.

Returns
Type Description
Google\Protobuf\Duration|null

hasStartupScriptTimeout

clearStartupScriptTimeout

setStartupScriptTimeout

Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getMetadata

Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.

Returns
Type Description
Google\Protobuf\Internal\MapField

setMetadata

Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getServiceAccount

Required. Immutable. Service account to be used by the instances in the managed instance group.

Returns
Type Description
ServiceAccount|null

hasServiceAccount

clearServiceAccount

setServiceAccount

Required. Immutable. Service account to be used by the instances in the managed instance group.

Parameter
Name Description
var ServiceAccount
Returns
Type Description
$this

getLabels

Optional.

Labels that should be applied to each VM instance in the managed instance group.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Optional.

Labels that should be applied to each VM instance in the managed instance group.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this