Google Cloud BeyondCorp AppConnectors V1 Client - Class ResourceInfo (1.0.2)

Reference documentation and code samples for the Google Cloud BeyondCorp AppConnectors V1 Client class ResourceInfo.

ResourceInfo represents the information/status of an app connector resource.

Such as:

  • remote_agent
    • container
      • runtime
      • appgateway
        • appconnector
          • appconnection
            • tunnel
        • logagent

Generated from protobuf message google.cloud.beyondcorp.appconnectors.v1.ResourceInfo

Namespace

Google \ Cloud \ BeyondCorp \ AppConnectors \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

Required. Unique Id for the resource.

↳ status int

Overall health status. Overall status is derived based on the status of each sub level resources.

↳ resource Google\Protobuf\Any

Specific details for the resource. This is for internal use only.

↳ time Google\Protobuf\Timestamp

The timestamp to collect the info. It is suggested to be set by the topmost level resource only.

↳ sub array<ResourceInfo>

List of Info for the sub level resources.

getId

Required. Unique Id for the resource.

Returns
Type Description
string

setId

Required. Unique Id for the resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

Overall health status. Overall status is derived based on the status of each sub level resources.

Returns
Type Description
int

setStatus

Overall health status. Overall status is derived based on the status of each sub level resources.

Parameter
Name Description
var int
Returns
Type Description
$this

getResource

Specific details for the resource. This is for internal use only.

Returns
Type Description
Google\Protobuf\Any|null

hasResource

clearResource

setResource

Specific details for the resource. This is for internal use only.

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

getTime

The timestamp to collect the info. It is suggested to be set by the topmost level resource only.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasTime

clearTime

setTime

The timestamp to collect the info. It is suggested to be set by the topmost level resource only.

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

getSub

List of Info for the sub level resources.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSub

List of Info for the sub level resources.

Parameter
Name Description
var array<ResourceInfo>
Returns
Type Description
$this