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

Details for creation of a Persistent Disk.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #additional_labels

    def additional_labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- A map of labels to associate with the Persistent Disk.

### #additional_labels=

    def additional_labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- A map of labels to associate with the Persistent Disk.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- A map of labels to associate with the Persistent Disk.

### #disk_name

    def disk_name() -> ::String

**Returns**

- (::String) --- Optional. The name of the Persistent Disk to create.

### #disk_name=

    def disk_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the Persistent Disk to create.
**Returns**

- (::String) --- Optional. The name of the Persistent Disk to create.

### #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)) --- 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)) --- 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)) --- The disk type to use.

### #encryption

    def encryption() -> ::Google::Cloud::VMMigration::V1::Encryption

**Returns**

- ([::Google::Cloud::VMMigration::V1::Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-Encryption)) --- Optional. The encryption to apply to the disk.

### #encryption=

    def encryption=(value) -> ::Google::Cloud::VMMigration::V1::Encryption

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-Encryption)) --- Optional. The encryption to apply to the disk.
**Returns**

- ([::Google::Cloud::VMMigration::V1::Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-Encryption)) --- Optional. The encryption to apply to the disk.

### #source_disk_number

    def source_disk_number() -> ::Integer

**Returns**

- (::Integer) --- Required. The ordinal number of the source VM disk.

### #source_disk_number=

    def source_disk_number=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The ordinal number of the source VM disk.
**Returns**

- (::Integer) --- Required. The ordinal number of the source VM disk.

### #vm_attachment_details

    def vm_attachment_details() -> ::Google::Cloud::VMMigration::V1::VmAttachmentDetails

**Returns**

- ([::Google::Cloud::VMMigration::V1::VmAttachmentDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-VmAttachmentDetails)) --- Optional. Details for attachment of the disk to a VM. Used when the disk is set to be attached to a target VM.

### #vm_attachment_details=

    def vm_attachment_details=(value) -> ::Google::Cloud::VMMigration::V1::VmAttachmentDetails

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::VmAttachmentDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-VmAttachmentDetails)) --- Optional. Details for attachment of the disk to a VM. Used when the disk is set to be attached to a target VM.
**Returns**

- ([::Google::Cloud::VMMigration::V1::VmAttachmentDetails](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-VmAttachmentDetails)) --- Optional. Details for attachment of the disk to a VM. Used when the disk is set to be attached to a target VM.