Reference documentation and code samples for the Cluster Director V1BETA API class Google::Cloud::HypercomputeCluster::V1beta::ManagedInstanceGroup.
A managed instance group based on a compute resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#additional_disks
def additional_disks() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::HypercomputeCluster::V1beta::Disk}
Returns
- (::Google::Protobuf::Map{::String => ::Google::Cloud::HypercomputeCluster::V1beta::Disk}) — 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.
#additional_disks=
def additional_disks=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::HypercomputeCluster::V1beta::Disk}
Parameter
- value (::Google::Protobuf::Map{::String => ::Google::Cloud::HypercomputeCluster::V1beta::Disk}) — 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
- (::Google::Protobuf::Map{::String => ::Google::Cloud::HypercomputeCluster::V1beta::Disk}) — 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.
#boot_disk
def boot_disk() -> ::Google::Cloud::HypercomputeCluster::V1beta::BootDisk
Returns
- (::Google::Cloud::HypercomputeCluster::V1beta::BootDisk) — Optional. Boot disk for the managed instance group.
#boot_disk=
def boot_disk=(value) -> ::Google::Cloud::HypercomputeCluster::V1beta::BootDisk
Parameter
- value (::Google::Cloud::HypercomputeCluster::V1beta::BootDisk) — Optional. Boot disk for the managed instance group.
Returns
- (::Google::Cloud::HypercomputeCluster::V1beta::BootDisk) — Optional. Boot disk for the managed instance group.
#compute_id
def compute_id() -> ::String
Returns
- (::String) — Required. ID of the compute resource used to create this managed instance group.
#compute_id=
def compute_id=(value) -> ::String
Parameter
- value (::String) — Required. ID of the compute resource used to create this managed instance group.
Returns
- (::String) — Required. ID of the compute resource used to create this managed instance group.
#enable_os_login
def enable_os_login() -> ::Boolean
Returns
- (::Boolean) — Optional. Whether OS Login should be enabled on instances in this managed instance group.
#enable_os_login=
def enable_os_login=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Whether OS Login should be enabled on instances in this managed instance group.
Returns
- (::Boolean) — Optional. Whether OS Login should be enabled on instances in this managed instance group.
#enable_public_ips
def enable_public_ips() -> ::Boolean
Returns
- (::Boolean) — Optional. Whether to enable public IPs for the instances in the managed instance group.
#enable_public_ips=
def enable_public_ips=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Whether to enable public IPs for the instances in the managed instance group.
Returns
- (::Boolean) — Optional. Whether to enable public IPs for the instances in the managed instance group.
#instance_group_manager
def instance_group_manager() -> ::String
Returns
-
(::String) — Output only. Name of the managed instance group, in the format
projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}. orprojects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}
#instance_template
def instance_template() -> ::String
Returns
- (::String) — Output only. Instance template used to create instances in this group.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels that should be applied to each VM instance in the managed instance group.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels that should be applied to each VM instance in the managed instance group.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels that should be applied to each VM instance in the managed instance group.
#metadata
def metadata() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
#resource_policy_config
def resource_policy_config() -> ::Google::Cloud::HypercomputeCluster::V1beta::ResourcePolicyConfig
Returns
- (::Google::Cloud::HypercomputeCluster::V1beta::ResourcePolicyConfig) — Optional. Resource policy configuration for this managed instance group.
#resource_policy_config=
def resource_policy_config=(value) -> ::Google::Cloud::HypercomputeCluster::V1beta::ResourcePolicyConfig
Parameter
- value (::Google::Cloud::HypercomputeCluster::V1beta::ResourcePolicyConfig) — Optional. Resource policy configuration for this managed instance group.
Returns
- (::Google::Cloud::HypercomputeCluster::V1beta::ResourcePolicyConfig) — Optional. Resource policy configuration for this managed instance group.
#service_account
def service_account() -> ::Google::Cloud::HypercomputeCluster::V1beta::ServiceAccount
Returns
- (::Google::Cloud::HypercomputeCluster::V1beta::ServiceAccount) — Required. Immutable. Service account to be used by the instances in the managed instance group.
#service_account=
def service_account=(value) -> ::Google::Cloud::HypercomputeCluster::V1beta::ServiceAccount
Parameter
- value (::Google::Cloud::HypercomputeCluster::V1beta::ServiceAccount) — Required. Immutable. Service account to be used by the instances in the managed instance group.
Returns
- (::Google::Cloud::HypercomputeCluster::V1beta::ServiceAccount) — Required. Immutable. Service account to be used by the instances in the managed instance group.
#startup_script
def startup_script() -> ::String
Returns
- (::String) — Optional. Startup script to be run on each VM instance in the nodeset.
#startup_script=
def startup_script=(value) -> ::String
Parameter
- value (::String) — Optional. Startup script to be run on each VM instance in the nodeset.
Returns
- (::String) — Optional. Startup script to be run on each VM instance in the nodeset.
#startup_script_timeout
def startup_script_timeout() -> ::Google::Protobuf::Duration
Returns
- (::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.
#startup_script_timeout=
def startup_script_timeout=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::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.
Returns
- (::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.
#storage_configs
def storage_configs() -> ::Array<::Google::Cloud::HypercomputeCluster::V1beta::StorageConfig>
Returns
- (::Array<::Google::Cloud::HypercomputeCluster::V1beta::StorageConfig>) — Optional. How [storage resources][google.cloud.hypercomputecluster.v1beta.StorageResource] should be mounted on each instance in this managed instance group.
#storage_configs=
def storage_configs=(value) -> ::Array<::Google::Cloud::HypercomputeCluster::V1beta::StorageConfig>
Parameter
- value (::Array<::Google::Cloud::HypercomputeCluster::V1beta::StorageConfig>) — Optional. How [storage resources][google.cloud.hypercomputecluster.v1beta.StorageResource] should be mounted on each instance in this managed instance group.
Returns
- (::Array<::Google::Cloud::HypercomputeCluster::V1beta::StorageConfig>) — Optional. How [storage resources][google.cloud.hypercomputecluster.v1beta.StorageResource] should be mounted on each instance in this managed instance group.
#target_size
def target_size() -> ::Integer
Returns
- (::Integer) — Optional. Target number of running instances for this managed instance group.
#target_size=
def target_size=(value) -> ::Integer
Parameter
- value (::Integer) — Optional. Target number of running instances for this managed instance group.
Returns
- (::Integer) — Optional. Target number of running instances for this managed instance group.