@@ -38,14 +38,14 @@ type BigQueryWarehouseResource struct {
38
38
39
39
// BigQueryWarehouseResourceModel describes the resource data model according to its Schema.
40
40
type BigQueryWarehouseResourceModel struct {
41
- Uuid types.String `tfsdk:"uuid"`
42
- Credentials Credentials `tfsdk:"credentials"`
43
- Name types.String `tfsdk:"name"`
44
- CollectorUuid types.String `tfsdk:"collector_uuid"`
45
- DeletionProtection types.Bool `tfsdk:"deletion_protection"`
41
+ Uuid types.String `tfsdk:"uuid"`
42
+ Credentials BqCredentials `tfsdk:"credentials"`
43
+ Name types.String `tfsdk:"name"`
44
+ CollectorUuid types.String `tfsdk:"collector_uuid"`
45
+ DeletionProtection types.Bool `tfsdk:"deletion_protection"`
46
46
}
47
47
48
- type Credentials struct {
48
+ type BqCredentials struct {
49
49
ConnectionUuid types.String `tfsdk:"connection_uuid"`
50
50
ServiceAccountKey types.String `tfsdk:"service_account_key"`
51
51
UpdatedAt types.String `tfsdk:"updated_at"`
@@ -75,7 +75,7 @@ func (r *BigQueryWarehouseResource) Metadata(ctx context.Context, req resource.M
75
75
76
76
func (r * BigQueryWarehouseResource ) Schema (ctx context.Context , req resource.SchemaRequest , resp * resource.SchemaResponse ) {
77
77
resp .Schema = schema.Schema {
78
- Version : 1 ,
78
+ Version : 2 ,
79
79
Attributes : map [string ]schema.Attribute {
80
80
"uuid" : schema.StringAttribute {
81
81
Computed : true ,
@@ -495,7 +495,7 @@ func (r *BigQueryWarehouseResource) UpgradeState(ctx context.Context) map[int64]
495
495
CollectorUuid : priorStateData .CollectorUuid ,
496
496
Name : priorStateData .Name ,
497
497
DeletionProtection : priorStateData .DeletionProtection ,
498
- Credentials : Credentials {
498
+ Credentials : BqCredentials {
499
499
ConnectionUuid : priorStateData .ConnectionUuid ,
500
500
ServiceAccountKey : priorStateData .ServiceAccountKey ,
501
501
UpdatedAt : types .StringNull (),
0 commit comments