Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group ID omitempty #264

Open
f0x11 opened this issue Feb 21, 2017 · 0 comments
Open

Group ID omitempty #264

f0x11 opened this issue Feb 21, 2017 · 0 comments

Comments

@f0x11
Copy link

f0x11 commented Feb 21, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant