Skip to content

Commit f44db9f

Browse files
committed
Update only two watcher settings
1 parent 7570ddf commit f44db9f

File tree

4 files changed

+41
-24
lines changed

4 files changed

+41
-24
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 8 additions & 3 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: 22 additions & 17 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: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
* under the License.
1818
*/
1919

20-
import { Dictionary } from '@spec_utils/Dictionary'
2120
import { RequestBase } from '@_types/Base'
21+
import { integer } from '@_types/Numeric'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
2525
* Update Watcher index settings.
2626
* Update settings for the Watcher internal index (`.watches`).
27-
* Only a subset of settings can be modified, for example `index.auto_expand_replicas` and `index.number_of_replicas`.
27+
* Only a subset of settings can be modified.
28+
* This includes `index.auto_expand_replicas` and `index.number_of_replicas`.
2829
* @rest_spec_name watcher.update_settings
2930
* @availability stack stability=stable visibility=public
3031
* @cluster_privileges manage_watcher
@@ -44,5 +45,8 @@ export interface Request extends RequestBase {
4445
timeout?: Duration
4546
}
4647
/** @codegen_name watcher_index_settings */
47-
body: Dictionary<string, string>
48+
body: {
49+
'index.auto_expand_replicas'?: string
50+
'index.number_of_replicas'?: integer
51+
}
4852
}

0 commit comments

Comments
 (0)