Class: Google::Apis::MigrationcenterV1alpha1::ImportRowError

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

Overview

A resource that reports the import job errors at row level.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImportRowError

Returns a new instance of ImportRowError.



2245
2246
2247
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2245

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

Instance Attribute Details

#errorsArray<Google::Apis::MigrationcenterV1alpha1::ImportError>

The list of errors detected in the row. Corresponds to the JSON property errors



2228
2229
2230
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2228

def errors
  @errors
end

#row_numberFixnum

The row number where the error was detected. Corresponds to the JSON property rowNumber

Returns:

  • (Fixnum)


2233
2234
2235
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2233

def row_number
  @row_number
end

#vm_nameString

The name of the VM in the row. Corresponds to the JSON property vmName

Returns:

  • (String)


2238
2239
2240
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2238

def vm_name
  @vm_name
end

#vm_uuidString

The VM UUID. Corresponds to the JSON property vmUuid

Returns:

  • (String)


2243
2244
2245
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2243

def vm_uuid
  @vm_uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2250
2251
2252
2253
2254
2255
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2250

def update!(**args)
  @errors = args[:errors] if args.key?(:errors)
  @row_number = args[:row_number] if args.key?(:row_number)
  @vm_name = args[:vm_name] if args.key?(:vm_name)
  @vm_uuid = args[:vm_uuid] if args.key?(:vm_uuid)
end