Class: Rafflesia::FoldSegmentPublishRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  activate: :activate,
  benchmark_object_id: :benchmark_object_id,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  max_blocks_per_query: :max_blocks_per_query,
  max_object_bytes_per_query: :max_object_bytes_per_query,
  max_object_reads_per_query: :max_object_reads_per_query,
  min_byte_reduction_fraction: :min_byte_reduction_fraction,
  min_hit_overlap_fraction: :min_hit_overlap_fraction,
  min_recall_at_1: :min_recall_at_1,
  min_recall_at_10: :min_recall_at_10,
  min_recall_at_100: :min_recall_at_100,
  policy: :policy,
  ref: :ref,
  require_benchmark: :require_benchmark,
  require_exact_verification: :require_exact_verification,
  require_search_benchmark: :require_search_benchmark,
  require_zero_materialization: :require_zero_materialization,
  search_benchmark_object_id: :search_benchmark_object_id,
  workload_profile: :workload_profile
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentPublishRequest

Returns a new instance of FoldSegmentPublishRequest.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 53

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @activate = hash[:activate]
  @benchmark_object_id = hash[:benchmark_object_id]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @max_blocks_per_query = hash[:max_blocks_per_query]
  @max_object_bytes_per_query = hash[:max_object_bytes_per_query]
  @max_object_reads_per_query = hash[:max_object_reads_per_query]
  @min_byte_reduction_fraction = hash[:min_byte_reduction_fraction]
  @min_hit_overlap_fraction = hash[:min_hit_overlap_fraction]
  @min_recall_at_1 = hash[:min_recall_at_1]
  @min_recall_at_10 = hash[:min_recall_at_10]
  @min_recall_at_100 = hash[:min_recall_at_100]
  @policy = hash[:policy] ? Rafflesia::ServerlessPublishPolicy.new(hash[:policy]) : nil
  @ref = hash[:ref]
  @require_benchmark = hash[:require_benchmark]
  @require_exact_verification = hash[:require_exact_verification]
  @require_search_benchmark = hash[:require_search_benchmark]
  @require_zero_materialization = hash[:require_zero_materialization]
  @search_benchmark_object_id = hash[:search_benchmark_object_id]
  @workload_profile = hash[:workload_profile]
end

Instance Attribute Details

#activateObject

Returns the value of attribute activate.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def activate
  @activate
end

#benchmark_object_idObject

Returns the value of attribute benchmark_object_id.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def benchmark_object_id
  @benchmark_object_id
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def manifest_path
  @manifest_path
end

#max_blocks_per_queryObject

Returns the value of attribute max_blocks_per_query.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def max_blocks_per_query
  @max_blocks_per_query
end

#max_object_bytes_per_queryObject

Returns the value of attribute max_object_bytes_per_query.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def max_object_bytes_per_query
  @max_object_bytes_per_query
end

#max_object_reads_per_queryObject

Returns the value of attribute max_object_reads_per_query.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def max_object_reads_per_query
  @max_object_reads_per_query
end

#min_byte_reduction_fractionObject

Returns the value of attribute min_byte_reduction_fraction.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def min_byte_reduction_fraction
  @min_byte_reduction_fraction
end

#min_hit_overlap_fractionObject

Returns the value of attribute min_hit_overlap_fraction.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def min_hit_overlap_fraction
  @min_hit_overlap_fraction
end

#min_recall_at_1Object

Returns the value of attribute min_recall_at_1.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def min_recall_at_1
  @min_recall_at_1
end

#min_recall_at_10Object

Returns the value of attribute min_recall_at_10.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def min_recall_at_10
  @min_recall_at_10
end

#min_recall_at_100Object

Returns the value of attribute min_recall_at_100.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def min_recall_at_100
  @min_recall_at_100
end

#policyObject

Returns the value of attribute policy.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def policy
  @policy
end

#refObject

Returns the value of attribute ref.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def ref
  @ref
end

#require_benchmarkObject

Returns the value of attribute require_benchmark.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def require_benchmark
  @require_benchmark
end

#require_exact_verificationObject

Returns the value of attribute require_exact_verification.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def require_exact_verification
  @require_exact_verification
end

#require_search_benchmarkObject

Returns the value of attribute require_search_benchmark.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def require_search_benchmark
  @require_search_benchmark
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def require_zero_materialization
  @require_zero_materialization
end

#search_benchmark_object_idObject

Returns the value of attribute search_benchmark_object_id.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def search_benchmark_object_id
  @search_benchmark_object_id
end

#workload_profileObject

Returns the value of attribute workload_profile.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_publish_request.rb', line 31

def workload_profile
  @workload_profile
end