Initial Commit
This commit is contained in:
32
internal/properties/properties.go
Normal file
32
internal/properties/properties.go
Normal file
@@ -0,0 +1,32 @@
|
||||
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 string `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 string `json:"vcfg:status"`
|
||||
Description string `json:"vcfg:description"`
|
||||
}
|
||||
|
||||
type PropertyDelete struct {
|
||||
Type string `json:"@type"`
|
||||
Name string `json:"vcfg:name"`
|
||||
Status string `json:"vcfg:status"`
|
||||
Description string `json:"vcfg:description"`
|
||||
}
|
||||
192
internal/properties/properties_test.go
Normal file
192
internal/properties/properties_test.go
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user