Class: Rafflesia::FoldSegmentPublishData

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

Constant Summary collapse

HASH_ATTRS =
{
  activated_at: :activated_at,
  benchmark: :benchmark,
  benchmark_object_id: :benchmark_object_id,
  benchmark_passed: :benchmark_passed,
  block_bytes: :block_bytes,
  block_count: :block_count,
  block_map_object: :block_map_object,
  block_map_object_id: :block_map_object_id,
  dataset_id: :dataset_id,
  dataset_version_number: :dataset_version_number,
  generation_id: :generation_id,
  generation_status: :generation_status,
  manifest_object: :manifest_object,
  manifest_object_id: :manifest_object_id,
  name: :name,
  policy: :policy,
  published_at: :published_at,
  record_count: :record_count,
  ref: :ref,
  retired_at: :retired_at,
  search_benchmark: :search_benchmark,
  search_benchmark_object_id: :search_benchmark_object_id,
  search_benchmark_passed: :search_benchmark_passed,
  segment_id: :segment_id,
  superseded_by_ref: :superseded_by_ref,
  supersedes_ref: :supersedes_ref,
  version: :version,
  workload_profile: :workload_profile
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentPublishData

Returns a new instance of FoldSegmentPublishData.



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 69

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @activated_at = hash[:activated_at]
  @benchmark = hash[:benchmark] ? Rafflesia::FoldSegmentBenchmarkSummary.new(hash[:benchmark]) : nil
  @benchmark_object_id = hash[:benchmark_object_id]
  @benchmark_passed = hash[:benchmark_passed]
  @block_bytes = hash[:block_bytes]
  @block_count = hash[:block_count]
  @block_map_object = hash[:block_map_object] ? Rafflesia::ObjectRef.new(hash[:block_map_object]) : nil
  @block_map_object_id = hash[:block_map_object_id]
  @dataset_id = hash[:dataset_id]
  @dataset_version_number = hash[:dataset_version_number]
  @generation_id = hash[:generation_id]
  @generation_status = hash[:generation_status]
  @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil
  @manifest_object_id = hash[:manifest_object_id]
  @name = hash[:name]
  @policy = hash[:policy] ? Rafflesia::ServerlessPublishPolicy.new(hash[:policy]) : nil
  @published_at = hash[:published_at]
  @record_count = hash[:record_count]
  @ref = hash[:ref]
  @retired_at = hash[:retired_at]
  @search_benchmark = hash[:search_benchmark] ? Rafflesia::FoldSearchBenchmarkSummary.new(hash[:search_benchmark]) : nil
  @search_benchmark_object_id = hash[:search_benchmark_object_id]
  @search_benchmark_passed = hash[:search_benchmark_passed]
  @segment_id = hash[:segment_id]
  @superseded_by_ref = hash[:superseded_by_ref]
  @supersedes_ref = hash[:supersedes_ref]
  @version = hash[:version]
  @workload_profile = hash[:workload_profile]
end

Instance Attribute Details

#activated_atObject

Returns the value of attribute activated_at.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def activated_at
  @activated_at
end

#benchmarkObject

Returns the value of attribute benchmark.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def benchmark
  @benchmark
end

#benchmark_object_idObject

Returns the value of attribute benchmark_object_id.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def benchmark_object_id
  @benchmark_object_id
end

#benchmark_passedObject

Returns the value of attribute benchmark_passed.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def benchmark_passed
  @benchmark_passed
end

#block_bytesObject

Returns the value of attribute block_bytes.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def block_bytes
  @block_bytes
end

#block_countObject

Returns the value of attribute block_count.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def block_count
  @block_count
end

#block_map_objectObject

Returns the value of attribute block_map_object.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def block_map_object
  @block_map_object
end

#block_map_object_idObject

Returns the value of attribute block_map_object_id.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def block_map_object_id
  @block_map_object_id
end

#dataset_idObject

Returns the value of attribute dataset_id.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def dataset_id
  @dataset_id
end

#dataset_version_numberObject

Returns the value of attribute dataset_version_number.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def dataset_version_number
  @dataset_version_number
end

#generation_idObject

Returns the value of attribute generation_id.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def generation_id
  @generation_id
end

#generation_statusObject

Returns the value of attribute generation_status.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def generation_status
  @generation_status
end

#manifest_objectObject

Returns the value of attribute manifest_object.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def manifest_object
  @manifest_object
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def manifest_object_id
  @manifest_object_id
end

#nameObject

Returns the value of attribute name.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def name
  @name
end

#policyObject

Returns the value of attribute policy.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def policy
  @policy
end

#published_atObject

Returns the value of attribute published_at.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def published_at
  @published_at
end

#record_countObject

Returns the value of attribute record_count.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def record_count
  @record_count
end

#refObject

Returns the value of attribute ref.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def ref
  @ref
end

#retired_atObject

Returns the value of attribute retired_at.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def retired_at
  @retired_at
end

#search_benchmarkObject

Returns the value of attribute search_benchmark.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def search_benchmark
  @search_benchmark
end

#search_benchmark_object_idObject

Returns the value of attribute search_benchmark_object_id.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def search_benchmark_object_id
  @search_benchmark_object_id
end

#search_benchmark_passedObject

Returns the value of attribute search_benchmark_passed.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def search_benchmark_passed
  @search_benchmark_passed
end

#segment_idObject

Returns the value of attribute segment_id.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def segment_id
  @segment_id
end

#superseded_by_refObject

Returns the value of attribute superseded_by_ref.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def superseded_by_ref
  @superseded_by_ref
end

#supersedes_refObject

Returns the value of attribute supersedes_ref.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def supersedes_ref
  @supersedes_ref
end

#versionObject

Returns the value of attribute version.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def version
  @version
end

#workload_profileObject

Returns the value of attribute workload_profile.



39
40
41
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39

def workload_profile
  @workload_profile
end