Class: Rafflesia::FoldIndexBuildRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_index_build_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  create_index: :create_index,
  dry_run: :dry_run,
  name: :name,
  output_dir: :output_dir,
  publish: :publish,
  routing_representatives_per_shard: :routing_representatives_per_shard,
  shard_count: :shard_count,
  source_manifest_object_id: :source_manifest_object_id,
  store_artifacts: :store_artifacts,
  structure_ids: :structure_ids,
  structure_object_ids: :structure_object_ids,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldIndexBuildRequest

Returns a new instance of FoldIndexBuildRequest.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @create_index = hash[:create_index]
  @dry_run = hash[:dry_run]
  @name = hash[:name]
  @output_dir = hash[:output_dir]
  @publish = hash[:publish]
  @routing_representatives_per_shard = hash[:routing_representatives_per_shard]
  @shard_count = hash[:shard_count]
  @source_manifest_object_id = hash[:source_manifest_object_id]
  @store_artifacts = hash[:store_artifacts]
  @structure_ids = (hash[:structure_ids] || [])
  @structure_object_ids = (hash[:structure_object_ids] || [])
  @version = hash[:version]
end

Instance Attribute Details

#create_indexObject

Returns the value of attribute create_index.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def create_index
  @create_index
end

#dry_runObject

Returns the value of attribute dry_run.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def dry_run
  @dry_run
end

#nameObject

Returns the value of attribute name.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def name
  @name
end

#output_dirObject

Returns the value of attribute output_dir.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def output_dir
  @output_dir
end

#publishObject

Returns the value of attribute publish.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def publish
  @publish
end

#routing_representatives_per_shardObject

Returns the value of attribute routing_representatives_per_shard.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def routing_representatives_per_shard
  @routing_representatives_per_shard
end

#shard_countObject

Returns the value of attribute shard_count.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def shard_count
  @shard_count
end

#source_manifest_object_idObject

Returns the value of attribute source_manifest_object_id.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def source_manifest_object_id
  @source_manifest_object_id
end

#store_artifactsObject

Returns the value of attribute store_artifacts.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def store_artifacts
  @store_artifacts
end

#structure_idsObject

Returns the value of attribute structure_ids.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def structure_ids
  @structure_ids
end

#structure_object_idsObject

Returns the value of attribute structure_object_ids.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def structure_object_ids
  @structure_object_ids
end

#versionObject

Returns the value of attribute version.



23
24
25
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23

def version
  @version
end