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

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

module Types
  module Packages
    module Conan
      class MetadatumType < BaseObject
        graphql_name 'ConanMetadata'
        description 'Conan metadata'

        authorize :read_package

        field :id, ::Types::GlobalIDType[::Packages::Conan::Metadatum], null: false, description: 'ID of the metadatum.'
        field :created_at, Types::TimeType, null: false, description: 'Date of creation.'
        field :updated_at, Types::TimeType, null: false, description: 'Date of most recent update.'
        field :package_username, GraphQL::STRING_TYPE, null: false, description: 'Username of the Conan package.'
        field :package_channel, GraphQL::STRING_TYPE, null: false, description: 'Channel of the Conan package.'
        field :recipe, GraphQL::STRING_TYPE, null: false, description: 'Recipe of the Conan package.'
        field :recipe_path, GraphQL::STRING_TYPE, null: false, description: 'Recipe path of the Conan package.'
      end
    end
  end
end