From bff9278aa5cf398d3e2bb4dada21f7266ae3585c Mon Sep 17 00:00:00 2001 From: digitalocean-engineering Date: Wed, 10 Apr 2024 09:14:05 -0600 Subject: [PATCH] [bot] Updated client based on openapi-0b09b67/clientgen (#279) Co-authored-by: API Engineering --- DO_OPENAPI_COMMIT_SHA.txt | 2 +- src/pydo/aio/operations/_operations.py | 153 ++++++++++++++++++++++--- src/pydo/operations/_operations.py | 153 ++++++++++++++++++++++--- 3 files changed, 281 insertions(+), 27 deletions(-) diff --git a/DO_OPENAPI_COMMIT_SHA.txt b/DO_OPENAPI_COMMIT_SHA.txt index 93e81a1..b39d113 100644 --- a/DO_OPENAPI_COMMIT_SHA.txt +++ b/DO_OPENAPI_COMMIT_SHA.txt @@ -1 +1 @@ -d26bc4e +0b09b67 diff --git a/src/pydo/aio/operations/_operations.py b/src/pydo/aio/operations/_operations.py index 9e704e4..cb1bb61 100644 --- a/src/pydo/aio/operations/_operations.py +++ b/src/pydo/aio/operations/_operations.py @@ -75241,6 +75241,30 @@ async def list_options(self, **kwargs: Any) -> JSON: names of available regions. ] }, + "opensearch": { + "layouts": [ + { + "num_nodes": 0, # Optional. An array of + objects, each indicating the node sizes (otherwise referred to as + slugs) that are available with various numbers of nodes in the + database cluster. Each slugs denotes the node's identifier, CPU, + and RAM (in that order). + "sizes": [ + "str" # Optional. An array of + objects containing the slugs available with various node + counts. + ] + } + ], + "regions": [ + "str" # Optional. An array of strings containing the + names of available regions. + ], + "versions": [ + "str" # Optional. An array of strings containing the + names of available regions. + ] + }, "pg": { "layouts": [ { @@ -75330,6 +75354,19 @@ async def list_options(self, **kwargs: Any) -> JSON: "version": "str" # Optional. The engine version. } ], + "opensearch": [ + { + "end_of_availability": "str", # Optional. A + timestamp referring to the date when the particular version will no + longer be available for creating new clusters. If null, the version + does not have an end of availability timeline. + "end_of_life": "str", # Optional. A timestamp + referring to the date when the particular version will no longer be + supported. If null, the version does not have an end of life + timeline. + "version": "str" # Optional. The engine version. + } + ], "pg": [ { "end_of_availability": "str", # Optional. A @@ -75503,9 +75540,9 @@ async def list_clusters( ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, - "mysql" for MySQL, "redis" for Redis, "mongodb" for MongoDB, and "kafka" - for Kafka. Required. Known values are: "pg", "mysql", "redis", "mongodb", - and "kafka". + "mysql" for MySQL, "redis" for Redis, "mongodb" for MongoDB, "kafka" for + Kafka and "opensearch" for Opensearch. Required. Known values are: "pg", + "mysql", "redis", "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -75630,6 +75667,21 @@ async def list_clusters( "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly + generated password for the default user. + "port": 0, # Optional. The port on which the + opensearch dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating + if the connection should be made over SSL. + "uri": "str", # Optional. This is provided as a + convenience and should be able to be constructed by the other + attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access @@ -75848,8 +75900,9 @@ async def create_cluster( ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" - for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. Known values - are: "pg", "mysql", "redis", "mongodb", and "kafka". + for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" for + Opensearch. Required. Known values are: "pg", "mysql", "redis", "mongodb", + "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -75961,6 +76014,20 @@ async def create_cluster( "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the opensearch + cluster's current primary node. + "password": "str", # Optional. The randomly generated password for + the default user. + "port": 0, # Optional. The port on which the opensearch dashboard is + listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience and + should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the opensearch + dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate for TLS @@ -76046,8 +76113,9 @@ async def create_cluster( ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, - "redis" for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. - Known values are: "pg", "mysql", "redis", "mongodb", and "kafka". + "redis" for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" + for Opensearch. Required. Known values are: "pg", "mysql", "redis", + "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -76164,6 +76232,20 @@ async def create_cluster( "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly generated + password for the default user. + "port": 0, # Optional. The port on which the opensearch + dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience + and should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate @@ -76303,8 +76385,9 @@ async def create_cluster( ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, - "redis" for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. - Known values are: "pg", "mysql", "redis", "mongodb", and "kafka". + "redis" for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" + for Opensearch. Required. Known values are: "pg", "mysql", "redis", + "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -76421,6 +76504,20 @@ async def create_cluster( "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly generated + password for the default user. + "port": 0, # Optional. The port on which the opensearch + dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience + and should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate @@ -76558,8 +76655,9 @@ async def create_cluster(self, body: Union[JSON, IO], **kwargs: Any) -> JSON: ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, - "redis" for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. - Known values are: "pg", "mysql", "redis", "mongodb", and "kafka". + "redis" for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" + for Opensearch. Required. Known values are: "pg", "mysql", "redis", + "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -76676,6 +76774,20 @@ async def create_cluster(self, body: Union[JSON, IO], **kwargs: Any) -> JSON: "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly generated + password for the default user. + "port": 0, # Optional. The port on which the opensearch + dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience + and should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate @@ -76888,8 +77000,9 @@ async def get_cluster(self, database_cluster_uuid: str, **kwargs: Any) -> JSON: ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, - "redis" for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. - Known values are: "pg", "mysql", "redis", "mongodb", and "kafka". + "redis" for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" + for Opensearch. Required. Known values are: "pg", "mysql", "redis", + "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -77006,6 +77119,20 @@ async def get_cluster(self, database_cluster_uuid: str, **kwargs: Any) -> JSON: "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly generated + password for the default user. + "port": 0, # Optional. The port on which the opensearch + dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience + and should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate diff --git a/src/pydo/operations/_operations.py b/src/pydo/operations/_operations.py index f791118..7c00f0c 100644 --- a/src/pydo/operations/_operations.py +++ b/src/pydo/operations/_operations.py @@ -82211,6 +82211,30 @@ def list_options(self, **kwargs: Any) -> JSON: names of available regions. ] }, + "opensearch": { + "layouts": [ + { + "num_nodes": 0, # Optional. An array of + objects, each indicating the node sizes (otherwise referred to as + slugs) that are available with various numbers of nodes in the + database cluster. Each slugs denotes the node's identifier, CPU, + and RAM (in that order). + "sizes": [ + "str" # Optional. An array of + objects containing the slugs available with various node + counts. + ] + } + ], + "regions": [ + "str" # Optional. An array of strings containing the + names of available regions. + ], + "versions": [ + "str" # Optional. An array of strings containing the + names of available regions. + ] + }, "pg": { "layouts": [ { @@ -82300,6 +82324,19 @@ def list_options(self, **kwargs: Any) -> JSON: "version": "str" # Optional. The engine version. } ], + "opensearch": [ + { + "end_of_availability": "str", # Optional. A + timestamp referring to the date when the particular version will no + longer be available for creating new clusters. If null, the version + does not have an end of availability timeline. + "end_of_life": "str", # Optional. A timestamp + referring to the date when the particular version will no longer be + supported. If null, the version does not have an end of life + timeline. + "version": "str" # Optional. The engine version. + } + ], "pg": [ { "end_of_availability": "str", # Optional. A @@ -82471,9 +82508,9 @@ def list_clusters(self, *, tag_name: Optional[str] = None, **kwargs: Any) -> JSO ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, - "mysql" for MySQL, "redis" for Redis, "mongodb" for MongoDB, and "kafka" - for Kafka. Required. Known values are: "pg", "mysql", "redis", "mongodb", - and "kafka". + "mysql" for MySQL, "redis" for Redis, "mongodb" for MongoDB, "kafka" for + Kafka and "opensearch" for Opensearch. Required. Known values are: "pg", + "mysql", "redis", "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -82598,6 +82635,21 @@ def list_clusters(self, *, tag_name: Optional[str] = None, **kwargs: Any) -> JSO "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly + generated password for the default user. + "port": 0, # Optional. The port on which the + opensearch dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating + if the connection should be made over SSL. + "uri": "str", # Optional. This is provided as a + convenience and should be able to be constructed by the other + attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access @@ -82816,8 +82868,9 @@ def create_cluster( ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" - for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. Known values - are: "pg", "mysql", "redis", "mongodb", and "kafka". + for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" for + Opensearch. Required. Known values are: "pg", "mysql", "redis", "mongodb", + "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -82929,6 +82982,20 @@ def create_cluster( "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the opensearch + cluster's current primary node. + "password": "str", # Optional. The randomly generated password for + the default user. + "port": 0, # Optional. The port on which the opensearch dashboard is + listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience and + should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the opensearch + dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate for TLS @@ -83014,8 +83081,9 @@ def create_cluster( ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, - "redis" for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. - Known values are: "pg", "mysql", "redis", "mongodb", and "kafka". + "redis" for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" + for Opensearch. Required. Known values are: "pg", "mysql", "redis", + "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -83132,6 +83200,20 @@ def create_cluster( "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly generated + password for the default user. + "port": 0, # Optional. The port on which the opensearch + dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience + and should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate @@ -83271,8 +83353,9 @@ def create_cluster( ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, - "redis" for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. - Known values are: "pg", "mysql", "redis", "mongodb", and "kafka". + "redis" for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" + for Opensearch. Required. Known values are: "pg", "mysql", "redis", + "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -83389,6 +83472,20 @@ def create_cluster( "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly generated + password for the default user. + "port": 0, # Optional. The port on which the opensearch + dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience + and should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate @@ -83526,8 +83623,9 @@ def create_cluster(self, body: Union[JSON, IO], **kwargs: Any) -> JSON: ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, - "redis" for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. - Known values are: "pg", "mysql", "redis", "mongodb", and "kafka". + "redis" for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" + for Opensearch. Required. Known values are: "pg", "mysql", "redis", + "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -83644,6 +83742,20 @@ def create_cluster(self, body: Union[JSON, IO], **kwargs: Any) -> JSON: "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly generated + password for the default user. + "port": 0, # Optional. The port on which the opensearch + dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience + and should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate @@ -83856,8 +83968,9 @@ def get_cluster(self, database_cluster_uuid: str, **kwargs: Any) -> JSON: ], "engine": "str", # A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, - "redis" for Redis, "mongodb" for MongoDB, and "kafka" for Kafka. Required. - Known values are: "pg", "mysql", "redis", "mongodb", and "kafka". + "redis" for Redis, "mongodb" for MongoDB, "kafka" for Kafka and "opensearch" + for Opensearch. Required. Known values are: "pg", "mysql", "redis", + "mongodb", "kafka", and "opensearch". "id": "str", # Optional. A unique ID that can be used to identify and reference a database cluster. "maintenance_window": { @@ -83974,6 +84087,20 @@ def get_cluster(self, database_cluster_uuid: str, **kwargs: Any) -> JSON: "str" # Optional. An array of tags that have been applied to the database cluster. ], + "ui_connection": { + "host": "str", # Optional. The FQDN pointing to the + opensearch cluster's current primary node. + "password": "str", # Optional. The randomly generated + password for the default user. + "port": 0, # Optional. The port on which the opensearch + dashboard is listening. + "ssl": bool, # Optional. A boolean value indicating if the + connection should be made over SSL. + "uri": "str", # Optional. This is provided as a convenience + and should be able to be constructed by the other attributes. + "user": "str" # Optional. The default user for the + opensearch dashboard. + }, "users": [ { "access_cert": "str", # Optional. Access certificate