Skip to content

Commit 80bf8d7

Browse files
committed
More descriptions
1 parent 6fdc68c commit 80bf8d7

21 files changed

+767
-289
lines changed

output/schema/schema.json

Lines changed: 285 additions & 198 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: 15 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
@@ -664,6 +664,8 @@ slm-api-start,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/s
664664
slm-api-stop,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/slm-api-stop.html
665665
snapshot-create,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/snapshots-take-snapshot.html
666666
snapshot-repository-api-create,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/put-snapshot-repo-api.html
667+
snapshot-restore-amend-replacement,https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html#appendReplacement-java.lang.StringBuffer-java.lang.String-
668+
snapshot-restore-feature-state,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/snapshot-restore.html#feature-state
667669
sort-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/sort-processor.html
668670
sort-search-results,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/sort-search-results.html
669671
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
@@ -33,18 +33,22 @@ import { Duration } from '@_types/Time'
3333
export interface Request extends RequestBase {
3434
path_parts: {
3535
/**
36-
* Snapshot repository to clean up.
36+
* The name of the snapshot repository to clean up.
3737
* @codegen_name name */
3838
repository: Name
3939
}
4040
query_parameters: {
4141
/**
42-
* Period to wait for a connection to the master node.
42+
* The period to wait for a connection to the master node.
43+
* If the master node is not available before the timeout expires, the request fails and returns an error.
44+
* To indicate that the request should never timeout, set it to `-1`
4345
* @server_default 30s
4446
*/
4547
master_timeout?: Duration
4648
/**
47-
* Period to wait for a response.
49+
* The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
50+
* 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.
51+
* To indicate that the request should never timeout, set it to `-1`.
4852
* @server_default 30s
4953
*/
5054
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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,39 @@ import { Duration } from '@_types/Time'
3131
*/
3232
export interface Request extends RequestBase {
3333
path_parts: {
34+
/**
35+
* The name of the snapshot repository that both source and target snapshot belong to.
36+
*/
3437
repository: Name
38+
/**
39+
* The source snapshot name.
40+
*/
3541
snapshot: Name
42+
/**
43+
* The target snapshot name.
44+
*/
3645
target_snapshot: Name
3746
}
3847
query_parameters: {
48+
/**
49+
* The period to wait for the master node.
50+
* If the master node is not available before the timeout expires, the request fails and returns an error.
51+
* To indicate that the request should never timeout, set it to `-1`.
52+
* @server_default 30s
53+
*/
3954
master_timeout?: Duration
55+
/**
56+
* The period of time to wait for a response.
57+
* If no response is received before the timeout expires, the request fails and returns an error.
58+
* @server_default 30s
59+
*/
4060
timeout?: Duration
4161
}
4262
body: {
63+
/**
64+
* A comma-separated list of indices to include in the snapshot.
65+
* Multi-target syntax is supported.
66+
*/
4367
indices: string
4468
}
4569
}

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

specification/snapshot/delete/SnapshotDeleteRequest.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,23 @@ import { Duration } from '@_types/Time'
3030
*/
3131
export interface Request extends RequestBase {
3232
path_parts: {
33+
/**
34+
* The name of the repository to delete a snapshot from.
35+
*/
3336
repository: Name
37+
/**
38+
* A comma-separated list of snapshot names to delete.
39+
* It also accepts wildcards (`*`).
40+
*/
3441
snapshot: Name
3542
}
3643
query_parameters: {
44+
/**
45+
* The period to wait for the master node.
46+
* If the master node is not available before the timeout expires, the request fails and returns an error.
47+
* To indicate that the request should never timeout, set it to `-1`.
48+
* @server_default 30s
49+
*/
3750
master_timeout?: Duration
3851
}
3952
}

0 commit comments

Comments
 (0)