Skip to content

Commit 733f3a3

Browse files
authored
Fix update_by_query_rethrottle Response (#316)
1 parent 493ca82 commit 733f3a3

File tree

4 files changed

+215
-1
lines changed

4 files changed

+215
-1
lines changed

output/schema/schema.json

Lines changed: 151 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11164,7 +11164,10 @@
1116411164
"namespace": "document.multiple.update_by_query_rethrottle"
1116511165
},
1116611166
"requestBodyRequired": false,
11167-
"response": null,
11167+
"response": {
11168+
"name": "UpdateByQueryRethrottleResponse",
11169+
"namespace": "document.multiple.update_by_query_rethrottle"
11170+
},
1116811171
"since": "6.5.0",
1116911172
"stability": "stable",
1117011173
"urls": [
@@ -125084,6 +125087,115 @@
125084125087
}
125085125088
]
125086125089
},
125090+
{
125091+
"kind": "interface",
125092+
"name": {
125093+
"name": "UpdateByQueryRethrottleNode",
125094+
"namespace": "document.multiple.update_by_query_rethrottle"
125095+
},
125096+
"properties": [
125097+
{
125098+
"name": "attributes",
125099+
"required": true,
125100+
"type": {
125101+
"key": {
125102+
"kind": "instance_of",
125103+
"type": {
125104+
"name": "string",
125105+
"namespace": "internal"
125106+
}
125107+
},
125108+
"kind": "dictionary_of",
125109+
"value": {
125110+
"kind": "instance_of",
125111+
"type": {
125112+
"name": "string",
125113+
"namespace": "internal"
125114+
}
125115+
}
125116+
}
125117+
},
125118+
{
125119+
"name": "host",
125120+
"required": true,
125121+
"type": {
125122+
"kind": "instance_of",
125123+
"type": {
125124+
"name": "string",
125125+
"namespace": "internal"
125126+
}
125127+
}
125128+
},
125129+
{
125130+
"name": "transport_address",
125131+
"required": true,
125132+
"type": {
125133+
"kind": "instance_of",
125134+
"type": {
125135+
"name": "string",
125136+
"namespace": "internal"
125137+
}
125138+
}
125139+
},
125140+
{
125141+
"name": "ip",
125142+
"required": true,
125143+
"type": {
125144+
"kind": "instance_of",
125145+
"type": {
125146+
"name": "string",
125147+
"namespace": "internal"
125148+
}
125149+
}
125150+
},
125151+
{
125152+
"name": "name",
125153+
"required": true,
125154+
"type": {
125155+
"kind": "instance_of",
125156+
"type": {
125157+
"name": "Name",
125158+
"namespace": "internal"
125159+
}
125160+
}
125161+
},
125162+
{
125163+
"name": "roles",
125164+
"required": true,
125165+
"type": {
125166+
"kind": "array_of",
125167+
"value": {
125168+
"kind": "instance_of",
125169+
"type": {
125170+
"name": "string",
125171+
"namespace": "internal"
125172+
}
125173+
}
125174+
}
125175+
},
125176+
{
125177+
"name": "tasks",
125178+
"required": true,
125179+
"type": {
125180+
"key": {
125181+
"kind": "instance_of",
125182+
"type": {
125183+
"name": "TaskId",
125184+
"namespace": "internal"
125185+
}
125186+
},
125187+
"kind": "dictionary_of",
125188+
"value": {
125189+
"kind": "instance_of",
125190+
"type": {
125191+
"name": "TaskInfo",
125192+
"namespace": "cluster.task_management.get_task"
125193+
}
125194+
}
125195+
}
125196+
}
125197+
]
125198+
},
125087125199
{
125088125200
"attachedBehaviors": [
125089125201
"CommonQueryParameters"
@@ -125129,6 +125241,44 @@
125129125241
}
125130125242
]
125131125243
},
125244+
{
125245+
"inherits": [
125246+
{
125247+
"type": {
125248+
"name": "ResponseBase",
125249+
"namespace": "common_abstractions.response"
125250+
}
125251+
}
125252+
],
125253+
"kind": "interface",
125254+
"name": {
125255+
"name": "UpdateByQueryRethrottleResponse",
125256+
"namespace": "document.multiple.update_by_query_rethrottle"
125257+
},
125258+
"properties": [
125259+
{
125260+
"name": "nodes",
125261+
"required": true,
125262+
"type": {
125263+
"key": {
125264+
"kind": "instance_of",
125265+
"type": {
125266+
"name": "string",
125267+
"namespace": "internal"
125268+
}
125269+
},
125270+
"kind": "dictionary_of",
125271+
"value": {
125272+
"kind": "instance_of",
125273+
"type": {
125274+
"name": "UpdateByQueryRethrottleNode",
125275+
"namespace": "document.multiple.update_by_query_rethrottle"
125276+
}
125277+
}
125278+
}
125279+
}
125280+
]
125281+
},
125132125282
{
125133125283
"attachedBehaviors": [
125134125284
"CommonQueryParameters"

output/typescript/types.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13159,11 +13159,25 @@ export interface UpdateByQueryResponse extends ResponseBase {
1315913159
throttled_until_millis?: ulong
1316013160
}
1316113161

13162+
export interface UpdateByQueryRethrottleNode {
13163+
attributes: Record<string, string>
13164+
host: string
13165+
transport_address: string
13166+
ip: string
13167+
name: Name
13168+
roles: Array<string>
13169+
tasks: Record<TaskId, TaskInfo>
13170+
}
13171+
1316213172
export interface UpdateByQueryRethrottleRequest extends RequestBase {
1316313173
task_id: Id
1316413174
requests_per_second?: long
1316513175
}
1316613176

13177+
export interface UpdateByQueryRethrottleResponse extends ResponseBase {
13178+
nodes: Record<string, UpdateByQueryRethrottleNode>
13179+
}
13180+
1316713181
export interface UpdateDatafeedRequest extends RequestBase {
1316813182
datafeed_id: Id
1316913183
allow_no_indices?: boolean
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
class UpdateByQueryRethrottleNode {
21+
attributes: Dictionary<string, string>
22+
host: string
23+
transport_address: string
24+
ip: string
25+
name: Name
26+
roles: string[]
27+
tasks: Dictionary<TaskId, TaskInfo>
28+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
class UpdateByQueryRethrottleResponse extends ResponseBase {
21+
nodes: Dictionary<string, UpdateByQueryRethrottleNode>
22+
}

0 commit comments

Comments
 (0)