38 lines
842 B
Ruby
38 lines
842 B
Ruby
# 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(entity)
|
|
{ full_path: entity.source_full_path }
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|