Class: Google::Apis::MigrationcenterV1alpha1::ImportJob

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 represents the background job that imports asset frames.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImportJob

Returns a new instance of ImportJob.



1394
1395
1396
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1394

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

Instance Attribute Details

#asset_sourceString

Required. Reference to a source. Corresponds to the JSON property assetSource

Returns:

  • (String)


1342
1343
1344
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1342

def asset_source
  @asset_source
end

#complete_timeString

Output only. The timestamp when the import job was completed. Corresponds to the JSON property completeTime

Returns:

  • (String)


1347
1348
1349
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1347

def complete_time
  @complete_time
end

#create_timeString

Output only. The timestamp when the import job was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1352
1353
1354
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1352

def create_time
  @create_time
end

#execution_reportGoogle::Apis::MigrationcenterV1alpha1::ExecutionReport

A resource that reports result of the import job execution. Corresponds to the JSON property executionReport



1357
1358
1359
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1357

def execution_report
  @execution_report
end

#gcs_payloadGoogle::Apis::MigrationcenterV1alpha1::GcsPayloadInfo

A resource that represents a payload hosted on Google Cloud Storage. Corresponds to the JSON property gcsPayload



1362
1363
1364
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1362

def gcs_payload
  @gcs_payload
end

#inline_payloadGoogle::Apis::MigrationcenterV1alpha1::InlinePayloadInfo

A resource that represents the inline import job payload. Corresponds to the JSON property inlinePayload



1367
1368
1369
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1367

def inline_payload
  @inline_payload
end

#labelsHash<String,String>

Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1372
1373
1374
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1372

def labels
  @labels
end

#nameString

Output only. The full name of the import job. Corresponds to the JSON property name

Returns:

  • (String)


1377
1378
1379
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1377

def name
  @name
end

#stateString

Output only. The state of the import job. Corresponds to the JSON property state

Returns:

  • (String)


1382
1383
1384
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1382

def state
  @state
end

#update_timeString

Output only. The timestamp when the import job was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1387
1388
1389
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1387

def update_time
  @update_time
end

#validation_reportGoogle::Apis::MigrationcenterV1alpha1::ValidationReport

A resource that aggregates errors across import job files. Corresponds to the JSON property validationReport



1392
1393
1394
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1392

def validation_report
  @validation_report
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1399

def update!(**args)
  @asset_source = args[:asset_source] if args.key?(:asset_source)
  @complete_time = args[:complete_time] if args.key?(:complete_time)
  @create_time = args[:create_time] if args.key?(:create_time)
  @execution_report = args[:execution_report] if args.key?(:execution_report)
  @gcs_payload = args[:gcs_payload] if args.key?(:gcs_payload)
  @inline_payload = args[:inline_payload] if args.key?(:inline_payload)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
  @validation_report = args[:validation_report] if args.key?(:validation_report)
end