Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate legacy DBaaS resources #1707

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/data-sources/database_backups.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: |-

# Data Source: linode\_database\_backups

~> **DEPRECATION NOTICE:** This data source has been deprecated.

Provides information about Linode Database Backups that match a set of filters.
For more information, see the Linode APIv4 docs for [MySQL](https://techdocs.akamai.com/linode-api/reference/get-databases-mysql-instance-backups) and [PostgreSQL](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).

Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/database_mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: |-

# Data Source: linode\_database\_mysql

~> **DEPRECATION NOTICE:** This data source has been deprecated. Please use [linode_database_mysql_v2](database_mysql_v2.html.markdown) for all future implementations.

Provides information about a Linode MySQL Database.
For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-instances).

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/database_mysql_backups.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ description: |-

# Data Source: linode\_database\_mysql\_backups

~> **DEPRECATION NOTICE:** This data source has been deprecated.

Provides information about Linode MySQL Database Backups that match a set of filters.
For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-mysql-instance-backups).

~> **NOTICE:** This data source has been deprecated in favor of `linode_database_backups`.

## Example Usage

Get information about all backups for a MySQL database:
Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/database_postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: |-

# Data Source: linode\_database\_postgresql

~> **DEPRECATION NOTICE:** This data source has been deprecated. Please use [linode_database_postgresql_v2](database_postgresql_v2.html.markdown) for all future implementations.

Provides information about a Linode PostgreSQL Database.
For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).

Expand Down
2 changes: 2 additions & 0 deletions docs/resources/database_mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: |-

# linode\_database\_mysql

~> **DEPRECATION NOTICE:** This resource has been deprecated. Please use [linode_database_mysql_v2](database_mysql_v2.html.markdown) for all future implementations.

Provides a Linode MySQL Database resource. This can be used to create, modify, and delete Linode MySQL Databases.
For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-instances).

Expand Down
2 changes: 2 additions & 0 deletions docs/resources/database_postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: |-

# linode\_database\_postgresql

~> **DEPRECATION NOTICE:** This resource has been deprecated. Please use [linode_database_postgresql_v2](database_postgresql_v2.html.markdown) for all future implementations.

Provides a Linode PostgreSQL Database resource. This can be used to create, modify, and delete Linode PostgreSQL Databases.
For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/post-databases-postgre-sql-instances).

Expand Down
1 change: 1 addition & 0 deletions linode/databasebackups/framework_datasource_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var backupSchema = schema.NestedBlockObject{
}

var frameworkDataSourceSchema = schema.Schema{
DeprecationMessage: "This data source has been deprecated.",
Attributes: map[string]schema.Attribute{
"database_id": schema.Int64Attribute{
Description: "The ID of the Managed Database.",
Expand Down
2 changes: 2 additions & 0 deletions linode/databasemysql/framework_datasource_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
)

var frameworkDatasourceSchema = schema.Schema{
DeprecationMessage: "This data source has been deprecated. " +
"Please use linode_database_mysql_v2 for all future implementations.",
Attributes: map[string]schema.Attribute{
"database_id": schema.Int64Attribute{
DeprecationMessage: "Configure `id` instead. This attribute will be removed " +
Expand Down
2 changes: 2 additions & 0 deletions linode/databasemysql/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func Resource() *schema.Resource {
Update: schema.DefaultTimeout(updateDBTimeout),
Delete: schema.DefaultTimeout(deleteDBTimeout),
},
DeprecationMessage: "This resource has been deprecated. " +
"Please use linode_database_mysql_v2 for all future implementations.",
}
}

Expand Down
5 changes: 3 additions & 2 deletions linode/databasemysqlbackups/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (

func DataSource() *schema.Resource {
return &schema.Resource{
Schema: dataSourceSchema,
ReadContext: readDataSource,
DeprecationMessage: "This data source has been deprecated.",
Schema: dataSourceSchema,
ReadContext: readDataSource,
}
}

Expand Down
2 changes: 2 additions & 0 deletions linode/databasepostgresql/framework_datasource_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
)

var frameworkDatasourceSchema = schema.Schema{
DeprecationMessage: "This data source has been deprecated. " +
"Please use linode_database_postgresql_v2 for all future implementations.",
Attributes: map[string]schema.Attribute{
"database_id": schema.Int64Attribute{
DeprecationMessage: "Configure `id` instead. This attribute will be removed " +
Expand Down
2 changes: 2 additions & 0 deletions linode/databasepostgresql/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func Resource() *schema.Resource {
Update: schema.DefaultTimeout(updateDBTimeout),
Delete: schema.DefaultTimeout(deleteDBTimeout),
},
DeprecationMessage: "This resource has been deprecated. " +
"Please use linode_database_postgresql_v2 for all future implementations.",
}
}

Expand Down
Loading