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

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

ImageImportJob describes the progress and result of an image import.

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

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ cloud_storage_uri
string

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

↳ disk_image_target_details
DiskImageTargetDetails

Output only. Target details used to import a disk image.

↳ machine_image_target_details
MachineImageTargetDetails

Output only. Target details used to import a machine image.

↳ name
string

Output only. The resource path of the ImageImportJob.

↳ created_resources
array

Output only. The resource paths of the resources created by the image import job.

↳ state
int

Output only. The state of the image import.

↳ create_time
Google\Protobuf\Timestamp

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

↳ end_time
Google\Protobuf\Timestamp

Output only. The time the image import was ended.

↳ errors
array< Google\Rpc\Status >

Output only. Provides details on the error that led to the image import state in case of an error.

↳ warnings
array< MigrationWarning >

Output only. Warnings that occurred during the image import.

↳ steps
array< ImageImportStep >

Output only. The image import steps list representing its progress.

getCloudStorageUri

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

Returns
Type
Description
string

hasCloudStorageUri

setCloudStorageUri

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDiskImageTargetDetails

Output only. Target details used to import a disk image.

Returns
Type
Description

hasDiskImageTargetDetails

setDiskImageTargetDetails

Output only. Target details used to import a disk image.

Parameter
Name
Description
Returns
Type
Description
$this

getMachineImageTargetDetails

Output only. Target details used to import a machine image.

Returns
Type
Description

hasMachineImageTargetDetails

setMachineImageTargetDetails

Output only. Target details used to import a machine image.

Parameter
Name
Description
Returns
Type
Description
$this

getName

Output only. The resource path of the ImageImportJob.

Returns
Type
Description
string

setName

Output only. The resource path of the ImageImportJob.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCreatedResources

Output only. The resource paths of the resources created by the image import job.

Returns
Type
Description

setCreatedResources

Output only. The resource paths of the resources created by the image import job.

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

getState

Output only. The state of the image import.

Returns
Type
Description
int
Enum of type State .

setState

Output only. The state of the image import.

Parameter
Name
Description
var
int

Enum of type State .

Returns
Type
Description
$this

getCreateTime

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

Parameter
Name
Description
Returns
Type
Description
$this

getEndTime

Output only. The time the image import was ended.

Returns
Type
Description

hasEndTime

clearEndTime

setEndTime

Output only. The time the image import was ended.

Parameter
Name
Description
Returns
Type
Description
$this

getErrors

Output only. Provides details on the error that led to the image import state in case of an error.

Returns
Type
Description

setErrors

Output only. Provides details on the error that led to the image import state in case of an error.

Parameter
Name
Description
var
Returns
Type
Description
$this

getWarnings

Output only. Warnings that occurred during the image import.

Returns
Type
Description

setWarnings

Output only. Warnings that occurred during the image import.

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

getSteps

Output only. The image import steps list representing its progress.

Returns
Type
Description

setSteps

Output only. The image import steps list representing its progress.

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

getSource

Returns
Type
Description
string

getTargetDetails

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