Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class ComputeEngineDisk.
Compute Engine disk target details.
Generated from protobuf message google.cloud.vmmigration.v1.ComputeEngineDisk
Namespace
Google \ Cloud \ VMMigration \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ disk_id |
string
Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk. |
↳ zone |
string
Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone} |
↳ replica_zones |
array
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported. |
↳ disk_type |
int
Required. The disk type to use. |
getDiskId
Optional. Target Compute Engine Disk ID.
This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk.
Returns | |
---|---|
Type | Description |
string |
setDiskId
Optional. Target Compute Engine Disk ID.
This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getZone
Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
Returns | |
---|---|
Type | Description |
string |
setZone
Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getReplicaZones
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setReplicaZones
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getDiskType
Required. The disk type to use.
Returns | |
---|---|
Type | Description |
int |
Enum of type ComputeEngineDiskType. |
setDiskType
Required. The disk type to use.
Parameter | |
---|---|
Name | Description |
var |
int
Enum of type ComputeEngineDiskType. |
Returns | |
---|---|
Type | Description |
$this |