Class: Rafflesia::DatasetValidationIssue
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetValidationIssue
- Defined in:
- lib/rafflesia/datasets/dataset_validation_issue.rb
Constant Summary collapse
- HASH_ATTRS =
{ actual_partition_scope: :actual_partition_scope, actual_row_count: :actual_row_count, actual_row_scope_column: :actual_row_scope_column, actual_schema_hash: :actual_schema_hash, actual_schema_version: :actual_schema_version, actual_sha256: :actual_sha_256, actual_size_bytes: :actual_size_bytes, code: :code, expected_partition_scope: :expected_partition_scope, expected_row_count: :expected_row_count, expected_row_scope_column: :expected_row_scope_column, expected_schema_hash: :expected_schema_hash, expected_schema_version: :expected_schema_version, expected_sha256: :expected_sha_256, expected_size_bytes: :expected_size_bytes, failure_code: :failure_code, failure_stage: :failure_stage, manifest_field: :manifest_field, message: :message, path: :path, severity: :severity, structure_id: :structure_id, table_name: :table_name }.freeze
Instance Attribute Summary collapse
-
#actual_partition_scope ⇒ Object
Returns the value of attribute actual_partition_scope.
-
#actual_row_count ⇒ Object
Returns the value of attribute actual_row_count.
-
#actual_row_scope_column ⇒ Object
Returns the value of attribute actual_row_scope_column.
-
#actual_schema_hash ⇒ Object
Returns the value of attribute actual_schema_hash.
-
#actual_schema_version ⇒ Object
Returns the value of attribute actual_schema_version.
-
#actual_sha_256 ⇒ Object
Returns the value of attribute actual_sha_256.
-
#actual_size_bytes ⇒ Object
Returns the value of attribute actual_size_bytes.
-
#code ⇒ Object
Returns the value of attribute code.
-
#expected_partition_scope ⇒ Object
Returns the value of attribute expected_partition_scope.
-
#expected_row_count ⇒ Object
Returns the value of attribute expected_row_count.
-
#expected_row_scope_column ⇒ Object
Returns the value of attribute expected_row_scope_column.
-
#expected_schema_hash ⇒ Object
Returns the value of attribute expected_schema_hash.
-
#expected_schema_version ⇒ Object
Returns the value of attribute expected_schema_version.
-
#expected_sha_256 ⇒ Object
Returns the value of attribute expected_sha_256.
-
#expected_size_bytes ⇒ Object
Returns the value of attribute expected_size_bytes.
-
#failure_code ⇒ Object
Returns the value of attribute failure_code.
-
#failure_stage ⇒ Object
Returns the value of attribute failure_stage.
-
#manifest_field ⇒ Object
Returns the value of attribute manifest_field.
-
#message ⇒ Object
Returns the value of attribute message.
-
#path ⇒ Object
Returns the value of attribute path.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetValidationIssue
constructor
A new instance of DatasetValidationIssue.
Constructor Details
#initialize(json) ⇒ DatasetValidationIssue
Returns a new instance of DatasetValidationIssue.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 59 def initialize(json) super() hash = self.class.normalize(json) @actual_partition_scope = hash[:actual_partition_scope] @actual_row_count = hash[:actual_row_count] @actual_row_scope_column = hash[:actual_row_scope_column] @actual_schema_hash = hash[:actual_schema_hash] @actual_schema_version = hash[:actual_schema_version] @actual_sha_256 = hash[:actual_sha256] @actual_size_bytes = hash[:actual_size_bytes] @code = hash[:code] @expected_partition_scope = hash[:expected_partition_scope] @expected_row_count = hash[:expected_row_count] @expected_row_scope_column = hash[:expected_row_scope_column] @expected_schema_hash = hash[:expected_schema_hash] @expected_schema_version = hash[:expected_schema_version] @expected_sha_256 = hash[:expected_sha256] @expected_size_bytes = hash[:expected_size_bytes] @failure_code = hash[:failure_code] @failure_stage = hash[:failure_stage] @manifest_field = hash[:manifest_field] @message = hash[:message] @path = hash[:path] @severity = hash[:severity] @structure_id = hash[:structure_id] @table_name = hash[:table_name] end |
Instance Attribute Details
#actual_partition_scope ⇒ Object
Returns the value of attribute actual_partition_scope.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def actual_partition_scope @actual_partition_scope end |
#actual_row_count ⇒ Object
Returns the value of attribute actual_row_count.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def actual_row_count @actual_row_count end |
#actual_row_scope_column ⇒ Object
Returns the value of attribute actual_row_scope_column.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def actual_row_scope_column @actual_row_scope_column end |
#actual_schema_hash ⇒ Object
Returns the value of attribute actual_schema_hash.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def actual_schema_hash @actual_schema_hash end |
#actual_schema_version ⇒ Object
Returns the value of attribute actual_schema_version.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def actual_schema_version @actual_schema_version end |
#actual_sha_256 ⇒ Object
Returns the value of attribute actual_sha_256.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def actual_sha_256 @actual_sha_256 end |
#actual_size_bytes ⇒ Object
Returns the value of attribute actual_size_bytes.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def actual_size_bytes @actual_size_bytes end |
#code ⇒ Object
Returns the value of attribute code.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def code @code end |
#expected_partition_scope ⇒ Object
Returns the value of attribute expected_partition_scope.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def expected_partition_scope @expected_partition_scope end |
#expected_row_count ⇒ Object
Returns the value of attribute expected_row_count.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def expected_row_count @expected_row_count end |
#expected_row_scope_column ⇒ Object
Returns the value of attribute expected_row_scope_column.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def expected_row_scope_column @expected_row_scope_column end |
#expected_schema_hash ⇒ Object
Returns the value of attribute expected_schema_hash.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def expected_schema_hash @expected_schema_hash end |
#expected_schema_version ⇒ Object
Returns the value of attribute expected_schema_version.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def expected_schema_version @expected_schema_version end |
#expected_sha_256 ⇒ Object
Returns the value of attribute expected_sha_256.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def expected_sha_256 @expected_sha_256 end |
#expected_size_bytes ⇒ Object
Returns the value of attribute expected_size_bytes.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def expected_size_bytes @expected_size_bytes end |
#failure_code ⇒ Object
Returns the value of attribute failure_code.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def failure_code @failure_code end |
#failure_stage ⇒ Object
Returns the value of attribute failure_stage.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def failure_stage @failure_stage end |
#manifest_field ⇒ Object
Returns the value of attribute manifest_field.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def manifest_field @manifest_field end |
#message ⇒ Object
Returns the value of attribute message.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def @message end |
#path ⇒ Object
Returns the value of attribute path.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def path @path end |
#severity ⇒ Object
Returns the value of attribute severity.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def severity @severity end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def structure_id @structure_id end |
#table_name ⇒ Object
Returns the value of attribute table_name.
34 35 36 |
# File 'lib/rafflesia/datasets/dataset_validation_issue.rb', line 34 def table_name @table_name end |