Skip to content

Commit fc3883a

Browse files
committed
API generation
1 parent 87805fc commit fc3883a

File tree

5 files changed

+49
-33
lines changed

5 files changed

+49
-33
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export interface AutoscalingDeleteAutoscalingPolicy extends Generic {
9191
name: string;
9292
}
9393

94-
export interface AutoscalingGetAutoscalingDecision extends Generic {
94+
export interface AutoscalingGetAutoscalingCapacity extends Generic {
9595
}
9696

9797
export interface AutoscalingGetAutoscalingPolicy extends Generic {
@@ -983,6 +983,7 @@ export interface IndicesDeleteAlias extends Generic {
983983

984984
export interface IndicesDeleteDataStream extends Generic {
985985
name: string | string[];
986+
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
986987
}
987988

988989
export interface IndicesDeleteIndexTemplate extends Generic {
@@ -1090,6 +1091,7 @@ export interface IndicesGetAlias extends Generic {
10901091

10911092
export interface IndicesGetDataStream extends Generic {
10921093
name?: string | string[];
1094+
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
10931095
}
10941096

10951097
export interface IndicesGetFieldMapping extends Generic {

docs/reference.asciidoc

Lines changed: 34 additions & 20 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
@@ -1365,7 +1367,9 @@ link:{ref}/cat-shards.html[Documentation] +
13651367
|`'b' \| 'k' \| 'kb' \| 'm' \| 'mb' \| 'g' \| 'gb' \| 't' \| 'tb' \| 'p' \| 'pb'` - The unit in which to display byte values
13661368

13671369
|`local`
1368-
|`boolean` - Return local information, do not retrieve the state from master node (default: false)
1370+
|`boolean` - Return local information, do not retrieve the state from master node (default: false) +
1371+
1372+
WARNING: This parameter has been deprecated.
13691373

13701374
|`master_timeout` or `masterTimeout`
13711375
|`string` - Explicit operation timeout for connection to master node
@@ -3983,7 +3987,8 @@ link:{ref}/indices-aliases.html[Documentation] +
39833987
[source,ts]
39843988
----
39853989
client.indices.deleteDataStream({
3986-
name: string | string[]
3990+
name: string | string[],
3991+
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
39873992
})
39883993
----
39893994
link:{ref}/data-streams.html[Documentation] +
@@ -3992,6 +3997,10 @@ link:{ref}/data-streams.html[Documentation] +
39923997
|`name`
39933998
|`string \| string[]` - A comma-separated list of data streams to delete; use `*` to delete all data streams
39943999

4000+
|`expand_wildcards` or `expandWildcards`
4001+
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether wildcard expressions should get expanded to open or closed indices (default: open) +
4002+
_Default:_ `open`
4003+
39954004
|===
39964005

39974006
[discrete]
@@ -4432,7 +4441,8 @@ _Default:_ `all`
44324441
[source,ts]
44334442
----
44344443
client.indices.getDataStream({
4435-
name: string | string[]
4444+
name: string | string[],
4445+
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
44364446
})
44374447
----
44384448
link:{ref}/data-streams.html[Documentation] +
@@ -4441,6 +4451,10 @@ link:{ref}/data-streams.html[Documentation] +
44414451
|`name`
44424452
|`string \| string[]` - A comma-separated list of data streams to get; use `*` to get all data streams
44434453

4454+
|`expand_wildcards` or `expandWildcards`
4455+
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether wildcard expressions should get expanded to open or closed indices (default: open) +
4456+
_Default:_ `open`
4457+
44444458
|===
44454459

44464460
[discrete]
@@ -5904,7 +5918,7 @@ link:{ref}/ml-delete-calendar-job.html[Documentation] +
59045918

59055919
[discrete]
59065920
=== ml.deleteDataFrameAnalytics
5907-
*Stability:* experimental
5921+
*Stability:* beta
59085922
[source,ts]
59095923
----
59105924
client.ml.deleteDataFrameAnalytics({
@@ -6072,7 +6086,7 @@ link:{ref}/ml-delete-snapshot.html[Documentation] +
60726086

60736087
[discrete]
60746088
=== ml.deleteTrainedModel
6075-
*Stability:* experimental
6089+
*Stability:* beta
60766090
[source,ts]
60776091
----
60786092
client.ml.deleteTrainedModel({
@@ -6106,7 +6120,7 @@ link:{ref}/ml-apis.html[Documentation] +
61066120

61076121
[discrete]
61086122
=== ml.evaluateDataFrame
6109-
*Stability:* experimental
6123+
*Stability:* beta
61106124
[source,ts]
61116125
----
61126126
client.ml.evaluateDataFrame({
@@ -6123,7 +6137,7 @@ link:{ref}/evaluate-dfanalytics.html[Documentation] +
61236137

61246138
[discrete]
61256139
=== ml.explainDataFrameAnalytics
6126-
*Stability:* experimental
6140+
*Stability:* beta
61276141
[source,ts]
61286142
----
61296143
client.ml.explainDataFrameAnalytics({
@@ -6454,7 +6468,7 @@ link:{ref}/ml-get-category.html[Documentation] +
64546468

64556469
[discrete]
64566470
=== ml.getDataFrameAnalytics
6457-
*Stability:* experimental
6471+
*Stability:* beta
64586472
[source,ts]
64596473
----
64606474
client.ml.getDataFrameAnalytics({
@@ -6489,7 +6503,7 @@ _Default:_ `100`
64896503

64906504
[discrete]
64916505
=== ml.getDataFrameAnalyticsStats
6492-
*Stability:* experimental
6506+
*Stability:* beta
64936507
[source,ts]
64946508
----
64956509
client.ml.getDataFrameAnalyticsStats({
@@ -6875,7 +6889,7 @@ link:{ref}/ml-get-record.html[Documentation] +
68756889

68766890
[discrete]
68776891
=== ml.getTrainedModels
6878-
*Stability:* experimental
6892+
*Stability:* beta
68796893
[source,ts]
68806894
----
68816895
client.ml.getTrainedModels({
@@ -6929,7 +6943,7 @@ _Default:_ `100`
69296943

69306944
[discrete]
69316945
=== ml.getTrainedModelsStats
6932-
*Stability:* experimental
6946+
*Stability:* beta
69336947
[source,ts]
69346948
----
69356949
client.ml.getTrainedModelsStats({
@@ -7096,7 +7110,7 @@ link:{ref}/ml-put-calendar-job.html[Documentation] +
70967110

70977111
[discrete]
70987112
=== ml.putDataFrameAnalytics
7099-
*Stability:* experimental
7113+
*Stability:* beta
71007114
[source,ts]
71017115
----
71027116
client.ml.putDataFrameAnalytics({
@@ -7196,7 +7210,7 @@ link:{ref}/ml-put-job.html[Documentation] +
71967210

71977211
[discrete]
71987212
=== ml.putTrainedModel
7199-
*Stability:* experimental
7213+
*Stability:* beta
72007214
[source,ts]
72017215
----
72027216
client.ml.putTrainedModel({
@@ -7267,7 +7281,7 @@ link:{ref}/ml-set-upgrade-mode.html[Documentation] +
72677281

72687282
[discrete]
72697283
=== ml.startDataFrameAnalytics
7270-
*Stability:* experimental
7284+
*Stability:* beta
72717285
[source,ts]
72727286
----
72737287
client.ml.startDataFrameAnalytics({
@@ -7325,7 +7339,7 @@ link:{ref}/ml-start-datafeed.html[Documentation] +
73257339

73267340
[discrete]
73277341
=== ml.stopDataFrameAnalytics
7328-
*Stability:* experimental
7342+
*Stability:* beta
73297343
[source,ts]
73307344
----
73317345
client.ml.stopDataFrameAnalytics({
@@ -7397,7 +7411,7 @@ WARNING: This parameter has been deprecated.
73977411

73987412
[discrete]
73997413
=== ml.updateDataFrameAnalytics
7400-
*Stability:* experimental
7414+
*Stability:* beta
74017415
[source,ts]
74027416
----
74037417
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)