Skip to content

Commit 992469e

Browse files
fix wait_for_active_shards
1 parent 8a187be commit 992469e

File tree

6 files changed

+36
-16
lines changed

6 files changed

+36
-16
lines changed

docs/examples/languageExamples.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17354,5 +17354,27 @@
1735417354
"language": "curl",
1735517355
"code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/_transform/set_upgrade_mode?enabled=true\""
1735617356
}
17357+
],
17358+
"specification/indices/disk_usage/examples/request/IndicesDiskUsageRequestExample1.yaml": [
17359+
{
17360+
"language": "Python",
17361+
"code": "resp = client.indices.disk_usage(\n index=\"my-index-000001\",\n run_expensive_tasks=True,\n)"
17362+
},
17363+
{
17364+
"language": "JavaScript",
17365+
"code": "const response = await client.indices.diskUsage({\n index: \"my-index-000001\",\n run_expensive_tasks: \"true\",\n});"
17366+
},
17367+
{
17368+
"language": "Ruby",
17369+
"code": "response = client.indices.disk_usage(\n index: \"my-index-000001\",\n run_expensive_tasks: \"true\"\n)"
17370+
},
17371+
{
17372+
"language": "PHP",
17373+
"code": "$resp = $client->indices()->diskUsage([\n \"index\" => \"my-index-000001\",\n \"run_expensive_tasks\" => \"true\",\n]);"
17374+
},
17375+
{
17376+
"language": "curl",
17377+
"code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/my-index-000001/_disk_usage?run_expensive_tasks=true\""
17378+
}
1735717379
]
1735817380
}

output/openapi/elasticsearch-openapi-docs.redirects.csv

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

output/openapi/elasticsearch-openapi.json

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

specification/indices/disk_usage/IndicesDiskUsageRequest.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { ExpandWildcards, Indices } from '@_types/common'
21+
import { ExpandWildcards, Indices, WaitForActiveShards } from '@_types/common'
2222

2323
/**
2424
* Analyze the index disk usage.
@@ -84,11 +84,10 @@ export interface Request extends RequestBase {
8484
*/
8585
run_expensive_tasks?: boolean
8686
/**
87-
* The number of copies of each shard that must be active before proceeding with the operation.
88-
* Set to all or any non-negative integer up to the total number of copies of each shard in the index (number_of_replicas+1).
89-
* Defaults to `1`, meaning to wait just for each primary shard to be active.
87+
* The number of shard copies that must be active before proceeding with the operation.
88+
* Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
9089
* @server_default 1
9190
*/
92-
wait_for_active_shards?: string
91+
wait_for_active_shards?: WaitForActiveShards
9392
}
9493
}

0 commit comments

Comments
 (0)