Skip to content

Commit

Permalink
Add fine grained resource for instance group membership (#9891) (#17188)
Browse files Browse the repository at this point in the history
* Add  fine-grained resource

* Add InstanceGroupMembership resource

* add acceptance tests for the  resource

* Add message to the  resource

* Fix trailing spaces

* Fix trailing spaces

* Add zone to test

* Add zone to test

* Review fixes - change fields labels, update descriptions and indentation

* Undo mistake change

* Remove flatten from the encoder

* Remove "Region" prefix in the test files and decoder, as it could be replaces with the existingfill_to_relative_path custom_flatten

[upstream:40e92edbde12b2fe291c50860dfe2f06684d933d]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Feb 5, 2024
1 parent b004257 commit a5c8d01
Show file tree
Hide file tree
Showing 5 changed files with 783 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/9891.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
`google_compute_instance_group_membership`
```
5 changes: 3 additions & 2 deletions google/provider/provider_mmv1_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,9 @@ var handwrittenIAMDatasources = map[string]*schema.Resource{
}

// Resources
// Generated resources: 376
// Generated resources: 377
// Generated IAM resources: 225
// Total generated resources: 601
// Total generated resources: 602
var generatedResources = map[string]*schema.Resource{
"google_folder_access_approval_settings": accessapproval.ResourceAccessApprovalFolderSettings(),
"google_organization_access_approval_settings": accessapproval.ResourceAccessApprovalOrganizationSettings(),
Expand Down Expand Up @@ -559,6 +559,7 @@ var generatedResources = map[string]*schema.Resource{
"google_compute_instance_iam_binding": tpgiamresource.ResourceIamBinding(compute.ComputeInstanceIamSchema, compute.ComputeInstanceIamUpdaterProducer, compute.ComputeInstanceIdParseFunc),
"google_compute_instance_iam_member": tpgiamresource.ResourceIamMember(compute.ComputeInstanceIamSchema, compute.ComputeInstanceIamUpdaterProducer, compute.ComputeInstanceIdParseFunc),
"google_compute_instance_iam_policy": tpgiamresource.ResourceIamPolicy(compute.ComputeInstanceIamSchema, compute.ComputeInstanceIamUpdaterProducer, compute.ComputeInstanceIdParseFunc),
"google_compute_instance_group_membership": compute.ResourceComputeInstanceGroupMembership(),
"google_compute_instance_group_named_port": compute.ResourceComputeInstanceGroupNamedPort(),
"google_compute_interconnect_attachment": compute.ResourceComputeInterconnectAttachment(),
"google_compute_managed_ssl_certificate": compute.ResourceComputeManagedSslCertificate(),
Expand Down
Loading

0 comments on commit a5c8d01

Please sign in to comment.