Class: Rafflesia::DatasetSourceSnapshotIngestRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetSourceSnapshotIngestRequest
- Defined in:
- lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ allow_duplicate: :allow_duplicate, dry_run: :dry_run, ingest_mode: :ingest_mode, manifest_object_id: :manifest_object_id, ref: :ref, source: :source, version: :version }.freeze
Instance Attribute Summary collapse
-
#allow_duplicate ⇒ Object
Returns the value of attribute allow_duplicate.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#ingest_mode ⇒ Object
Returns the value of attribute ingest_mode.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#source ⇒ Object
Returns the value of attribute source.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetSourceSnapshotIngestRequest
constructor
A new instance of DatasetSourceSnapshotIngestRequest.
Constructor Details
#initialize(json) ⇒ DatasetSourceSnapshotIngestRequest
Returns a new instance of DatasetSourceSnapshotIngestRequest.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @allow_duplicate = hash[:allow_duplicate] @dry_run = hash[:dry_run] @ingest_mode = hash[:ingest_mode] @manifest_object_id = hash[:manifest_object_id] @ref = hash[:ref] @source = hash[:source] @version = hash[:version] end |
Instance Attribute Details
#allow_duplicate ⇒ Object
Returns the value of attribute allow_duplicate.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb', line 18 def allow_duplicate @allow_duplicate end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb', line 18 def dry_run @dry_run end |
#ingest_mode ⇒ Object
Returns the value of attribute ingest_mode.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb', line 18 def ingest_mode @ingest_mode end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb', line 18 def manifest_object_id @manifest_object_id end |
#ref ⇒ Object
Returns the value of attribute ref.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb', line 18 def ref @ref end |
#source ⇒ Object
Returns the value of attribute source.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb', line 18 def source @source end |
#version ⇒ Object
Returns the value of attribute version.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_request.rb', line 18 def version @version end |