API generation
This commit is contained in:
@ -12,7 +12,8 @@ function buildMlDeleteDataFrameAnalytics (opts) {
|
|||||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
const acceptedQuerystring = [
|
||||||
'force'
|
'force',
|
||||||
|
'timeout'
|
||||||
]
|
]
|
||||||
|
|
||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
|
|||||||
@ -13,11 +13,12 @@ function buildMlGetCategories (opts) {
|
|||||||
|
|
||||||
const acceptedQuerystring = [
|
const acceptedQuerystring = [
|
||||||
'from',
|
'from',
|
||||||
'size'
|
'size',
|
||||||
|
'partition_field_value'
|
||||||
]
|
]
|
||||||
|
|
||||||
const snakeCase = {
|
const snakeCase = {
|
||||||
|
partitionFieldValue: 'partition_field_value'
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
2
api/requestParams.d.ts
vendored
2
api/requestParams.d.ts
vendored
@ -1777,6 +1777,7 @@ export interface MlDeleteCalendarJob extends Generic {
|
|||||||
export interface MlDeleteDataFrameAnalytics extends Generic {
|
export interface MlDeleteDataFrameAnalytics extends Generic {
|
||||||
id: string;
|
id: string;
|
||||||
force?: boolean;
|
force?: boolean;
|
||||||
|
timeout?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MlDeleteDatafeed extends Generic {
|
export interface MlDeleteDatafeed extends Generic {
|
||||||
@ -1898,6 +1899,7 @@ export interface MlGetCategories<T = RequestBody> extends Generic {
|
|||||||
category_id?: number;
|
category_id?: number;
|
||||||
from?: number;
|
from?: number;
|
||||||
size?: number;
|
size?: number;
|
||||||
|
partition_field_value?: string;
|
||||||
body?: T;
|
body?: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -7241,7 +7241,8 @@ link:{ref}/ml-delete-calendar-job.html[Documentation] +
|
|||||||
----
|
----
|
||||||
client.ml.deleteDataFrameAnalytics({
|
client.ml.deleteDataFrameAnalytics({
|
||||||
id: string,
|
id: string,
|
||||||
force: boolean
|
force: boolean,
|
||||||
|
timeout: string
|
||||||
})
|
})
|
||||||
----
|
----
|
||||||
link:{ref}/delete-dfanalytics.html[Documentation] +
|
link:{ref}/delete-dfanalytics.html[Documentation] +
|
||||||
@ -7253,6 +7254,9 @@ link:{ref}/delete-dfanalytics.html[Documentation] +
|
|||||||
|`force`
|
|`force`
|
||||||
|`boolean` - True if the job should be forcefully deleted
|
|`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
|
=== ml.deleteDatafeed
|
||||||
@ -7724,6 +7728,7 @@ client.ml.getCategories({
|
|||||||
category_id: number,
|
category_id: number,
|
||||||
from: number,
|
from: number,
|
||||||
size: number,
|
size: number,
|
||||||
|
partition_field_value: string,
|
||||||
body: object
|
body: object
|
||||||
})
|
})
|
||||||
----
|
----
|
||||||
@ -7742,6 +7747,9 @@ link:{ref}/ml-get-category.html[Documentation] +
|
|||||||
|`size`
|
|`size`
|
||||||
|`number` - specifies a max number of categories to get
|
|`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`
|
|`body`
|
||||||
|`object` - Category selection details if not provided in URI
|
|`object` - Category selection details if not provided in URI
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user