Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class ComputeEngineTargetDefaults.
ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
Generated from protobuf message google.cloud.vmmigration.v1.ComputeEngineTargetDefaults
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ vm_name
string
The name of the VM to create.
↳ target_project
string
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
↳ zone
string
The zone in which to create the VM.
↳ machine_type_series
string
The machine type series to create the VM with.
↳ machine_type
string
The machine type to create the VM with.
↳ network_tags
array
A map of network tags to associate with the VM.
↳ network_interfaces
↳ service_account
string
The service account to associate the VM with.
↳ disk_type
int
The disk type to use in the VM.
↳ labels
↳ license_type
int
The license type to use in OS adaptation.
↳ applied_license
Google\Cloud\VMMigration\V1\AppliedLicense
Output only. The OS license returned from the adaptation module report.
↳ compute_scheduling
Google\Cloud\VMMigration\V1\ComputeScheduling
Compute instance scheduling information (if empty default is used).
↳ secure_boot
bool
Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
↳ boot_option
int
Output only. The VM Boot Option, as set in the source vm.
↳ metadata
↳ additional_licenses
array
Additional licenses to assign to the VM.
↳ hostname
string
The hostname to assign to the VM.
getVmName
The name of the VM to create.
string
setVmName
The name of the VM to create.
var
string
$this
getTargetProject
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
string
setTargetProject
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
var
string
$this
getZone
The zone in which to create the VM.
string
setZone
The zone in which to create the VM.
var
string
$this
getMachineTypeSeries
The machine type series to create the VM with.
string
setMachineTypeSeries
The machine type series to create the VM with.
var
string
$this
getMachineType
The machine type to create the VM with.
string
setMachineType
The machine type to create the VM with.
var
string
$this
getNetworkTags
A map of network tags to associate with the VM.
setNetworkTags
A map of network tags to associate with the VM.
var
string[]
$this
getNetworkInterfaces
List of NICs connected to this VM.
setNetworkInterfaces
List of NICs connected to this VM.
$this
getServiceAccount
The service account to associate the VM with.
string
setServiceAccount
The service account to associate the VM with.
var
string
$this
getDiskType
The disk type to use in the VM.
int
setDiskType
The disk type to use in the VM.
var
int
$this
getLabels
A map of labels to associate with the VM.
setLabels
A map of labels to associate with the VM.
$this
getLicenseType
The license type to use in OS adaptation.
int
setLicenseType
The license type to use in OS adaptation.
var
int
$this
getAppliedLicense
Output only. The OS license returned from the adaptation module report.
hasAppliedLicense
clearAppliedLicense
setAppliedLicense
Output only. The OS license returned from the adaptation module report.
$this
getComputeScheduling
Compute instance scheduling information (if empty default is used).
hasComputeScheduling
clearComputeScheduling
setComputeScheduling
Compute instance scheduling information (if empty default is used).
$this
getSecureBoot
Defines whether the instance has Secure Boot enabled.
This can be set to true only if the vm boot option is EFI.
bool
setSecureBoot
Defines whether the instance has Secure Boot enabled.
This can be set to true only if the vm boot option is EFI.
var
bool
$this
getBootOption
Output only. The VM Boot Option, as set in the source vm.
int
setBootOption
Output only. The VM Boot Option, as set in the source vm.
var
int
$this
getMetadata
The metadata key/value pairs to assign to the VM.
setMetadata
The metadata key/value pairs to assign to the VM.
$this
getAdditionalLicenses
Additional licenses to assign to the VM.
setAdditionalLicenses
Additional licenses to assign to the VM.
var
string[]
$this
getHostname
The hostname to assign to the VM.
string
setHostname
The hostname to assign to the VM.
var
string
$this