summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/variable_interface.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/ci/variable_interface.rb')
-rw-r--r--app/graphql/types/ci/variable_interface.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/graphql/types/ci/variable_interface.rb b/app/graphql/types/ci/variable_interface.rb
new file mode 100644
index 00000000000..82c9ba7121c
--- /dev/null
+++ b/app/graphql/types/ci/variable_interface.rb
@@ -0,0 +1,31 @@
+# frozen_string_literal: true
+
+module Types
+ module Ci
+ module VariableInterface
+ include Types::BaseInterface
+
+ graphql_name 'CiVariable'
+
+ field :id, GraphQL::Types::ID,
+ null: false,
+ description: 'ID of the variable.'
+
+ field :key, GraphQL::Types::String,
+ null: true,
+ description: 'Name of the variable.'
+
+ field :value, GraphQL::Types::String,
+ null: true,
+ description: 'Value of the variable.'
+
+ field :variable_type, ::Types::Ci::VariableTypeEnum,
+ null: true,
+ description: 'Type of the variable.'
+
+ field :raw, GraphQL::Types::Boolean,
+ null: true,
+ description: 'Indicates whether the variable is raw.'
+ end
+ end
+end