summaryrefslogtreecommitdiff
path: root/app/graphql/types/metadata_type.rb
blob: 6fb141a50c91ffcb050556698075f95094b32f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Types
  class MetadataType < ::Types::BaseObject
    graphql_name 'Metadata'

    authorize :read_instance_metadata

    field :kas, ::Types::Metadata::KasType, null: false,
          description: 'Metadata about KAS.'
    field :revision, GraphQL::Types::String, null: false,
          description: 'Revision.'
    field :version, GraphQL::Types::String, null: false,
          description: 'Version.'
  end
end