4.10.0
This commit is contained in:
@@ -56,6 +56,7 @@ func flattenLocationsList(ll *locations.ListLocations) []map[string]interface{}
|
||||
"id": l.ID,
|
||||
"location_code": l.LocationCode,
|
||||
"name": l.Name,
|
||||
"network_modes": l.NetworkModes,
|
||||
"sdn_support": l.SDNSupport,
|
||||
}
|
||||
res = append(res, temp)
|
||||
@@ -170,6 +171,13 @@ func dataSourceLocationsListSchemaMake() map[string]*schema.Schema {
|
||||
Computed: true,
|
||||
Description: "Location name",
|
||||
},
|
||||
"network_modes": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Elem: &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
},
|
||||
},
|
||||
"sdn_support": {
|
||||
Type: schema.TypeBool,
|
||||
Computed: true,
|
||||
|
||||
@@ -26,6 +26,8 @@ type Location struct {
|
||||
Guid int `json:"guid"`
|
||||
LocationCode string `json:"locationCode"`
|
||||
Name string `json:"name"`
|
||||
NetworkModes []string `json:"network_modes"`
|
||||
SDNSupport bool `json:"sdn_support"`
|
||||
Flag string `json:"flag"`
|
||||
Meta []interface{} `json:"_meta"`
|
||||
CKey string `json:"_ckey"`
|
||||
|
||||
Reference in New Issue
Block a user