tps-cli/internal/properties/properties.go

33 lines
1.0 KiB
Go

package properties
type Property struct {
Type []string `json:"@type"`
Name string `json:"vcfg:name"`
Value string `json:"vcfg:value"`
ID string `json:"vcfg:id,omitempty"`
Status int `json:"vcfg:status,omitempty"`
Prefix string `json:"vcfg:prefix,omitempty"`
LastModifiedBy string `json:"vcfg:lastModifiedBy,omitempty"`
LastModifiedDate string `json:"vcfg:lastModifiedDate,omitempty"`
}
type Collection struct {
TotalItems int `json:"hydra:totalItems"`
Member []Property `json:"hydra:member"`
}
type PropertyUpdateOrCreate struct {
Type string `json:"@type"`
Name string `json:"vcfg:name"`
Value string `json:"vcfg:value"`
Status int `json:"vcfg:status"`
Description string `json:"vcfg:description"`
}
type PropertyDelete struct {
Type string `json:"@type"`
Name string `json:"vcfg:name"`
Status int `json:"vcfg:status"`
Description string `json:"vcfg:description"`
}