Skip to content

Commit

Permalink
Auto-generated API code
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine committed Jul 31, 2024
1 parent bef0c24 commit ba0336e
Show file tree
Hide file tree
Showing 35 changed files with 2,456 additions and 1,441 deletions.
245 changes: 119 additions & 126 deletions elasticsearch_serverless/_async/client/__init__.py

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions elasticsearch_serverless/_async/client/async_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ async def get(
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
keep_alive: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
pretty: t.Optional[bool] = None,
typed_keys: t.Optional[bool] = None,
wait_for_completion_timeout: t.Optional[
t.Union["t.Literal[-1]", "t.Literal[0]", str]
t.Union[str, t.Literal[-1], t.Literal[0]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Expand Down Expand Up @@ -236,16 +236,16 @@ async def submit(
batched_reduce_size: t.Optional[int] = None,
ccs_minimize_roundtrips: t.Optional[bool] = None,
collapse: t.Optional[t.Mapping[str, t.Any]] = None,
default_operator: t.Optional[t.Union["t.Literal['and', 'or']", str]] = None,
default_operator: t.Optional[t.Union[str, t.Literal["and", "or"]]] = None,
df: t.Optional[str] = None,
docvalue_fields: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Sequence[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str]
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
],
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
]
] = None,
explain: t.Optional[bool] = None,
Expand All @@ -258,7 +258,7 @@ async def submit(
ignore_throttled: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
indices_boost: t.Optional[t.Sequence[t.Mapping[str, float]]] = None,
keep_alive: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
keep_on_completion: t.Optional[bool] = None,
knn: t.Optional[
t.Union[t.Mapping[str, t.Any], t.Sequence[t.Mapping[str, t.Any]]]
Expand All @@ -283,12 +283,12 @@ async def submit(
routing: t.Optional[str] = None,
runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
script_fields: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
scroll: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
scroll: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
search_after: t.Optional[
t.Sequence[t.Union[None, bool, float, int, str, t.Any]]
] = None,
search_type: t.Optional[
t.Union["t.Literal['dfs_query_then_fetch', 'query_then_fetch']", str]
t.Union[str, t.Literal["dfs_query_then_fetch", "query_then_fetch"]]
] = None,
seq_no_primary_term: t.Optional[bool] = None,
size: t.Optional[int] = None,
Expand All @@ -307,7 +307,7 @@ async def submit(
suggest: t.Optional[t.Mapping[str, t.Any]] = None,
suggest_field: t.Optional[str] = None,
suggest_mode: t.Optional[
t.Union["t.Literal['always', 'missing', 'popular']", str]
t.Union[str, t.Literal["always", "missing", "popular"]]
] = None,
suggest_size: t.Optional[int] = None,
suggest_text: t.Optional[str] = None,
Expand All @@ -318,7 +318,7 @@ async def submit(
typed_keys: t.Optional[bool] = None,
version: t.Optional[bool] = None,
wait_for_completion_timeout: t.Optional[
t.Union["t.Literal[-1]", "t.Literal[0]", str]
t.Union[str, t.Literal[-1], t.Literal[0]]
] = None,
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
Expand Down
763 changes: 652 additions & 111 deletions elasticsearch_serverless/_async/client/cat.py

Large diffs are not rendered by default.

59 changes: 26 additions & 33 deletions elasticsearch_serverless/_async/client/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ async def delete_component_template(
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
master_timeout: t.Optional[
t.Union["t.Literal[-1]", "t.Literal[0]", str]
] = None,
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
pretty: t.Optional[bool] = None,
timeout: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Deletes component templates. Component templates are building blocks for constructing
index templates that specify index mappings, settings, and aliases.
Delete component templates. Deletes component templates. Component templates
are building blocks for constructing index templates that specify index mappings,
settings, and aliases.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
Expand Down Expand Up @@ -89,13 +88,12 @@ async def exists_component_template(
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
local: t.Optional[bool] = None,
master_timeout: t.Optional[
t.Union["t.Literal[-1]", "t.Literal[0]", str]
] = None,
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
pretty: t.Optional[bool] = None,
) -> HeadApiResponse:
"""
Returns information about whether a particular component template exist
Check component templates. Returns information about whether a particular component
template exists.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
Expand Down Expand Up @@ -146,13 +144,11 @@ async def get_component_template(
human: t.Optional[bool] = None,
include_defaults: t.Optional[bool] = None,
local: t.Optional[bool] = None,
master_timeout: t.Optional[
t.Union["t.Literal[-1]", "t.Literal[0]", str]
] = None,
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Retrieves information about component templates.
Get component templates. Retrieves information about component templates.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html>`_
Expand Down Expand Up @@ -208,20 +204,18 @@ async def info(
target: t.Union[
t.Sequence[
t.Union[
"t.Literal['_all', 'http', 'ingest', 'script', 'thread_pool']", str
str, t.Literal["_all", "http", "ingest", "script", "thread_pool"]
]
],
t.Union[
"t.Literal['_all', 'http', 'ingest', 'script', 'thread_pool']", str
],
t.Union[str, t.Literal["_all", "http", "ingest", "script", "thread_pool"]],
],
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns different information about the cluster.
Get cluster info. Returns basic information about the cluster.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-info.html>`_
Expand Down Expand Up @@ -265,26 +259,25 @@ async def put_component_template(
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
master_timeout: t.Optional[
t.Union["t.Literal[-1]", "t.Literal[0]", str]
] = None,
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
meta: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
version: t.Optional[int] = None,
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Creates or updates a component template. Component templates are building blocks
for constructing index templates that specify index mappings, settings, and aliases.
An index template can be composed of multiple component templates. To use a component
template, specify it in an index template’s `composed_of` list. Component templates
are only applied to new data streams and indices as part of a matching index
template. Settings and mappings specified directly in the index template or the
create index request override any settings or mappings specified in a component
template. Component templates are only used during index creation. For data streams,
this includes data stream creation and the creation of a stream’s backing indices.
Changes to component templates do not affect existing indices, including a stream’s
backing indices. You can use C-style `/* *\\/` block comments in component templates.
Create or update a component template. Creates or updates a component template.
Component templates are building blocks for constructing index templates that
specify index mappings, settings, and aliases. An index template can be composed
of multiple component templates. To use a component template, specify it in an
index template’s `composed_of` list. Component templates are only applied to
new data streams and indices as part of a matching index template. Settings and
mappings specified directly in the index template or the create index request
override any settings or mappings specified in a component template. Component
templates are only used during index creation. For data streams, this includes
data stream creation and the creation of a stream’s backing indices. Changes
to component templates do not affect existing indices, including a stream’s backing
indices. You can use C-style `/* *\\/` block comments in component templates.
You can include comments anywhere in the request body except before the opening
curly bracket.
Expand Down
10 changes: 5 additions & 5 deletions elasticsearch_serverless/_async/client/enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def delete_policy(
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Deletes an existing enrich policy and its enrich index.
Delete an enrich policy. Deletes an existing enrich policy and its enrich index.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-enrich-policy-api.html>`_
Expand Down Expand Up @@ -121,7 +121,7 @@ async def get_policy(
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns information about an enrich policy.
Get an enrich policy. Returns information about an enrich policy.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/get-enrich-policy-api.html>`_
Expand Down Expand Up @@ -171,7 +171,7 @@ async def put_policy(
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Creates an enrich policy.
Create an enrich policy. Creates an enrich policy.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/put-enrich-policy-api.html>`_
Expand Down Expand Up @@ -224,8 +224,8 @@ async def stats(
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns enrich coordinator statistics and information about enrich policies that
are currently executing.
Get enrich stats. Returns enrich coordinator statistics and information about
enrich policies that are currently executing.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/enrich-stats-api.html>`_
"""
Expand Down
14 changes: 7 additions & 7 deletions elasticsearch_serverless/_async/client/eql.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ async def get(
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
keep_alive: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
pretty: t.Optional[bool] = None,
wait_for_completion_timeout: t.Optional[
t.Union["t.Literal[-1]", "t.Literal[0]", str]
t.Union[str, t.Literal[-1], t.Literal[0]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Expand Down Expand Up @@ -194,9 +194,9 @@ async def search(
expand_wildcards: t.Optional[
t.Union[
t.Sequence[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str]
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
],
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
]
] = None,
fetch_size: t.Optional[int] = None,
Expand All @@ -209,16 +209,16 @@ async def search(
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
keep_alive: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
keep_on_completion: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
result_position: t.Optional[t.Union["t.Literal['head', 'tail']", str]] = None,
result_position: t.Optional[t.Union[str, t.Literal["head", "tail"]]] = None,
runtime_mappings: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
size: t.Optional[int] = None,
tiebreaker_field: t.Optional[str] = None,
timestamp_field: t.Optional[str] = None,
wait_for_completion_timeout: t.Optional[
t.Union["t.Literal[-1]", "t.Literal[0]", str]
t.Union[str, t.Literal[-1], t.Literal[0]]
] = None,
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
Expand Down
107 changes: 0 additions & 107 deletions elasticsearch_serverless/_async/client/esql.py

This file was deleted.

2 changes: 1 addition & 1 deletion elasticsearch_serverless/_async/client/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def explore(
pretty: t.Optional[bool] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
routing: t.Optional[str] = None,
timeout: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
vertices: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
Expand Down
Loading

0 comments on commit ba0336e

Please sign in to comment.