This commit is contained in:
2024-05-31 14:05:21 +03:00
parent 84b7a80e1b
commit db1760cb72
815 changed files with 58194 additions and 11049 deletions

View File

@@ -47,6 +47,11 @@ func dataSourceExtnetListSchemaMake() map[string]*schema.Schema {
Optional: true,
Description: "Find by status",
},
"sort_by": {
Type: schema.TypeString,
Optional: true,
Description: "sort by one of supported fields, format +|-(field)",
},
"page": {
Type: schema.TypeInt,
Optional: true,
@@ -718,7 +723,7 @@ func resourceExtnetSchemaMake() map[string]*schema.Schema {
"shared_with": {
Type: schema.TypeSet,
Computed: true,
Optional: true,
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeInt,
},
@@ -899,4 +904,4 @@ func resourceExtnetSchemaMake() map[string]*schema.Schema {
},
},
}
}
}

View File

@@ -74,6 +74,10 @@ func utilityExtnetListCheckPresence(ctx context.Context, d *schema.ResourceData,
req.Status = status.(string)
}
if sortBy, ok := d.GetOk("sort_by"); ok {
req.SortBy = sortBy.(string)
}
if page, ok := d.GetOk("page"); ok {
req.Page = uint64(page.(int))
}