gitlab-org--gitlab-foss/app/graphql/types/ci/config_variable_type.rb

27 lines
757 B
Ruby

# frozen_string_literal: true
module Types
module Ci
class ConfigVariableType < BaseObject # rubocop:disable Graphql/AuthorizeTypes
graphql_name 'CiConfigVariable'
description 'CI/CD config variables.'
field :key, GraphQL::Types::String,
null: true,
description: 'Name of the variable.'
field :description, GraphQL::Types::String,
null: true,
description: 'Description for the CI/CD config variable.'
field :value, GraphQL::Types::String,
null: true,
description: 'Value of the variable.'
field :value_options, [GraphQL::Types::String],
null: true,
description: 'Value options for the variable.'
end
end
end