Skip to content

Commit

Permalink
[bot] Updated client based on openapi-fb3c013/clientgen
Browse files Browse the repository at this point in the history
  • Loading branch information
API Engineering committed Jan 27, 2025
1 parent e15b680 commit 3b84fdf
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 49 deletions.
2 changes: 1 addition & 1 deletion DO_OPENAPI_COMMIT_SHA.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
414fbb9
fb3c013
63 changes: 39 additions & 24 deletions src/pydo/aio/operations/_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -99741,7 +99741,7 @@ async def get_migration_status(
ISO 8601 format.
"id": "str", # Optional. The ID of the most recent migration.
"status": "str" # Optional. The current status of the migration. Known
values are: "running", "canceled", "error", and "done".
values are: "running", "syncing", "canceled", "error", and "done".
}
# response body for status code(s): 404
response == {
Expand Down Expand Up @@ -99847,8 +99847,13 @@ async def update_online_migration(

To start an online migration, send a PUT request to
``/v2/databases/$DATABASE_ID/online-migration`` endpoint. Migrating a cluster establishes a
connection with an existing cluster and replicates its contents to the target cluster. Online
migration is only available for MySQL, PostgreSQL, and Redis clusters.
connection with an existing cluster and replicates its contents to the target cluster. If the
existing database is continuously being written to, the migration process will continue for up
to two weeks unless it is manually stopped. Online migration is only available for `MySQL
<https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration>`_\\
, `PostgreSQL <https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/>`_\\
, and `Redis <https://docs.digitalocean.com/products/databases/redis/how-to/migrate/>`_
clusters.

:param database_cluster_uuid: A unique identifier for a database cluster. Required.
:type database_cluster_uuid: str
Expand All @@ -99866,12 +99871,6 @@ async def update_online_migration(

# JSON input template you can fill out and use as your body input.
body = {
"disable_ssl": bool, # Optional. Enables SSL encryption when connecting to
the source database.
"ignore_dbs": [
"str" # Optional. List of databases that should be ignored during
migration.
],
"source": {
"dbname": "str", # Optional. The name of the default database.
"host": "str", # Optional. The FQDN pointing to the database
Expand All @@ -99881,7 +99880,13 @@ async def update_online_migration(
"port": 0, # Optional. The port on which the database cluster is
listening.
"username": "str" # Optional. The default user for the database.
}
},
"disable_ssl": bool, # Optional. Enables SSL encryption when connecting to
the source database.
"ignore_dbs": [
"str" # Optional. List of databases that should be ignored during
migration.
]
}

# response body for status code(s): 200
Expand All @@ -99890,7 +99895,7 @@ async def update_online_migration(
ISO 8601 format.
"id": "str", # Optional. The ID of the most recent migration.
"status": "str" # Optional. The current status of the migration. Known
values are: "running", "canceled", "error", and "done".
values are: "running", "syncing", "canceled", "error", and "done".
}
# response body for status code(s): 404
response == {
Expand Down Expand Up @@ -99919,8 +99924,13 @@ async def update_online_migration(

To start an online migration, send a PUT request to
``/v2/databases/$DATABASE_ID/online-migration`` endpoint. Migrating a cluster establishes a
connection with an existing cluster and replicates its contents to the target cluster. Online
migration is only available for MySQL, PostgreSQL, and Redis clusters.
connection with an existing cluster and replicates its contents to the target cluster. If the
existing database is continuously being written to, the migration process will continue for up
to two weeks unless it is manually stopped. Online migration is only available for `MySQL
<https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration>`_\\
, `PostgreSQL <https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/>`_\\
, and `Redis <https://docs.digitalocean.com/products/databases/redis/how-to/migrate/>`_
clusters.

:param database_cluster_uuid: A unique identifier for a database cluster. Required.
:type database_cluster_uuid: str
Expand All @@ -99942,7 +99952,7 @@ async def update_online_migration(
ISO 8601 format.
"id": "str", # Optional. The ID of the most recent migration.
"status": "str" # Optional. The current status of the migration. Known
values are: "running", "canceled", "error", and "done".
values are: "running", "syncing", "canceled", "error", and "done".
}
# response body for status code(s): 404
response == {
Expand All @@ -99966,8 +99976,13 @@ async def update_online_migration(

To start an online migration, send a PUT request to
``/v2/databases/$DATABASE_ID/online-migration`` endpoint. Migrating a cluster establishes a
connection with an existing cluster and replicates its contents to the target cluster. Online
migration is only available for MySQL, PostgreSQL, and Redis clusters.
connection with an existing cluster and replicates its contents to the target cluster. If the
existing database is continuously being written to, the migration process will continue for up
to two weeks unless it is manually stopped. Online migration is only available for `MySQL
<https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration>`_\\
, `PostgreSQL <https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/>`_\\
, and `Redis <https://docs.digitalocean.com/products/databases/redis/how-to/migrate/>`_
clusters.

:param database_cluster_uuid: A unique identifier for a database cluster. Required.
:type database_cluster_uuid: str
Expand All @@ -99982,12 +99997,6 @@ async def update_online_migration(

# JSON input template you can fill out and use as your body input.
body = {
"disable_ssl": bool, # Optional. Enables SSL encryption when connecting to
the source database.
"ignore_dbs": [
"str" # Optional. List of databases that should be ignored during
migration.
],
"source": {
"dbname": "str", # Optional. The name of the default database.
"host": "str", # Optional. The FQDN pointing to the database
Expand All @@ -99997,7 +100006,13 @@ async def update_online_migration(
"port": 0, # Optional. The port on which the database cluster is
listening.
"username": "str" # Optional. The default user for the database.
}
},
"disable_ssl": bool, # Optional. Enables SSL encryption when connecting to
the source database.
"ignore_dbs": [
"str" # Optional. List of databases that should be ignored during
migration.
]
}

# response body for status code(s): 200
Expand All @@ -100006,7 +100021,7 @@ async def update_online_migration(
ISO 8601 format.
"id": "str", # Optional. The ID of the most recent migration.
"status": "str" # Optional. The current status of the migration. Known
values are: "running", "canceled", "error", and "done".
values are: "running", "syncing", "canceled", "error", and "done".
}
# response body for status code(s): 404
response == {
Expand Down
63 changes: 39 additions & 24 deletions src/pydo/operations/_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -109284,7 +109284,7 @@ def get_migration_status(self, database_cluster_uuid: str, **kwargs: Any) -> JSO
ISO 8601 format.
"id": "str", # Optional. The ID of the most recent migration.
"status": "str" # Optional. The current status of the migration. Known
values are: "running", "canceled", "error", and "done".
values are: "running", "syncing", "canceled", "error", and "done".
}
# response body for status code(s): 404
response == {
Expand Down Expand Up @@ -109390,8 +109390,13 @@ def update_online_migration(

To start an online migration, send a PUT request to
``/v2/databases/$DATABASE_ID/online-migration`` endpoint. Migrating a cluster establishes a
connection with an existing cluster and replicates its contents to the target cluster. Online
migration is only available for MySQL, PostgreSQL, and Redis clusters.
connection with an existing cluster and replicates its contents to the target cluster. If the
existing database is continuously being written to, the migration process will continue for up
to two weeks unless it is manually stopped. Online migration is only available for `MySQL
<https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration>`_\\
, `PostgreSQL <https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/>`_\\
, and `Redis <https://docs.digitalocean.com/products/databases/redis/how-to/migrate/>`_
clusters.

:param database_cluster_uuid: A unique identifier for a database cluster. Required.
:type database_cluster_uuid: str
Expand All @@ -109409,12 +109414,6 @@ def update_online_migration(

# JSON input template you can fill out and use as your body input.
body = {
"disable_ssl": bool, # Optional. Enables SSL encryption when connecting to
the source database.
"ignore_dbs": [
"str" # Optional. List of databases that should be ignored during
migration.
],
"source": {
"dbname": "str", # Optional. The name of the default database.
"host": "str", # Optional. The FQDN pointing to the database
Expand All @@ -109424,7 +109423,13 @@ def update_online_migration(
"port": 0, # Optional. The port on which the database cluster is
listening.
"username": "str" # Optional. The default user for the database.
}
},
"disable_ssl": bool, # Optional. Enables SSL encryption when connecting to
the source database.
"ignore_dbs": [
"str" # Optional. List of databases that should be ignored during
migration.
]
}

# response body for status code(s): 200
Expand All @@ -109433,7 +109438,7 @@ def update_online_migration(
ISO 8601 format.
"id": "str", # Optional. The ID of the most recent migration.
"status": "str" # Optional. The current status of the migration. Known
values are: "running", "canceled", "error", and "done".
values are: "running", "syncing", "canceled", "error", and "done".
}
# response body for status code(s): 404
response == {
Expand Down Expand Up @@ -109462,8 +109467,13 @@ def update_online_migration(

To start an online migration, send a PUT request to
``/v2/databases/$DATABASE_ID/online-migration`` endpoint. Migrating a cluster establishes a
connection with an existing cluster and replicates its contents to the target cluster. Online
migration is only available for MySQL, PostgreSQL, and Redis clusters.
connection with an existing cluster and replicates its contents to the target cluster. If the
existing database is continuously being written to, the migration process will continue for up
to two weeks unless it is manually stopped. Online migration is only available for `MySQL
<https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration>`_\\
, `PostgreSQL <https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/>`_\\
, and `Redis <https://docs.digitalocean.com/products/databases/redis/how-to/migrate/>`_
clusters.

:param database_cluster_uuid: A unique identifier for a database cluster. Required.
:type database_cluster_uuid: str
Expand All @@ -109485,7 +109495,7 @@ def update_online_migration(
ISO 8601 format.
"id": "str", # Optional. The ID of the most recent migration.
"status": "str" # Optional. The current status of the migration. Known
values are: "running", "canceled", "error", and "done".
values are: "running", "syncing", "canceled", "error", and "done".
}
# response body for status code(s): 404
response == {
Expand All @@ -109509,8 +109519,13 @@ def update_online_migration(

To start an online migration, send a PUT request to
``/v2/databases/$DATABASE_ID/online-migration`` endpoint. Migrating a cluster establishes a
connection with an existing cluster and replicates its contents to the target cluster. Online
migration is only available for MySQL, PostgreSQL, and Redis clusters.
connection with an existing cluster and replicates its contents to the target cluster. If the
existing database is continuously being written to, the migration process will continue for up
to two weeks unless it is manually stopped. Online migration is only available for `MySQL
<https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration>`_\\
, `PostgreSQL <https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/>`_\\
, and `Redis <https://docs.digitalocean.com/products/databases/redis/how-to/migrate/>`_
clusters.

:param database_cluster_uuid: A unique identifier for a database cluster. Required.
:type database_cluster_uuid: str
Expand All @@ -109525,12 +109540,6 @@ def update_online_migration(

# JSON input template you can fill out and use as your body input.
body = {
"disable_ssl": bool, # Optional. Enables SSL encryption when connecting to
the source database.
"ignore_dbs": [
"str" # Optional. List of databases that should be ignored during
migration.
],
"source": {
"dbname": "str", # Optional. The name of the default database.
"host": "str", # Optional. The FQDN pointing to the database
Expand All @@ -109540,7 +109549,13 @@ def update_online_migration(
"port": 0, # Optional. The port on which the database cluster is
listening.
"username": "str" # Optional. The default user for the database.
}
},
"disable_ssl": bool, # Optional. Enables SSL encryption when connecting to
the source database.
"ignore_dbs": [
"str" # Optional. List of databases that should be ignored during
migration.
]
}

# response body for status code(s): 200
Expand All @@ -109549,7 +109564,7 @@ def update_online_migration(
ISO 8601 format.
"id": "str", # Optional. The ID of the most recent migration.
"status": "str" # Optional. The current status of the migration. Known
values are: "running", "canceled", "error", and "done".
values are: "running", "syncing", "canceled", "error", and "done".
}
# response body for status code(s): 404
response == {
Expand Down

0 comments on commit 3b84fdf

Please sign in to comment.