Class: Google::Apis::MigrationcenterV1::ImportRowError

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



2207
2208
2209
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2207

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

Instance Attribute Details

#csv_errorGoogle::Apis::MigrationcenterV1::ImportRowErrorCsvErrorDetails

Error details for a CSV file. Corresponds to the JSON property csvError



2180
2181
2182
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2180

def csv_error
  @csv_error
end

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

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



2185
2186
2187
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2185

def errors
  @errors
end

#row_numberFixnum

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

Returns:

  • (Fixnum)


2190
2191
2192
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2190

def row_number
  @row_number
end

#vm_nameString

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

Returns:

  • (String)


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

def vm_name
  @vm_name
end

#vm_uuidString

The VM UUID. Corresponds to the JSON property vmUuid

Returns:

  • (String)


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

def vm_uuid
  @vm_uuid
end

#xlsx_errorGoogle::Apis::MigrationcenterV1::ImportRowErrorXlsxErrorDetails

Error details for an XLSX file. Corresponds to the JSON property xlsxError



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

def xlsx_error
  @xlsx_error
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2212
2213
2214
2215
2216
2217
2218
2219
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2212

def update!(**args)
  @csv_error = args[:csv_error] if args.key?(:csv_error)
  @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)
  @xlsx_error = args[:xlsx_error] if args.key?(:xlsx_error)
end