Class: Cadenya::Types::CompactObjectiveRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::CompactObjectiveRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#compaction_config ⇒ Object
readonly
Returns the value of attribute compaction_config.
-
#objective_id ⇒ Object
readonly
Returns the value of attribute objective_id.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, objective_id: nil, compaction_config: nil) ⇒ CompactObjectiveRequest
constructor
A new instance of CompactObjectiveRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, objective_id: nil, compaction_config: nil) ⇒ CompactObjectiveRequest
Returns a new instance of CompactObjectiveRequest.
1166 1167 1168 1169 1170 |
# File 'lib/cadenya/types.rb', line 1166 def initialize(workspace_id: nil, objective_id: nil, compaction_config: nil) @workspace_id = workspace_id @objective_id = objective_id @compaction_config = compaction_config end |
Instance Attribute Details
#compaction_config ⇒ Object (readonly)
Returns the value of attribute compaction_config.
1164 1165 1166 |
# File 'lib/cadenya/types.rb', line 1164 def compaction_config @compaction_config end |
#objective_id ⇒ Object (readonly)
Returns the value of attribute objective_id.
1164 1165 1166 |
# File 'lib/cadenya/types.rb', line 1164 def objective_id @objective_id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
1164 1165 1166 |
# File 'lib/cadenya/types.rb', line 1164 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
1172 1173 1174 1175 1176 1177 1178 |
# File 'lib/cadenya/types.rb', line 1172 def self.from_json(data) new( workspace_id: data["workspaceId"], objective_id: data["objectiveId"], compaction_config: data["compactionConfig"].nil? ? nil : Types::AgentVariationSpec_CompactionConfig.from_json(data["compactionConfig"]), ) end |