@@ -166,14 +166,14 @@ func (d *bindingDataSource) Read(ctx context.Context, req datasource.ReadRequest
166
166
data .ID = types .StringValue (binding .ID )
167
167
data .UUID = types .StringValue (binding .UUID )
168
168
data .Name = types .StringValue (binding .Name )
169
- data .Description = tftypes . NullableString (binding .Description )
169
+ data .Description = types . StringPointerValue (binding .Description )
170
170
data .AutoDeploy = types .BoolValue (binding .AutoDeploy )
171
- data .Schedule = tftypes . NullableString (binding .Schedule )
171
+ data .Schedule = types . StringPointerValue (binding .Schedule )
172
172
data .AccountGroupUUID = types .StringValue (binding .AccountGroup .UUID )
173
173
data .PolicyCollectionUUID = types .StringValue (binding .PolicyCollection .UUID )
174
174
data .System = types .BoolValue (binding .System )
175
- data .DryRun = tftypes . NullableBool (binding .DryRun ())
176
- data .SecurityContext = tftypes . NullableString (binding .SecurityContext ())
175
+ data .DryRun = types . BoolPointerValue (binding .DryRun ())
176
+ data .SecurityContext = types . StringPointerValue (binding .SecurityContext ())
177
177
178
178
variablesString , err := tftypes .JSONString (binding .ExecutionConfig .Variables )
179
179
if err != nil {
@@ -188,8 +188,8 @@ func (d *bindingDataSource) Read(ctx context.Context, req datasource.ReadRequest
188
188
defLimit ,
189
189
func () (* models.BindingExecutionConfigResourceLimit , diag.Diagnostics ) {
190
190
return & models.BindingExecutionConfigResourceLimit {
191
- MaxCount : tftypes . NullableInt (defLimit .MaxCount ),
192
- MaxPercentage : tftypes . NullableFloat (defLimit .MaxPercentage ),
191
+ MaxCount : types . Int32PointerValue (defLimit .MaxCount ),
192
+ MaxPercentage : types . Float32PointerValue (defLimit .MaxPercentage ),
193
193
RequiresBoth : types .BoolValue (defLimit .RequiresBoth ),
194
194
}, nil
195
195
},
@@ -205,8 +205,8 @@ func (d *bindingDataSource) Read(ctx context.Context, req datasource.ReadRequest
205
205
func (entry api.BindingExecutionConfigResourceLimitsPolicyOverrides ) (map [string ]attr.Value , diag.Diagnostics ) {
206
206
return map [string ]attr.Value {
207
207
"policy_name" : types .StringValue (entry .PolicyName ),
208
- "max_count" : tftypes . NullableInt (entry .Limit .MaxCount ),
209
- "max_percentage" : tftypes . NullableFloat (entry .Limit .MaxPercentage ),
208
+ "max_count" : types . Int32PointerValue (entry .Limit .MaxCount ),
209
+ "max_percentage" : types . Float32PointerValue (entry .Limit .MaxPercentage ),
210
210
"requires_both" : types .BoolValue (entry .Limit .RequiresBoth ),
211
211
}, nil
212
212
},
0 commit comments