Class: Google::Apis::VmmigrationV1::DiskMigrationJobTargetDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/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.



2224
2225
2226
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2224

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

Instance Attribute Details

#encryptionGoogle::Apis::VmmigrationV1::Encryption

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



2205
2206
2207
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2205

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>)


2210
2211
2212
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2210

def labels
  @labels
end

#target_diskGoogle::Apis::VmmigrationV1::ComputeEngineDisk

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



2215
2216
2217
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2215

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)


2222
2223
2224
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2222

def target_project
  @target_project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2229
2230
2231
2232
2233
2234
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2229

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