Class: Rafflesia::CreateRolloutGroupRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CreateRolloutGroupRequest
- Defined in:
- lib/rafflesia/rollout_groups/create_rollout_group_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ environment_release_id: :environment_release_id, environment_task_id: :environment_task_id, episode_count: :episode_count, execution: :execution, metadata: :metadata, runtime_profile_id: :runtime_profile_id, seed_start: :seed_start, timeout_seconds: :timeout_seconds }.freeze
Instance Attribute Summary collapse
-
#environment_release_id ⇒ Object
Returns the value of attribute environment_release_id.
-
#environment_task_id ⇒ Object
Returns the value of attribute environment_task_id.
-
#episode_count ⇒ Object
Returns the value of attribute episode_count.
-
#execution ⇒ Object
Returns the value of attribute execution.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#runtime_profile_id ⇒ Object
Returns the value of attribute runtime_profile_id.
-
#seed_start ⇒ Object
Returns the value of attribute seed_start.
-
#timeout_seconds ⇒ Object
Returns the value of attribute timeout_seconds.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateRolloutGroupRequest
constructor
A new instance of CreateRolloutGroupRequest.
Constructor Details
#initialize(json) ⇒ CreateRolloutGroupRequest
Returns a new instance of CreateRolloutGroupRequest.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @environment_release_id = hash[:environment_release_id] @environment_task_id = hash[:environment_task_id] @episode_count = hash[:episode_count] @execution = hash[:execution] ? Rafflesia::ExecutionSpec.new(hash[:execution]) : nil @metadata = hash[:metadata] || {} @runtime_profile_id = hash[:runtime_profile_id] @seed_start = hash[:seed_start] @timeout_seconds = hash[:timeout_seconds] end |
Instance Attribute Details
#environment_release_id ⇒ Object
Returns the value of attribute environment_release_id.
19 20 21 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 19 def environment_release_id @environment_release_id end |
#environment_task_id ⇒ Object
Returns the value of attribute environment_task_id.
19 20 21 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 19 def environment_task_id @environment_task_id end |
#episode_count ⇒ Object
Returns the value of attribute episode_count.
19 20 21 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 19 def episode_count @episode_count end |
#execution ⇒ Object
Returns the value of attribute execution.
19 20 21 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 19 def execution @execution end |
#metadata ⇒ Object
Returns the value of attribute metadata.
19 20 21 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 19 def @metadata end |
#runtime_profile_id ⇒ Object
Returns the value of attribute runtime_profile_id.
19 20 21 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 19 def runtime_profile_id @runtime_profile_id end |
#seed_start ⇒ Object
Returns the value of attribute seed_start.
19 20 21 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 19 def seed_start @seed_start end |
#timeout_seconds ⇒ Object
Returns the value of attribute timeout_seconds.
19 20 21 |
# File 'lib/rafflesia/rollout_groups/create_rollout_group_request.rb', line 19 def timeout_seconds @timeout_seconds end |