# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::ComputeEngineDisk (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::ComputeEngineDisk.

Compute Engine disk target details.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #disk_id

    def disk_id() -> ::String

**Returns**

- (::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.

### #disk_id=

    def disk_id=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #disk_type

    def disk_type() -> ::Google::Cloud::VMMigration::V1::ComputeEngineDiskType

**Returns**

- ([::Google::Cloud::VMMigration::V1::ComputeEngineDiskType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineDiskType)) --- Required. The disk type to use.

### #disk_type=

    def disk_type=(value) -> ::Google::Cloud::VMMigration::V1::ComputeEngineDiskType

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::ComputeEngineDiskType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineDiskType)) --- Required. The disk type to use.
**Returns**

- ([::Google::Cloud::VMMigration::V1::ComputeEngineDiskType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineDiskType)) --- Required. The disk type to use.

### #replica_zones

    def replica_zones() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- 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.

### #replica_zones=

    def replica_zones=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- 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**

- (::Array\<::String\>) --- 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.

### #zone

    def zone() -> ::String

**Returns**

- (::String) --- Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}

### #zone=

    def zone=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
**Returns**

- (::String) --- Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}