Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class DiskMigrationJobTargetDetails.
Details of the target disk in Compute Engine.
Generated from protobuf message google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails
Namespace
Google \ Cloud \ VMMigration \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ target_disk |
ComputeEngineDisk
Required. The target disk. |
↳ target_project |
string
Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project} |
↳ labels |
array|Google\Protobuf\Internal\MapField
Optional. A map of labels to associate with the disk. |
↳ encryption |
Encryption
Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key. |
getTargetDisk
Required. The target disk.
Returns | |
---|---|
Type | Description |
ComputeEngineDisk|null |
hasTargetDisk
setTargetDisk
Required. The target disk.
Parameter | |
---|---|
Name | Description |
var |
ComputeEngineDisk
|
Returns | |
---|---|
Type | Description |
$this |
getTargetProject
Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}
Returns | |
---|---|
Type | Description |
string |
setTargetProject
Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLabels
Optional. A map of labels to associate with the disk.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setLabels
Optional. A map of labels to associate with the disk.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getEncryption
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
Returns | |
---|---|
Type | Description |
Encryption|null |
hasEncryption
clearEncryption
setEncryption
Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
Parameter | |
---|---|
Name | Description |
var |
Encryption
|
Returns | |
---|---|
Type | Description |
$this |
getTargetStorage
Returns | |
---|---|
Type | Description |
string |