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) — The disk type to use.
#disk_type=
def disk_type=(value) -> ::Google::Cloud::VMMigration::V1::ComputeEngineDiskType
Parameter
- value (::Google::Cloud::VMMigration::V1::ComputeEngineDiskType) — The disk type to use.
Returns
- (::Google::Cloud::VMMigration::V1::ComputeEngineDiskType) — The disk type to use.
#encryption
def encryption() -> ::Google::Cloud::VMMigration::V1::Encryption
Returns
- (::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) — Optional. The encryption to apply to the disk.
Returns
- (::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) — 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) — 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) — Optional. Details for attachment of the disk to a VM. Used when the disk is set to be attached to a target VM.