-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource+tfsdk: Remove tfsdk package schema types and functions
Reference: #132 Reference: #326 Reference: #491 Refer to the following pull request descriptions for migration information about migrating to the split schema packages: - `datasource/schema`: #546 - `provider/schema`: #553 - `resource/schema`: #558 - `provider/metaschema`: #562
- Loading branch information
Showing
51 changed files
with
1,001 additions
and
8,576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package fwschema | ||
|
||
// NestingMode is an enum type of the ways nested attributes can be nested in | ||
// an attribute. They can be a list, a set, a map (with string | ||
// keys), or they can be nested directly, like an object. | ||
type NestingMode uint8 | ||
|
||
const ( | ||
// NestingModeUnknown is an invalid nesting mode, used to catch when a | ||
// nesting mode is expected and not set. | ||
NestingModeUnknown NestingMode = 0 | ||
|
||
// NestingModeSingle is for attributes that represent a struct or | ||
// object, a single instance of those attributes directly nested under | ||
// another attribute. | ||
NestingModeSingle NestingMode = 1 | ||
|
||
// NestingModeList is for attributes that represent a list of objects, | ||
// with multiple instances of those attributes nested inside a list | ||
// under another attribute. | ||
NestingModeList NestingMode = 2 | ||
|
||
// NestingModeSet is for attributes that represent a set of objects, | ||
// with multiple, unique instances of those attributes nested inside a | ||
// set under another attribute. | ||
NestingModeSet NestingMode = 3 | ||
|
||
// NestingModeMap is for attributes that represent a map of objects, | ||
// with multiple instances of those attributes, each associated with a | ||
// unique string key, nested inside a map under another attribute. | ||
NestingModeMap NestingMode = 4 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.