Skip to content

Commit e675c0f

Browse files
cloudsecuritycompliace: add google_cloud_security_compliance_cloud_control resource (#15360) (#10914)
[upstream:293b9124146aca3894b8fe75fa4ac85d2f2fe177] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent f89acb0 commit e675c0f

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-beta/fwmodels/provider_model.go

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

google-beta/fwprovider/framework_provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
412412
transport_tpg.CustomEndpointValidator(),
413413
},
414414
},
415+
"cloud_security_compliance_custom_endpoint": &schema.StringAttribute{
416+
Optional: true,
417+
Validators: []validator.String{
418+
transport_tpg.CustomEndpointValidator(),
419+
},
420+
},
415421
"cloud_tasks_custom_endpoint": &schema.StringAttribute{
416422
Optional: true,
417423
Validators: []validator.String{

google-beta/provider/provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ func Provider() *schema.Provider {
383383
Optional: true,
384384
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
385385
},
386+
"cloud_security_compliance_custom_endpoint": {
387+
Type: schema.TypeString,
388+
Optional: true,
389+
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
390+
},
386391
"cloud_tasks_custom_endpoint": {
387392
Type: schema.TypeString,
388393
Optional: true,
@@ -1235,6 +1240,7 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
12351240
config.CloudRunBasePath = d.Get("cloud_run_custom_endpoint").(string)
12361241
config.CloudRunV2BasePath = d.Get("cloud_run_v2_custom_endpoint").(string)
12371242
config.CloudSchedulerBasePath = d.Get("cloud_scheduler_custom_endpoint").(string)
1243+
config.CloudSecurityComplianceBasePath = d.Get("cloud_security_compliance_custom_endpoint").(string)
12381244
config.CloudTasksBasePath = d.Get("cloud_tasks_custom_endpoint").(string)
12391245
config.ColabBasePath = d.Get("colab_custom_endpoint").(string)
12401246
config.ComposerBasePath = d.Get("composer_custom_endpoint").(string)

google-beta/provider/provider_mmv1_resources.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import (
5757
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudrun"
5858
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudrunv2"
5959
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudscheduler"
60+
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudsecuritycompliance"
6061
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudtasks"
6162
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/colab"
6263
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/composer"
@@ -620,9 +621,9 @@ var handwrittenIAMDatasources = map[string]*schema.Resource{
620621
}
621622

622623
// Resources
623-
// Generated resources: 723
624+
// Generated resources: 725
624625
// Generated IAM resources: 348
625-
// Total generated resources: 1071
626+
// Total generated resources: 1073
626627
var generatedResources = map[string]*schema.Resource{
627628
"google_folder_access_approval_settings": accessapproval.ResourceAccessApprovalFolderSettings(),
628629
"google_organization_access_approval_settings": accessapproval.ResourceAccessApprovalOrganizationSettings(),
@@ -848,6 +849,8 @@ var generatedResources = map[string]*schema.Resource{
848849
"google_cloud_run_v2_worker_pool_iam_member": tpgiamresource.ResourceIamMember(cloudrunv2.CloudRunV2WorkerPoolIamSchema, cloudrunv2.CloudRunV2WorkerPoolIamUpdaterProducer, cloudrunv2.CloudRunV2WorkerPoolIdParseFunc),
849850
"google_cloud_run_v2_worker_pool_iam_policy": tpgiamresource.ResourceIamPolicy(cloudrunv2.CloudRunV2WorkerPoolIamSchema, cloudrunv2.CloudRunV2WorkerPoolIamUpdaterProducer, cloudrunv2.CloudRunV2WorkerPoolIdParseFunc),
850851
"google_cloud_scheduler_job": cloudscheduler.ResourceCloudSchedulerJob(),
852+
"google_cloud_security_compliance_cloud_control": cloudsecuritycompliance.ResourceCloudSecurityComplianceCloudControl(),
853+
"google_cloud_security_compliance_framework": cloudsecuritycompliance.ResourceCloudSecurityComplianceFramework(),
851854
"google_cloud_tasks_queue": cloudtasks.ResourceCloudTasksQueue(),
852855
"google_cloud_tasks_queue_iam_binding": tpgiamresource.ResourceIamBinding(cloudtasks.CloudTasksQueueIamSchema, cloudtasks.CloudTasksQueueIamUpdaterProducer, cloudtasks.CloudTasksQueueIdParseFunc),
853856
"google_cloud_tasks_queue_iam_member": tpgiamresource.ResourceIamMember(cloudtasks.CloudTasksQueueIamSchema, cloudtasks.CloudTasksQueueIamUpdaterProducer, cloudtasks.CloudTasksQueueIdParseFunc),
@@ -1906,6 +1909,7 @@ func UseGeneratedProducts() {
19061909
var _ = cloudrun.ProductName
19071910
var _ = cloudrunv2.ProductName
19081911
var _ = cloudscheduler.ProductName
1912+
var _ = cloudsecuritycompliance.ProductName
19091913
var _ = cloudtasks.ProductName
19101914
var _ = colab.ProductName
19111915
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)