Class: API::MlModelPackages

Inherits:
Base
  • Object
show all
Includes:
APIGuard, Helpers::Authentication
Defined in:
lib/api/ml_model_packages.rb

Constant Summary collapse

ML_MODEL_PACKAGES_REQUIREMENTS =
{
  model_name: API::NO_SLASH_URL_PART_REGEX,
  file_name: API::NO_SLASH_URL_PART_REGEX
}.freeze
FAILURES =
[
  { code: 401, message: 'Unauthorized' },
  { code: 403, message: 'Forbidden' },
  { code: 404, message: 'Not Found' }
].freeze
ALLOWED_STATUSES =
%w[default hidden].freeze
CANDIDATE_PREFIX =
'candidate:'

Constants included from Gitlab::EndpointAttributes

Gitlab::EndpointAttributes::DEFAULT_URGENCY

Method Summary

Methods inherited from Base

endpoint_id_for_route, feature_category_for_app, path_for_app, route, urgency_for_app