Google Cloud Run V2 Client - Class Condition (1.4.0)

Reference documentation and code samples for the Google Cloud Run V2 Client class Condition.

Defines a status condition for a resource.

Generated from protobuf message google.cloud.run.v2.Condition

Namespace

Google \ Cloud \ Run \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type string

type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * * "Ready": True when the Resource is ready.

↳ state int

State of the condition.

↳ message string

Human readable message indicating details about the current status.

↳ last_transition_time Google\Protobuf\Timestamp

Last time the condition transitioned from one status to another.

↳ severity int

How to interpret failures of this condition, one of Error, Warning, Info

↳ reason int

Output only. A common (service-level) reason for this condition.

↳ revision_reason int

Output only. A reason for the revision condition.

↳ execution_reason int

Output only. A reason for the execution condition.

getType

type is used to communicate the status of the reconciliation process.

See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include:

  • "Ready": True when the Resource is ready.
Returns
Type Description
string

setType

type is used to communicate the status of the reconciliation process.

See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include:

  • "Ready": True when the Resource is ready.
Parameter
Name Description
var string
Returns
Type Description
$this

getState

State of the condition.

Returns
Type Description
int

setState

State of the condition.

Parameter
Name Description
var int
Returns
Type Description
$this

getMessage

Human readable message indicating details about the current status.

Returns
Type Description
string

setMessage

Human readable message indicating details about the current status.

Parameter
Name Description
var string
Returns
Type Description
$this

getLastTransitionTime

Last time the condition transitioned from one status to another.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastTransitionTime

clearLastTransitionTime

setLastTransitionTime

Last time the condition transitioned from one status to another.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getSeverity

How to interpret failures of this condition, one of Error, Warning, Info

Returns
Type Description
int

setSeverity

How to interpret failures of this condition, one of Error, Warning, Info

Parameter
Name Description
var int
Returns
Type Description
$this

getReason

Output only. A common (service-level) reason for this condition.

Returns
Type Description
int

hasReason

setReason

Output only. A common (service-level) reason for this condition.

Parameter
Name Description
var int
Returns
Type Description
$this

getRevisionReason

Output only. A reason for the revision condition.

Returns
Type Description
int

hasRevisionReason

setRevisionReason

Output only. A reason for the revision condition.

Parameter
Name Description
var int
Returns
Type Description
$this

getExecutionReason

Output only. A reason for the execution condition.

Returns
Type Description
int

hasExecutionReason

setExecutionReason

Output only. A reason for the execution condition.

Parameter
Name Description
var int
Returns
Type Description
$this

getReasons

Returns
Type Description
string