Skip to content

Commit 468d8fe

Browse files
[Backport 8.x] Add missing autoscaling timeout parameters (#3163)
Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
1 parent b7c7c41 commit 468d8fe

File tree

8 files changed

+200
-35
lines changed

8 files changed

+200
-35
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 90 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 0 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
22+
import { Duration } from '@_types/Time'
2223

2324
/**
2425
* Delete an autoscaling policy.
@@ -33,4 +34,15 @@ export interface Request extends RequestBase {
3334
path_parts: {
3435
name: Name
3536
}
37+
query_parameters: {
38+
/**
39+
* Period to wait for a connection to the master node.
40+
* If no response is received before the timeout expires, the request fails and returns an error.
41+
* @server_default 30s */
42+
master_timeout?: Duration
43+
/**
44+
* Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
45+
* @server_default 30s */
46+
timeout?: Duration
47+
}
3648
}

specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21+
import { Duration } from '@_types/Time'
2122

2223
/**
2324
* Get the autoscaling capacity.
@@ -39,4 +40,12 @@ import { RequestBase } from '@_types/Base'
3940
* @doc_id autoscaling-get-autoscaling-capacity
4041
* @ext_doc_id autoscaling
4142
*/
42-
export interface Request extends RequestBase {}
43+
export interface Request extends RequestBase {
44+
query_parameters: {
45+
/**
46+
* Period to wait for a connection to the master node.
47+
* If no response is received before the timeout expires, the request fails and returns an error.
48+
* @server_default 30s */
49+
master_timeout?: Duration
50+
}
51+
}

specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
22+
import { Duration } from '@_types/Time'
2223

2324
/**
2425
* Get an autoscaling policy.
@@ -33,4 +34,11 @@ export interface Request extends RequestBase {
3334
path_parts: {
3435
name: Name
3536
}
37+
query_parameters: {
38+
/**
39+
* Period to wait for a connection to the master node.
40+
* If no response is received before the timeout expires, the request fails and returns an error.
41+
* @server_default 30s */
42+
master_timeout?: Duration
43+
}
3644
}

specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { AutoscalingPolicy } from '@autoscaling/_types/AutoscalingPolicy'
2121
import { RequestBase } from '@_types/Base'
2222
import { Name } from '@_types/common'
23+
import { Duration } from '@_types/Time'
2324

2425
/**
2526
* Create or update an autoscaling policy.
@@ -34,6 +35,17 @@ export interface Request extends RequestBase {
3435
path_parts: {
3536
name: Name
3637
}
38+
query_parameters: {
39+
/**
40+
* Period to wait for a connection to the master node.
41+
* If no response is received before the timeout expires, the request fails and returns an error.
42+
* @server_default 30s */
43+
master_timeout?: Duration
44+
/**
45+
* Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
46+
* @server_default 30s */
47+
timeout?: Duration
48+
}
3749
/** @codegen_name policy */
3850
body: AutoscalingPolicy
3951
}

0 commit comments

Comments
 (0)