Class: Google::Apis::MigrationcenterV1alpha1::ErrorFrame

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

Message representing a frame which failed to be processed due to an error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ErrorFrame

Returns a new instance of ErrorFrame.



2533
2534
2535
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2533

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

Instance Attribute Details

#ingestion_timeString

Output only. Frame ingestion time. Corresponds to the JSON property ingestionTime

Returns:

  • (String)


2516
2517
2518
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2516

def ingestion_time
  @ingestion_time
end

#nameString

Output only. The identifier of the ErrorFrame. Corresponds to the JSON property name

Returns:

  • (String)


2521
2522
2523
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2521

def name
  @name
end

#original_frameGoogle::Apis::MigrationcenterV1alpha1::AssetFrame

Contains data reported from an inventory source on an asset. Corresponds to the JSON property originalFrame



2526
2527
2528
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2526

def original_frame
  @original_frame
end

#violationsArray<Google::Apis::MigrationcenterV1alpha1::FrameViolationEntry>

Output only. All the violations that were detected for the frame. Corresponds to the JSON property violations



2531
2532
2533
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2531

def violations
  @violations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2538
2539
2540
2541
2542
2543
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2538

def update!(**args)
  @ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
  @name = args[:name] if args.key?(:name)
  @original_frame = args[:original_frame] if args.key?(:original_frame)
  @violations = args[:violations] if args.key?(:violations)
end