| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | package modelsimport (	"fmt"	"time")type TagID stringconst (	RemoteAccessTagName = "remote-access-gws")func (id TagID) String() string {	return string(id)}func (t Tag) GetIDFromName() string {	return fmt.Sprintf("%s.%s", t.Network, t.TagName)}type Tag struct {	ID        TagID     `json:"id"`	TagName   string    `json:"tag_name"`	Network   NetworkID `json:"network"`	CreatedBy string    `json:"created_by"`	CreatedAt time.Time `json:"created_at"`}type CreateTagReq struct {	TagName     string    `json:"tag_name"`	Network     NetworkID `json:"network"`	TaggedNodes []ApiNode `json:"tagged_nodes"`}type TagListResp struct {	Tag	UsedByCnt   int       `json:"used_by_count"`	TaggedNodes []ApiNode `json:"tagged_nodes"`}type TagListRespNodes struct {	Tag	UsedByCnt   int       `json:"used_by_count"`	TaggedNodes []ApiNode `json:"tagged_nodes"`}type UpdateTagReq struct {	Tag	NewName     string    `json:"new_name"`	TaggedNodes []ApiNode `json:"tagged_nodes"`}
 |