@@ -44,10 +44,10 @@ type ProtectedTag struct {
44
44
// GitLab API docs:
45
45
// https://docs.gitlab.com/ee/api/protected_tags.html
46
46
type TagAccessDescription struct {
47
+ UserID int `json:"user_id"`
48
+ GroupID int `json:"group_id"`
47
49
AccessLevel AccessLevelValue `json:"access_level"`
48
50
AccessLevelDescription string `json:"access_level_description"`
49
- UserID * int `url:"user_id,omitempty" json:"user_id,omitempty"`
50
- GroupID * int `url:"group_id,omitempty" json:"group_id,omitempty"`
51
51
}
52
52
53
53
// ListProtectedTagsOptions represents the available ListProtectedTags()
@@ -113,16 +113,16 @@ func (s *ProtectedTagsService) GetProtectedTag(pid interface{}, tag string, opti
113
113
// GitLab API docs:
114
114
// https://docs.gitlab.com/ee/api/protected_tags.html#protect-repository-tags
115
115
type ProtectRepositoryTagsOptions struct {
116
- Name * string `url:"name" json:"name"`
117
- CreateAccessLevel * AccessLevelValue `url:"create_access_level,omitempty" json:"create_access_level,omitempty"`
118
- AllowedToCreate * []ProtectRepositoryTagsPermissionOptions `url:"allowed_to_create,omitempty" json:"allowed_to_create,omitempty"`
116
+ Name * string `url:"name,omitempty " json:"name,omitempty "`
117
+ CreateAccessLevel * AccessLevelValue `url:"create_access_level,omitempty" json:"create_access_level,omitempty"`
118
+ AllowedToCreate * []* TagsPermissionOptions `url:"allowed_to_create,omitempty" json:"allowed_to_create,omitempty"`
119
119
}
120
120
121
- // ProtectRepositoryTagsPermissionOptions represents a protected tag permission option.
121
+ // TagsPermissionOptions represents a protected tag permission option.
122
122
//
123
123
// GitLab API docs:
124
124
// https://docs.gitlab.com/ee/api/protected_tags.html#protect-repository-tags
125
- type ProtectRepositoryTagsPermissionOptions struct {
125
+ type TagsPermissionOptions struct {
126
126
UserID * int `url:"user_id,omitempty" json:"user_id,omitempty"`
127
127
GroupID * int `url:"group_id,omitempty" json:"group_id,omitempty"`
128
128
AccessLevel * AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"`
0 commit comments