Google Cloud Container V1 Client - Class StatusCondition (1.9.1)

Reference documentation and code samples for the Google Cloud Container V1 Client class StatusCondition.

StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).

Generated from protobuf message google.container.v1.StatusCondition

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ code int

Machine-friendly representation of the condition Deprecated. Use canonical_code instead.

↳ message string

Human-friendly representation of the condition

↳ canonical_code int

Canonical code of the condition.

getCode

Machine-friendly representation of the condition Deprecated. Use canonical_code instead.

Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true];

Returns
TypeDescription
int

setCode

Machine-friendly representation of the condition Deprecated. Use canonical_code instead.

Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true];

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMessage

Human-friendly representation of the condition

Generated from protobuf field string message = 2;

Returns
TypeDescription
string

setMessage

Human-friendly representation of the condition

Generated from protobuf field string message = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCanonicalCode

Canonical code of the condition.

Generated from protobuf field .google.rpc.Code canonical_code = 3;

Returns
TypeDescription
int

setCanonicalCode

Canonical code of the condition.

Generated from protobuf field .google.rpc.Code canonical_code = 3;

Parameter
NameDescription
var int
Returns
TypeDescription
$this