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.



3150
3151
3152
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3150

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

Instance Attribute Details

#archive_errorGoogle::Apis::MigrationcenterV1alpha1::ImportRowErrorArchiveErrorDetails

Error details for an archive file. Corresponds to the JSON property archiveError



3108
3109
3110
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3108

def archive_error
  @archive_error
end

#asset_titleString

The asset title. Corresponds to the JSON property assetTitle

Returns:

  • (String)


3113
3114
3115
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3113

def asset_title
  @asset_title
end

#csv_errorGoogle::Apis::MigrationcenterV1alpha1::ImportRowErrorCsvErrorDetails

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



3118
3119
3120
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3118

def csv_error
  @csv_error
end

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

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



3123
3124
3125
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3123

def errors
  @errors
end

#json_errorGoogle::Apis::MigrationcenterV1alpha1::ImportRowErrorJsonErrorDetails

Error details for a JSON file. Corresponds to the JSON property jsonError



3128
3129
3130
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3128

def json_error
  @json_error
end

#row_numberFixnum

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

Returns:

  • (Fixnum)


3133
3134
3135
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3133

def row_number
  @row_number
end

#vm_nameString

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

Returns:

  • (String)


3138
3139
3140
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3138

def vm_name
  @vm_name
end

#vm_uuidString

The VM UUID. Corresponds to the JSON property vmUuid

Returns:

  • (String)


3143
3144
3145
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3143

def vm_uuid
  @vm_uuid
end

#xlsx_errorGoogle::Apis::MigrationcenterV1alpha1::ImportRowErrorXlsxErrorDetails

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



3148
3149
3150
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3148

def xlsx_error
  @xlsx_error
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3155

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