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

docs: add deprecation notice to account and authentication resources #1620

Merged
merged 1 commit into from
Feb 26, 2024
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
7 changes: 5 additions & 2 deletions docs/resources/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
page_title: "aiven_account Resource - terraform-provider-aiven"
subcategory: ""
description: |-
The Account resource allows the creation and management of an Aiven Account.
Creates and manages an Aiven account.
This resource is deprecated. Use aiven_organization instead.
---

# aiven_account (Resource)

The Account resource allows the creation and management of an Aiven Account.
Creates and manages an Aiven account.

**This resource is deprecated.** Use `aiven_organization` instead.

## Example Usage

Expand Down
7 changes: 5 additions & 2 deletions docs/resources/account_authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
page_title: "aiven_account_authentication Resource - terraform-provider-aiven"
subcategory: ""
description: |-
The Account Authentication resource allows the creation and management of an Aiven Account Authentications.
This resource is deprecated.
Creates and manages an authentication method.
---

# aiven_account_authentication (Resource)

The Account Authentication resource allows the creation and management of an Aiven Account Authentications.
**This resource is deprecated**.

Creates and manages an authentication method.

## Example Usage

Expand Down
7 changes: 5 additions & 2 deletions internal/sdkprovider/service/account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ var aivenAccountSchema = map[string]*schema.Schema{

func ResourceAccount() *schema.Resource {
return &schema.Resource{
Description: "The Account resource allows the creation and management of an Aiven Account.",
Description: `Creates and manages an Aiven account.

**This resource is deprecated.** Use ` + "`aiven_organization`" + ` instead.
`,
CreateContext: resourceAccountCreate,
ReadContext: resourceAccountRead,
UpdateContext: resourceAccountUpdate,
Expand All @@ -75,7 +78,7 @@ func ResourceAccount() *schema.Resource {

Schema: aivenAccountSchema,

DeprecationMessage: "This resource will be removed in v5.0.0, use aiven_organization instead.",
DeprecationMessage: "This resource will be removed in v5.0.0. Use aiven_organization instead.",
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ var aivenAccountAuthenticationSchema = map[string]*schema.Schema{

func ResourceAccountAuthentication() *schema.Resource {
return &schema.Resource{
Description: "The Account Authentication resource allows the creation and management of an Aiven Account Authentications.",
Description: `**This resource is deprecated**.

Creates and manages an authentication method.
`,
CreateContext: resourceAccountAuthenticationCreate,
ReadContext: resourceAccountAuthenticationRead,
UpdateContext: resourceAccountAuthenticationUpdate,
Expand All @@ -155,7 +158,7 @@ func ResourceAccountAuthentication() *schema.Resource {
Timeouts: schemautil.DefaultResourceTimeouts(),

Schema: aivenAccountAuthenticationSchema,
DeprecationMessage: "This resource is deprecated",
DeprecationMessage: "This resource is deprecated.",
}
}

Expand Down