summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci_configuration/sast/entity_input_type.rb
blob: 9fce120889b335a937aee64052aa5801e361cd3e (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 CiConfiguration
    module Sast
      class EntityInputType < BaseInputObject
        graphql_name 'SastCiConfigurationEntityInput'
        description 'Represents an entity in SAST CI configuration'

        argument :field, GraphQL::STRING_TYPE, required: true,
          description: 'CI keyword of entity.'

        argument :default_value, GraphQL::STRING_TYPE, required: true,
          description: 'Default value that is used if value is empty.'

        argument :value, GraphQL::STRING_TYPE, required: true,
          description: 'Current value of the entity.'
      end
    end
  end
end