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

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

module Types
  module ReleaseAssetLinkSharedInputArguments
    extend ActiveSupport::Concern

    included do
      argument :name, GraphQL::Types::String,
             required: true,
             description: 'Name of the asset link.'

      argument :url, GraphQL::Types::String,
             required: true,
             description: 'URL of the asset link.'

      argument :direct_asset_path, GraphQL::Types::String,
             required: false, as: :filepath,
             description: 'Relative path for a direct asset link.'

      argument :link_type, Types::ReleaseAssetLinkTypeEnum,
             required: false, default_value: 'other',
             description: 'Type of the asset link.'
    end
  end
end