@@ -175,6 +175,14 @@ func Provider() terraform.ResourceProvider {
175
175
"GOOGLE_COMPUTE_CUSTOM_ENDPOINT" ,
176
176
}, ComputeDefaultBasePath ),
177
177
},
178
+ "dataproc_custom_endpoint" : {
179
+ Type : schema .TypeString ,
180
+ Optional : true ,
181
+ ValidateFunc : validateCustomEndpoint ,
182
+ DefaultFunc : schema .MultiEnvDefaultFunc ([]string {
183
+ "GOOGLE_DATAPROC_CUSTOM_ENDPOINT" ,
184
+ }, DataprocDefaultBasePath ),
185
+ },
178
186
"dns_custom_endpoint" : {
179
187
Type : schema .TypeString ,
180
188
Optional : true ,
@@ -310,7 +318,6 @@ func Provider() terraform.ResourceProvider {
310
318
ComputeBetaCustomEndpointEntryKey : ComputeBetaCustomEndpointEntry ,
311
319
ContainerCustomEndpointEntryKey : ContainerCustomEndpointEntry ,
312
320
ContainerBetaCustomEndpointEntryKey : ContainerBetaCustomEndpointEntry ,
313
- DataprocCustomEndpointEntryKey : DataprocCustomEndpointEntry ,
314
321
DataprocBetaCustomEndpointEntryKey : DataprocBetaCustomEndpointEntry ,
315
322
DataflowCustomEndpointEntryKey : DataflowCustomEndpointEntry ,
316
323
DnsBetaCustomEndpointEntryKey : DnsBetaCustomEndpointEntry ,
@@ -639,6 +646,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
639
646
config .CloudBuildBasePath = d .Get ("cloud_build_custom_endpoint" ).(string )
640
647
config .CloudSchedulerBasePath = d .Get ("cloud_scheduler_custom_endpoint" ).(string )
641
648
config .ComputeBasePath = d .Get ("compute_custom_endpoint" ).(string )
649
+ config .DataprocBasePath = d .Get ("dataproc_custom_endpoint" ).(string )
642
650
config .DnsBasePath = d .Get ("dns_custom_endpoint" ).(string )
643
651
config .FilestoreBasePath = d .Get ("filestore_custom_endpoint" ).(string )
644
652
config .FirestoreBasePath = d .Get ("firestore_custom_endpoint" ).(string )
@@ -663,7 +671,6 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
663
671
config .ComputeBetaBasePath = d .Get (ComputeBetaCustomEndpointEntryKey ).(string )
664
672
config .ContainerBasePath = d .Get (ContainerCustomEndpointEntryKey ).(string )
665
673
config .ContainerBetaBasePath = d .Get (ContainerBetaCustomEndpointEntryKey ).(string )
666
- config .DataprocBasePath = d .Get (DataprocCustomEndpointEntryKey ).(string )
667
674
config .DataprocBetaBasePath = d .Get (DataprocBetaCustomEndpointEntryKey ).(string )
668
675
config .DataflowBasePath = d .Get (DataflowCustomEndpointEntryKey ).(string )
669
676
config .DnsBetaBasePath = d .Get (DnsBetaCustomEndpointEntryKey ).(string )
0 commit comments