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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
int |
setCode
Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getMessage
Human-friendly representation of the condition
Returns | |
---|---|
Type | Description |
string |
setMessage
Human-friendly representation of the condition
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCanonicalCode
Canonical code of the condition.
Returns | |
---|---|
Type | Description |
int |
setCanonicalCode
Canonical code of the condition.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |