@@ -67,32 +67,37 @@ var ContainerAzureCustomEndpointEntry = &schema.Schema{
6767}
6868var ApikeysEndpointEntryKey = "apikeys_custom_endpoint"
6969var ApikeysEndpointEntry = & schema.Schema {
70- Type : schema .TypeString ,
71- Optional : true ,
70+ Type : schema .TypeString ,
71+ Optional : true ,
72+ ValidateFunc : ValidateCustomEndpoint ,
7273}
7374
7475var AssuredWorkloadsEndpointEntryKey = "assured_workloads_custom_endpoint"
7576var AssuredWorkloadsEndpointEntry = & schema.Schema {
76- Type : schema .TypeString ,
77- Optional : true ,
77+ Type : schema .TypeString ,
78+ Optional : true ,
79+ ValidateFunc : ValidateCustomEndpoint ,
7880}
7981
8082var CloudResourceManagerEndpointEntryKey = "cloud_resource_manager_custom_endpoint"
8183var CloudResourceManagerEndpointEntry = & schema.Schema {
82- Type : schema .TypeString ,
83- Optional : true ,
84+ Type : schema .TypeString ,
85+ Optional : true ,
86+ ValidateFunc : ValidateCustomEndpoint ,
8487}
8588
8689var FirebaserulesEndpointEntryKey = "firebaserules_custom_endpoint"
8790var FirebaserulesEndpointEntry = & schema.Schema {
88- Type : schema .TypeString ,
89- Optional : true ,
91+ Type : schema .TypeString ,
92+ Optional : true ,
93+ ValidateFunc : ValidateCustomEndpoint ,
9094}
9195
9296var RecaptchaEnterpriseEndpointEntryKey = "recaptcha_enterprise_custom_endpoint"
9397var RecaptchaEnterpriseEndpointEntry = & schema.Schema {
94- Type : schema .TypeString ,
95- Optional : true ,
98+ Type : schema .TypeString ,
99+ Optional : true ,
100+ ValidateFunc : ValidateCustomEndpoint ,
96101}
97102
98103func ValidateCustomEndpoint (v interface {}, k string ) (ws []string , errors []error ) {
0 commit comments