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

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

Additional disk for managed instance groups.

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

Namespace

Google \ Cloud \ HypercomputeCluster \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ image string

Optional. Source image for the disk.

↳ snapshot string

Optional. Source snapshot for the disk.

↳ existing_disk 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}.

↳ type string

Optional. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}. This field is required when creating a new disk.

↳ size_gb int|string

Optional. Size of the disk in GB. This field is required when creating a new disk.

getImage

Optional. Source image for the disk.

Returns
Type Description
string

hasImage

setImage

Optional. Source image for the disk.

Parameter
Name Description
var string
Returns
Type Description
$this

getSnapshot

Optional. Source snapshot for the disk.

Returns
Type Description
string

hasSnapshot

setSnapshot

Optional. Source snapshot for the disk.

Parameter
Name Description
var string
Returns
Type Description
$this

getExistingDisk

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}.

Returns
Type Description
string

hasExistingDisk

setExistingDisk

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}.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Optional. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}.

This field is required when creating a new disk.

Returns
Type Description
string

setType

Optional. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}.

This field is required when creating a new disk.

Parameter
Name Description
var string
Returns
Type Description
$this

getSizeGb

Optional. Size of the disk in GB.

This field is required when creating a new disk.

Returns
Type Description
int|string

setSizeGb

Optional. Size of the disk in GB.

This field is required when creating a new disk.

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

getSource

Returns
Type Description
string