Sha256: 37bbd32daaa2b7eb271eb40c1d2683ee2d2dc31069852f5af58e3a3e887f564b

Contents?: true

Size: 913 Bytes

Versions: 32

Compression:

Stored size: 913 Bytes

Contents

object @job_invocation

extends 'api/v2/job_invocations/base'

node do |invocation|
  if invocation.triggering
    case invocation.triggering.mode
    when :recurring
      {:mode => :recurring, :recurrence => partial('foreman_tasks/api/recurring_logics/base', :object => invocation.triggering.recurring_logic)}
    when :future
      {:mode => :future, :scheduling => {:start_at => invocation.triggering.start_at, :start_before => invocation.triggering.start_before }}
    end
  else
    {:mode => :immediate}
  end
end

child :targeting do
  attributes :bookmark_id, :search_query, :targeting_type, :user_id, :status, :status_label

  child :hosts do
    extends 'api/v2/hosts/base'
  end
end

child :task do
  attributes :id, :state
end

child :template_invocations do
  attributes :template_id, :template_name
  child :input_values do
    attributes :template_input_name, :template_input_id, :value
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
foreman_remote_execution-1.8.2 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.8.1 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.8.0 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.7.1 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.7.0 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.6.7 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.6.6 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.6.5 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.6.4 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.5.6 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.6.3 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.6.2 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.5.5 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.6.1 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.6.0 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.5.4 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.5.3 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.5.2 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.5.1 app/views/api/v2/job_invocations/main.json.rabl
foreman_remote_execution-1.5.0 app/views/api/v2/job_invocations/main.json.rabl