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

Details for creation of a VM that migrated data disks will be attached to.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ vm_name` | `string` Required. The name of the VM to create. |
| `↳ machine_type_series` | `string` Optional. The machine type series to create the VM with. For presentation only. |
| `↳ machine_type` | `string` Required. The machine type to create the VM with. |
| `↳ network_tags` | `string[]` Optional. A list of network tags to associate with the VM. |
| `↳ network_interfaces` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.NetworkInterface>` Optional. NICs to attach to the VM. |
| `↳ service_account` | `string` Optional. The service account to associate the VM with. |
| `↳ compute_scheduling` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ComputeScheduling` Optional. Compute instance scheduling information (if empty default is used). |
| `↳ secure_boot` | `bool` Optional. Defines whether the instance has Secure Boot enabled. This can be set to true only if the VM boot option is EFI. |
| `↳ enable_vtpm` | `bool` Optional. Defines whether the instance has vTPM enabled. |
| `↳ enable_integrity_monitoring` | `bool` Optional. Defines whether the instance has integrity monitoring enabled. |
| `↳ metadata` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. The metadata key/value pairs to assign to the VM. |
| `↳ additional_licenses` | `string[]` Optional. Additional licenses to assign to the VM. |
| `↳ hostname` | `string` Optional. The hostname to assign to the VM. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. A map of labels to associate with the VM. |
| `↳ boot_disk_defaults` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.BootDiskDefaults` Optional. Details of the boot disk of the VM. |
| `↳ encryption` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.Encryption` Optional. The encryption to apply to the VM. |

### getVmName

Required. The name of the VM to create.

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

### setVmName

Required. The name of the VM to create.

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

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

### getMachineTypeSeries

Optional. The machine type series to create the VM with.

For presentation only.

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

### setMachineTypeSeries

Optional. The machine type series to create the VM with.

For presentation only.

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

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

### getMachineType

Required. The machine type to create the VM with.

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

### setMachineType

Required. The machine type to create the VM with.

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

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

### getNetworkTags

Optional. A list of network tags to associate with the VM.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setNetworkTags

Optional. A list of network tags to associate with the VM.

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

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

### getNetworkInterfaces

Optional. NICs to attach to the VM.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.NetworkInterface>` |   |

### setNetworkInterfaces

Optional. NICs to attach to the VM.

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

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

### getServiceAccount

Optional. The service account to associate the VM with.

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

### setServiceAccount

Optional. The service account to associate the VM with.

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

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

### getComputeScheduling

Optional. Compute instance scheduling information (if empty default is
used).

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

### hasComputeScheduling

### clearComputeScheduling

### setComputeScheduling

Optional. Compute instance scheduling information (if empty default is
used).

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

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

### getSecureBoot

Optional. Defines whether the instance has Secure Boot enabled.

This can be set to true only if the VM boot option is EFI.

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

### setSecureBoot

Optional. Defines whether the instance has Secure Boot enabled.

This can be set to true only if the VM boot option is EFI.

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

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

### getEnableVtpm

Optional. Defines whether the instance has vTPM enabled.

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

### setEnableVtpm

Optional. Defines whether the instance has vTPM enabled.

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

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

### getEnableIntegrityMonitoring

Optional. Defines whether the instance has integrity monitoring enabled.

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

### setEnableIntegrityMonitoring

Optional. Defines whether the instance has integrity monitoring enabled.

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

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

### getMetadata

Optional. The metadata key/value pairs to assign to the VM.

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

### setMetadata

Optional. The metadata key/value pairs to assign to the VM.

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

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

### getAdditionalLicenses

Optional. Additional licenses to assign to the VM.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAdditionalLicenses

Optional. Additional licenses to assign to the VM.

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

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

### getHostname

Optional. The hostname to assign to the VM.

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

### setHostname

Optional. The hostname to assign to the VM.

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

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

### getLabels

Optional. A map of labels to associate with the VM.

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

### setLabels

Optional. A map of labels to associate with the VM.

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

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

### getBootDiskDefaults

Optional. Details of the boot disk of the VM.

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

### hasBootDiskDefaults

### clearBootDiskDefaults

### setBootDiskDefaults

Optional. Details of the boot disk of the VM.

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

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

### getEncryption

Optional. The encryption to apply to the VM.

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

### hasEncryption

### clearEncryption

### setEncryption

Optional. The encryption to apply to the VM.

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

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