# Google Cloud Assured Workloads V1beta1 Client - Class CreateWorkloadOperationMetadata (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.11.5 0.10.2 0.9.1 0.8.3 0.7.3

> [!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 Assured Workloads V1beta1 Client class CreateWorkloadOperationMetadata.

Operation metadata to give request details of CreateWorkload.

Generated from protobuf message `google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata`

## Namespace

Google \\ Cloud \\ AssuredWorkloads \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. Time when the operation was created. |
| `↳ display_name` | `string` Optional. The display name of the workload. |
| `↳ parent` | `string` Optional. The parent of the workload. |
| `↳ compliance_regime` | `int` Optional. Compliance controls that should be applied to the resources managed by the workload. |
| `↳ resource_settings` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-assured-workloads/latest/V1beta1.Workload.ResourceSettings>` Optional. Resource properties in the input that are used for creating/customizing workload resources. |

### getCreateTime

Optional. Time when the operation was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Optional. Time when the operation was created.

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

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

### getDisplayName

Optional. The display name of the workload.

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

### setDisplayName

Optional. The display name of the workload.

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

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

### getParent

Optional. The parent of the workload.

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

### setParent

Optional. The parent of the workload.

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

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

### getComplianceRegime

Optional. Compliance controls that should be applied to the resources managed by
the workload.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ComplianceRegime](https://docs.cloud.google.com/php/docs/reference/cloud-assured-workloads/latest/V1beta1.Workload.ComplianceRegime). |

### setComplianceRegime

Optional. Compliance controls that should be applied to the resources managed by
the workload.

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

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

### getResourceSettings

Optional. Resource properties in the input that are used for creating/customizing
workload resources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-assured-workloads/latest/V1beta1.Workload.ResourceSettings>` |   |

### setResourceSettings

Optional. Resource properties in the input that are used for creating/customizing
workload resources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-assured-workloads/latest/V1beta1.Workload.ResourceSettings>` |

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