Compute V1 Client - Class StoragePoolDisk (1.20.0)

Reference documentation and code samples for the Compute V1 Client class StoragePoolDisk.

Generated from protobuf message google.cloud.compute.v1.StoragePoolDisk

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ attached_instancesarray

[Output Only] Instances this disk is attached to.

↳ creation_timestampstring

[Output Only] Creation timestamp in RFC3339 text format.

↳ diskstring

[Output Only] The URL of the disk.

↳ namestring

[Output Only] The name of the disk.

↳ provisioned_iopsint|string

[Output Only] The number of IOPS provisioned for the disk.

↳ provisioned_throughputint|string

[Output Only] The throughput provisioned for the disk.

↳ resource_policiesarray

[Output Only] Resource policies applied to disk for automatic snapshot creations.

↳ size_gbint|string

[Output Only] The disk size, in GB.

↳ statusstring

[Output Only] The disk status. Check the Status enum for the list of possible values.

↳ typestring

[Output Only] The disk type.

↳ used_bytesint|string

[Output Only] Amount of disk space used.

getAttachedInstances

[Output Only] Instances this disk is attached to.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAttachedInstances

[Output Only] Instances this disk is attached to.

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Returns
TypeDescription
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDisk

[Output Only] The URL of the disk.

Returns
TypeDescription
string

hasDisk

clearDisk

setDisk

[Output Only] The URL of the disk.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getName

[Output Only] The name of the disk.

Returns
TypeDescription
string

hasName

clearName

setName

[Output Only] The name of the disk.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getProvisionedIops

[Output Only] The number of IOPS provisioned for the disk.

Returns
TypeDescription
int|string

hasProvisionedIops

clearProvisionedIops

setProvisionedIops

[Output Only] The number of IOPS provisioned for the disk.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getProvisionedThroughput

[Output Only] The throughput provisioned for the disk.

Returns
TypeDescription
int|string

hasProvisionedThroughput

clearProvisionedThroughput

setProvisionedThroughput

[Output Only] The throughput provisioned for the disk.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getResourcePolicies

[Output Only] Resource policies applied to disk for automatic snapshot creations.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setResourcePolicies

[Output Only] Resource policies applied to disk for automatic snapshot creations.

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this

getSizeGb

[Output Only] The disk size, in GB.

Returns
TypeDescription
int|string

hasSizeGb

clearSizeGb

setSizeGb

[Output Only] The disk size, in GB.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getStatus

[Output Only] The disk status.

Check the Status enum for the list of possible values.

Returns
TypeDescription
string

hasStatus

clearStatus

setStatus

[Output Only] The disk status.

Check the Status enum for the list of possible values.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getType

[Output Only] The disk type.

Returns
TypeDescription
string

hasType

clearType

setType

[Output Only] The disk type.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getUsedBytes

[Output Only] Amount of disk space used.

Returns
TypeDescription
int|string

hasUsedBytes

clearUsedBytes

setUsedBytes

[Output Only] Amount of disk space used.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this