1
1
package tfsdk
2
2
3
+ import (
4
+ "github.com/hashicorp/terraform-plugin-framework/schema"
5
+ )
6
+
3
7
// ConfigureProviderRequest represents a request containing the values the user
4
8
// specified for the provider configuration block, along with other runtime
5
9
// information from Terraform or the Plugin SDK. An instance of this request
@@ -15,7 +19,7 @@ type ConfigureProviderRequest struct {
15
19
// information should usually be persisted to the underlying type
16
20
// that's implementing the Provider interface, for use in later
17
21
// resource CRUD operations.
18
- Config Config
22
+ Config schema. Config
19
23
}
20
24
21
25
// CreateResourceRequest represents a request for the provider to create a
@@ -27,13 +31,13 @@ type CreateResourceRequest struct {
27
31
// This configuration may contain unknown values if a user uses
28
32
// interpolation or other functionality that would prevent Terraform
29
33
// from knowing the value at request time.
30
- Config Config
34
+ Config schema. Config
31
35
32
36
// Plan is the planned state for the resource.
33
- Plan Plan
37
+ Plan schema. Plan
34
38
35
39
// ProviderMeta is metadata from the provider_meta block of the module.
36
- ProviderMeta Config
40
+ ProviderMeta schema. Config
37
41
}
38
42
39
43
// ReadResourceRequest represents a request for the provider to read a
@@ -43,10 +47,10 @@ type CreateResourceRequest struct {
43
47
type ReadResourceRequest struct {
44
48
// State is the current state of the resource prior to the Read
45
49
// operation.
46
- State State
50
+ State schema. State
47
51
48
52
// ProviderMeta is metadata from the provider_meta block of the module.
49
- ProviderMeta Config
53
+ ProviderMeta schema. Config
50
54
}
51
55
52
56
// UpdateResourceRequest represents a request for the provider to update a
@@ -58,17 +62,17 @@ type UpdateResourceRequest struct {
58
62
// This configuration may contain unknown values if a user uses
59
63
// interpolation or other functionality that would prevent Terraform
60
64
// from knowing the value at request time.
61
- Config Config
65
+ Config schema. Config
62
66
63
67
// Plan is the planned state for the resource.
64
- Plan Plan
68
+ Plan schema. Plan
65
69
66
70
// State is the current state of the resource prior to the Update
67
71
// operation.
68
- State State
72
+ State schema. State
69
73
70
74
// ProviderMeta is metadata from the provider_meta block of the module.
71
- ProviderMeta Config
75
+ ProviderMeta schema. Config
72
76
}
73
77
74
78
// DeleteResourceRequest represents a request for the provider to delete a
@@ -77,10 +81,10 @@ type UpdateResourceRequest struct {
77
81
type DeleteResourceRequest struct {
78
82
// State is the current state of the resource prior to the Delete
79
83
// operation.
80
- State State
84
+ State schema. State
81
85
82
86
// ProviderMeta is metadata from the provider_meta block of the module.
83
- ProviderMeta Config
87
+ ProviderMeta schema. Config
84
88
}
85
89
86
90
// ReadDataSourceRequest represents a request for the provider to read a data
@@ -93,8 +97,8 @@ type ReadDataSourceRequest struct {
93
97
// This configuration may contain unknown values if a user uses
94
98
// interpolation or other functionality that would prevent Terraform
95
99
// from knowing the value at request time.
96
- Config Config
100
+ Config schema. Config
97
101
98
102
// ProviderMeta is metadata from the provider_meta block of the module.
99
- ProviderMeta Config
103
+ ProviderMeta schema. Config
100
104
}
0 commit comments