Google Cloud Run V2 Client - Class Condition (0.6.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
NameDescription
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

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

↳ revision_reason int

A reason for the revision condition.

↳ execution_reason int

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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getState

State of the condition.

Returns
TypeDescription
int

setState

State of the condition.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMessage

Human readable message indicating details about the current status.

Returns
TypeDescription
string

setMessage

Human readable message indicating details about the current status.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLastTransitionTime

Last time the condition transitioned from one status to another.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastTransitionTime

clearLastTransitionTime

setLastTransitionTime

Last time the condition transitioned from one status to another.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getSeverity

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

Returns
TypeDescription
int

setSeverity

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getReason

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

Returns
TypeDescription
int

hasReason

setReason

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRevisionReason

A reason for the revision condition.

Returns
TypeDescription
int

hasRevisionReason

setRevisionReason

A reason for the revision condition.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getExecutionReason

A reason for the execution condition.

Returns
TypeDescription
int

hasExecutionReason

setExecutionReason

A reason for the execution condition.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getReasons

Returns
TypeDescription
string