Compute V1 Client - Class GuestAttributes (1.10.1)

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

A guest attributes entry.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ kind string

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

↳ query_path string

The path to be queried. This can be the default namespace ('') or a nested namespace ('/') or a specified key ('/').

↳ query_value Google\Cloud\Compute\V1\GuestAttributesValue

[Output Only] The value of the requested queried path.

↳ self_link string

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

↳ variable_key string

The key to search for.

↳ variable_value string

[Output Only] The value found for the requested key.

getKind

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

Returns
TypeDescription
string

hasKind

clearKind

setKind

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQueryPath

The path to be queried. This can be the default namespace ('') or a nested namespace ('/') or a specified key ('/').

Returns
TypeDescription
string

hasQueryPath

clearQueryPath

setQueryPath

The path to be queried. This can be the default namespace ('') or a nested namespace ('/') or a specified key ('/').

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQueryValue

[Output Only] The value of the requested queried path.

Returns
TypeDescription
Google\Cloud\Compute\V1\GuestAttributesValue|null

hasQueryValue

clearQueryValue

setQueryValue

[Output Only] The value of the requested queried path.

Parameter
NameDescription
var Google\Cloud\Compute\V1\GuestAttributesValue
Returns
TypeDescription
$this

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

Returns
TypeDescription
string

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVariableKey

The key to search for.

Returns
TypeDescription
string

hasVariableKey

clearVariableKey

setVariableKey

The key to search for.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVariableValue

[Output Only] The value found for the requested key.

Returns
TypeDescription
string

hasVariableValue

clearVariableValue

setVariableValue

[Output Only] The value found for the requested key.

Parameter
NameDescription
var string
Returns
TypeDescription
$this