# Google Cloud Vm Migration V1 Client - Class DatacenterConnector (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 DatacenterConnector.

DatacenterConnector message describes a connector between the Source and
Google Cloud, which is installed on a vmware datacenter (an OVA vm installed
by the user) to connect the Datacenter to Google Cloud and support vm
migration data transfer.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## 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` Output only. The time the connector was created (as an API call, not when it was actually installed). |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The last time the connector was updated with an API call. |
| `↳ name` | `string` Output only. The connector's name. |
| `↳ registration_id` | `string` Immutable. A unique key for this connector. This key is internal to the OVA connector and is supplied with its creation during the registration process and can not be modified. |
| `↳ service_account` | `string` The service account to use in the connector when communicating with the cloud. |
| `↳ version` | `string` The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified. |
| `↳ bucket` | `string` Output only. The communication channel between the datacenter connector and Google Cloud. |
| `↳ state` | `int` Output only. State of the DatacenterConnector, as determined by the health checks. |
| `↳ state_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the state was last set. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. Provides details on the state of the Datacenter Connector in case of an error. |
| `↳ appliance_infrastructure_version` | `string` Output only. Appliance OVA version. This is the OVA which is manually installed by the user and contains the infrastructure for the automatically updatable components on the appliance. |
| `↳ appliance_software_version` | `string` Output only. Appliance last installed update bundle version. This is the version of the automatically updatable components on the appliance. |
| `↳ available_versions` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AvailableUpdates` Output only. The available versions for updating this appliance. |
| `↳ upgrade_status` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.UpgradeStatus` Output only. The status of the current / last upgradeAppliance operation. |

### getCreateTime

Output only. The time the connector was created (as an API call, not when
it was actually installed).

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time the connector was created (as an API call, not when
it was actually installed).

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

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

### getUpdateTime

Output only. The last time the connector was updated with an API call.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The last time the connector was updated with an API call.

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

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

### getName

Output only. The connector's name.

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

### setName

Output only. The connector's name.

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

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

### getRegistrationId

Immutable. A unique key for this connector. This key is internal to the OVA
connector and is supplied with its creation during the registration process
and can not be modified.

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

### setRegistrationId

Immutable. A unique key for this connector. This key is internal to the OVA
connector and is supplied with its creation during the registration process
and can not be modified.

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

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

### getServiceAccount

The service account to use in the connector when communicating with the
cloud.

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

### setServiceAccount

The service account to use in the connector when communicating with the
cloud.

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

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

### getVersion

The version running in the DatacenterConnector. This is supplied by the OVA
connector during the registration process and can not be modified.

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

### setVersion

The version running in the DatacenterConnector. This is supplied by the OVA
connector during the registration process and can not be modified.

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

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

### getBucket

Output only. The communication channel between the datacenter connector and
Google Cloud.

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

### setBucket

Output only. The communication channel between the datacenter connector and
Google Cloud.

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

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

### getState

Output only. State of the DatacenterConnector, as determined by the health
checks.

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

### setState

Output only. State of the DatacenterConnector, as determined by the health
checks.

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

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

### getStateTime

Output only. The time the state was last set.

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

### hasStateTime

### clearStateTime

### setStateTime

Output only. The time the state was last set.

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

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

### getError

Output only. Provides details on the state of the Datacenter Connector 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 Datacenter Connector 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` |   |

### getApplianceInfrastructureVersion

Output only. Appliance OVA version.

This is the OVA which is manually installed by the user and contains the
infrastructure for the automatically updatable components on the appliance.

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

### setApplianceInfrastructureVersion

Output only. Appliance OVA version.

This is the OVA which is manually installed by the user and contains the
infrastructure for the automatically updatable components on the appliance.

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

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

### getApplianceSoftwareVersion

Output only. Appliance last installed update bundle version.

This is the version of the automatically updatable components on the
appliance.

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

### setApplianceSoftwareVersion

Output only. Appliance last installed update bundle version.

This is the version of the automatically updatable components on the
appliance.

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

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

### getAvailableVersions

Output only. The available versions for updating this appliance.

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

### hasAvailableVersions

### clearAvailableVersions

### setAvailableVersions

Output only. The available versions for updating this appliance.

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

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

### getUpgradeStatus

Output only. The status of the current / last upgradeAppliance operation.

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

### hasUpgradeStatus

### clearUpgradeStatus

### setUpgradeStatus

Output only. The status of the current / last upgradeAppliance operation.

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

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