summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci_configuration/sast/type.rb
blob: 35d11584ac70f925aae3b8bbaa4fffaca9a44466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module Types
  module CiConfiguration
    module Sast
      # rubocop: disable Graphql/AuthorizeTypes
      class Type < BaseObject
        graphql_name 'SastCiConfiguration'
        description 'Represents a CI configuration of SAST'

        field :global, ::Types::CiConfiguration::Sast::EntityType.connection_type, null: true,
          description: 'List of global entities related to SAST configuration.'

        field :pipeline, ::Types::CiConfiguration::Sast::EntityType.connection_type, null: true,
          description: 'List of pipeline entities related to SAST configuration.'

        field :analyzers, ::Types::CiConfiguration::Sast::AnalyzersEntityType.connection_type, null: true,
          description: 'List of analyzers entities attached to SAST configuration.'
      end
    end
  end
end