Skip to content

Commit eff1ac3

Browse files
committed
More descriptions
1 parent 83f18c4 commit eff1ac3

23 files changed

+945
-401
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 158 additions & 111 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: 297 additions & 199 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@
392392
],
393393
"response": []
394394
},
395+
"snapshot.clone": {
396+
"request": [
397+
"Request: query parameter 'timeout' does not exist in the json spec"
398+
],
399+
"response": []
400+
},
395401
"snapshot.delete": {
396402
"request": [
397403
"Request: missing json spec query parameter 'wait_for_completion'"

output/typescript/types.ts

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

specification/_doc_ids/table.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,8 @@ snapshot-repo-delete,https://www.elastic.co/guide/en/elasticsearch/reference/{br
686686
snapshot-repo-get,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/get-snapshot-repo-api.html
687687
snapshot-repo-verify,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/verify-snapshot-repo-api.html
688688
snapshot-repo-verify-integrity,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/verify-repo-integrity-api.html
689+
snapshot-restore-amend-replacement,https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html#appendReplacement-java.lang.StringBuffer-java.lang.String-
690+
snapshot-restore-feature-state,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/snapshot-restore.html#feature-state
689691
sort-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/sort-processor.html
690692
sort-search-results,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/sort-search-results.html
691693
sort-tiebreaker,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql.html#eql-search-specify-a-sort-tiebreaker

specification/snapshot/_types/SnapshotShardsStats.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,28 @@
2020
import { long } from '@_types/Numeric'
2121

2222
export class ShardsStats {
23+
/**
24+
* The number of shards that initialized, started, and finalized successfully.
25+
*/
2326
done: long
27+
/**
28+
* The number of shards that failed to be included in the snapshot.
29+
*/
2430
failed: long
31+
/**
32+
* The number of shards that are finalizing but are not done.
33+
*/
2534
finalizing: long
35+
/**
36+
* The number of shards that are still initializing.
37+
*/
2638
initializing: long
39+
/**
40+
* The number of shards that have started but are not finalized.
41+
*/
2742
started: long
43+
/**
44+
* The total number of shards included in the snapshot.
45+
*/
2846
total: long
2947
}

specification/snapshot/_types/SnapshotShardsStatsStage.ts

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

2020
export enum ShardsStatsStage {
21-
/** Number of shards in the snapshot that were successfully stored in the repository. */
21+
/** The number of shards in the snapshot that were successfully stored in the repository. */
2222
DONE,
23-
/** Number of shards in the snapshot that were not successfully stored in the repository. */
23+
/** The number of shards in the snapshot that were not successfully stored in the repository. */
2424
FAILURE,
25-
/** Number of shards in the snapshot that are in the finalizing stage of being stored in the repository. */
25+
/** The number of shards in the snapshot that are in the finalizing stage of being stored in the repository. */
2626
FINALIZE,
27-
/** Number of shards in the snapshot that are in the initializing stage of being stored in the repository. */
27+
/** The number of shards in the snapshot that are in the initializing stage of being stored in the repository. */
2828
INIT,
29-
/** Number of shards in the snapshot that are in the started stage of being stored in the repository. */
29+
/** The number of shards in the snapshot that are in the started stage of being stored in the repository. */
3030
STARTED
3131
}

specification/snapshot/_types/SnapshotStats.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,22 @@ import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time'
2121
import { FileCountSnapshotStats } from './FileCountSnapshotStats'
2222

2323
export class SnapshotStats {
24+
/**
25+
* The number and size of files that still need to be copied as part of the incremental snapshot.
26+
* For completed snapshots, this property indicates the number and size of files that were not already in the repository and were copied as part of the incremental snapshot.
27+
*/
2428
incremental: FileCountSnapshotStats
29+
/**
30+
* The time, in milliseconds, when the snapshot creation process started.
31+
*/
2532
start_time_in_millis: EpochTime<UnitMillis>
2633
time?: Duration
34+
/**
35+
* The total time, in milliseconds, that it took for the snapshot process to complete.
36+
*/
2737
time_in_millis: DurationValue<UnitMillis>
38+
/**
39+
* The total number and size of files that are referenced by the snapshot.
40+
*/
2841
total: FileCountSnapshotStats
2942
}

specification/snapshot/_types/SnapshotStatus.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,37 @@ import { ShardsStats } from './SnapshotShardsStats'
2424
import { SnapshotStats } from './SnapshotStats'
2525

2626
export class Status {
27+
/**
28+
* Indicates whether the current cluster state is included in the snapshot.
29+
*/
2730
include_global_state: boolean
2831
indices: Dictionary<string, SnapshotIndexStats>
32+
/**
33+
* The name of the repository that includes the snapshot.
34+
*/
2935
repository: string
36+
/**
37+
* Statistics for the shards in the snapshot.
38+
*/
3039
shards_stats: ShardsStats
40+
/**
41+
* The name of the snapshot.
42+
*/
3143
snapshot: string
44+
/**
45+
* The current snapshot state:
46+
*
47+
* * `FAILED`: The snapshot finished with an error and failed to store any data.
48+
* * `STARTED`: The snapshot is currently running.
49+
* * `SUCCESS`: The snapshot completed.
50+
*/
3251
state: string
52+
/**
53+
* Details about the number (`file_count`) and size (`size_in_bytes`) of files included in the snapshot.
54+
*/
3355
stats: SnapshotStats
56+
/**
57+
* The universally unique identifier (UUID) for the snapshot.
58+
*/
3459
uuid: Uuid
3560
}

specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,22 @@ import { Duration } from '@_types/Time'
3434
export interface Request extends RequestBase {
3535
path_parts: {
3636
/**
37-
* Snapshot repository to clean up.
37+
* The name of the snapshot repository to clean up.
3838
* @codegen_name name */
3939
repository: Name
4040
}
4141
query_parameters: {
4242
/**
43-
* Period to wait for a connection to the master node.
43+
* The period to wait for a connection to the master node.
44+
* If the master node is not available before the timeout expires, the request fails and returns an error.
45+
* To indicate that the request should never timeout, set it to `-1`
4446
* @server_default 30s
4547
*/
4648
master_timeout?: Duration
4749
/**
48-
* Period to wait for a response.
50+
* The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
51+
* If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.
52+
* To indicate that the request should never timeout, set it to `-1`.
4953
* @server_default 30s
5054
*/
5155
timeout?: Duration

specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ export class Response {
2727
}
2828

2929
export class CleanupRepositoryResults {
30-
/** Number of binary large objects (blobs) removed during cleanup. */
30+
/**
31+
* The number of binary large objects (blobs) removed from the snapshot repository during cleanup operations.
32+
* A non-zero value indicates that unreferenced blobs were found and subsequently cleaned up.
33+
*/
3134
deleted_blobs: long
32-
/** Number of bytes freed by cleanup operations. */
35+
/** The number of bytes freed by cleanup operations. */
3336
deleted_bytes: long
3437
}

specification/snapshot/clone/SnapshotCloneRequest.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,39 @@ import { Duration } from '@_types/Time'
3232
*/
3333
export interface Request extends RequestBase {
3434
path_parts: {
35+
/**
36+
* The name of the snapshot repository that both source and target snapshot belong to.
37+
*/
3538
repository: Name
39+
/**
40+
* The source snapshot name.
41+
*/
3642
snapshot: Name
43+
/**
44+
* The target snapshot name.
45+
*/
3746
target_snapshot: Name
3847
}
3948
query_parameters: {
49+
/**
50+
* The period to wait for the master node.
51+
* If the master node is not available before the timeout expires, the request fails and returns an error.
52+
* To indicate that the request should never timeout, set it to `-1`.
53+
* @server_default 30s
54+
*/
4055
master_timeout?: Duration
56+
/**
57+
* The period of time to wait for a response.
58+
* If no response is received before the timeout expires, the request fails and returns an error.
59+
* @server_default 30s
60+
*/
61+
timeout?: Duration
4162
}
4263
body: {
64+
/**
65+
* A comma-separated list of indices to include in the snapshot.
66+
* Multi-target syntax is supported.
67+
*/
4368
indices: string
4469
}
4570
}

specification/snapshot/create/SnapshotCreateRequest.ts

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

2020
import { RequestBase } from '@_types/Base'
21-
import { Indices, Metadata, Name } from '@_types/common'
21+
import { ExpandWildcards, Indices, Metadata, Name } from '@_types/common'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
@@ -34,51 +34,85 @@ import { Duration } from '@_types/Time'
3434
export interface Request extends RequestBase {
3535
path_parts: {
3636
/**
37-
* Repository for the snapshot.
37+
* The name of the repository for the snapshot.
3838
*/
3939
repository: Name
4040
/**
41-
* Name of the snapshot. Must be unique in the repository.
41+
* The name of the snapshot.
42+
* It supportes date math.
43+
* It must be unique in the repository.
4244
*/
4345
snapshot: Name
4446
}
4547
query_parameters: {
4648
/**
47-
* 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.
49+
* The period to wait for a connection to the master node.
50+
* If no response is received before the timeout expires, the request fails and returns an error.
4851
* @server_default 30s
4952
*/
5053
master_timeout?: Duration
5154
/**
52-
* If `true`, the request returns a response when the snapshot is complete. If `false`, the request returns a response when the snapshot initializes.
55+
* If `true`, the request returns a response when the snapshot is complete.
56+
* If `false`, the request returns a response when the snapshot initializes.
5357
* @server_default false
5458
*/
5559
wait_for_completion?: boolean
5660
}
5761
body: {
5862
/**
59-
* If `true`, the request ignores data streams and indices in `indices` that are missing or closed. If `false`, the request returns an error for any data stream or index that is missing or closed.
63+
* Determines how wildcard patterns in the `indices` parameter match data streams and indices.
64+
* It supports comma-separated values such as `open,hidden`.
65+
* @server_default all
66+
*/
67+
expand_wildcards?: ExpandWildcards
68+
/**
69+
* The feature states to include in the snapshot.
70+
* Each feature state includes one or more system indices containing related data.
71+
* You can view a list of eligible features using the get features API.
72+
*
73+
* If `include_global_state` is `true`, all current feature states are included by default.
74+
* If `include_global_state` is `false`, no feature states are included by default.
75+
*
76+
* Note that specifying an empty array will result in the default behavior.
77+
* To exclude all feature states, regardless of the `include_global_state` value, specify an array with only the value `none` (`["none"]`).
78+
* @ext_doc_id snapshot-restore-feature-state
79+
*/
80+
feature_states?: string[]
81+
/**
82+
* If `true`, the request ignores data streams and indices in `indices` that are missing or closed.
83+
* If `false`, the request returns an error for any data stream or index that is missing or closed.
6084
* @server_default false
6185
*/
6286
ignore_unavailable?: boolean
6387
/**
64-
* If `true`, the current cluster state is included in the snapshot. The cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies. It also includes data stored in system indices, such as Watches and task records (configurable via `feature_states`).
88+
* If `true`, the current cluster state is included in the snapshot.
89+
* The cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies.
90+
* It also includes data stored in system indices, such as Watches and task records (configurable via `feature_states`).
6591
* @server_default true
6692
*/
6793
include_global_state?: boolean
6894
/**
69-
* Data streams and indices to include in the snapshot. Supports multi-target syntax. Includes all data streams and indices by default.
95+
* A comma-separated list of data streams and indices to include in the snapshot.
96+
* It supports a multi-target syntax.
97+
* The default is an empty array (`[]`), which includes all regular data streams and regular indices.
98+
* To exclude all data streams and indices, use `-*`.
99+
*
100+
* You can't use this parameter to include or exclude system indices or system data streams from a snapshot.
101+
* Use `feature_states` instead.
70102
*/
71103
indices?: Indices
72104
/**
73-
* Feature states to include in the snapshot. Each feature state includes one or more system indices containing related data. You can view a list of eligible features using the get features API. If `include_global_state` is `true`, all current feature states are included by default. If `include_global_state` is `false`, no feature states are included by default.
74-
*/
75-
feature_states?: string[]
76-
/**
77-
* Optional metadata for the snapshot. May have any contents. Must be less than 1024 bytes. This map is not automatically generated by Elasticsearch.
105+
* Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data.
106+
* It can have any contents but it must be less than 1024 bytes.
107+
* This information is not automatically generated by Elasticsearch.
78108
*/
79109
metadata?: Metadata
80110
/**
81-
* If `true`, allows restoring a partial snapshot of indices with unavailable shards. Only shards that were successfully included in the snapshot will be restored. All missing shards will be recreated as empty. If `false`, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available.
111+
* If `true`, it enables you to restore a partial snapshot of indices with unavailable shards.
112+
* Only shards that were successfully included in the snapshot will be restored.
113+
* All missing shards will be recreated as empty.
114+
*
115+
* If `false`, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available.
82116
* @server_default false
83117
*/
84118
partial?: boolean

0 commit comments

Comments
 (0)