Google Cloud Vm Migration V1 Client - Class MachineImageTargetDetails (1.1.0)

Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class MachineImageTargetDetails.

The target details of the machine image resource that will be created by the image import job.

Generated from protobuf message google.cloud.vmmigration.v1.MachineImageTargetDetails

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ os_adaptation_parameters
ImageImportOsAdaptationParameters

Optional. Use to set the parameters relevant for the OS adaptation process.

↳ skip_os_adaptation
SkipOsAdaptation

Optional. Use to skip OS adaptation process.

↳ machine_image_name
string

Required. The name of the machine image to be created.

↳ target_project
string

Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.

↳ description
string

Optional. An optional description of the machine image.

↳ single_region_storage
bool

Optional. Set to true to set the machine image storageLocations to the single region of the import job. When false, the closest multi-region is selected.

↳ encryption
Encryption

Immutable. The encryption to apply to the machine image. If the Image Import resource has an encryption, this field must be set to the same encryption key.

↳ machine_image_parameters_overrides
MachineImageParametersOverrides

Optional. Parameters overriding decisions based on the source machine image configurations.

↳ service_account
ServiceAccount

Optional. The service account to assign to the instance created by the machine image.

↳ additional_licenses
↳ labels
array| Google\Protobuf\Internal\MapField

Optional. The labels to apply to the instance created by the machine image.

↳ tags
array

Optional. The tags to apply to the instance created by the machine image.

↳ shielded_instance_config
ShieldedInstanceConfig

Optional. Shielded instance configuration.

↳ network_interfaces
array< NetworkInterface >

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.

getOsAdaptationParameters

Optional. Use to set the parameters relevant for the OS adaptation process.

Returns
Type
Description

hasOsAdaptationParameters

setOsAdaptationParameters

Optional. Use to set the parameters relevant for the OS adaptation process.

Parameter
Name
Description
Returns
Type
Description
$this

getSkipOsAdaptation

Optional. Use to skip OS adaptation process.

Returns
Type
Description

hasSkipOsAdaptation

setSkipOsAdaptation

Optional. Use to skip OS adaptation process.

Parameter
Name
Description
Returns
Type
Description
$this

getMachineImageName

Required. The name of the machine image to be created.

Returns
Type
Description
string

setMachineImageName

Required. The name of the machine image to be created.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getTargetProject

Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.

Returns
Type
Description
string

setTargetProject

Required. Reference to the TargetProject resource that represents the target project in which the imported machine image will be created.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDescription

Optional. An optional description of the machine image.

Returns
Type
Description
string

setDescription

Optional. An optional description of the machine image.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSingleRegionStorage

Optional. Set to true to set the machine image storageLocations to the single region of the import job. When false, the closest multi-region is selected.

Returns
Type
Description
bool

setSingleRegionStorage

Optional. Set to true to set the machine image storageLocations to the single region of the import job. When false, the closest multi-region is selected.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getEncryption

Immutable. The encryption to apply to the machine image.

If the Image Import resource has an encryption, this field must be set to the same encryption key.

Returns
Type
Description
Encryption |null

hasEncryption

clearEncryption

setEncryption

Immutable. The encryption to apply to the machine image.

If the Image Import resource has an encryption, this field must be set to the same encryption key.

Parameter
Name
Description
Returns
Type
Description
$this

getMachineImageParametersOverrides

Optional. Parameters overriding decisions based on the source machine image configurations.

Returns
Type
Description

hasMachineImageParametersOverrides

clearMachineImageParametersOverrides

setMachineImageParametersOverrides

Optional. Parameters overriding decisions based on the source machine image configurations.

Parameter
Name
Description
Returns
Type
Description
$this

getServiceAccount

Optional. The service account to assign to the instance created by the machine image.

Returns
Type
Description

hasServiceAccount

clearServiceAccount

setServiceAccount

Optional. The service account to assign to the instance created by the machine image.

Parameter
Name
Description
Returns
Type
Description
$this

getAdditionalLicenses

Returns
Type
Description

setAdditionalLicenses

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getLabels

Optional. The labels to apply to the instance created by the machine image.

Returns
Type
Description

setLabels

Optional. The labels to apply to the instance created by the machine image.

Parameter
Name
Description
Returns
Type
Description
$this

getTags

Optional. The tags to apply to the instance created by the machine image.

Returns
Type
Description

setTags

Optional. The tags to apply to the instance created by the machine image.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getShieldedInstanceConfig

Optional. Shielded instance configuration.

Returns
Type
Description

hasShieldedInstanceConfig

clearShieldedInstanceConfig

setShieldedInstanceConfig

Optional. Shielded instance configuration.

Parameter
Name
Description
Returns
Type
Description
$this

getNetworkInterfaces

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.

Returns
Type
Description

setNetworkInterfaces

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.

Parameter
Name
Description
var
array< NetworkInterface >
Returns
Type
Description
$this

getOsAdaptationConfig

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: