API generation
This commit is contained in:
@ -1056,6 +1056,10 @@ MlApi.prototype.inferTrainedModelDeployment = function mlInferTrainedModelDeploy
|
|||||||
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
||||||
return handleError(err, callback)
|
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
|
let { method, body, modelId, model_id, ...querystring } = params
|
||||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||||
|
|||||||
3
api/requestParams.d.ts
vendored
3
api/requestParams.d.ts
vendored
@ -1737,9 +1737,10 @@ export interface MlGetTrainedModelsStats extends Generic {
|
|||||||
size?: number;
|
size?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MlInferTrainedModelDeployment extends Generic {
|
export interface MlInferTrainedModelDeployment<T = RequestBody> extends Generic {
|
||||||
model_id: string;
|
model_id: string;
|
||||||
timeout?: string;
|
timeout?: string;
|
||||||
|
body: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MlInfo extends Generic {
|
export interface MlInfo extends Generic {
|
||||||
|
|||||||
@ -1949,7 +1949,7 @@ link:{ref}/cluster-allocation-explain.html[Documentation] +
|
|||||||
|`boolean` - Return information about disk usage and shard sizes (default: false)
|
|`boolean` - Return information about disk usage and shard sizes (default: false)
|
||||||
|
|
||||||
|`body`
|
|`body`
|
||||||
|`object` - The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'
|
|`object` - The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard'
|
||||||
|
|
||||||
|===
|
|===
|
||||||
|
|
||||||
@ -7144,17 +7144,22 @@ _Default:_ `100`
|
|||||||
----
|
----
|
||||||
client.ml.inferTrainedModelDeployment({
|
client.ml.inferTrainedModelDeployment({
|
||||||
model_id: string,
|
model_id: string,
|
||||||
timeout: string
|
timeout: string,
|
||||||
|
body: object
|
||||||
})
|
})
|
||||||
----
|
----
|
||||||
link:{ref}/ml-df-analytics-apis.html[Documentation] +
|
link:{ref}/infer-trained-model-deployment.html[Documentation] +
|
||||||
[cols=2*]
|
[cols=2*]
|
||||||
|===
|
|===
|
||||||
|`model_id` or `modelId`
|
|`model_id` or `modelId`
|
||||||
|`string` - The ID of the model to perform inference on
|
|`string` - The unique identifier of the trained model.
|
||||||
|
|
||||||
|`timeout`
|
|`timeout`
|
||||||
|`string` - Controls the time to wait for the inference result
|
|`string` - Controls the amount of time to wait for inference results. +
|
||||||
|
_Default:_ `10s`
|
||||||
|
|
||||||
|
|`body`
|
||||||
|
|`object` - The input text to be evaluated.
|
||||||
|
|
||||||
|===
|
|===
|
||||||
|
|
||||||
@ -7621,14 +7626,15 @@ client.ml.startTrainedModelDeployment({
|
|||||||
timeout: string
|
timeout: string
|
||||||
})
|
})
|
||||||
----
|
----
|
||||||
link:{ref}/ml-df-analytics-apis.html[Documentation] +
|
link:{ref}/start-trained-model-deployment.html[Documentation] +
|
||||||
[cols=2*]
|
[cols=2*]
|
||||||
|===
|
|===
|
||||||
|`model_id` or `modelId`
|
|`model_id` or `modelId`
|
||||||
|`string` - The ID of the model to deploy
|
|`string` - The unique identifier of the trained model.
|
||||||
|
|
||||||
|`timeout`
|
|`timeout`
|
||||||
|`string` - Controls the time to wait until the model is deployed
|
|`string` - Controls the amount of time to wait for the model to deploy. +
|
||||||
|
_Default:_ `20s`
|
||||||
|
|
||||||
|===
|
|===
|
||||||
|
|
||||||
@ -7713,11 +7719,11 @@ client.ml.stopTrainedModelDeployment({
|
|||||||
model_id: string
|
model_id: string
|
||||||
})
|
})
|
||||||
----
|
----
|
||||||
link:{ref}/ml-df-analytics-apis.html[Documentation] +
|
link:{ref}/stop-trained-model-deployment.html[Documentation] +
|
||||||
[cols=2*]
|
[cols=2*]
|
||||||
|===
|
|===
|
||||||
|`model_id` or `modelId`
|
|`model_id` or `modelId`
|
||||||
|`string` - The ID of the model to undeploy
|
|`string` - The unique identifier of the trained model.
|
||||||
|
|
||||||
|===
|
|===
|
||||||
|
|
||||||
@ -10603,7 +10609,7 @@ client.sql.clearCursor({
|
|||||||
body: object
|
body: object
|
||||||
})
|
})
|
||||||
----
|
----
|
||||||
link:{ref}/sql-pagination.html[Documentation] +
|
link:{ref}/clear-sql-cursor-api.html[Documentation] +
|
||||||
[cols=2*]
|
[cols=2*]
|
||||||
|===
|
|===
|
||||||
|`body`
|
|`body`
|
||||||
@ -10690,7 +10696,7 @@ client.sql.query({
|
|||||||
body: object
|
body: object
|
||||||
})
|
})
|
||||||
----
|
----
|
||||||
link:{ref}/sql-rest-overview.html[Documentation] +
|
link:{ref}/sql-search-api.html[Documentation] +
|
||||||
{jsclient}/sql_query_examples.html[Code Example] +
|
{jsclient}/sql_query_examples.html[Code Example] +
|
||||||
[cols=2*]
|
[cols=2*]
|
||||||
|===
|
|===
|
||||||
@ -10711,7 +10717,7 @@ client.sql.translate({
|
|||||||
body: object
|
body: object
|
||||||
})
|
})
|
||||||
----
|
----
|
||||||
link:{ref}/sql-translate.html[Documentation] +
|
link:{ref}/sql-translate-api.html[Documentation] +
|
||||||
[cols=2*]
|
[cols=2*]
|
||||||
|===
|
|===
|
||||||
|`body`
|
|`body`
|
||||||
|
|||||||
16
index.d.ts
vendored
16
index.d.ts
vendored
@ -1650,14 +1650,14 @@ declare class Client {
|
|||||||
getTrainedModelsStats<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
getTrainedModelsStats<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
getTrainedModelsStats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlGetTrainedModelsStats, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
getTrainedModelsStats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlGetTrainedModelsStats, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
getTrainedModelsStats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlGetTrainedModelsStats, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
getTrainedModelsStats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlGetTrainedModelsStats, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
infer_trained_model_deployment<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlInferTrainedModelDeployment, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
infer_trained_model_deployment<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlInferTrainedModelDeployment<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||||
infer_trained_model_deployment<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
infer_trained_model_deployment<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
infer_trained_model_deployment<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlInferTrainedModelDeployment, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
infer_trained_model_deployment<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlInferTrainedModelDeployment<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
infer_trained_model_deployment<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlInferTrainedModelDeployment, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
infer_trained_model_deployment<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlInferTrainedModelDeployment<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
inferTrainedModelDeployment<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlInferTrainedModelDeployment, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
inferTrainedModelDeployment<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlInferTrainedModelDeployment<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||||
inferTrainedModelDeployment<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
inferTrainedModelDeployment<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
inferTrainedModelDeployment<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlInferTrainedModelDeployment, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
inferTrainedModelDeployment<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlInferTrainedModelDeployment<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
inferTrainedModelDeployment<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlInferTrainedModelDeployment, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
inferTrainedModelDeployment<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlInferTrainedModelDeployment<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
info<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlInfo, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
info<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlInfo, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||||
info<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
info<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
info<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlInfo, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
info<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlInfo, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||||
|
|||||||
Reference in New Issue
Block a user