summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/runner_membership_filter_enum.rb
blob: d59a68b427b442e068273b603363ee0714a8ffc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

module Types
  module Ci
    class RunnerMembershipFilterEnum < BaseEnum
      graphql_name 'CiRunnerMembershipFilter'
      description 'Values for filtering runners in namespaces. ' \
        'The previous type name `RunnerMembershipFilter` was deprecated in 15.4.'

      value 'DIRECT',
            description: "Include runners that have a direct relationship.",
            value: :direct

      value 'DESCENDANTS',
            description: "Include runners that have either a direct or inherited relationship. " \
              "These runners can be specific to a project or a group.",
            value: :descendants

      value 'ALL_AVAILABLE',
            description:
                           "Include all runners. This list includes runners for all projects in the group " \
                           "and subgroups, as well as for the parent groups and instance.",
            value: :all_available,
            deprecated: { milestone: '15.5', reason: :alpha }
    end
  end
end