Files
dynamix-golang-sdk/pkg/sdn/defsecpolicies/ids.go

11 lines
253 B
Go
Raw Normal View History

2025-11-14 17:59:31 +03:00
package defsecpolicies
// IDs gets array of IDs from SecurityPoliciesList struct
func (spl SecurityPoliciesList) IDs() []string {
res := make([]string, 0, len(spl.Policies))
for _, c := range spl.Policies {
res = append(res, c.ID)
}
return res
}