# Google Cloud Assured Workloads V1beta1 Client - Class AnalyzeWorkloadMoveRequest (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 AnalyzeWorkloadMoveRequest.

A request to analyze a hypothetical move of a source project or project-based
workload to a target (destination) folder-based workload.

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

## Namespace

Google \\ Cloud \\ AssuredWorkloads \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `string` The source type is a project-based workload. Specify the workloads's relative resource name, formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-1" |
| `↳ project` | `string` The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project number, or "projects/my-project-123" when specifying a project ID. |
| `↳ target` | `string` Required. The resource ID of the folder-based destination workload. This workload is where the source project will hypothetically be moved to. Specify the workload's relative resource name, formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-2" |

### getSource

The source type is a project-based workload. Specify the workloads's
relative resource name, formatted as:
"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
For example:
"organizations/123/locations/us-east1/workloads/assured-workload-1"

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

### hasSource

### setSource

The source type is a project-based workload. Specify the workloads's
relative resource name, formatted as:
"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
For example:
"organizations/123/locations/us-east1/workloads/assured-workload-1"

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

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

### getProject

The source type is a project. Specify the project's relative resource
name, formatted as either a project number or a project ID:
"projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
For example:
"projects/951040570662" when specifying a project number, or
"projects/my-project-123" when specifying a project ID.

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

### hasProject

### setProject

The source type is a project. Specify the project's relative resource
name, formatted as either a project number or a project ID:
"projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
For example:
"projects/951040570662" when specifying a project number, or
"projects/my-project-123" when specifying a project ID.

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

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

### getTarget

Required. The resource ID of the folder-based destination workload. This workload is
where the source project will hypothetically be moved to. Specify the
workload's relative resource name, formatted as:
"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
For example:
"organizations/123/locations/us-east1/workloads/assured-workload-2"

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

### setTarget

Required. The resource ID of the folder-based destination workload. This workload is
where the source project will hypothetically be moved to. Specify the
workload's relative resource name, formatted as:
"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
For example:
"organizations/123/locations/us-east1/workloads/assured-workload-2"

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

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

### getProjectOrWorkloadResource

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `string` The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project number, or "projects/my-project-123" when specifying a project ID. |
| `target` | `string` Required. The resource ID of the folder-based destination workload. This workload is where the source project will hypothetically be moved to. Specify the workload's relative resource name, formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-2" |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-assured-workloads/latest/V1beta1.AnalyzeWorkloadMoveRequest` |   |