diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /app/graphql/types/release_asset_link_input_type.rb | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) | |
download | gitlab-ce-7e9c479f7de77702622631cff2628a9c8dcbc627.tar.gz |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'app/graphql/types/release_asset_link_input_type.rb')
-rw-r--r-- | app/graphql/types/release_asset_link_input_type.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/graphql/types/release_asset_link_input_type.rb b/app/graphql/types/release_asset_link_input_type.rb new file mode 100644 index 00000000000..d13861fad8f --- /dev/null +++ b/app/graphql/types/release_asset_link_input_type.rb @@ -0,0 +1,25 @@ +# 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, + description: 'Name of the asset link' + + argument :url, GraphQL::STRING_TYPE, + required: true, + description: 'URL of the asset link' + + argument :direct_asset_path, GraphQL::STRING_TYPE, + required: false, as: :filepath, + description: 'Relative path for a direct asset link' + + argument :link_type, Types::ReleaseAssetLinkTypeEnum, + required: false, default_value: 'other', + description: 'The type of the asset link' + end +end |