summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci_configuration/sast/analyzers_entity_type.rb
blob: 9fdc7c1b0003d4dcd96964af0f2b08af266e5a14 (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
28
# frozen_string_literal: true

module Types
  module CiConfiguration
    module Sast
      # rubocop: disable Graphql/AuthorizeTypes
      class AnalyzersEntityType < BaseObject
        graphql_name 'SastCiConfigurationAnalyzersEntity'
        description 'Represents an analyzer entity in SAST CI configuration'

        field :name, GraphQL::Types::String, null: true,
          description: 'Name of the analyzer.'

        field :label, GraphQL::Types::String, null: true,
          description: 'Analyzer label used in the config UI.'

        field :enabled, GraphQL::Types::Boolean, null: true,
          description: 'Indicates whether an analyzer is enabled.'

        field :description, GraphQL::Types::String, null: true,
          description: 'Analyzer description that is displayed on the form.'

        field :variables, ::Types::CiConfiguration::Sast::EntityType.connection_type, null: true,
          description: 'List of supported variables.'
      end
    end
  end
end