API generation
This commit is contained in:
@ -12,7 +12,8 @@ function buildMlDeleteDataFrameAnalytics (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'force'
|
||||
'force',
|
||||
'timeout'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
|
||||
@ -13,11 +13,12 @@ function buildMlGetCategories (opts) {
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'from',
|
||||
'size'
|
||||
'size',
|
||||
'partition_field_value'
|
||||
]
|
||||
|
||||
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 {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user