Compute V1 Client - Class InstantSnapshot (1.25.0)

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

Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly..

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ architecturestring

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.

↳ creation_timestampstring

[Output Only] Creation timestamp in RFC3339 text format.

↳ descriptionstring

An optional description of this resource. Provide this property when you create the resource.

↳ disk_size_gbint|string

[Output Only] Size of the source disk, specified in GB.

↳ idint|string

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

↳ kindstring

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

↳ label_fingerprintstring

A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.

↳ labelsarray|Google\Protobuf\Internal\MapField

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

↳ namestring

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

↳ regionstring

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

↳ resource_statusInstantSnapshotResourceStatus

[Output Only] Status information for the instant snapshot resource.

↳ satisfies_pzibool

Output only. Reserved for future use.

↳ satisfies_pzsbool

[Output Only] Reserved for future use.

↳ self_linkstring

[Output Only] Server-defined URL for the resource.

↳ self_link_with_idstring

[Output Only] Server-defined URL for this resource's resource id.

↳ source_diskstring

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

↳ source_disk_idstring

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

↳ statusstring

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. Check the Status enum for the list of possible values.

↳ zonestring

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

getArchitecture

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.

Check the Architecture enum for the list of possible values.

Returns
TypeDescription
string

hasArchitecture

clearArchitecture

setArchitecture

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.

Check the Architecture enum for the list of possible values.

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

getDescription

An optional description of this resource. Provide this property when you create the resource.

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

An optional description of this resource. Provide this property when you create the resource.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDiskSizeGb

[Output Only] Size of the source disk, specified in GB.

Returns
TypeDescription
int|string

hasDiskSizeGb

clearDiskSizeGb

setDiskSizeGb

[Output Only] Size of the source disk, specified in GB.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getId

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns
TypeDescription
int|string

hasId

clearId

setId

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getKind

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

Returns
TypeDescription
string

hasKind

clearKind

setKind

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getLabelFingerprint

A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.

Returns
TypeDescription
string

hasLabelFingerprint

clearLabelFingerprint

setLabelFingerprint

A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getLabels

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

Parameter
NameDescription
vararray|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getName

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Returns
TypeDescription
string

hasName

clearName

setName

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRegion

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Returns
TypeDescription
string

hasRegion

clearRegion

setRegion

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getResourceStatus

[Output Only] Status information for the instant snapshot resource.

Returns
TypeDescription
InstantSnapshotResourceStatus|null

hasResourceStatus

clearResourceStatus

setResourceStatus

[Output Only] Status information for the instant snapshot resource.

Parameter
NameDescription
varInstantSnapshotResourceStatus
Returns
TypeDescription
$this

getSatisfiesPzi

Output only. Reserved for future use.

Returns
TypeDescription
bool

hasSatisfiesPzi

clearSatisfiesPzi

setSatisfiesPzi

Output only. Reserved for future use.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getSatisfiesPzs

[Output Only] Reserved for future use.

Returns
TypeDescription
bool

hasSatisfiesPzs

clearSatisfiesPzs

setSatisfiesPzs

[Output Only] Reserved for future use.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

[Output Only] Server-defined URL for the resource.

Returns
TypeDescription
string

[Output Only] Server-defined URL for the resource.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSelfLinkWithId

[Output Only] Server-defined URL for this resource's resource id.

Returns
TypeDescription
string

hasSelfLinkWithId

clearSelfLinkWithId

setSelfLinkWithId

[Output Only] Server-defined URL for this resource's resource id.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSourceDisk

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

Returns
TypeDescription
string

hasSourceDisk

clearSourceDisk

setSourceDisk

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSourceDiskId

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

Returns
TypeDescription
string

hasSourceDiskId

clearSourceDiskId

setSourceDiskId

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getStatus

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.

Check the Status enum for the list of possible values.

Returns
TypeDescription
string

hasStatus

clearStatus

setStatus

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.

Check the Status enum for the list of possible values.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getZone

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Returns
TypeDescription
string

hasZone

clearZone

setZone

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this