# Google Cloud Cloud Controls Partner V1beta Client - Class Workload (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.0 0.2.2 0.1.4

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Cloud Controls Partner V1beta Client class Workload.

Contains metadata around the [Workload
resource](https://cloud.google.com/assured-workloads/docs/reference/rest/Shared.Types/Workload)
in the Assured Workloads API.

Generated from protobuf message `google.cloud.cloudcontrolspartner.v1beta.Workload`

## Namespace

Google \\ Cloud \\ CloudControlsPartner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` |
| `↳ folder_id` | `int|string` Output only. Folder id this workload is associated with |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time the resource was created. |
| `↳ folder` | `string` Output only. The name of container folder of the assured workload |
| `↳ workload_onboarding_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.WorkloadOnboardingState` Container for workload onboarding steps. |
| `↳ is_onboarded` | `bool` Indicates whether a workload is fully onboarded. |
| `↳ key_management_project_id` | `string` The project id of the key management project for the workload |
| `↳ location` | `string` The Google Cloud location of the workload |
| `↳ partner` | `int` Partner associated with this workload. |

### getName

Identifier. Format:
`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`

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

### setName

Identifier. Format:
`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`

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

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

### getFolderId

Output only. Folder id this workload is associated with

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

### setFolderId

Output only. Folder id this workload is associated with

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

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

### getCreateTime

Output only. Time the resource was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time the resource was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getFolder

Output only. The name of container folder of the assured workload

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

### setFolder

Output only. The name of container folder of the assured workload

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

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

### getWorkloadOnboardingState

Container for workload onboarding steps.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.WorkloadOnboardingState|null` |   |

### hasWorkloadOnboardingState

### clearWorkloadOnboardingState

### setWorkloadOnboardingState

Container for workload onboarding steps.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.WorkloadOnboardingState` |

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

### getIsOnboarded

Indicates whether a workload is fully onboarded.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIsOnboarded

Indicates whether a workload is fully onboarded.

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

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

### getKeyManagementProjectId

The project id of the key management project for the workload

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

### setKeyManagementProjectId

The project id of the key management project for the workload

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

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

### getLocation

The Google Cloud location of the workload

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

### setLocation

The Google Cloud location of the workload

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

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

### getPartner

Partner associated with this workload.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Partner](https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Workload.Partner). |

### setPartner

Partner associated with this workload.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Partner](https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Workload.Partner). |

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