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.



3493
3494
3495
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3493

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

Instance Attribute Details

#asset_sourceString

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

Returns:

  • (String)


3436
3437
3438
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3436

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)


3441
3442
3443
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3441

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)


3446
3447
3448
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3446

def create_time
  @create_time
end

#display_nameString

User-friendly display name. Maximum length is 63 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


3451
3452
3453
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3451

def display_name
  @display_name
end

#execution_reportGoogle::Apis::MigrationcenterV1alpha1::ExecutionReport

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



3456
3457
3458
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3456

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



3461
3462
3463
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3461

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



3466
3467
3468
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3466

def inline_payload
  @inline_payload
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


3471
3472
3473
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3471

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


3476
3477
3478
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3476

def name
  @name
end

#stateString

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

Returns:

  • (String)


3481
3482
3483
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3481

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)


3486
3487
3488
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3486

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



3491
3492
3493
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3491

def validation_report
  @validation_report
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3498

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)
  @display_name = args[:display_name] if args.key?(:display_name)
  @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