Sha256: 7ed5f1cbe9ec0512cd0b743bb38625a301a27aa6be122f7575a467e0560a52c1

Contents?: true

Size: 766 Bytes

Versions: 43

Compression:

Stored size: 766 Bytes

Contents

module Types
  class Task < Types::BaseObject
    description 'A Task'
    model_class ::ForemanTasks::Task

    global_id_field :id
    field :type, String
    field :label, String
    field :started_at, GraphQL::Types::ISO8601DateTime
    field :ended_at, GraphQL::Types::ISO8601DateTime
    field :state, String
    field :result, String
    field :external_id, String
    field :parent_task_id, String
    field :start_at, GraphQL::Types::ISO8601DateTime
    field :start_before, GraphQL::Types::ISO8601DateTime
    field :action, String
    field :user_id, Integer
    field :state_updated_at, GraphQL::Types::ISO8601DateTime

    def self.graphql_definition
      super.tap { |type| type.instance_variable_set(:@name, 'ForemanTasks::Task') }
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
foreman-tasks-10.0.1 app/graphql/types/task.rb
foreman-tasks-10.0.0 app/graphql/types/task.rb
foreman-tasks-9.2.3 app/graphql/types/task.rb
foreman-tasks-9.2.2 app/graphql/types/task.rb
foreman-tasks-9.2.1 app/graphql/types/task.rb
foreman-tasks-9.2.0 app/graphql/types/task.rb
foreman-tasks-9.1.1 app/graphql/types/task.rb
foreman-tasks-9.0.4 app/graphql/types/task.rb
foreman-tasks-9.1.0 app/graphql/types/task.rb
foreman-tasks-9.0.2 app/graphql/types/task.rb
foreman-tasks-9.0.1 app/graphql/types/task.rb
foreman-tasks-8.3.3 app/graphql/types/task.rb
foreman-tasks-9.0.0 app/graphql/types/task.rb
foreman-tasks-8.2.1 app/graphql/types/task.rb
foreman-tasks-8.1.4 app/graphql/types/task.rb
foreman-tasks-8.3.2 app/graphql/types/task.rb
foreman-tasks-8.3.1 app/graphql/types/task.rb
foreman-tasks-8.1.3 app/graphql/types/task.rb
foreman-tasks-8.3.0 app/graphql/types/task.rb
foreman-tasks-8.2.0 app/graphql/types/task.rb