Skip to content

Commit 3d3263e

Browse files
committed
API changes for 7.17.11
1 parent 56e2876 commit 3d3263e

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed

api/api/snapshot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
/* eslint no-unused-vars: 0 */
2424

2525
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26-
const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion', 'verify', 'ignore_unavailable', 'index_details', 'include_repository', 'verbose', 'local', 'blob_count', 'concurrency', 'read_node_count', 'early_read_node_count', 'seed', 'rare_action_probability', 'max_blob_size', 'max_total_data_size', 'detailed', 'rarely_abort_writes']
27-
const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletion: 'wait_for_completion', ignoreUnavailable: 'ignore_unavailable', indexDetails: 'index_details', includeRepository: 'include_repository', blobCount: 'blob_count', readNodeCount: 'read_node_count', earlyReadNodeCount: 'early_read_node_count', rareActionProbability: 'rare_action_probability', maxBlobSize: 'max_blob_size', maxTotalDataSize: 'max_total_data_size', rarelyAbortWrites: 'rarely_abort_writes' }
26+
const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion', 'verify', 'ignore_unavailable', 'index_details', 'include_repository', 'sort', 'size', 'order', 'from_sort_value', 'after', 'offset', 'slm_policy_filter', 'verbose', 'local', 'blob_count', 'concurrency', 'read_node_count', 'early_read_node_count', 'seed', 'rare_action_probability', 'max_blob_size', 'max_total_data_size', 'detailed', 'rarely_abort_writes']
27+
const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletion: 'wait_for_completion', ignoreUnavailable: 'ignore_unavailable', indexDetails: 'index_details', includeRepository: 'include_repository', fromSortValue: 'from_sort_value', slmPolicyFilter: 'slm_policy_filter', blobCount: 'blob_count', readNodeCount: 'read_node_count', earlyReadNodeCount: 'early_read_node_count', rareActionProbability: 'rare_action_probability', maxBlobSize: 'max_blob_size', maxTotalDataSize: 'max_total_data_size', rarelyAbortWrites: 'rarely_abort_writes' }
2828

2929
function SnapshotApi (transport, ConfigurationError) {
3030
this.transport = transport

api/requestParams.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,6 +2628,13 @@ export interface SnapshotGet extends Generic {
26282628
ignore_unavailable?: boolean;
26292629
index_details?: boolean;
26302630
include_repository?: boolean;
2631+
sort?: 'start_time' | 'duration' | 'name' | 'repository' | 'index_count' | 'shard_count' | 'failed_shard_count';
2632+
size?: integer;
2633+
order?: 'asc' | 'desc';
2634+
from_sort_value?: string;
2635+
after?: string;
2636+
offset?: integer;
2637+
slm_policy_filter?: string;
26312638
verbose?: boolean;
26322639
}
26332640

docs/reference.asciidoc

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,7 @@ link:{ref}/modules-scripting.html[Documentation] +
35103510
----
35113511
client.getScriptContext()
35123512
----
3513-
link:https://www.elastic.co/guide/en/elasticsearch/painless/7.17/painless-contexts.html[Documentation] +
3513+
link:{painless}/painless-contexts.html[Documentation] +
35143514

35153515

35163516
[discrete]
@@ -9127,7 +9127,7 @@ client.scriptsPainlessExecute({
91279127
body: object
91289128
})
91299129
----
9130-
link:https://www.elastic.co/guide/en/elasticsearch/painless/7.17/painless-execute-api.html[Documentation] +
9130+
link:{painless}/painless-execute-api.html[Documentation] +
91319131
[cols=2*]
91329132
|===
91339133
|`body`
@@ -10860,6 +10860,13 @@ client.snapshot.get({
1086010860
ignore_unavailable: boolean,
1086110861
index_details: boolean,
1086210862
include_repository: boolean,
10863+
sort: 'start_time' | 'duration' | 'name' | 'repository' | 'index_count' | 'shard_count' | 'failed_shard_count',
10864+
size: integer,
10865+
order: 'asc' | 'desc',
10866+
from_sort_value: string,
10867+
after: string,
10868+
offset: integer,
10869+
slm_policy_filter: string,
1086310870
verbose: boolean
1086410871
})
1086510872
----
@@ -10884,6 +10891,29 @@ link:{ref}/modules-snapshots.html[Documentation] +
1088410891
|`include_repository` or `includeRepository`
1088510892
|`boolean` - Whether to include the repository name in the snapshot info. Defaults to true.
1088610893

10894+
|`sort`
10895+
|`'start_time' \| 'duration' \| 'name' \| 'repository' \| 'index_count' \| 'shard_count' \| 'failed_shard_count'` - Allows setting a sort order for the result. Defaults to start_time +
10896+
_Default:_ `start_time`
10897+
10898+
|`size`
10899+
|`integer` - Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit.
10900+
10901+
|`order`
10902+
|`'asc' \| 'desc'` - Sort order +
10903+
_Default:_ `asc`
10904+
10905+
|`from_sort_value` or `fromSortValue`
10906+
|`string` - Value of the current sort column at which to start retrieval.
10907+
10908+
|`after`
10909+
|`string` - Offset identifier to start pagination from as returned by the 'next' field in the response body.
10910+
10911+
|`offset`
10912+
|`integer` - Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0
10913+
10914+
|`slm_policy_filter` or `slmPolicyFilter`
10915+
|`string` - Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy
10916+
1088710917
|`verbose`
1088810918
|`boolean` - Whether to show verbose snapshot info or only show the basic info found in the repository index blob
1088910919

scripts/utils/generateDocs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ function fixLink (name, str) {
282282
str = str.replace(/frozen\.html/, 'freeze-index-api.html')
283283
str = str.replace(/ml-file-structure\.html/, 'ml-find-file-structure.html')
284284
str = str.replace(/security-api-get-user-privileges\.html/, 'security-api-get-privileges.html')
285+
str = str.replace(/^.+guide\/en\/elasticsearch\/painless\/[^/]+\/([^./]*\.html(?:#.+)?)$/, '{painless}/$1')
285286

286287
return str
287288
}

0 commit comments

Comments
 (0)