Class: Google::Apis::VmmigrationV1alpha1::DiskMigrationJob

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

Describes the disk which will be migrated from the source environment. The source disk has to be unattached.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskMigrationJob

Returns a new instance of DiskMigrationJob.



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

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

Instance Attribute Details

#aws_source_disk_detailsGoogle::Apis::VmmigrationV1alpha1::AwsSourceDiskDetails

Represents the source AWS Disk details. Corresponds to the JSON property awsSourceDiskDetails



2184
2185
2186
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2184

def aws_source_disk_details
  @aws_source_disk_details
end

#create_timeString

Output only. The time the DiskMigrationJob resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2189
2190
2191
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2189

def create_time
  @create_time
end

#errorsArray<Google::Apis::VmmigrationV1alpha1::Status>

Output only. Provides details on the errors that led to the disk migration job' s state in case of an error. Corresponds to the JSON property errors



2195
2196
2197
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2195

def errors
  @errors
end

#nameString

Output only. Identifier. The identifier of the DiskMigrationJob. Corresponds to the JSON property name

Returns:

  • (String)


2200
2201
2202
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2200

def name
  @name
end

#stateString

Output only. State of the DiskMigrationJob. Corresponds to the JSON property state

Returns:

  • (String)


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

def state
  @state
end

#stepsArray<Google::Apis::VmmigrationV1alpha1::DiskMigrationStep>

Output only. The disk migration steps list representing its progress. Corresponds to the JSON property steps



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

def steps
  @steps
end

#target_detailsGoogle::Apis::VmmigrationV1alpha1::DiskMigrationJobTargetDetails

Details of the target disk in Compute Engine. Corresponds to the JSON property targetDetails



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

def target_details
  @target_details
end

#update_timeString

Output only. The last time the DiskMigrationJob resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2220
2221
2222
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2220

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2227

def update!(**args)
  @aws_source_disk_details = args[:aws_source_disk_details] if args.key?(:aws_source_disk_details)
  @create_time = args[:create_time] if args.key?(:create_time)
  @errors = args[:errors] if args.key?(:errors)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @steps = args[:steps] if args.key?(:steps)
  @target_details = args[:target_details] if args.key?(:target_details)
  @update_time = args[:update_time] if args.key?(:update_time)
end