Cluster Director V1BETA API - Class Google::Cloud::HypercomputeCluster::V1beta::Disk (v1.3.0)

Reference documentation and code samples for the Cluster Director V1BETA API class Google::Cloud::HypercomputeCluster::V1beta::Disk.

Additional disk for managed instance groups.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#existing_disk

def existing_disk() -> ::String
Returns
  • (::String) — Optional. An existing persistent disk to attach read-only to all VMs in the managed instance group, in the format projects/{project}/zones/{zone}/disks/{disk}.

    Note: The following fields are mutually exclusive: existing_disk, image, snapshot. If a field in that set is populated, all other fields in the set will automatically be cleared.

#existing_disk=

def existing_disk=(value) -> ::String
Parameter
  • value (::String) — Optional. An existing persistent disk to attach read-only to all VMs in the managed instance group, in the format projects/{project}/zones/{zone}/disks/{disk}.

    Note: The following fields are mutually exclusive: existing_disk, image, snapshot. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. An existing persistent disk to attach read-only to all VMs in the managed instance group, in the format projects/{project}/zones/{zone}/disks/{disk}.

    Note: The following fields are mutually exclusive: existing_disk, image, snapshot. If a field in that set is populated, all other fields in the set will automatically be cleared.

#image

def image() -> ::String
Returns
  • (::String) — Optional. Source image for the disk.

    Note: The following fields are mutually exclusive: image, snapshot, existing_disk. If a field in that set is populated, all other fields in the set will automatically be cleared.

#image=

def image=(value) -> ::String
Parameter
  • value (::String) — Optional. Source image for the disk.

    Note: The following fields are mutually exclusive: image, snapshot, existing_disk. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. Source image for the disk.

    Note: The following fields are mutually exclusive: image, snapshot, existing_disk. If a field in that set is populated, all other fields in the set will automatically be cleared.

#size_gb

def size_gb() -> ::Integer
Returns
  • (::Integer) — Optional. Size of the disk in GB. This field is required when creating a new disk.

#size_gb=

def size_gb=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. Size of the disk in GB. This field is required when creating a new disk.
Returns
  • (::Integer) — Optional. Size of the disk in GB. This field is required when creating a new disk.

#snapshot

def snapshot() -> ::String
Returns
  • (::String) — Optional. Source snapshot for the disk.

    Note: The following fields are mutually exclusive: snapshot, image, existing_disk. If a field in that set is populated, all other fields in the set will automatically be cleared.

#snapshot=

def snapshot=(value) -> ::String
Parameter
  • value (::String) — Optional. Source snapshot for the disk.

    Note: The following fields are mutually exclusive: snapshot, image, existing_disk. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. Source snapshot for the disk.

    Note: The following fields are mutually exclusive: snapshot, image, existing_disk. If a field in that set is populated, all other fields in the set will automatically be cleared.

#type

def type() -> ::String
Returns
  • (::String) — Optional. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}. This field is required when creating a new disk.

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — Optional. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}. This field is required when creating a new disk.
Returns
  • (::String) — Optional. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}. This field is required when creating a new disk.