You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google-beta/services/sql/resource_sql_database_instance.go
+53
Original file line number
Diff line number
Diff line change
@@ -491,6 +491,25 @@ is set to true. Defaults to ZONAL.`,
491
491
Set: schema.HashString,
492
492
Description: `List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).`,
493
493
},
494
+
"psc_auto_connections": {
495
+
Type: schema.TypeList,
496
+
Optional: true,
497
+
Elem: &schema.Resource{
498
+
Schema: map[string]*schema.Schema{
499
+
"consumer_service_project_id": {
500
+
Type: schema.TypeString,
501
+
Optional: true,
502
+
Description: `The project ID of consumer service project of this consumer endpoint.`,
503
+
},
504
+
"consumer_network": {
505
+
Type: schema.TypeString,
506
+
Required: true,
507
+
Description: `The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.`,
508
+
},
509
+
},
510
+
},
511
+
Description: `A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.`,
returnfmt.Errorf("settings.0.ip_configuration.0.psc_config.0.psc_enabled property value is not set as expected in state of %s, expected %v, actual %v", resourceName, expectedPscEnabled, pscEnabled)
returnfmt.Errorf("settings.0.ip_configuration.0.psc_config.0.psc_auto_connections.0.consumer_network property is not present or set as expected in state of %s", resourceName)
returnfmt.Errorf("settings.0.ip_configuration.0.psc_config.0.psc_auto_connections.0.consumer_service_project_id property is not present or set as expected in state of %s", resourceName)
@@ -404,6 +432,12 @@ The optional `settings.ip_configuration.psc_config` sublist supports:
404
432
405
433
*`allowed_consumer_projects` - (Optional) List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
406
434
435
+
* The optional `psc_config.psc_auto_connections` subblock - (Optional) A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
436
+
437
+
*`consumer_network` - "The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project."
438
+
439
+
*`consumer_service_project_id` - (Optional) The project ID of consumer service project of this consumer endpoint.
440
+
407
441
The optional `settings.location_preference` subblock supports:
408
442
409
443
*`follow_gae_application` - (Optional) A GAE application whose zone to remain
0 commit comments