Class: Google::Apis::VmmigrationV1alpha1::DiskMigrationJobTargetDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb

Overview

Details of the target disk in Compute Engine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskMigrationJobTargetDetails

Returns a new instance of DiskMigrationJobTargetDetails.



2265
2266
2267
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2265

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#encryptionGoogle::Apis::VmmigrationV1alpha1::Encryption

Encryption message describes the details of the applied encryption. Corresponds to the JSON property encryption



2246
2247
2248
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2246

def encryption
  @encryption
end

#labelsHash<String,String>

Optional. A map of labels to associate with the disk. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2251
2252
2253
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2251

def labels
  @labels
end

#target_diskGoogle::Apis::VmmigrationV1alpha1::ComputeEngineDisk

Compute Engine disk target details. Corresponds to the JSON property targetDisk



2256
2257
2258
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2256

def target_disk
  @target_disk
end

#target_projectString

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 Corresponds to the JSON property targetProject

Returns:

  • (String)


2263
2264
2265
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2263

def target_project
  @target_project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2270
2271
2272
2273
2274
2275
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2270

def update!(**args)
  @encryption = args[:encryption] if args.key?(:encryption)
  @labels = args[:labels] if args.key?(:labels)
  @target_disk = args[:target_disk] if args.key?(:target_disk)
  @target_project = args[:target_project] if args.key?(:target_project)
end