Google Cloud Net App V1 Client - Class Snapshot (0.1.1)

Reference documentation and code samples for the Google Cloud Net App V1 Client class Snapshot.

Snapshot is a point-in-time version of a Volume's content.

Generated from protobuf message google.cloud.netapp.v1.Snapshot

Namespace

Google \ Cloud \ NetApp \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the snapshot. Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}.

↳ state int

Output only. The snapshot state.

↳ state_details string

Output only. State details of the storage pool

↳ description string

A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.

↳ used_bytes float

Output only. Current storage usage for the snapshot in bytes.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the snapshot was created.

↳ labels array|Google\Protobuf\Internal\MapField

Resource labels to represent user provided metadata.

getName

Output only. The resource name of the snapshot.

Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}.

Returns
TypeDescription
string

setName

Output only. The resource name of the snapshot.

Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. The snapshot state.

Returns
TypeDescription
int

setState

Output only. The snapshot state.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateDetails

Output only. State details of the storage pool

Returns
TypeDescription
string

setStateDetails

Output only. State details of the storage pool

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

A description of the snapshot with 2048 characters or less.

Requests with longer descriptions will be rejected.

Returns
TypeDescription
string

setDescription

A description of the snapshot with 2048 characters or less.

Requests with longer descriptions will be rejected.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUsedBytes

Output only. Current storage usage for the snapshot in bytes.

Returns
TypeDescription
float

setUsedBytes

Output only. Current storage usage for the snapshot in bytes.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getCreateTime

Output only. The time when the snapshot was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the snapshot was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

Resource labels to represent user provided metadata.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Resource labels to represent user provided metadata.

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