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

model_version_links_type.rb « ml « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 142f62bfad268f34d57387ac9d4bdac335980a1f (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 Ml
    # rubocop: disable Graphql/AuthorizeTypes -- authorization in ModelDetailsResolver
    class ModelVersionLinksType < BaseObject
      graphql_name 'MLModelVersionLinks'
      description 'Represents links to perform actions on the model version'

      present_using ::Ml::ModelVersionPresenter

      field :show_path, GraphQL::Types::String,
        null: true, description: 'Path to the details page of the model version.', method: :path
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end