/
bitbucket_workspace.go
28 lines (25 loc) · 1.14 KB
/
bitbucket_workspace.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package models
type WorkspaceScheme struct {
Type string `json:"type,omitempty"`
Links *WorkspaceLinksScheme `json:"links,omitempty"`
Uuid string `json:"uuid,omitempty"`
Name string `json:"name,omitempty"`
Slug string `json:"slug,omitempty"`
IsPrivate bool `json:"is_private,omitempty"`
CreatedOn string `json:"created_on,omitempty"`
UpdatedOn string `json:"updated_on,omitempty"`
}
type WorkspaceLinksScheme struct {
Avatar *BitbucketLinkScheme `json:"avatar,omitempty"`
Html *BitbucketLinkScheme `json:"html,omitempty"`
Members *BitbucketLinkScheme `json:"members,omitempty"`
Owners *BitbucketLinkScheme `json:"owners,omitempty"`
Projects *BitbucketLinkScheme `json:"projects,omitempty"`
Repositories *BitbucketLinkScheme `json:"repositories,omitempty"`
Snippets *BitbucketLinkScheme `json:"snippets,omitempty"`
Self *BitbucketLinkScheme `json:"self,omitempty"`
}
type BitbucketLinkScheme struct {
Href string `json:"href,omitempty"`
Name string `json:"name,omitempty"`
}