This commit is contained in:
2025-08-04 16:11:16 +03:00
parent bae25296bb
commit 4b3f21d9be
239 changed files with 6585 additions and 784 deletions

View File

@@ -18,6 +18,9 @@ func flattenGrid(d *schema.ResourceData, grid *grid.RecordGrid) {
d.Set("guid", grid.GUID)
d.Set("location_code", grid.LocationCode)
d.Set("id", grid.ID)
d.Set("network_modes", grid.NetworkModes)
d.Set("sdn_support", grid.SDNSupport)
}
func flattenGridList(gl *grid.ListGrids) []map[string]interface{} {
@@ -32,6 +35,8 @@ func flattenGridList(gl *grid.ListGrids) []map[string]interface{} {
"guid": item.GUID,
"location_code": item.LocationCode,
"id": item.ID,
"network_modes": item.NetworkModes,
"sdn_support": item.SDNSupport,
}
res = append(res, temp)
}

View File

@@ -51,6 +51,17 @@ func dataSourceGetGridSchemaMake() map[string]*schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"network_modes": {
Type: schema.TypeList,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Computed: true,
},
"sdn_support": {
Type: schema.TypeBool,
Computed: true,
},
}
}
@@ -246,6 +257,17 @@ func dataSourceGridListSchemaMake() map[string]*schema.Schema {
Type: schema.TypeString,
Computed: true,
},
"network_modes": {
Type: schema.TypeList,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Computed: true,
},
"sdn_support": {
Type: schema.TypeBool,
Computed: true,
},
},
},
},