summaryrefslogtreecommitdiff
path: root/app/graphql/types/dependency_proxy/image_ttl_group_policy_type.rb
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