-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
common_schema.go
66 lines (50 loc) · 1.64 KB
/
common_schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package azurerm
// NOTE: methods in this file will be moved to `./helpers/azurerm` in time
// new methods should be added to this directory instead.
// This file exists to be able to consolidate files in the root
import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure"
)
func locationSchema() *schema.Schema {
return azure.SchemaLocation()
}
func locationSchemaOptional() *schema.Schema {
return azure.SchemaLocationOptional()
}
func locationForDataSourceSchema() *schema.Schema {
return azure.SchemaLocationForDataSource()
}
func deprecatedLocationSchema() *schema.Schema {
return azure.SchemaLocationDeprecated()
}
func azureRMNormalizeLocation(location interface{}) string {
return azure.NormalizeLocation(location)
}
func azureRMSuppressLocationDiff(k, old, new string, d *schema.ResourceData) bool {
return azure.SuppressLocationDiff(k, old, new, d)
}
func resourceGroupNameSchema() *schema.Schema {
return azure.SchemaResourceGroupName()
}
func resourceGroupNameDiffSuppressSchema() *schema.Schema {
return azure.SchemaResourceGroupNameDiffSuppress()
}
func resourceGroupNameForDataSourceSchema() *schema.Schema {
return azure.SchemaResourceGroupNameForDataSource()
}
func zonesSchema() *schema.Schema {
return azure.SchemaZones()
}
func singleZonesSchema() *schema.Schema {
return azure.SchemaSingleZone()
}
func zonesSchemaComputed() *schema.Schema {
return azure.SchemaZonesComputed()
}
func expandZones(v []interface{}) *[]string {
return azure.ExpandZones(v)
}
func azureRMHashLocation(location interface{}) int {
return azure.HashAzureLocation(location)
}