Skip to content

Commit

Permalink
[Backport 8.17] Add missing autoscaling timeout parameters (#3176)
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Pradet <[email protected]>
  • Loading branch information
github-actions[bot] and pquentin authored Nov 26, 2024
1 parent b7c7c41 commit b58aa7d
Show file tree
Hide file tree
Showing 8 changed files with 200 additions and 35 deletions.
62 changes: 62 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 90 additions & 8 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 0 additions & 26 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Name } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Delete an autoscaling policy.
Expand All @@ -33,4 +34,15 @@ export interface Request extends RequestBase {
path_parts: {
name: Name
}
query_parameters: {
/**
* Period to wait for a connection to the master node.
* If no response is received before the timeout expires, the request fails and returns an error.
* @server_default 30s */
master_timeout?: Duration
/**
* Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
* @server_default 30s */
timeout?: Duration
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

import { RequestBase } from '@_types/Base'
import { Duration } from '@_types/Time'

/**
* Get the autoscaling capacity.
Expand All @@ -39,4 +40,12 @@ import { RequestBase } from '@_types/Base'
* @doc_id autoscaling-get-autoscaling-capacity
* @ext_doc_id autoscaling
*/
export interface Request extends RequestBase {}
export interface Request extends RequestBase {
query_parameters: {
/**
* Period to wait for a connection to the master node.
* If no response is received before the timeout expires, the request fails and returns an error.
* @server_default 30s */
master_timeout?: Duration
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Name } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Get an autoscaling policy.
Expand All @@ -33,4 +34,11 @@ export interface Request extends RequestBase {
path_parts: {
name: Name
}
query_parameters: {
/**
* Period to wait for a connection to the master node.
* If no response is received before the timeout expires, the request fails and returns an error.
* @server_default 30s */
master_timeout?: Duration
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { AutoscalingPolicy } from '@autoscaling/_types/AutoscalingPolicy'
import { RequestBase } from '@_types/Base'
import { Name } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Create or update an autoscaling policy.
Expand All @@ -34,6 +35,17 @@ export interface Request extends RequestBase {
path_parts: {
name: Name
}
query_parameters: {
/**
* Period to wait for a connection to the master node.
* If no response is received before the timeout expires, the request fails and returns an error.
* @server_default 30s */
master_timeout?: Duration
/**
* Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
* @server_default 30s */
timeout?: Duration
}
/** @codegen_name policy */
body: AutoscalingPolicy
}

0 comments on commit b58aa7d

Please sign in to comment.