2020-11-11 00:08:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
|
|
|
class ReleaseAssetLinkInputType < BaseInputObject
|
|
|
|
graphql_name 'ReleaseAssetLinkInput'
|
|
|
|
description 'Fields that are available when modifying a release asset link'
|
|
|
|
|
|
|
|
argument :name, GraphQL::STRING_TYPE,
|
|
|
|
required: true,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Name of the asset link.'
|
2020-11-11 00:08:58 +00:00
|
|
|
|
|
|
|
argument :url, GraphQL::STRING_TYPE,
|
|
|
|
required: true,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'URL of the asset link.'
|
2020-11-11 00:08:58 +00:00
|
|
|
|
|
|
|
argument :direct_asset_path, GraphQL::STRING_TYPE,
|
|
|
|
required: false, as: :filepath,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Relative path for a direct asset link.'
|
2020-11-11 00:08:58 +00:00
|
|
|
|
|
|
|
argument :link_type, Types::ReleaseAssetLinkTypeEnum,
|
|
|
|
required: false, default_value: 'other',
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'The type of the asset link.'
|
2020-11-11 00:08:58 +00:00
|
|
|
end
|
|
|
|
end
|