API generation

This commit is contained in:
delvedor
2020-06-08 09:30:52 +02:00
parent a84c42c54d
commit 072931f7af
4 changed files with 16 additions and 4 deletions

View File

@ -12,7 +12,8 @@ function buildMlDeleteDataFrameAnalytics (opts) {
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
const acceptedQuerystring = [
'force'
'force',
'timeout'
]
const snakeCase = {

View File

@ -13,11 +13,12 @@ function buildMlGetCategories (opts) {
const acceptedQuerystring = [
'from',
'size'
'size',
'partition_field_value'
]
const snakeCase = {
partitionFieldValue: 'partition_field_value'
}
/**

View File

@ -1777,6 +1777,7 @@ export interface MlDeleteCalendarJob extends Generic {
export interface MlDeleteDataFrameAnalytics extends Generic {
id: string;
force?: boolean;
timeout?: string;
}
export interface MlDeleteDatafeed extends Generic {
@ -1898,6 +1899,7 @@ export interface MlGetCategories<T = RequestBody> extends Generic {
category_id?: number;
from?: number;
size?: number;
partition_field_value?: string;
body?: T;
}

View File

@ -7241,7 +7241,8 @@ link:{ref}/ml-delete-calendar-job.html[Documentation] +
----
client.ml.deleteDataFrameAnalytics({
id: string,
force: boolean
force: boolean,
timeout: string
})
----
link:{ref}/delete-dfanalytics.html[Documentation] +
@ -7253,6 +7254,9 @@ link:{ref}/delete-dfanalytics.html[Documentation] +
|`force`
|`boolean` - True if the job should be forcefully deleted
|`timeout`
|`string` - Controls the time to wait until a job is deleted. Defaults to 1 minute
|===
=== ml.deleteDatafeed
@ -7724,6 +7728,7 @@ client.ml.getCategories({
category_id: number,
from: number,
size: number,
partition_field_value: string,
body: object
})
----
@ -7742,6 +7747,9 @@ link:{ref}/ml-get-category.html[Documentation] +
|`size`
|`number` - specifies a max number of categories to get
|`partition_field_value` or `partitionFieldValue`
|`string` - Specifies the partition to retrieve categories for. This is optional, and should never be used for jobs where per-partition categorization is disabled.
|`body`
|`object` - Category selection details if not provided in URI