Class: Rafflesia::ObjectArtifactImportRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/objects/object_artifact_import_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  allow_incomplete: :allow_incomplete,
  archive_inventory_object_id: :archive_inventory_object_id,
  archive_inventory_path: :archive_inventory_path,
  archive_required_member_paths: :archive_required_member_paths,
  dataset_name: :dataset_name,
  dataset_version: :dataset_version,
  dependency_manifest_ids: :dependency_manifest_ids,
  is_collection: :is_collection,
  kind: :kind,
  layout_prefix: :layout_prefix,
  license: :license,
  marker_paths: :marker_paths,
  mount_path: :mount_path,
  name: :name,
  output_dir: :output_dir,
  path: :path,
  shard_size_bytes: :shard_size_bytes,
  source_uri: :source_uri,
  tool_name: :tool_name,
  tool_version: :tool_version,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ObjectArtifactImportRequest

Returns a new instance of ObjectArtifactImportRequest.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 55

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @allow_incomplete = hash[:allow_incomplete]
  @archive_inventory_object_id = hash[:archive_inventory_object_id]
  @archive_inventory_path = hash[:archive_inventory_path]
  @archive_required_member_paths = (hash[:archive_required_member_paths] || [])
  @dataset_name = hash[:dataset_name]
  @dataset_version = hash[:dataset_version]
  @dependency_manifest_ids = (hash[:dependency_manifest_ids] || [])
  @is_collection = hash[:is_collection]
  @kind = hash[:kind]
  @layout_prefix = hash[:layout_prefix]
  @license = hash[:license]
  @marker_paths = (hash[:marker_paths] || [])
  @mount_path = hash[:mount_path]
  @name = hash[:name]
  @output_dir = hash[:output_dir]
  @path = hash[:path]
  @shard_size_bytes = hash[:shard_size_bytes]
  @source_uri = hash[:source_uri]
  @tool_name = hash[:tool_name]
  @tool_version = hash[:tool_version]
  @version = hash[:version]
end

Instance Attribute Details

#allow_incompleteObject

Returns the value of attribute allow_incomplete.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def allow_incomplete
  @allow_incomplete
end

#archive_inventory_object_idObject

Returns the value of attribute archive_inventory_object_id.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def archive_inventory_object_id
  @archive_inventory_object_id
end

#archive_inventory_pathObject

Returns the value of attribute archive_inventory_path.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def archive_inventory_path
  @archive_inventory_path
end

#archive_required_member_pathsObject

Returns the value of attribute archive_required_member_paths.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def archive_required_member_paths
  @archive_required_member_paths
end

#dataset_nameObject

Returns the value of attribute dataset_name.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def dataset_name
  @dataset_name
end

#dataset_versionObject

Returns the value of attribute dataset_version.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def dataset_version
  @dataset_version
end

#dependency_manifest_idsObject

Returns the value of attribute dependency_manifest_ids.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def dependency_manifest_ids
  @dependency_manifest_ids
end

#is_collectionObject

Returns the value of attribute is_collection.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def is_collection
  @is_collection
end

#kindObject

Returns the value of attribute kind.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def kind
  @kind
end

#layout_prefixObject

Returns the value of attribute layout_prefix.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def layout_prefix
  @layout_prefix
end

#licenseObject

Returns the value of attribute license.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def license
  @license
end

#marker_pathsObject

Returns the value of attribute marker_paths.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def marker_paths
  @marker_paths
end

#mount_pathObject

Returns the value of attribute mount_path.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def mount_path
  @mount_path
end

#nameObject

Returns the value of attribute name.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def name
  @name
end

#output_dirObject

Returns the value of attribute output_dir.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def output_dir
  @output_dir
end

#pathObject

Returns the value of attribute path.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def path
  @path
end

#shard_size_bytesObject

Returns the value of attribute shard_size_bytes.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def shard_size_bytes
  @shard_size_bytes
end

#source_uriObject

Returns the value of attribute source_uri.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def source_uri
  @source_uri
end

#tool_nameObject

Returns the value of attribute tool_name.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def tool_name
  @tool_name
end

#tool_versionObject

Returns the value of attribute tool_version.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def tool_version
  @tool_version
end

#versionObject

Returns the value of attribute version.



32
33
34
# File 'lib/rafflesia/objects/object_artifact_import_request.rb', line 32

def version
  @version
end