Skip to content

Commit 3c5a795

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 1d725f6 commit 3c5a795

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
@@ -65,4 +65,16 @@ export interface Request extends RequestBase {
6565
*/
6666
timeout?: Duration
6767
}
68+
body?: {
69+
/**
70+
* If provided, must be the same identifier as in the path.
71+
*/
72+
id?: Id
73+
/**
74+
* Controls the amount of time to wait until the data frame analytics job
75+
* starts.
76+
* @server_default 20s
77+
*/
78+
timeout?: Duration
79+
}
6880
}

specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts

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

specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts

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

0 commit comments

Comments
 (0)