Skip to content

Commit 6fe812f

Browse files
authored
Add bigtable app profile resource
2 parents 0f6ff59 + 46c3c91 commit 6fe812f

6 files changed

+778
-2
lines changed

google/config.go

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ type Config struct {
7272
AccessContextManagerBasePath string
7373
AppEngineBasePath string
7474
BigqueryDataTransferBasePath string
75+
BigtableBasePath string
7576
BinaryAuthorizationBasePath string
7677
CloudBuildBasePath string
7778
CloudSchedulerBasePath string
@@ -195,6 +196,7 @@ type Config struct {
195196
var AccessContextManagerDefaultBasePath = "https://accesscontextmanager.googleapis.com/v1/"
196197
var AppEngineDefaultBasePath = "https://appengine.googleapis.com/v1/"
197198
var BigqueryDataTransferDefaultBasePath = "https://bigquerydatatransfer.googleapis.com/v1/"
199+
var BigtableDefaultBasePath = "https://bigtableadmin.googleapis.com/v2/"
198200
var BinaryAuthorizationDefaultBasePath = "https://binaryauthorization.googleapis.com/v1/"
199201
var CloudBuildDefaultBasePath = "https://cloudbuild.googleapis.com/v1/"
200202
var CloudSchedulerDefaultBasePath = "https://cloudscheduler.googleapis.com/v1/"

google/provider.go

+13-2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ func Provider() terraform.ResourceProvider {
127127
"GOOGLE_BIGQUERY_DATA_TRANSFER_CUSTOM_ENDPOINT",
128128
}, BigqueryDataTransferDefaultBasePath),
129129
},
130+
"bigtable_custom_endpoint": {
131+
Type: schema.TypeString,
132+
Optional: true,
133+
ValidateFunc: validateCustomEndpoint,
134+
DefaultFunc: schema.MultiEnvDefaultFunc([]string{
135+
"GOOGLE_BIGTABLE_CUSTOM_ENDPOINT",
136+
}, BigtableDefaultBasePath),
137+
},
130138
"binary_authorization_custom_endpoint": {
131139
Type: schema.TypeString,
132140
Optional: true,
@@ -365,9 +373,9 @@ func Provider() terraform.ResourceProvider {
365373
}
366374
}
367375

368-
// Generated resources: 69
376+
// Generated resources: 70
369377
// Generated IAM resources: 6
370-
// Total generated resources: 75
378+
// Total generated resources: 76
371379
func ResourceMap() map[string]*schema.Resource {
372380
resourceMap, _ := ResourceMapWithErrors()
373381
return resourceMap
@@ -381,6 +389,7 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
381389
"google_access_context_manager_service_perimeter": resourceAccessContextManagerServicePerimeter(),
382390
"google_app_engine_firewall_rule": resourceAppEngineFirewallRule(),
383391
"google_bigquery_data_transfer_config": resourceBigqueryDataTransferConfig(),
392+
"google_bigtable_app_profile": resourceBigtableAppProfile(),
384393
"google_binary_authorization_attestor": resourceBinaryAuthorizationAttestor(),
385394
"google_binary_authorization_policy": resourceBinaryAuthorizationPolicy(),
386395
"google_cloudbuild_trigger": resourceCloudBuildTrigger(),
@@ -607,6 +616,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
607616
config.AccessContextManagerBasePath = d.Get("access_context_manager_custom_endpoint").(string)
608617
config.AppEngineBasePath = d.Get("app_engine_custom_endpoint").(string)
609618
config.BigqueryDataTransferBasePath = d.Get("bigquery_data_transfer_custom_endpoint").(string)
619+
config.BigtableBasePath = d.Get("bigtable_custom_endpoint").(string)
610620
config.BinaryAuthorizationBasePath = d.Get("binary_authorization_custom_endpoint").(string)
611621
config.CloudBuildBasePath = d.Get("cloud_build_custom_endpoint").(string)
612622
config.CloudSchedulerBasePath = d.Get("cloud_scheduler_custom_endpoint").(string)
@@ -666,6 +676,7 @@ func ConfigureBasePaths(c *Config) {
666676
c.AccessContextManagerBasePath = AccessContextManagerDefaultBasePath
667677
c.AppEngineBasePath = AppEngineDefaultBasePath
668678
c.BigqueryDataTransferBasePath = BigqueryDataTransferDefaultBasePath
679+
c.BigtableBasePath = BigtableDefaultBasePath
669680
c.BinaryAuthorizationBasePath = BinaryAuthorizationDefaultBasePath
670681
c.CloudBuildBasePath = CloudBuildDefaultBasePath
671682
c.CloudSchedulerBasePath = CloudSchedulerDefaultBasePath

0 commit comments

Comments
 (0)