Class: Rafflesia::ServerlessPublishPolicy
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ServerlessPublishPolicy
- Defined in:
- lib/rafflesia/proteins/serverless_publish_policy.rb
Constant Summary collapse
- HASH_ATTRS =
{ benchmark_object_id: :benchmark_object_id, kind: :kind, max_blocks_per_query: :max_blocks_per_query, max_materialized_bytes_per_query: :max_materialized_bytes_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, passed: :passed, reasons: :reasons, require_benchmark: :require_benchmark, require_exact_verification: :require_exact_verification, require_zero_materialization: :require_zero_materialization, schema_version: :schema_version, workload_profile: :workload_profile }.freeze
Instance Attribute Summary collapse
-
#benchmark_object_id ⇒ Object
Returns the value of attribute benchmark_object_id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#max_blocks_per_query ⇒ Object
Returns the value of attribute max_blocks_per_query.
-
#max_materialized_bytes_per_query ⇒ Object
Returns the value of attribute max_materialized_bytes_per_query.
-
#max_object_bytes_per_query ⇒ Object
Returns the value of attribute max_object_bytes_per_query.
-
#max_object_reads_per_query ⇒ Object
Returns the value of attribute max_object_reads_per_query.
-
#min_byte_reduction_fraction ⇒ Object
Returns the value of attribute min_byte_reduction_fraction.
-
#min_hit_overlap_fraction ⇒ Object
Returns the value of attribute min_hit_overlap_fraction.
-
#min_recall_at_1 ⇒ Object
Returns the value of attribute min_recall_at_1.
-
#min_recall_at_10 ⇒ Object
Returns the value of attribute min_recall_at_10.
-
#min_recall_at_100 ⇒ Object
Returns the value of attribute min_recall_at_100.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#require_benchmark ⇒ Object
Returns the value of attribute require_benchmark.
-
#require_exact_verification ⇒ Object
Returns the value of attribute require_exact_verification.
-
#require_zero_materialization ⇒ Object
Returns the value of attribute require_zero_materialization.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#workload_profile ⇒ Object
Returns the value of attribute workload_profile.
Instance Method Summary collapse
-
#initialize(json) ⇒ ServerlessPublishPolicy
constructor
A new instance of ServerlessPublishPolicy.
Constructor Details
#initialize(json) ⇒ ServerlessPublishPolicy
Returns a new instance of ServerlessPublishPolicy.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 49 def initialize(json) super() hash = self.class.normalize(json) @benchmark_object_id = hash[:benchmark_object_id] @kind = hash[:kind] @max_blocks_per_query = hash[:max_blocks_per_query] @max_materialized_bytes_per_query = hash[:max_materialized_bytes_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] @passed = hash[:passed] @reasons = (hash[:reasons] || []) @require_benchmark = hash[:require_benchmark] @require_exact_verification = hash[:require_exact_verification] @require_zero_materialization = hash[:require_zero_materialization] @schema_version = hash[:schema_version] @workload_profile = hash[:workload_profile] end |
Instance Attribute Details
#benchmark_object_id ⇒ Object
Returns the value of attribute benchmark_object_id.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def benchmark_object_id @benchmark_object_id end |
#kind ⇒ Object
Returns the value of attribute kind.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def kind @kind end |
#max_blocks_per_query ⇒ Object
Returns the value of attribute max_blocks_per_query.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def max_blocks_per_query @max_blocks_per_query end |
#max_materialized_bytes_per_query ⇒ Object
Returns the value of attribute max_materialized_bytes_per_query.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def max_materialized_bytes_per_query @max_materialized_bytes_per_query end |
#max_object_bytes_per_query ⇒ Object
Returns the value of attribute max_object_bytes_per_query.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def max_object_bytes_per_query @max_object_bytes_per_query end |
#max_object_reads_per_query ⇒ Object
Returns the value of attribute max_object_reads_per_query.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def max_object_reads_per_query @max_object_reads_per_query end |
#min_byte_reduction_fraction ⇒ Object
Returns the value of attribute min_byte_reduction_fraction.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def min_byte_reduction_fraction @min_byte_reduction_fraction end |
#min_hit_overlap_fraction ⇒ Object
Returns the value of attribute min_hit_overlap_fraction.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def min_hit_overlap_fraction @min_hit_overlap_fraction end |
#min_recall_at_1 ⇒ Object
Returns the value of attribute min_recall_at_1.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def min_recall_at_1 @min_recall_at_1 end |
#min_recall_at_10 ⇒ Object
Returns the value of attribute min_recall_at_10.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def min_recall_at_10 @min_recall_at_10 end |
#min_recall_at_100 ⇒ Object
Returns the value of attribute min_recall_at_100.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def min_recall_at_100 @min_recall_at_100 end |
#passed ⇒ Object
Returns the value of attribute passed.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def passed @passed end |
#reasons ⇒ Object
Returns the value of attribute reasons.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def reasons @reasons end |
#require_benchmark ⇒ Object
Returns the value of attribute require_benchmark.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def require_benchmark @require_benchmark end |
#require_exact_verification ⇒ Object
Returns the value of attribute require_exact_verification.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def require_exact_verification @require_exact_verification end |
#require_zero_materialization ⇒ Object
Returns the value of attribute require_zero_materialization.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def require_zero_materialization @require_zero_materialization end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def schema_version @schema_version end |
#workload_profile ⇒ Object
Returns the value of attribute workload_profile.
29 30 31 |
# File 'lib/rafflesia/proteins/serverless_publish_policy.rb', line 29 def workload_profile @workload_profile end |