Compute V1 Client - Class Screenshot (1.6.1)

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

An instance's screenshot.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ contents string

[Output Only] The Base64-encoded screenshot data.

↳ kind string

[Output Only] Type of the resource. Always compute#screenshot for the screenshots.

getContents

[Output Only] The Base64-encoded screenshot data.

Returns
TypeDescription
string

hasContents

clearContents

setContents

[Output Only] The Base64-encoded screenshot data.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKind

[Output Only] Type of the resource. Always compute#screenshot for the screenshots.

Returns
TypeDescription
string

hasKind

clearKind

setKind

[Output Only] Type of the resource. Always compute#screenshot for the screenshots.

Parameter
NameDescription
var string
Returns
TypeDescription
$this