Skip to content

Commit b157520

Browse files
cloudsecuritycompliace: add google_cloud_security_compliance_cloud_control resource (#15360) (#24779)
[upstream:293b9124146aca3894b8fe75fa4ac85d2f2fe177] Signed-off-by: Modular Magician <[email protected]>
1 parent c36d0b5 commit b157520

18 files changed

+4238
-2
lines changed

.changelog/15360.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:new-resource
2+
`google_cloud_security_compliance_cloud_control`
3+
```

google/fwmodels/provider_model.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ type ProviderModel struct {
9090
CloudRunCustomEndpoint types.String `tfsdk:"cloud_run_custom_endpoint"`
9191
CloudRunV2CustomEndpoint types.String `tfsdk:"cloud_run_v2_custom_endpoint"`
9292
CloudSchedulerCustomEndpoint types.String `tfsdk:"cloud_scheduler_custom_endpoint"`
93+
CloudSecurityComplianceCustomEndpoint types.String `tfsdk:"cloud_security_compliance_custom_endpoint"`
9394
CloudTasksCustomEndpoint types.String `tfsdk:"cloud_tasks_custom_endpoint"`
9495
ColabCustomEndpoint types.String `tfsdk:"colab_custom_endpoint"`
9596
ComposerCustomEndpoint types.String `tfsdk:"composer_custom_endpoint"`

google/fwprovider/framework_provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
405405
transport_tpg.CustomEndpointValidator(),
406406
},
407407
},
408+
"cloud_security_compliance_custom_endpoint": &schema.StringAttribute{
409+
Optional: true,
410+
Validators: []validator.String{
411+
transport_tpg.CustomEndpointValidator(),
412+
},
413+
},
408414
"cloud_tasks_custom_endpoint": &schema.StringAttribute{
409415
Optional: true,
410416
Validators: []validator.String{

google/provider/provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,11 @@ func Provider() *schema.Provider {
378378
Optional: true,
379379
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
380380
},
381+
"cloud_security_compliance_custom_endpoint": {
382+
Type: schema.TypeString,
383+
Optional: true,
384+
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
385+
},
381386
"cloud_tasks_custom_endpoint": {
382387
Type: schema.TypeString,
383388
Optional: true,
@@ -1168,6 +1173,7 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
11681173
config.CloudRunBasePath = d.Get("cloud_run_custom_endpoint").(string)
11691174
config.CloudRunV2BasePath = d.Get("cloud_run_v2_custom_endpoint").(string)
11701175
config.CloudSchedulerBasePath = d.Get("cloud_scheduler_custom_endpoint").(string)
1176+
config.CloudSecurityComplianceBasePath = d.Get("cloud_security_compliance_custom_endpoint").(string)
11711177
config.CloudTasksBasePath = d.Get("cloud_tasks_custom_endpoint").(string)
11721178
config.ColabBasePath = d.Get("colab_custom_endpoint").(string)
11731179
config.ComposerBasePath = d.Get("composer_custom_endpoint").(string)

google/provider/provider_mmv1_resources.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import (
5656
"github.com/hashicorp/terraform-provider-google/google/services/cloudrun"
5757
"github.com/hashicorp/terraform-provider-google/google/services/cloudrunv2"
5858
"github.com/hashicorp/terraform-provider-google/google/services/cloudscheduler"
59+
"github.com/hashicorp/terraform-provider-google/google/services/cloudsecuritycompliance"
5960
"github.com/hashicorp/terraform-provider-google/google/services/cloudtasks"
6061
"github.com/hashicorp/terraform-provider-google/google/services/colab"
6162
"github.com/hashicorp/terraform-provider-google/google/services/composer"
@@ -575,9 +576,9 @@ var handwrittenIAMDatasources = map[string]*schema.Resource{
575576
}
576577

577578
// Resources
578-
// Generated resources: 662
579+
// Generated resources: 664
579580
// Generated IAM resources: 318
580-
// Total generated resources: 980
581+
// Total generated resources: 982
581582
var generatedResources = map[string]*schema.Resource{
582583
"google_folder_access_approval_settings": accessapproval.ResourceAccessApprovalFolderSettings(),
583584
"google_organization_access_approval_settings": accessapproval.ResourceAccessApprovalOrganizationSettings(),
@@ -787,6 +788,8 @@ var generatedResources = map[string]*schema.Resource{
787788
"google_cloud_run_v2_worker_pool_iam_member": tpgiamresource.ResourceIamMember(cloudrunv2.CloudRunV2WorkerPoolIamSchema, cloudrunv2.CloudRunV2WorkerPoolIamUpdaterProducer, cloudrunv2.CloudRunV2WorkerPoolIdParseFunc),
788789
"google_cloud_run_v2_worker_pool_iam_policy": tpgiamresource.ResourceIamPolicy(cloudrunv2.CloudRunV2WorkerPoolIamSchema, cloudrunv2.CloudRunV2WorkerPoolIamUpdaterProducer, cloudrunv2.CloudRunV2WorkerPoolIdParseFunc),
789790
"google_cloud_scheduler_job": cloudscheduler.ResourceCloudSchedulerJob(),
791+
"google_cloud_security_compliance_cloud_control": cloudsecuritycompliance.ResourceCloudSecurityComplianceCloudControl(),
792+
"google_cloud_security_compliance_framework": cloudsecuritycompliance.ResourceCloudSecurityComplianceFramework(),
790793
"google_cloud_tasks_queue": cloudtasks.ResourceCloudTasksQueue(),
791794
"google_cloud_tasks_queue_iam_binding": tpgiamresource.ResourceIamBinding(cloudtasks.CloudTasksQueueIamSchema, cloudtasks.CloudTasksQueueIamUpdaterProducer, cloudtasks.CloudTasksQueueIdParseFunc),
792795
"google_cloud_tasks_queue_iam_member": tpgiamresource.ResourceIamMember(cloudtasks.CloudTasksQueueIamSchema, cloudtasks.CloudTasksQueueIamUpdaterProducer, cloudtasks.CloudTasksQueueIdParseFunc),
@@ -1733,6 +1736,7 @@ func UseGeneratedProducts() {
17331736
var _ = cloudrun.ProductName
17341737
var _ = cloudrunv2.ProductName
17351738
var _ = cloudscheduler.ProductName
1739+
var _ = cloudsecuritycompliance.ProductName
17361740
var _ = cloudtasks.ProductName
17371741
var _ = colab.ProductName
17381742
var _ = composer.ProductName
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
4+
// ----------------------------------------------------------------------------
5+
//
6+
// *** AUTO GENERATED CODE *** Type: MMv1 ***
7+
//
8+
// ----------------------------------------------------------------------------
9+
//
10+
// This file is automatically generated by Magic Modules and manual
11+
// changes will be clobbered when the file is regenerated.
12+
//
13+
// Please read more about how to change this file in
14+
// .github/CONTRIBUTING.md.
15+
//
16+
// ----------------------------------------------------------------------------
17+
18+
// Package cloudsecuritycompliance contains resources, datasources, etc. for the cloud security compliance service.
19+
package cloudsecuritycompliance
20+
21+
const ProductName = "cloudsecuritycompliance"

0 commit comments

Comments
 (0)