Skip to content

Commit 488fd33

Browse files
committed
2 parents c7abde3 + fa49ab3 commit 488fd33

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

mmv1/third_party/terraform/transport/provider_handwritten_endpoint.go

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,32 +67,37 @@ var ContainerAzureCustomEndpointEntry = &schema.Schema{
6767
}
6868
var ApikeysEndpointEntryKey = "apikeys_custom_endpoint"
6969
var ApikeysEndpointEntry = &schema.Schema{
70-
Type: schema.TypeString,
71-
Optional: true,
70+
Type: schema.TypeString,
71+
Optional: true,
72+
ValidateFunc: ValidateCustomEndpoint,
7273
}
7374

7475
var AssuredWorkloadsEndpointEntryKey = "assured_workloads_custom_endpoint"
7576
var AssuredWorkloadsEndpointEntry = &schema.Schema{
76-
Type: schema.TypeString,
77-
Optional: true,
77+
Type: schema.TypeString,
78+
Optional: true,
79+
ValidateFunc: ValidateCustomEndpoint,
7880
}
7981

8082
var CloudResourceManagerEndpointEntryKey = "cloud_resource_manager_custom_endpoint"
8183
var CloudResourceManagerEndpointEntry = &schema.Schema{
82-
Type: schema.TypeString,
83-
Optional: true,
84+
Type: schema.TypeString,
85+
Optional: true,
86+
ValidateFunc: ValidateCustomEndpoint,
8487
}
8588

8689
var FirebaserulesEndpointEntryKey = "firebaserules_custom_endpoint"
8790
var FirebaserulesEndpointEntry = &schema.Schema{
88-
Type: schema.TypeString,
89-
Optional: true,
91+
Type: schema.TypeString,
92+
Optional: true,
93+
ValidateFunc: ValidateCustomEndpoint,
9094
}
9195

9296
var RecaptchaEnterpriseEndpointEntryKey = "recaptcha_enterprise_custom_endpoint"
9397
var RecaptchaEnterpriseEndpointEntry = &schema.Schema{
94-
Type: schema.TypeString,
95-
Optional: true,
98+
Type: schema.TypeString,
99+
Optional: true,
100+
ValidateFunc: ValidateCustomEndpoint,
96101
}
97102

98103
func ValidateCustomEndpoint(v interface{}, k string) (ws []string, errors []error) {

0 commit comments

Comments
 (0)