Compute V1 Client - Class Data (1.14.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).

↳ value string

[Output Only] A warning data value corresponding to the key.

getKey

[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).

Returns
TypeDescription
string

hasKey

clearKey

setKey

[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValue

[Output Only] A warning data value corresponding to the key.

Returns
TypeDescription
string

hasValue

clearValue

setValue

[Output Only] A warning data value corresponding to the key.

Parameter
NameDescription
var string
Returns
TypeDescription
$this