@@ -43,11 +43,21 @@ func dataSourcePublicCloudRegion() *schema.Resource {
43
43
},
44
44
45
45
"continentCode" : & schema.Schema {
46
+ Type : schema .TypeString ,
47
+ Computed : true ,
48
+ Deprecated : "Deprecated, use continent_code instead." ,
49
+ },
50
+ "datacenterLocation" : & schema.Schema {
51
+ Type : schema .TypeString ,
52
+ Computed : true ,
53
+ Deprecated : "Deprecated, use datacenter_location instead." ,
54
+ },
55
+
56
+ "continent_code" : & schema.Schema {
46
57
Type : schema .TypeString ,
47
58
Computed : true ,
48
59
},
49
-
50
- "datacenterLocation" : & schema.Schema {
60
+ "datacenter_location" : & schema.Schema {
51
61
Type : schema .TypeString ,
52
62
Computed : true ,
53
63
},
@@ -71,9 +81,13 @@ func dataSourcePublicCloudRegionRead(d *schema.ResourceData, meta interface{}) e
71
81
return fmt .Errorf ("Error calling %s:\n \t %q" , endpoint , err )
72
82
}
73
83
84
+ // TODO: Deprecated - remove in next major release
74
85
d .Set ("datacenterLocation" , response .DatacenterLocation )
75
86
d .Set ("continentCode" , response .ContinentCode )
76
87
88
+ d .Set ("datacenter_location" , response .DatacenterLocation )
89
+ d .Set ("continent_code" , response .ContinentCode )
90
+
77
91
services := & schema.Set {
78
92
F : publicCloudServiceHash ,
79
93
}
0 commit comments