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 \ V1Methods
__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 |
array
Optional. A list of network tags to associate with the VM. |
↳ network_interfaces |
array<NetworkInterface>
Optional. NICs to attach to the VM. |
↳ service_account |
string
Optional. The service account to associate the VM with. |
↳ compute_scheduling |
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|Google\Protobuf\Internal\MapField
Optional. The metadata key/value pairs to assign to the VM. |
↳ additional_licenses |
array
Optional. Additional licenses to assign to the VM. |
↳ hostname |
string
Optional. The hostname to assign to the VM. |
↳ labels |
array|Google\Protobuf\Internal\MapField
Optional. A map of labels to associate with the VM. |
↳ boot_disk_defaults |
BootDiskDefaults
Optional. Details of the boot disk of the VM. |
↳ encryption |
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 |
Google\Protobuf\Internal\RepeatedField |
|
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 |
Google\Protobuf\Internal\RepeatedField |
|
setNetworkInterfaces
Optional. NICs to attach to the VM.
| Parameter | |
|---|---|
| Name | Description |
var |
array<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 |
ComputeScheduling|null |
|
hasComputeScheduling
clearComputeScheduling
setComputeScheduling
Optional. Compute instance scheduling information (if empty default is used).
| Parameter | |
|---|---|
| Name | Description |
var |
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 |
Google\Protobuf\Internal\MapField |
|
setMetadata
Optional. The metadata key/value pairs to assign to the VM.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAdditionalLicenses
Optional. Additional licenses to assign to the VM.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
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 |
Google\Protobuf\Internal\MapField |
|
setLabels
Optional. A map of labels to associate with the VM.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBootDiskDefaults
Optional. Details of the boot disk of the VM.
| Returns | |
|---|---|
| Type | Description |
BootDiskDefaults|null |
|
hasBootDiskDefaults
clearBootDiskDefaults
setBootDiskDefaults
Optional. Details of the boot disk of the VM.
| Parameter | |
|---|---|
| Name | Description |
var |
BootDiskDefaults
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEncryption
Optional. The encryption to apply to the VM.
| Returns | |
|---|---|
| Type | Description |
Encryption|null |
|
hasEncryption
clearEncryption
setEncryption
Optional. The encryption to apply to the VM.
| Parameter | |
|---|---|
| Name | Description |
var |
Encryption
|
| Returns | |
|---|---|
| Type | Description |
$this |
|