debian-mirror-gitlab/lib/bulk_imports/groups/graphql/get_group_query.rb
2021-02-22 17:27:13 +05:30

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