From 7b9706fa8b383540138430ec878c11d75556a518 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Tue, 13 Dec 2022 00:06:08 -0500 Subject: [PATCH] resource+tfsdk: Remove tfsdk package schema types and functions Reference: https://github.com/hashicorp/terraform-plugin-framework/issues/132 Reference: https://github.com/hashicorp/terraform-plugin-framework/issues/326 Reference: https://github.com/hashicorp/terraform-plugin-framework/issues/491 Refer to the following pull request descriptions for migration information about migrating to the split schema packages: - `datasource/schema`: https://github.com/hashicorp/terraform-plugin-framework/pull/546 - `provider/schema`: https://github.com/hashicorp/terraform-plugin-framework/pull/553 - `resource/schema`: https://github.com/hashicorp/terraform-plugin-framework/pull/558 - `provider/metaschema`: https://github.com/hashicorp/terraform-plugin-framework/pull/562 --- .changelog/pending.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .changelog/pending.txt diff --git a/.changelog/pending.txt b/.changelog/pending.txt new file mode 100644 index 000000000..b58614dbf --- /dev/null +++ b/.changelog/pending.txt @@ -0,0 +1,31 @@ +```release-note:breaking-change +resource: The `RequiresReplace()` plan modifier has been removed. Use a type-specific plan modifier instead, such as `resource/schema/stringplanmodifier.RequiresReplace()` or `resource/schema/stringplanmodifier.RequiresReplaceIfConfigured()` +``` + +```release-note:breaking-change +resource: The `RequiresReplaceIf()` plan modifier has been removed. Use a type-specific plan modifier instead, such as `resource/schema/stringplanmodifier.RequiresReplaceIf()` +``` + +```release-note:breaking-change +resource: The `Resource` type `GetSchema` method has been removed. Use the `Schema` method instead. +``` + +```release-note:breaking-change +resource: The `UseStateForUnknown()` plan modifier has been removed. Use a type-specific plan modifier instead, such as `resource/schema/stringplanmodifier.UseStateForUnknown()` +``` + +```release-note:breaking-change +tfsdk: The `Attribute`, `Block`, and `Schema` types have been removed. Use the similarly named types in the `datasource/schema`, `provider/schema`, and `resource/schema` packages instead. +``` + +```release-note:breaking-change +tfsdk: The `AttributePlanModifier` interface has been removed. Use the type-specific plan modifier interfaces in the `resource/schema/planmodifier` package instead. +``` + +```release-note:breaking-change +tfsdk: The `AttributeValidator` interface has been removed. Use the type-specific validator interfaces in the `schema/validator` package instead. +``` + +```release-note:breaking-change +tfsdk: The `ListNestedAttributes`, `MapNestedAttributes`, `SetNestedAttributes`, and `SingleNestedAttributes` functions have been removed. Use the similarly named types in the `datasource/schema`, `provider/schema`, and `resource/schema` packages instead. +```