# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::ComputeEngineDisksTargetDefaults (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::ComputeEngineDisksTargetDefaults.

ComputeEngineDisksTargetDefaults is a collection of details for creating
Persistent Disks in a target Compute Engine project.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #disks

    def disks() -> ::Array<::Google::Cloud::VMMigration::V1::PersistentDiskDefaults>

**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::PersistentDiskDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-PersistentDiskDefaults)\>) --- The details of each Persistent Disk to create.

### #disks=

    def disks=(value) -> ::Array<::Google::Cloud::VMMigration::V1::PersistentDiskDefaults>

**Parameter**

- **value** (::Array\<[::Google::Cloud::VMMigration::V1::PersistentDiskDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-PersistentDiskDefaults)\>) --- The details of each Persistent Disk to create.
**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::PersistentDiskDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-PersistentDiskDefaults)\>) --- The details of each Persistent Disk to create.

### #disks_target_defaults

    def disks_target_defaults() -> ::Google::Cloud::VMMigration::V1::DisksMigrationDisksTargetDefaults

**Returns**

- ([::Google::Cloud::VMMigration::V1::DisksMigrationDisksTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DisksMigrationDisksTargetDefaults)) --- Details of the disk only migration target.


  Note: The following fields are mutually exclusive: `disks_target_defaults`, `vm_target_defaults`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #disks_target_defaults=

    def disks_target_defaults=(value) -> ::Google::Cloud::VMMigration::V1::DisksMigrationDisksTargetDefaults

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::DisksMigrationDisksTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DisksMigrationDisksTargetDefaults)) --- Details of the disk only migration target.


  Note: The following fields are mutually exclusive: `disks_target_defaults`, `vm_target_defaults`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::VMMigration::V1::DisksMigrationDisksTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DisksMigrationDisksTargetDefaults)) --- Details of the disk only migration target.


  Note: The following fields are mutually exclusive: `disks_target_defaults`, `vm_target_defaults`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #target_project

    def target_project() -> ::String

**Returns**

- (::String) --- The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks.

### #target_project=

    def target_project=(value) -> ::String

**Parameter**

- **value** (::String) --- The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks.
**Returns**

- (::String) --- The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks.

### #vm_target_defaults

    def vm_target_defaults() -> ::Google::Cloud::VMMigration::V1::DisksMigrationVmTargetDefaults

**Returns**

- ([::Google::Cloud::VMMigration::V1::DisksMigrationVmTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DisksMigrationVmTargetDefaults)) --- Details of the VM migration target.


  Note: The following fields are mutually exclusive: `vm_target_defaults`, `disks_target_defaults`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #vm_target_defaults=

    def vm_target_defaults=(value) -> ::Google::Cloud::VMMigration::V1::DisksMigrationVmTargetDefaults

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::DisksMigrationVmTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DisksMigrationVmTargetDefaults)) --- Details of the VM migration target.


  Note: The following fields are mutually exclusive: `vm_target_defaults`, `disks_target_defaults`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::VMMigration::V1::DisksMigrationVmTargetDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-DisksMigrationVmTargetDefaults)) --- Details of the VM migration target.


  Note: The following fields are mutually exclusive: `vm_target_defaults`, `disks_target_defaults`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #zone

    def zone() -> ::String

**Returns**

- (::String) --- The zone in which to create the Persistent Disks.

### #zone=

    def zone=(value) -> ::String

**Parameter**

- **value** (::String) --- The zone in which to create the Persistent Disks.
**Returns**

- (::String) --- The zone in which to create the Persistent Disks.