Compute V1 Client - Class GuestAttributes (1.23.0)

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
dataarray

Optional. Data for populating the Message object.

↳ kindstring

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

↳ query_pathstring

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

↳ query_valueGuestAttributesValue

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

↳ self_linkstring

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

↳ variable_keystring

The key to search for.

↳ variable_valuestring

[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
varstring
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
varstring
Returns
TypeDescription
$this

getQueryValue

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

Returns
TypeDescription
GuestAttributesValue|null

hasQueryValue

clearQueryValue

setQueryValue

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

Parameter
NameDescription
varGuestAttributesValue
Returns
TypeDescription
$this

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

Returns
TypeDescription
string

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getVariableKey

The key to search for.

Returns
TypeDescription
string

hasVariableKey

clearVariableKey

setVariableKey

The key to search for.

Parameter
NameDescription
varstring
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
varstring
Returns
TypeDescription
$this