0.6.0 (latest) 0.5.3 0.4.5 0.3.1 0.2.0 0.1.6 Reference documentation and code samples for the Google Cloud App Hub V1 Client class DiscoveredWorkload.

DiscoveredWorkload is a binary deployment (such as managed instance groups
(MIGs) and GKE deployments) that performs the smallest logical subset of
business functionality. A discovered workload can be registered to an App Hub
Workload.

Generated from protobuf message `google.cloud.apphub.v1.DiscoveredWorkload`

## Namespace

Google \\ Cloud \\ AppHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the discovered workload. Format: `"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"` |
| `↳ workload_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.WorkloadReference` Output only. Reference of an underlying compute resource represented by the Workload. These are immutable. |
| `↳ workload_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.WorkloadProperties` Output only. Properties of an underlying compute resource represented by the Workload. These are immutable. |

### getName

Identifier. The resource name of the discovered workload. Format:
`"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The resource name of the discovered workload. Format:
`"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getWorkloadReference

Output only. Reference of an underlying compute resource represented by the
Workload. These are immutable.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.WorkloadReference|null` |   |

### hasWorkloadReference

### clearWorkloadReference

### setWorkloadReference

Output only. Reference of an underlying compute resource represented by the
Workload. These are immutable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.WorkloadReference` |

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

### getWorkloadProperties

Output only. Properties of an underlying compute resource represented by
the Workload. These are immutable.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.WorkloadProperties|null` |   |

### hasWorkloadProperties

### clearWorkloadProperties

### setWorkloadProperties

Output only. Properties of an underlying compute resource represented by
the Workload. These are immutable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.WorkloadProperties` |

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