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

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class RunnerPlatformType < BaseObject
      graphql_name 'RunnerPlatform'

      field :name, GraphQL::STRING_TYPE, null: false,
        description: 'Name slug of the runner platform.'
      field :human_readable_name, GraphQL::STRING_TYPE, null: false,
        description: 'Human readable name of the runner platform.'
      field :architectures, Types::Ci::RunnerArchitectureType.connection_type, null: true,
        description: 'Runner architectures supported for the platform.'
    end
  end
end