-
Notifications
You must be signed in to change notification settings - Fork 14
/
branchrestriction.go
31 lines (22 loc) · 1017 Bytes
/
branchrestriction.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
29
30
31
/*
* Bitbucket API
*
* Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
*
* API version: 2.0
* Contact: [email protected]
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package bitbucket
type Branchrestriction struct {
Type_ string `json:"type"`
Links *VersionLinks `json:"links,omitempty"`
// The branch restriction status' id.
Id int32 `json:"id,omitempty"`
// The type of restriction that is being applied
Kind string `json:"kind,omitempty"`
Users []Account `json:"users,omitempty"`
Groups []Group `json:"groups,omitempty"`
// Value with kind-specific semantics: \"require_approvals_to_merge\" uses it to require a minimum number of approvals on a PR; \"require_passing_builds_to_merge\" uses it to require a minimum number of passing builds.
Value int32 `json:"value,omitempty"`
}