Skip to content

Commit 2b6d2bc

Browse files
authored
update api to main
1 parent 9e963d9 commit 2b6d2bc

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

elasticsearch/_async/client/snapshot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ async def get(
414414
ignore_unavailable: t.Optional[bool] = None,
415415
include_repository: t.Optional[bool] = None,
416416
index_details: t.Optional[bool] = None,
417+
index_names: t.Optional[bool] = None,
417418
master_timeout: t.Optional[
418419
t.Union["t.Literal[-1]", "t.Literal[0]", str]
419420
] = None,
@@ -449,12 +450,12 @@ async def get(
449450
index- or shard count.
450451
:param ignore_unavailable: If false, the request returns an error for any snapshots
451452
that are unavailable.
452-
:param include_repository: Whether to include the repository name in the snapshot
453-
info. Defaults to true.
453+
:param include_repository: If true, returns the repository name in each snapshot.
454454
:param index_details: If true, returns additional information about each index
455455
in the snapshot comprising the number of shards in the index, the total size
456456
of the index in bytes, and the maximum number of segments per shard in the
457457
index. Defaults to false, meaning that this information is omitted.
458+
:param index_names: If true, returns the name of each index in each snapshot.
458459
:param master_timeout: Period to wait for a connection to the master node. If
459460
no response is received before the timeout expires, the request fails and
460461
returns an error.
@@ -498,6 +499,8 @@ async def get(
498499
__query["include_repository"] = include_repository
499500
if index_details is not None:
500501
__query["index_details"] = index_details
502+
if index_names is not None:
503+
__query["index_names"] = index_names
501504
if master_timeout is not None:
502505
__query["master_timeout"] = master_timeout
503506
if offset is not None:

elasticsearch/_sync/client/snapshot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ def get(
414414
ignore_unavailable: t.Optional[bool] = None,
415415
include_repository: t.Optional[bool] = None,
416416
index_details: t.Optional[bool] = None,
417+
index_names: t.Optional[bool] = None,
417418
master_timeout: t.Optional[
418419
t.Union["t.Literal[-1]", "t.Literal[0]", str]
419420
] = None,
@@ -449,12 +450,12 @@ def get(
449450
index- or shard count.
450451
:param ignore_unavailable: If false, the request returns an error for any snapshots
451452
that are unavailable.
452-
:param include_repository: Whether to include the repository name in the snapshot
453-
info. Defaults to true.
453+
:param include_repository: If true, returns the repository name in each snapshot.
454454
:param index_details: If true, returns additional information about each index
455455
in the snapshot comprising the number of shards in the index, the total size
456456
of the index in bytes, and the maximum number of segments per shard in the
457457
index. Defaults to false, meaning that this information is omitted.
458+
:param index_names: If true, returns the name of each index in each snapshot.
458459
:param master_timeout: Period to wait for a connection to the master node. If
459460
no response is received before the timeout expires, the request fails and
460461
returns an error.
@@ -498,6 +499,8 @@ def get(
498499
__query["include_repository"] = include_repository
499500
if index_details is not None:
500501
__query["index_details"] = index_details
502+
if index_names is not None:
503+
__query["index_names"] = index_names
501504
if master_timeout is not None:
502505
__query["master_timeout"] = master_timeout
503506
if offset is not None:

0 commit comments

Comments
 (0)