Google Cloud Bare Metal Solution V2 Client - Class VolumeSnapshot (0.5.2)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class VolumeSnapshot.

A snapshot of a volume. Only boot volumes can have snapshots.

Generated from protobuf message google.cloud.baremetalsolution.v2.VolumeSnapshot

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the snapshot.

↳ id string

Output only. An identifier for the snapshot, generated by the backend.

↳ description string

The description of the snapshot.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation time of the snapshot.

↳ storage_volume string

Output only. The name of the volume which this snapshot belongs to.

↳ type int

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

getName

The name of the snapshot.

Returns
TypeDescription
string

setName

The name of the snapshot.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

Output only. An identifier for the snapshot, generated by the backend.

Returns
TypeDescription
string

setId

Output only. An identifier for the snapshot, generated by the backend.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The description of the snapshot.

Returns
TypeDescription
string

setDescription

The description of the snapshot.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The creation time of the snapshot.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation time of the snapshot.

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

getStorageVolume

Output only. The name of the volume which this snapshot belongs to.

Returns
TypeDescription
string

setStorageVolume

Output only. The name of the volume which this snapshot belongs to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

Returns
TypeDescription
int

setType

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

Parameter
NameDescription
var int
Returns
TypeDescription
$this