Skip to content

Commit 2894d26

Browse files
pquentingithub-actions[bot]
authored andcommitted
Add optional request bodies to three ML APIs (#5752)
* Add optional body to three ML APIs * Fix lint (cherry picked from commit 650c9f1)
1 parent 21d0c41 commit 2894d26

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,16 @@ export interface Request extends RequestBase {
6666
*/
6767
timeout?: Duration
6868
}
69+
body?: {
70+
/**
71+
* If provided, must be the same identifier as in the path.
72+
*/
73+
id?: Id
74+
/**
75+
* Controls the amount of time to wait until the data frame analytics job
76+
* starts.
77+
* @server_default 20s
78+
*/
79+
timeout?: Duration
80+
}
6981
}

specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,36 @@ export interface Request extends RequestBase {
7676
*/
7777
timeout?: Duration
7878
}
79+
body?: {
80+
/**
81+
* If provided, must be the same identifier as in the path.
82+
*/
83+
id?: Id
84+
/**
85+
* Specifies what to do when the request:
86+
*
87+
* 1. Contains wildcard expressions and there are no data frame analytics
88+
* jobs that match.
89+
* 2. Contains the _all string or no identifiers and there are no matches.
90+
* 3. Contains wildcard expressions and there are only partial matches.
91+
*
92+
* The default value is true, which returns an empty data_frame_analytics
93+
* array when there are no matches and the subset of results when there are
94+
* partial matches. If this parameter is false, the request returns a 404
95+
* status code when there are no matches or only partial matches.
96+
* @server_default true
97+
*/
98+
allow_no_match?: boolean
99+
/**
100+
* If true, the data frame analytics job is stopped forcefully.
101+
* @server_default false
102+
*/
103+
force?: boolean
104+
/**
105+
* Controls the amount of time to wait until the data frame analytics job
106+
* stops. Defaults to 20 seconds.
107+
* @server_default 20s
108+
*/
109+
timeout?: Duration
110+
}
79111
}

specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,24 @@ export interface Request extends RequestBase {
5959
*/
6060
force?: boolean
6161
}
62+
body?: {
63+
/**
64+
* If provided, must be the same identifier as in the path.
65+
*/
66+
id?: Id
67+
/**
68+
* Specifies what to do when the request: contains wildcard expressions and there are no deployments that match;
69+
* contains the `_all` string or no identifiers and there are no matches; or contains wildcard expressions and
70+
* there are only partial matches. By default, it returns an empty array when there are no matches and the subset of results when there are partial matches.
71+
* If `false`, the request returns a 404 status code when there are no matches or only partial matches.
72+
* @server_default true
73+
*/
74+
allow_no_match?: boolean
75+
/**
76+
* Forcefully stops the deployment, even if it is used by ingest pipelines. You can't use these pipelines until you
77+
* restart the model deployment.
78+
* @server_default false
79+
*/
80+
force?: boolean
81+
}
6282
}

0 commit comments

Comments
 (0)