v1.12.2
This commit is contained in:
49
pkg/sdn/acsgroups/models.go
Normal file
49
pkg/sdn/acsgroups/models.go
Normal file
@@ -0,0 +1,49 @@
|
||||
package acsgroups
|
||||
|
||||
type AccessGroupItem struct {
|
||||
Name string `json:"display_name"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
type AccessGroupList struct {
|
||||
AccessGroups []AccessGroup
|
||||
}
|
||||
|
||||
type AccessGroup struct {
|
||||
ID string `json:"id"`
|
||||
DisplayName string `json:"display_name"`
|
||||
Comment string `json:"comment"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
CreatedBy string `json:"created_by"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
UpdatedBy string `json:"updated_by"`
|
||||
NetObjectAccessGroup NetObjectAccessGroup `json:"net_object_access_group"`
|
||||
DefaultSecurityPolicy DefaultSecurityPolicy `json:"default_security_policy"`
|
||||
}
|
||||
|
||||
type NetObjectAccessGroup struct {
|
||||
ID string `json:"id"`
|
||||
VersionID int64 `json:"version_id"`
|
||||
AccessGroupID string `json:"access_group_id"`
|
||||
}
|
||||
|
||||
type DefaultSecurityPolicy struct {
|
||||
ID string `json:"id"`
|
||||
DisplayName string `json:"display_name"`
|
||||
Description string `json:"description"`
|
||||
VersionID int64 `json:"version_id"`
|
||||
AccessGroupID string `json:"access_group_id"`
|
||||
DefaultAclDrop string `json:"default_acl_drop"`
|
||||
DefaultOpenSessionDrop bool `json:"default_open_session_drop"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
Name string `json:"display_name"`
|
||||
ID string `json:"id"`
|
||||
RoleID string `json:"role_id"`
|
||||
Login string `json:"login"`
|
||||
}
|
||||
|
||||
type UsersList struct {
|
||||
Users []User
|
||||
}
|
||||
Reference in New Issue
Block a user