Sync zones as well

This commit is contained in:
Alexander A. Klimov 2021-03-12 14:23:26 +01:00
parent 49d50a779e
commit b90bc86bb4
2 changed files with 15 additions and 0 deletions

View file

@ -151,6 +151,7 @@ func main() {
v1.NewUsergroup,
v1.NewUsergroupCustomvar,
v1.NewUsergroupMember,
v1.NewZone,
} {
factoryFunc := factoryFunc

View file

@ -12,11 +12,25 @@ type Endpoint struct {
ZoneId types.Binary `json:"zone_id"`
}
type Zone struct {
EntityWithChecksum `json:",inline"`
EnvironmentMeta `json:",inline"`
NameCiMeta `json:",inline"`
IsGlobal types.Bool `json:"is_global"`
ParentId types.Binary `json:"parent_id"`
Depth uint8 `json:"depth"`
}
func NewEndpoint() contracts.Entity {
return &Endpoint{}
}
func NewZone() contracts.Entity {
return &Zone{}
}
// Assert interface compliance.
var (
_ contracts.Initer = (*Endpoint)(nil)
_ contracts.Initer = (*Zone)(nil)
)