API generation

This commit is contained in:
delvedor
2021-08-11 12:00:42 +02:00
parent 516f52e303
commit 7c59eda3db
4 changed files with 33 additions and 22 deletions

View File

@ -1056,6 +1056,10 @@ MlApi.prototype.inferTrainedModelDeployment = function mlInferTrainedModelDeploy
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
return handleError(err, callback)
}
if (params.body == null) {
const err = new this[kConfigurationError]('Missing required parameter: body')
return handleError(err, callback)
}
let { method, body, modelId, model_id, ...querystring } = params
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)

View File

@ -1737,9 +1737,10 @@ export interface MlGetTrainedModelsStats extends Generic {
size?: number;
}
export interface MlInferTrainedModelDeployment extends Generic {
export interface MlInferTrainedModelDeployment<T = RequestBody> extends Generic {
model_id: string;
timeout?: string;
body: T;
}
export interface MlInfo extends Generic {