@@ -85,6 +85,11 @@ func resourceBigqueryConnectionConnection() *schema.Resource {
85
85
Required : true ,
86
86
Description : `The id of customer's directory that host the data.` ,
87
87
},
88
+ "federated_application_client_id" : {
89
+ Type : schema .TypeString ,
90
+ Optional : true ,
91
+ Description : `The Azure Application (client) ID where the federated credentials will be hosted.` ,
92
+ },
88
93
"application" : {
89
94
Type : schema .TypeString ,
90
95
Computed : true ,
@@ -533,7 +538,8 @@ func resourceBigqueryConnectionConnectionUpdate(d *schema.ResourceData, meta int
533
538
}
534
539
535
540
if d .HasChange ("azure" ) {
536
- updateMask = append (updateMask , "azure" )
541
+ updateMask = append (updateMask , "azure.customer_tenant_id" ,
542
+ "azure.federated_application_client_id" )
537
543
}
538
544
539
545
if d .HasChange ("cloud_spanner" ) {
@@ -743,6 +749,8 @@ func flattenBigqueryConnectionConnectionAzure(v interface{}, d *schema.ResourceD
743
749
flattenBigqueryConnectionConnectionAzureObjectId (original ["objectId" ], d , config )
744
750
transformed ["customer_tenant_id" ] =
745
751
flattenBigqueryConnectionConnectionAzureCustomerTenantId (original ["customerTenantId" ], d , config )
752
+ transformed ["federated_application_client_id" ] =
753
+ flattenBigqueryConnectionConnectionAzureFederatedApplicationClientId (original ["federatedApplicationClientId" ], d , config )
746
754
transformed ["redirect_uri" ] =
747
755
flattenBigqueryConnectionConnectionAzureRedirectUri (original ["redirectUri" ], d , config )
748
756
transformed ["identity" ] =
@@ -765,6 +773,10 @@ func flattenBigqueryConnectionConnectionAzureCustomerTenantId(v interface{}, d *
765
773
return v
766
774
}
767
775
776
+ func flattenBigqueryConnectionConnectionAzureFederatedApplicationClientId (v interface {}, d * schema.ResourceData , config * Config ) interface {} {
777
+ return v
778
+ }
779
+
768
780
func flattenBigqueryConnectionConnectionAzureRedirectUri (v interface {}, d * schema.ResourceData , config * Config ) interface {} {
769
781
return v
770
782
}
@@ -1018,6 +1030,13 @@ func expandBigqueryConnectionConnectionAzure(v interface{}, d TerraformResourceD
1018
1030
transformed ["customerTenantId" ] = transformedCustomerTenantId
1019
1031
}
1020
1032
1033
+ transformedFederatedApplicationClientId , err := expandBigqueryConnectionConnectionAzureFederatedApplicationClientId (original ["federated_application_client_id" ], d , config )
1034
+ if err != nil {
1035
+ return nil , err
1036
+ } else if val := reflect .ValueOf (transformedFederatedApplicationClientId ); val .IsValid () && ! isEmptyValue (val ) {
1037
+ transformed ["federatedApplicationClientId" ] = transformedFederatedApplicationClientId
1038
+ }
1039
+
1021
1040
transformedRedirectUri , err := expandBigqueryConnectionConnectionAzureRedirectUri (original ["redirect_uri" ], d , config )
1022
1041
if err != nil {
1023
1042
return nil , err
@@ -1051,6 +1070,10 @@ func expandBigqueryConnectionConnectionAzureCustomerTenantId(v interface{}, d Te
1051
1070
return v , nil
1052
1071
}
1053
1072
1073
+ func expandBigqueryConnectionConnectionAzureFederatedApplicationClientId (v interface {}, d TerraformResourceData , config * Config ) (interface {}, error ) {
1074
+ return v , nil
1075
+ }
1076
+
1054
1077
func expandBigqueryConnectionConnectionAzureRedirectUri (v interface {}, d TerraformResourceData , config * Config ) (interface {}, error ) {
1055
1078
return v , nil
1056
1079
}
0 commit comments