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

policy_type.rb « cleanup « packages « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f08aace7df9f1ab226cc2172d87cbe631caf9745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Types
  module Packages
    module Cleanup
      class PolicyType < ::Types::BaseObject
        graphql_name 'PackagesCleanupPolicy'
        description 'A packages cleanup policy designed to keep only packages and packages assets that matter most'

        authorize :admin_package

        field :keep_n_duplicated_package_files,
              Types::Packages::Cleanup::KeepDuplicatedPackageFilesEnum,
              null: false,
              description: 'Number of duplicated package files to retain.'
        field :next_run_at,
              Types::TimeType,
              null: true,
              description: 'Next time that this packages cleanup policy will be executed.'
      end
    end
  end
end