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

BootDiskDefaults hold information about the boot disk of a VM.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #device_name

    def device_name() -> ::String

**Returns**

- (::String) --- Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-\* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

### #device_name=

    def device_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-\* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
**Returns**

- (::String) --- Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-\* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

### #disk_name

    def disk_name() -> ::String

**Returns**

- (::String) --- Optional. The name of the disk.

### #disk_name=

    def disk_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the disk.
**Returns**

- (::String) --- Optional. The name of 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)) --- Optional. The type of disk provisioning to use for the VM.

### #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)) --- Optional. The type of disk provisioning to use for the VM.
**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)) --- Optional. The type of disk provisioning to use for the VM.

### #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 boot 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 boot 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 boot disk.

### #image

    def image() -> ::Google::Cloud::VMMigration::V1::BootDiskDefaults::DiskImageDefaults

**Returns**

- ([::Google::Cloud::VMMigration::V1::BootDiskDefaults::DiskImageDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-BootDiskDefaults-DiskImageDefaults)) --- The image to use when creating the disk.

### #image=

    def image=(value) -> ::Google::Cloud::VMMigration::V1::BootDiskDefaults::DiskImageDefaults

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::BootDiskDefaults::DiskImageDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-BootDiskDefaults-DiskImageDefaults)) --- The image to use when creating the disk.
**Returns**

- ([::Google::Cloud::VMMigration::V1::BootDiskDefaults::DiskImageDefaults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-BootDiskDefaults-DiskImageDefaults)) --- The image to use when creating the disk.