Google Cloud Container V1 Client - Class StatusCondition (1.20.0)

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

Namespace

Google \ Cloud \ Container \ V1

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.

Returns
TypeDescription
int

setCode

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMessage

Human-friendly representation of the condition

Returns
TypeDescription
string

setMessage

Human-friendly representation of the condition

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCanonicalCode

Canonical code of the condition.

Returns
TypeDescription
int

setCanonicalCode

Canonical code of the condition.

Parameter
NameDescription
var int
Returns
TypeDescription
$this