Compute V1 Client - Class Warnings (1.5.0)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ code string

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Check the Code enum for the list of possible values.

↳ data array<Google\Cloud\Compute\V1\Data>

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

↳ message string

[Output Only] A human-readable description of the warning code.

getCode

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.

Check the Code enum for the list of possible values.

Generated from protobuf field optional string code = 3059181;

Returns
TypeDescription
string

hasCode

clearCode

setCode

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.

Check the Code enum for the list of possible values.

Generated from protobuf field optional string code = 3059181;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getData

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

Generated from protobuf field repeated .google.cloud.compute.v1.Data data = 3076010;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setData

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

Generated from protobuf field repeated .google.cloud.compute.v1.Data data = 3076010;

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\Data>
Returns
TypeDescription
$this

getMessage

[Output Only] A human-readable description of the warning code.

Generated from protobuf field optional string message = 418054151;

Returns
TypeDescription
string

hasMessage

clearMessage

setMessage

[Output Only] A human-readable description of the warning code.

Generated from protobuf field optional string message = 418054151;

Parameter
NameDescription
var string
Returns
TypeDescription
$this