credit_types and subaccounts in google_billing_budget should not have the property default_from_api #13456
Labels
breaking-change
forward/linked
persistent-bug
Hard to diagnose or long lived bugs for which resolutions are more like feature work than bug work
service/billingbudgets
Milestone
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
The property default_from_api for the two fields credit_types and subaccounts are not needed, as there is no default value for them in API side.
https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/products/billingbudget/terraform.yaml#L96-L97
https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/products/billingbudget/terraform.yaml#L109-L110
default_from_api means Computed + Optional.
Computed
property prevents the fields to be removed from config, so it needs to be removed. But the change from C + O to O is a breaking change. So we need to make the change in a major release.default_from_api
for these two fieldshttps://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/products/billingbudget/terraform.yaml#L96-L97
https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/products/billingbudget/terraform.yaml#L111-L112
https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/products/billingbudget/api.yaml#L128
https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/products/billingbudget/api.yaml#L148
https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/terraform/tests/resource_billing_budget_test.go#L220
https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/terraform/tests/resource_billing_budget_test.go#L471
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: