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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-10 15:11:37 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-10 15:11:37 +0300
commite0e89248c50c2a2fd1f7a7628c7e9fc1e08b3b89 (patch)
treed2dcdd0800853d5353118a7a9242386524702529 /app/graphql/types/packages/protection/rule_package_type_enum.rb
parent0e6368a09e498dd3f2a02dd99dfac53036bb15f6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types/packages/protection/rule_package_type_enum.rb')
-rw-r--r--app/graphql/types/packages/protection/rule_package_type_enum.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/graphql/types/packages/protection/rule_package_type_enum.rb b/app/graphql/types/packages/protection/rule_package_type_enum.rb
new file mode 100644
index 00000000000..28e9df76adc
--- /dev/null
+++ b/app/graphql/types/packages/protection/rule_package_type_enum.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module Types
+ module Packages
+ module Protection
+ class RulePackageTypeEnum < BaseEnum
+ graphql_name 'PackagesProtectionRulePackageType'
+ description 'Package type of a package protection rule resource'
+
+ ::Packages::Protection::Rule.package_types.each_key do |package_type|
+ value package_type.upcase, value: package_type,
+ description: "Packages of the #{package_type} format"
+ end
+ end
+ end
+ end
+end