Skip to content

Commit 40f3296

Browse files
Add SaaS Runtime product and Saas resource (#14671) (#10556)
[upstream:6ee4d127494c7832e478ef42fa4bd74fd2f8f72b] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent f40a469 commit 40f3296

14 files changed

+1343
-2
lines changed

.changelog/14671.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_saas_runtime_saas`
3+
```

google-beta/fwmodels/provider_model.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ type ProviderModel struct {
180180
ResourceManagerCustomEndpoint types.String `tfsdk:"resource_manager_custom_endpoint"`
181181
ResourceManager3CustomEndpoint types.String `tfsdk:"resource_manager3_custom_endpoint"`
182182
RuntimeConfigCustomEndpoint types.String `tfsdk:"runtime_config_custom_endpoint"`
183+
SaasRuntimeCustomEndpoint types.String `tfsdk:"saas_runtime_custom_endpoint"`
183184
SecretManagerCustomEndpoint types.String `tfsdk:"secret_manager_custom_endpoint"`
184185
SecretManagerRegionalCustomEndpoint types.String `tfsdk:"secret_manager_regional_custom_endpoint"`
185186
SecureSourceManagerCustomEndpoint types.String `tfsdk:"secure_source_manager_custom_endpoint"`

google-beta/fwprovider/framework_provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,12 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
943943
transport_tpg.CustomEndpointValidator(),
944944
},
945945
},
946+
"saas_runtime_custom_endpoint": &schema.StringAttribute{
947+
Optional: true,
948+
Validators: []validator.String{
949+
transport_tpg.CustomEndpointValidator(),
950+
},
951+
},
946952
"secret_manager_custom_endpoint": &schema.StringAttribute{
947953
Optional: true,
948954
Validators: []validator.String{

google-beta/provider/provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,11 @@ func Provider() *schema.Provider {
828828
Optional: true,
829829
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
830830
},
831+
"saas_runtime_custom_endpoint": {
832+
Type: schema.TypeString,
833+
Optional: true,
834+
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
835+
},
831836
"secret_manager_custom_endpoint": {
832837
Type: schema.TypeString,
833838
Optional: true,
@@ -1309,6 +1314,7 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
13091314
config.ResourceManagerBasePath = d.Get("resource_manager_custom_endpoint").(string)
13101315
config.ResourceManager3BasePath = d.Get("resource_manager3_custom_endpoint").(string)
13111316
config.RuntimeConfigBasePath = d.Get("runtime_config_custom_endpoint").(string)
1317+
config.SaasRuntimeBasePath = d.Get("saas_runtime_custom_endpoint").(string)
13121318
config.SecretManagerBasePath = d.Get("secret_manager_custom_endpoint").(string)
13131319
config.SecretManagerRegionalBasePath = d.Get("secret_manager_regional_custom_endpoint").(string)
13141320
config.SecureSourceManagerBasePath = d.Get("secure_source_manager_custom_endpoint").(string)

google-beta/provider/provider_mmv1_resources.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ import (
146146
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/resourcemanager"
147147
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/resourcemanager3"
148148
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/runtimeconfig"
149+
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/saasruntime"
149150
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/secretmanager"
150151
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/secretmanagerregional"
151152
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/securesourcemanager"
@@ -604,9 +605,9 @@ var handwrittenIAMDatasources = map[string]*schema.Resource{
604605
}
605606

606607
// Resources
607-
// Generated resources: 699
608+
// Generated resources: 700
608609
// Generated IAM resources: 342
609-
// Total generated resources: 1041
610+
// Total generated resources: 1042
610611
var generatedResources = map[string]*schema.Resource{
611612
"google_folder_access_approval_settings": accessapproval.ResourceAccessApprovalFolderSettings(),
612613
"google_organization_access_approval_settings": accessapproval.ResourceAccessApprovalOrganizationSettings(),
@@ -1479,6 +1480,7 @@ var generatedResources = map[string]*schema.Resource{
14791480
"google_runtimeconfig_config_iam_binding": tpgiamresource.ResourceIamBinding(runtimeconfig.RuntimeConfigConfigIamSchema, runtimeconfig.RuntimeConfigConfigIamUpdaterProducer, runtimeconfig.RuntimeConfigConfigIdParseFunc),
14801481
"google_runtimeconfig_config_iam_member": tpgiamresource.ResourceIamMember(runtimeconfig.RuntimeConfigConfigIamSchema, runtimeconfig.RuntimeConfigConfigIamUpdaterProducer, runtimeconfig.RuntimeConfigConfigIdParseFunc),
14811482
"google_runtimeconfig_config_iam_policy": tpgiamresource.ResourceIamPolicy(runtimeconfig.RuntimeConfigConfigIamSchema, runtimeconfig.RuntimeConfigConfigIamUpdaterProducer, runtimeconfig.RuntimeConfigConfigIdParseFunc),
1483+
"google_saas_runtime_saas": saasruntime.ResourceSaasRuntimeSaas(),
14821484
"google_secret_manager_secret": secretmanager.ResourceSecretManagerSecret(),
14831485
"google_secret_manager_secret_iam_binding": tpgiamresource.ResourceIamBinding(secretmanager.SecretManagerSecretIamSchema, secretmanager.SecretManagerSecretIamUpdaterProducer, secretmanager.SecretManagerSecretIdParseFunc),
14841486
"google_secret_manager_secret_iam_member": tpgiamresource.ResourceIamMember(secretmanager.SecretManagerSecretIamSchema, secretmanager.SecretManagerSecretIamUpdaterProducer, secretmanager.SecretManagerSecretIdParseFunc),
@@ -1951,6 +1953,7 @@ func UseGeneratedProducts() {
19511953
var _ = resourcemanager.ProductName
19521954
var _ = resourcemanager3.ProductName
19531955
var _ = runtimeconfig.ProductName
1956+
var _ = saasruntime.ProductName
19541957
var _ = secretmanager.ProductName
19551958
var _ = secretmanagerregional.ProductName
19561959
var _ = securesourcemanager.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 saasruntime contains resources, datasources, etc. for the saas runtime service.
19+
package saasruntime
20+
21+
const ProductName = "saasruntime"

0 commit comments

Comments
 (0)