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

get_group_query.rb « graphql « groups « bulk_imports « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c50b99aae4e1d43bdb81770bb927b4924c31b6ff (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
# frozen_string_literal: true

module BulkImports
  module Groups
    module Graphql
      module GetGroupQuery
        extend self

        def to_s
          <<-'GRAPHQL'
          query($full_path: ID!) {
            group(fullPath: $full_path) {
              name
              path
              fullPath
              description
              visibility
              emailsDisabled
              lfsEnabled
              mentionsDisabled
              projectCreationLevel
              requestAccessEnabled
              requireTwoFactorAuthentication
              shareWithGroupLock
              subgroupCreationLevel
              twoFactorGracePeriod
            }
          }
          GRAPHQL
        end

        def variables
          { full_path: :source_full_path }
        end
      end
    end
  end
end