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

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

ImageImport describes the configuration of the image import to run.

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

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ cloud_storage_uri string

Immutable. The path to the Cloud Storage file from which the image should be imported.

↳ disk_image_target_defaults DiskImageTargetDetails

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

↳ machine_image_target_defaults MachineImageTargetDetails

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

↳ name string

Output only. The resource path of the ImageImport.

↳ create_time Google\Protobuf\Timestamp

Output only. The time the image import was created.

↳ recent_image_import_jobs array<ImageImportJob>

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

↳ encryption Encryption

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

getCloudStorageUri

Immutable. The path to the Cloud Storage file from which the image should be imported.

Returns
Type Description
string

hasCloudStorageUri

setCloudStorageUri

Immutable. The path to the Cloud Storage file from which the image should be imported.

Parameter
Name Description
var string
Returns
Type Description
$this

getDiskImageTargetDefaults

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

Returns
Type Description
DiskImageTargetDetails|null

hasDiskImageTargetDefaults

setDiskImageTargetDefaults

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

Parameter
Name Description
var DiskImageTargetDetails
Returns
Type Description
$this

getMachineImageTargetDefaults

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

Returns
Type Description
MachineImageTargetDetails|null

hasMachineImageTargetDefaults

setMachineImageTargetDefaults

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

Parameter
Name Description
var MachineImageTargetDetails
Returns
Type Description
$this

getName

Output only. The resource path of the ImageImport.

Returns
Type Description
string

setName

Output only. The resource path of the ImageImport.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The time the image import was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time the image import was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getRecentImageImportJobs

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRecentImageImportJobs

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

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

getEncryption

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

Returns
Type Description
Encryption|null

hasEncryption

clearEncryption

setEncryption

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

Parameter
Name Description
var Encryption
Returns
Type Description
$this

getSource

Returns
Type Description
string

getTargetDefaults

Returns
Type Description
string