Class: Rafflesia::CreateRolloutGroupRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_idObject

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_idObject

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_countObject

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

#executionObject

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

#metadataObject

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_idObject

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_startObject

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_secondsObject

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