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

blob_action_input_type.rb « snippets « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ccb6ae3f2c1145284b6dd3c67af1fa305a7c9607 (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
# frozen_string_literal: true

module Types
  module Snippets
    class BlobActionInputType < BaseInputObject # rubocop:disable Graphql/AuthorizeTypes
      graphql_name 'SnippetBlobActionInputType'
      description 'Represents an action to perform over a snippet file'

      argument :action, Types::Snippets::BlobActionEnum,
               description: 'Type of input action',
               required: true

      argument :previous_path, GraphQL::STRING_TYPE,
               description: 'Previous path of the snippet file',
               required: false

      argument :file_path, GraphQL::STRING_TYPE,
               description: 'Path of the snippet file',
               required: true

      argument :content, GraphQL::STRING_TYPE,
               description: 'Snippet file content',
               required: false
    end
  end
end