2021-01-19 21:10:45 +00:00
|
|
|
# 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'
|
|
|
|
|
2021-07-26 12:10:08 +00:00
|
|
|
field :name, GraphQL::Types::String, null: true,
|
2021-01-19 21:10:45 +00:00
|
|
|
description: 'Name of the analyzer.'
|
|
|
|
|
2021-07-26 12:10:08 +00:00
|
|
|
field :label, GraphQL::Types::String, null: true,
|
2021-01-19 21:10:45 +00:00
|
|
|
description: 'Analyzer label used in the config UI.'
|
|
|
|
|
2021-07-26 12:10:08 +00:00
|
|
|
field :enabled, GraphQL::Types::Boolean, null: true,
|
2021-01-19 21:10:45 +00:00
|
|
|
description: 'Indicates whether an analyzer is enabled.'
|
|
|
|
|
2021-07-26 12:10:08 +00:00
|
|
|
field :description, GraphQL::Types::String, null: true,
|
2021-01-19 21:10:45 +00:00
|
|
|
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
|