Compute V1 Client - Class Data (1.5.0)

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

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

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).

Generated from protobuf field optional string key = 106079;

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).

Generated from protobuf field optional string key = 106079;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValue

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

Generated from protobuf field optional string value = 111972721;

Returns
TypeDescription
string

hasValue

clearValue

setValue

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

Generated from protobuf field optional string value = 111972721;

Parameter
NameDescription
var string
Returns
TypeDescription
$this