diff --git a/linode_api4/objects/database.py b/linode_api4/objects/database.py index ea833eb8a..58044edb0 100644 --- a/linode_api4/objects/database.py +++ b/linode_api4/objects/database.py @@ -1,3 +1,5 @@ +from deprecated import deprecated + from linode_api4.objects import Base, DerivedBase, MappedObject, Property @@ -63,6 +65,9 @@ def invalidate(self): Base.invalidate(self) +@deprecated( + reason="Backups are not supported for non-legacy database clusters." +) class DatabaseBackup(DerivedBase): """ A generic Managed Database backup. @@ -97,6 +102,9 @@ def restore(self): ) +@deprecated( + reason="Backups are not supported for non-legacy database clusters." +) class MySQLDatabaseBackup(DatabaseBackup): """ A backup for an accessible Managed MySQL Database. @@ -107,6 +115,9 @@ class MySQLDatabaseBackup(DatabaseBackup): api_endpoint = "/databases/mysql/instances/{database_id}/backups/{id}" +@deprecated( + reason="Backups are not supported for non-legacy database clusters." +) class PostgreSQLDatabaseBackup(DatabaseBackup): """ A backup for an accessible Managed PostgreSQL Database. @@ -221,6 +232,9 @@ def patch(self): "{}/patch".format(MySQLDatabase.api_endpoint), model=self ) + @deprecated( + reason="Backups are not supported for non-legacy database clusters." + ) def backup_create(self, label, **kwargs): """ Creates a snapshot backup of a Managed MySQL Database. @@ -358,6 +372,9 @@ def patch(self): "{}/patch".format(PostgreSQLDatabase.api_endpoint), model=self ) + @deprecated( + reason="Backups are not supported for non-legacy database clusters." + ) def backup_create(self, label, **kwargs): """ Creates a snapshot backup of a Managed PostgreSQL Database.