Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::DiskMigrationJobTargetDetails.
Details of the target disk in Compute Engine.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#encryption
def encryption() -> ::Google::Cloud::VMMigration::V1::Encryption
Returns
- (::Google::Cloud::VMMigration::V1::Encryption) — Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
#encryption=
def encryption=(value) -> ::Google::Cloud::VMMigration::V1::Encryption
Parameter
- value (::Google::Cloud::VMMigration::V1::Encryption) — Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
Returns
- (::Google::Cloud::VMMigration::V1::Encryption) — Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. A map of labels to associate with the disk.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. A map of labels to associate with the disk.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. A map of labels to associate with the disk.
#target_disk
def target_disk() -> ::Google::Cloud::VMMigration::V1::ComputeEngineDisk
Returns
- (::Google::Cloud::VMMigration::V1::ComputeEngineDisk) — Required. The target disk.
#target_disk=
def target_disk=(value) -> ::Google::Cloud::VMMigration::V1::ComputeEngineDisk
Parameter
- value (::Google::Cloud::VMMigration::V1::ComputeEngineDisk) — Required. The target disk.
Returns
- (::Google::Cloud::VMMigration::V1::ComputeEngineDisk) — Required. The target disk.
#target_project
def target_project() -> ::String
Returns
- (::String) — Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}
#target_project=
def target_project=(value) -> ::String
Parameter
- value (::String) — Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}
Returns
- (::String) — Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}