Class: Rafflesia::DatasetSourceSnapshotIngestRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_duplicateObject

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_runObject

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_modeObject

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_idObject

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

#refObject

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

#sourceObject

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

#versionObject

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