hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

Broken documentation - `deletion_protection` on `google_folder` #20328

Open joe-a-t opened 6 days ago

joe-a-t commented 6 days ago

Community Note

Terraform Version & Provider Version(s)

Affected Resource(s)

Terraform Configuration

Debug Output

No response

Expected Behavior

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_folder#argument-reference should mention deletion_protection since https://github.com/hashicorp/terraform-provider-google/blob/main/google/services/resourcemanager/resource_google_folder.go#L70-L75 includes it.

Actual Behavior

the google_folder resource documentation does not list that argument.

Steps to reproduce

  1. terraform apply

Important Factoids

I know those docs are supposed to be auto-generated so I wonder if this is a broader issue with the docs autogeneration? Looks like the argument was added 3 months ago as part of https://github.com/GoogleCloudPlatform/magic-modules/pull/11293/files, which also added this argument in many other places. I have not yet checked if those other places where this argument was added also have failed to update the documentation for those resources.

References

No response

b/379878671

ggtisc commented 8 hours ago

Confirmed issue!

The argument deletion_protection is available and can be used, but it is not present in the terraform registry documentation