Skip to content

Commit 4b8077b

Browse files
committed
API generation
1 parent 3e60b67 commit 4b8077b

File tree

5 files changed

+35
-31
lines changed

5 files changed

+35
-31
lines changed

api/api/autoscaling.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ AutoscalingApi.prototype.deleteAutoscalingPolicy = function autoscalingDeleteAut
5858
return this.transport.request(request, options, callback)
5959
}
6060

61-
AutoscalingApi.prototype.getAutoscalingDecision = function autoscalingGetAutoscalingDecisionApi (params, options, callback) {
61+
AutoscalingApi.prototype.getAutoscalingCapacity = function autoscalingGetAutoscalingCapacityApi (params, options, callback) {
6262
;[params, options, callback] = normalizeArguments(params, options, callback)
6363

6464
var { method, body, ...querystring } = params
6565
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
6666

6767
var path = ''
6868
if (method == null) method = 'GET'
69-
path = '/' + '_autoscaling' + '/' + 'decision'
69+
path = '/' + '_autoscaling' + '/' + 'capacity'
7070

7171
// build request object
7272
const request = {
@@ -139,7 +139,7 @@ AutoscalingApi.prototype.putAutoscalingPolicy = function autoscalingPutAutoscali
139139

140140
Object.defineProperties(AutoscalingApi.prototype, {
141141
delete_autoscaling_policy: { get () { return this.deleteAutoscalingPolicy } },
142-
get_autoscaling_decision: { get () { return this.getAutoscalingDecision } },
142+
get_autoscaling_capacity: { get () { return this.getAutoscalingCapacity } },
143143
get_autoscaling_policy: { get () { return this.getAutoscalingPolicy } },
144144
put_autoscaling_policy: { get () { return this.putAutoscalingPolicy } }
145145
})

api/kibana.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ interface KibanaClient {
8282
}
8383
autoscaling: {
8484
deleteAutoscalingPolicy<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingDeleteAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
85-
getAutoscalingDecision<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingDecision, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
85+
getAutoscalingCapacity<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingCapacity, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
8686
getAutoscalingPolicy<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
8787
putAutoscalingPolicy<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingPutAutoscalingPolicy<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
8888
}

api/requestParams.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export interface AutoscalingDeleteAutoscalingPolicy extends Generic {
8989
name: string;
9090
}
9191

92-
export interface AutoscalingGetAutoscalingDecision extends Generic {
92+
export interface AutoscalingGetAutoscalingCapacity extends Generic {
9393
}
9494

9595
export interface AutoscalingGetAutoscalingPolicy extends Generic {

docs/reference.asciidoc

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,13 @@ link:{ref}/autoscaling-delete-autoscaling-policy.html[Documentation] +
353353
|===
354354

355355
[discrete]
356-
=== autoscaling.getAutoscalingDecision
356+
=== autoscaling.getAutoscalingCapacity
357357
*Stability:* experimental
358358
[source,ts]
359359
----
360-
client.autoscaling.getAutoscalingDecision()
360+
client.autoscaling.getAutoscalingCapacity()
361361
----
362-
link:{ref}/autoscaling-get-autoscaling-decision.html[Documentation] +
362+
link:{ref}/autoscaling-get-autoscaling-capacity.html[Documentation] +
363363

364364

365365
[discrete]
@@ -733,7 +733,9 @@ link:{ref}/cat-indices.html[Documentation] +
733733
|`'b' \| 'k' \| 'kb' \| 'm' \| 'mb' \| 'g' \| 'gb' \| 't' \| 'tb' \| 'p' \| 'pb'` - The unit in which to display byte values
734734

735735
|`local`
736-
|`boolean` - Return local information, do not retrieve the state from master node (default: false)
736+
|`boolean` - Return local information, do not retrieve the state from master node (default: false) +
737+
738+
WARNING: This parameter has been deprecated.
737739

738740
|`master_timeout` or `masterTimeout`
739741
|`string` - Explicit operation timeout for connection to master node
@@ -1371,7 +1373,9 @@ link:{ref}/cat-shards.html[Documentation] +
13711373
|`'b' \| 'k' \| 'kb' \| 'm' \| 'mb' \| 'g' \| 'gb' \| 't' \| 'tb' \| 'p' \| 'pb'` - The unit in which to display byte values
13721374

13731375
|`local`
1374-
|`boolean` - Return local information, do not retrieve the state from master node (default: false)
1376+
|`boolean` - Return local information, do not retrieve the state from master node (default: false) +
1377+
1378+
WARNING: This parameter has been deprecated.
13751379

13761380
|`master_timeout` or `masterTimeout`
13771381
|`string` - Explicit operation timeout for connection to master node
@@ -6052,7 +6056,7 @@ link:{ref}/ml-delete-calendar-job.html[Documentation] +
60526056

60536057
[discrete]
60546058
=== ml.deleteDataFrameAnalytics
6055-
*Stability:* experimental
6059+
*Stability:* beta
60566060
[source,ts]
60576061
----
60586062
client.ml.deleteDataFrameAnalytics({
@@ -6220,7 +6224,7 @@ link:{ref}/ml-delete-snapshot.html[Documentation] +
62206224

62216225
[discrete]
62226226
=== ml.deleteTrainedModel
6223-
*Stability:* experimental
6227+
*Stability:* beta
62246228
[source,ts]
62256229
----
62266230
client.ml.deleteTrainedModel({
@@ -6254,7 +6258,7 @@ link:{ref}/ml-apis.html[Documentation] +
62546258

62556259
[discrete]
62566260
=== ml.evaluateDataFrame
6257-
*Stability:* experimental
6261+
*Stability:* beta
62586262
[source,ts]
62596263
----
62606264
client.ml.evaluateDataFrame({
@@ -6271,7 +6275,7 @@ link:{ref}/evaluate-dfanalytics.html[Documentation] +
62716275

62726276
[discrete]
62736277
=== ml.explainDataFrameAnalytics
6274-
*Stability:* experimental
6278+
*Stability:* beta
62756279
[source,ts]
62766280
----
62776281
client.ml.explainDataFrameAnalytics({
@@ -6602,7 +6606,7 @@ link:{ref}/ml-get-category.html[Documentation] +
66026606

66036607
[discrete]
66046608
=== ml.getDataFrameAnalytics
6605-
*Stability:* experimental
6609+
*Stability:* beta
66066610
[source,ts]
66076611
----
66086612
client.ml.getDataFrameAnalytics({
@@ -6637,7 +6641,7 @@ _Default:_ `100`
66376641

66386642
[discrete]
66396643
=== ml.getDataFrameAnalyticsStats
6640-
*Stability:* experimental
6644+
*Stability:* beta
66416645
[source,ts]
66426646
----
66436647
client.ml.getDataFrameAnalyticsStats({
@@ -7023,7 +7027,7 @@ link:{ref}/ml-get-record.html[Documentation] +
70237027

70247028
[discrete]
70257029
=== ml.getTrainedModels
7026-
*Stability:* experimental
7030+
*Stability:* beta
70277031
[source,ts]
70287032
----
70297033
client.ml.getTrainedModels({
@@ -7077,7 +7081,7 @@ _Default:_ `100`
70777081

70787082
[discrete]
70797083
=== ml.getTrainedModelsStats
7080-
*Stability:* experimental
7084+
*Stability:* beta
70817085
[source,ts]
70827086
----
70837087
client.ml.getTrainedModelsStats({
@@ -7244,7 +7248,7 @@ link:{ref}/ml-put-calendar-job.html[Documentation] +
72447248

72457249
[discrete]
72467250
=== ml.putDataFrameAnalytics
7247-
*Stability:* experimental
7251+
*Stability:* beta
72487252
[source,ts]
72497253
----
72507254
client.ml.putDataFrameAnalytics({
@@ -7344,7 +7348,7 @@ link:{ref}/ml-put-job.html[Documentation] +
73447348

73457349
[discrete]
73467350
=== ml.putTrainedModel
7347-
*Stability:* experimental
7351+
*Stability:* beta
73487352
[source,ts]
73497353
----
73507354
client.ml.putTrainedModel({
@@ -7415,7 +7419,7 @@ link:{ref}/ml-set-upgrade-mode.html[Documentation] +
74157419

74167420
[discrete]
74177421
=== ml.startDataFrameAnalytics
7418-
*Stability:* experimental
7422+
*Stability:* beta
74197423
[source,ts]
74207424
----
74217425
client.ml.startDataFrameAnalytics({
@@ -7473,7 +7477,7 @@ link:{ref}/ml-start-datafeed.html[Documentation] +
74737477

74747478
[discrete]
74757479
=== ml.stopDataFrameAnalytics
7476-
*Stability:* experimental
7480+
*Stability:* beta
74777481
[source,ts]
74787482
----
74797483
client.ml.stopDataFrameAnalytics({
@@ -7545,7 +7549,7 @@ WARNING: This parameter has been deprecated.
75457549

75467550
[discrete]
75477551
=== ml.updateDataFrameAnalytics
7548-
*Stability:* experimental
7552+
*Stability:* beta
75497553
[source,ts]
75507554
----
75517555
client.ml.updateDataFrameAnalytics({

index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ declare class Client {
176176
deleteAutoscalingPolicy<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
177177
deleteAutoscalingPolicy<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingDeleteAutoscalingPolicy, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
178178
deleteAutoscalingPolicy<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingDeleteAutoscalingPolicy, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
179-
get_autoscaling_decision<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingDecision, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
180-
get_autoscaling_decision<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
181-
get_autoscaling_decision<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingDecision, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
182-
get_autoscaling_decision<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingDecision, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
183-
getAutoscalingDecision<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingDecision, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
184-
getAutoscalingDecision<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
185-
getAutoscalingDecision<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingDecision, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
186-
getAutoscalingDecision<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingDecision, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
179+
get_autoscaling_capacity<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingCapacity, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
180+
get_autoscaling_capacity<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
181+
get_autoscaling_capacity<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingCapacity, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
182+
get_autoscaling_capacity<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingCapacity, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
183+
getAutoscalingCapacity<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingCapacity, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
184+
getAutoscalingCapacity<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
185+
getAutoscalingCapacity<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingCapacity, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
186+
getAutoscalingCapacity<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingCapacity, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
187187
get_autoscaling_policy<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.AutoscalingGetAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
188188
get_autoscaling_policy<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
189189
get_autoscaling_policy<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.AutoscalingGetAutoscalingPolicy, callback: callbackFn<TResponse, TContext>): TransportRequestCallback

0 commit comments

Comments
 (0)