2019-07-07 11:18:12 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class MetadataType < ::Types::BaseObject
|
|
|
|
graphql_name 'Metadata'
|
|
|
|
|
|
|
|
authorize :read_instance_metadata
|
|
|
|
|
2021-10-27 15:23:28 +05:30
|
|
|
field :version, GraphQL::Types::String, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Version.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :revision, GraphQL::Types::String, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Revision.'
|
2021-06-08 01:23:25 +05:30
|
|
|
field :kas, ::Types::Metadata::KasType, null: false,
|
|
|
|
description: 'Metadata about KAS.'
|
2019-07-07 11:18:12 +05:30
|
|
|
end
|
|
|
|
end
|