diff --git a/opensearchpy/_async/client/__init__.py b/opensearchpy/_async/client/__init__.py index 5d91ba6e..5648c8b6 100644 --- a/opensearchpy/_async/client/__init__.py +++ b/opensearchpy/_async/client/__init__.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from __future__ import unicode_literals diff --git a/opensearchpy/_async/client/cat.py b/opensearchpy/_async/client/cat.py index b0eb0cd1..0ca60e9e 100644 --- a/opensearchpy/_async/client/cat.py +++ b/opensearchpy/_async/client/cat.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/cluster.py b/opensearchpy/_async/client/cluster.py index 06346102..35a40d62 100644 --- a/opensearchpy/_async/client/cluster.py +++ b/opensearchpy/_async/client/cluster.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/dangling_indices.py b/opensearchpy/_async/client/dangling_indices.py index 0f5752ee..05fb7cdd 100644 --- a/opensearchpy/_async/client/dangling_indices.py +++ b/opensearchpy/_async/client/dangling_indices.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/indices.py b/opensearchpy/_async/client/indices.py index c0361364..3915c1c1 100644 --- a/opensearchpy/_async/client/indices.py +++ b/opensearchpy/_async/client/indices.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/ingest.py b/opensearchpy/_async/client/ingest.py index 240a466b..f4e42cf8 100644 --- a/opensearchpy/_async/client/ingest.py +++ b/opensearchpy/_async/client/ingest.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/nodes.py b/opensearchpy/_async/client/nodes.py index f1bc45d5..8fa07097 100644 --- a/opensearchpy/_async/client/nodes.py +++ b/opensearchpy/_async/client/nodes.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/remote_store.py b/opensearchpy/_async/client/remote_store.py index 9fff40d5..7b750e3f 100644 --- a/opensearchpy/_async/client/remote_store.py +++ b/opensearchpy/_async/client/remote_store.py @@ -8,14 +8,13 @@ # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/security.py b/opensearchpy/_async/client/security.py index 01545654..0bd8c0d7 100644 --- a/opensearchpy/_async/client/security.py +++ b/opensearchpy/_async/client/security.py @@ -8,14 +8,13 @@ # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/snapshot.py b/opensearchpy/_async/client/snapshot.py index d5b08814..1b25f522 100644 --- a/opensearchpy/_async/client/snapshot.py +++ b/opensearchpy/_async/client/snapshot.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/_async/client/tasks.py b/opensearchpy/_async/client/tasks.py index 3a9c02fc..4a68bff7 100644 --- a/opensearchpy/_async/client/tasks.py +++ b/opensearchpy/_async/client/tasks.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ import warnings diff --git a/opensearchpy/client/__init__.py b/opensearchpy/client/__init__.py index 95d652b6..d641fcff 100644 --- a/opensearchpy/client/__init__.py +++ b/opensearchpy/client/__init__.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from __future__ import unicode_literals diff --git a/opensearchpy/client/cat.py b/opensearchpy/client/cat.py index 0b98f9c3..e1155517 100644 --- a/opensearchpy/client/cat.py +++ b/opensearchpy/client/cat.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/cluster.py b/opensearchpy/client/cluster.py index 1d6d7bd0..5375accc 100644 --- a/opensearchpy/client/cluster.py +++ b/opensearchpy/client/cluster.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/dangling_indices.py b/opensearchpy/client/dangling_indices.py index 1624434b..4b30eff4 100644 --- a/opensearchpy/client/dangling_indices.py +++ b/opensearchpy/client/dangling_indices.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/indices.py b/opensearchpy/client/indices.py index 3c885298..03c10f0c 100644 --- a/opensearchpy/client/indices.py +++ b/opensearchpy/client/indices.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/ingest.py b/opensearchpy/client/ingest.py index bd5ad3c3..a691ed99 100644 --- a/opensearchpy/client/ingest.py +++ b/opensearchpy/client/ingest.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/nodes.py b/opensearchpy/client/nodes.py index 8aeafb81..3e25efee 100644 --- a/opensearchpy/client/nodes.py +++ b/opensearchpy/client/nodes.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/remote_store.py b/opensearchpy/client/remote_store.py index e6e0a4c1..a97a9882 100644 --- a/opensearchpy/client/remote_store.py +++ b/opensearchpy/client/remote_store.py @@ -8,14 +8,13 @@ # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/security.py b/opensearchpy/client/security.py index 3f8e6237..322eec5f 100644 --- a/opensearchpy/client/security.py +++ b/opensearchpy/client/security.py @@ -8,14 +8,13 @@ # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/snapshot.py b/opensearchpy/client/snapshot.py index 2482d038..121a5fcb 100644 --- a/opensearchpy/client/snapshot.py +++ b/opensearchpy/client/snapshot.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ from typing import Any diff --git a/opensearchpy/client/tasks.py b/opensearchpy/client/tasks.py index 72d0bddf..15740b07 100644 --- a/opensearchpy/client/tasks.py +++ b/opensearchpy/client/tasks.py @@ -26,14 +26,13 @@ # under the License. -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+ import warnings diff --git a/utils/generate_api.py b/utils/generate_api.py index 502cd2af..d671a975 100644 --- a/utils/generate_api.py +++ b/utils/generate_api.py @@ -143,14 +143,15 @@ def dump(self) -> None: self.sort() # This code snippet adds headers to each generated module indicating that the code is generated. - header_separator = "# -----------------------------------------------------" + # The separator is the last line in the "THIS CODE IS AUTOMATICALLY GENERATED" header. + header_separator = "# -----------------------------------------------------------------------------------------+" license_header_end_1 = "# GitHub history for details." license_header_end_2 = "# under the License." update_header = True license_position = 0 - # Identifying the insertion point for the "THIS CODE IS GENERATED" header. + # Identifying the insertion point for the "THIS CODE IS AUTOMATICALLY GENERATED" header. if os.path.exists(self.filepath): with open(self.filepath, "r") as f: content = f.read() diff --git a/utils/generated_file_headers.txt b/utils/generated_file_headers.txt index 6bcf8bcb..506fa389 100644 --- a/utils/generated_file_headers.txt +++ b/utils/generated_file_headers.txt @@ -1,8 +1,7 @@ -# ---------------------------------------------------- -# THIS CODE IS GENERATED AND MANUAL EDITS WILL BE LOST. +# ------------------------------------------------------------------------------------------ +# THIS CODE IS AUTOMATICALLY GENERATED AND MANUAL EDITS WILL BE LOST # -# To contribute, kindly make essential modifications through either the "opensearch-py client generator": -# https://github.com/opensearch-project/opensearch-py/blob/main/utils/generate_api.py -# or the "OpenSearch API specification" available at: -# https://github.com/opensearch-project/opensearch-api-specification/blob/main/OpenSearch.openapi.json -# ----------------------------------------------------- +# To contribute, kindly make modifications in the opensearch-py client generator +# and run `nox -rs generate`, or in the OpenSearch API specification. See DEVELOPER_GUIDE.md +# and https://github.com/opensearch-project/opensearch-api-specification for details. +# -----------------------------------------------------------------------------------------+