summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/job_token_scope/direction_enum.rb
blob: f52cf891af8ffa6fa88a6b1b8d34b0bfefc1ad34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Types
  module Ci
    module JobTokenScope
      class DirectionEnum < BaseEnum
        graphql_name 'CiJobTokenScopeDirection'
        description 'Direction of access.'

        value 'OUTBOUND',
          value: :outbound,
          description: 'Job token scope project can access target project in the outbound allowlist.'

        value 'INBOUND',
          value: :inbound,
          description: 'Target projects in the inbound allowlist can access the scope project ' \
                       'through their job tokens.'
      end
    end
  end
end