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

image_ttl_group_policy_type.rb « dependency_proxy « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 29bba7122d07305cc6a379578b86be21f972ec39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Types
  class DependencyProxy::ImageTtlGroupPolicyType < BaseObject
    graphql_name 'DependencyProxyImageTtlGroupPolicy'

    description 'Group-level Dependency Proxy TTL policy settings'

    authorize :read_dependency_proxy

    field :enabled, GraphQL::Types::Boolean, null: false, description: 'Indicates whether the policy is enabled or disabled.'
    field :ttl, GraphQL::Types::Int, null: true, description: 'Number of days to retain a cached image file.'
    field :created_at, Types::TimeType, null: true, description: 'Timestamp of creation.'
    field :updated_at, Types::TimeType, null: true, description: 'Timestamp of the most recent update.'
  end
end