1.3.0 (latest) 1.2.3 1.1.4 1.0.5 0.4.5 0.3.2 0.2.2 0.1.6 Reference documentation and code samples for the Google Cloud BeyondCorp AppConnectors V1 Client class ResourceInfo.

ResourceInfo represents the information or status of an app connector
resource component that's used to report on various parts of the system. For
example, ResourceInfo can be used to convey the status of a remote_agent,
including the status of an appgateway for an runtime environment in a
container instance.

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<https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.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` | Enum of type [HealthStatus](https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.HealthStatus). |

### setStatus

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [HealthStatus](https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.HealthStatus). |

| **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\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.ResourceInfo>` |   |

### setSub

List of Info for the sub level resources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.ResourceInfo>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |