Welcome to mirror list, hosted at ThFree Co, Russian Federation.

instance_variable_type.rb « ci « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7ffc52deb739e1bb89b629dbd7e40f5074f49eda (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
29
30
31
32
33
34
35
36
37
38
39
40
41
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class InstanceVariableType < BaseObject
      graphql_name 'CiInstanceVariable'
      description 'CI/CD variables for a GitLab instance.'

      implements(VariableInterface)

      field :id, GraphQL::Types::ID,
            null: false,
            description: 'ID of the variable.'

      field :environment_scope, GraphQL::Types::String,
            null: true,
            deprecated: {
              reason: 'No longer used, only available for GroupVariableType and ProjectVariableType',
              milestone: '15.3'
            },
            description: 'Scope defining the environments that can use the variable.'

      field :protected, GraphQL::Types::Boolean,
            null: true,
            description: 'Indicates whether the variable is protected.'

      field :masked, GraphQL::Types::Boolean,
            null: true,
            description: 'Indicates whether the variable is masked.'

      field :raw, GraphQL::Types::Boolean,
            null: true,
            description: 'Indicates whether the variable is raw.'

      def environment_scope
        nil
      end
    end
  end
end