# Google Cloud Vm Migration V1 Client - Class AzureSourceDetails (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class AzureSourceDetails.

AzureSourceDetails message describes a specific source details for the
Azure source type.

Generated from protobuf message `google.cloud.vmmigration.v1.AzureSourceDetails`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ client_secret_creds` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AzureSourceDetails.ClientSecretCredentials` Azure Credentials using tenant ID, client ID and secret. |
| `↳ subscription_id` | `string` Immutable. Azure subscription ID. |
| `↳ azure_location` | `string` Immutable. The Azure location (region) that the source VMs will be migrated from. |
| `↳ state` | `int` Output only. State of the source as determined by the health check. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. Provides details on the state of the Source in case of an error. |
| `↳ migration_resources_user_tags` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix `m4ce` or `m2vm`. |
| `↳ resource_group_id` | `string` Output only. The ID of the Azure resource group that contains all resources related to the migration process of this source. |

### getClientSecretCreds

Azure Credentials using tenant ID, client ID and secret.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AzureSourceDetails.ClientSecretCredentials|null` |   |

### hasClientSecretCreds

### setClientSecretCreds

Azure Credentials using tenant ID, client ID and secret.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AzureSourceDetails.ClientSecretCredentials` |

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

### getSubscriptionId

Immutable. Azure subscription ID.

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

### setSubscriptionId

Immutable. Azure subscription ID.

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

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

### getAzureLocation

Immutable. The Azure location (region) that the source VMs will be migrated
from.

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

### setAzureLocation

Immutable. The Azure location (region) that the source VMs will be migrated
from.

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

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

### getState

Output only. State of the source as determined by the health check.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AzureSourceDetails.State). |

### setState

Output only. State of the source as determined by the health check.

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

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

### getError

Output only. Provides details on the state of the Source in case of an
error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### clearError

### setError

Output only. Provides details on the state of the Source in case of an
error.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getMigrationResourcesUserTags

User specified tags to add to every M2VM generated resource in Azure.

These tags will be set in addition to the default tags that are set as part
of the migration process. The tags must not begin with the reserved prefix
`m4ce` or `m2vm`.

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

### setMigrationResourcesUserTags

User specified tags to add to every M2VM generated resource in Azure.

These tags will be set in addition to the default tags that are set as part
of the migration process. The tags must not begin with the reserved prefix
`m4ce` or `m2vm`.

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

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

### getResourceGroupId

Output only. The ID of the Azure resource group that contains all resources
related to the migration process of this source.

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

### setResourceGroupId

Output only. The ID of the Azure resource group that contains all resources
related to the migration process of this source.

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

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

### getCredentialsType

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