go-marathon icon indicating copy to clipboard operation
go-marathon copied to clipboard

Group ID omitempty

Open f0x11 opened this issue 8 years ago • 0 comments

type Group struct {
	ID           string         `json:"id"`
	Apps         []*Application `json:"apps"`
	Dependencies []string       `json:"dependencies"`
	Groups       []*Group       `json:"groups"`
}

// Groups is a collection of marathon application groups
type Groups struct {
	ID           string         `json:"id"`
	Apps         []*Application `json:"apps"`
	Dependencies []string       `json:"dependencies"`
	Groups       []*Group       `json:"groups"`
}

ID should by omitempty.

From https://github.com/mesosphere/marathon/blob/master/docs/docs/rest-api.md#user-content-put-v2groupsgroupid.

If ID isn't empty, marathon will add a new group into origin group.

f0x11 avatar Feb 21 '17 09:02 f0x11