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

rule_package_type_enum.rb « protection « packages « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 28e9df76adc2c8058a69fba8255ca526c2ae465e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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