Compute V1 Client - Class StoragePoolDisk (1.22.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
Name Description
data array

Optional. Data for populating the Message object.

↳ attached_instances array

[Output Only] Instances this disk is attached to.

↳ creation_timestamp string

[Output Only] Creation timestamp in RFC3339 text format.

↳ disk string

[Output Only] The URL of the disk.

↳ name string

[Output Only] The name of the disk.

↳ provisioned_iops int|string

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

↳ provisioned_throughput int|string

[Output Only] The throughput provisioned for the disk.

↳ resource_policies array

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

↳ size_gb int|string

[Output Only] The disk size, in GB.

↳ status string

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

↳ type string

[Output Only] The disk type.

↳ used_bytes int|string

[Output Only] Amount of disk space used.

getAttachedInstances

[Output Only] Instances this disk is attached to.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAttachedInstances

[Output Only] Instances this disk is attached to.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Returns
Type Description
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisk

[Output Only] The URL of the disk.

Returns
Type Description
string

hasDisk

clearDisk

setDisk

[Output Only] The URL of the disk.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

[Output Only] The name of the disk.

Returns
Type Description
string

hasName

clearName

setName

[Output Only] The name of the disk.

Parameter
Name Description
var string
Returns
Type Description
$this

getProvisionedIops

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

Returns
Type Description
int|string

hasProvisionedIops

clearProvisionedIops

setProvisionedIops

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

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

getProvisionedThroughput

[Output Only] The throughput provisioned for the disk.

Returns
Type Description
int|string

hasProvisionedThroughput

clearProvisionedThroughput

setProvisionedThroughput

[Output Only] The throughput provisioned for the disk.

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

getResourcePolicies

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setResourcePolicies

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

Parameter
Name Description
var string[]
Returns
Type Description
$this

getSizeGb

[Output Only] The disk size, in GB.

Returns
Type Description
int|string

hasSizeGb

clearSizeGb

setSizeGb

[Output Only] The disk size, in GB.

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

getStatus

[Output Only] The disk status.

Check the Status enum for the list of possible values.

Returns
Type Description
string

hasStatus

clearStatus

setStatus

[Output Only] The disk status.

Check the Status enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

[Output Only] The disk type.

Returns
Type Description
string

hasType

clearType

setType

[Output Only] The disk type.

Parameter
Name Description
var string
Returns
Type Description
$this

getUsedBytes

[Output Only] Amount of disk space used.

Returns
Type Description
int|string

hasUsedBytes

clearUsedBytes

setUsedBytes

[Output Only] Amount of disk space used.

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