forked from gitlab4j/gitlab4j-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGroup.java
310 lines (239 loc) · 8.46 KB
/
Group.java
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
package org.gitlab4j.api.models;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.gitlab4j.api.Constants.DefaultBranchProtectionLevel;
import org.gitlab4j.api.Constants.ProjectCreationLevel;
import org.gitlab4j.api.Constants.SubgroupCreationLevel;
import org.gitlab4j.api.utils.JacksonJson;
import java.util.Date;
import java.util.List;
public class Group extends AbstractGroup<Group> {
private static final long serialVersionUID = 1L;
public class Statistics {
private Long storageSize;
private Long repositorySize;
private Long lfsObjectsSize;
private Long jobArtifactsSize;
public Long getStorageSize() {
return storageSize;
}
public void setStorageSize(Long storageSize) {
this.storageSize = storageSize;
}
public Long getRepositorySize() {
return repositorySize;
}
public void setRepositorySize(Long repositorySize) {
this.repositorySize = repositorySize;
}
public Long getLfsObjectsSize() {
return lfsObjectsSize;
}
public void setLfsObjectsSize(Long lfsObjectsSize) {
this.lfsObjectsSize = lfsObjectsSize;
}
public Long getJobArtifactsSize() {
return jobArtifactsSize;
}
public void setJobArtifactsSize(Long jobArtifactsSize) {
this.jobArtifactsSize = jobArtifactsSize;
}
}
private String path;
private String description;
private Visibility visibility;
private Boolean lfsEnabled;
private Boolean requestAccessEnabled;
private Long parentId;
private Integer sharedRunnersMinutesLimit;
private Statistics statistics;
private List<Project> projects;
private List<Project> sharedProjects;
private Date createdAt;
private List<SharedGroup> sharedWithGroups;
private String runnersToken;
private Boolean preventSharingGroupsOutsideHierarchy;
private Boolean preventForkingOutsideGroup;
private ProjectCreationLevel projectCreationLevel;
private SubgroupCreationLevel subgroupCreationLevel;
private DefaultBranchProtectionLevel defaultBranchProtection;
@JsonSerialize(using = JacksonJson.DateOnlySerializer.class)
private Date markedForDeletionOn;
public String getPath() {
return this.path;
}
public void setPath(String path) {
this.path = path;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Visibility getVisibility() {
return visibility;
}
public void setVisibility(Visibility visibility) {
this.visibility = visibility;
}
public Boolean getLfsEnabled() {
return lfsEnabled;
}
public void setLfsEnabled(Boolean lfsEnabled) {
this.lfsEnabled = lfsEnabled;
}
public Boolean getRequestAccessEnabled() {
return requestAccessEnabled;
}
public void setRequestAccessEnabled(Boolean requestAccessEnabled) {
this.requestAccessEnabled = requestAccessEnabled;
}
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public Integer getSharedRunnersMinutesLimit() {
return sharedRunnersMinutesLimit;
}
public void setSharedRunnersMinutesLimit(Integer sharedRunnersMinutesLimit) {
this.sharedRunnersMinutesLimit = sharedRunnersMinutesLimit;
}
public Statistics getStatistics() {
return statistics;
}
public void setStatistics(Statistics statistics) {
this.statistics = statistics;
}
public List<Project> getProjects() {
return (projects);
}
public void setProjects(List<Project> projects) {
this.projects = projects;
}
public List<Project> getSharedProjects() {
return (sharedProjects);
}
public void setSharedProjects(List<Project> sharedProjects) {
this.sharedProjects = sharedProjects;
}
public Date getMarkedForDeletionOn() {
return markedForDeletionOn;
}
public void setMarkedForDeletionOn(Date markedForDeletionOn) {
this.markedForDeletionOn = markedForDeletionOn;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public List<SharedGroup> getSharedWithGroups() {
return sharedWithGroups;
}
public void setSharedWithGroups(List<SharedGroup> sharedWithGroups) {
this.sharedWithGroups = sharedWithGroups;
}
public String getRunnersToken() {
return runnersToken;
}
public void setRunnersToken(String runnersToken) {
this.runnersToken = runnersToken;
}
public Boolean getPreventSharingGroupsOutsideHierarchy() {
return preventSharingGroupsOutsideHierarchy;
}
public void setPreventSharingGroupsOutsideHierarchy(Boolean preventSharingGroupsOutsideHierarchy) {
this.preventSharingGroupsOutsideHierarchy = preventSharingGroupsOutsideHierarchy;
}
public Boolean getPreventForkingOutsideGroup() {
return preventForkingOutsideGroup;
}
public void setPreventForkingOutsideGroup(Boolean preventForkingOutsideGroup) {
this.preventForkingOutsideGroup = preventForkingOutsideGroup;
}
public ProjectCreationLevel getProjectCreationLevel() {
return this.projectCreationLevel;
}
public void setProjectCreationLevel(ProjectCreationLevel projectCreationLevel) {
this.projectCreationLevel = projectCreationLevel;
}
public SubgroupCreationLevel getSubgroupCreationLevel() {
return this.subgroupCreationLevel;
}
public void setSubgroupCreationLevel(SubgroupCreationLevel subgroupCreationLevel) {
this.subgroupCreationLevel = subgroupCreationLevel;
}
public DefaultBranchProtectionLevel getDefaultBranchProtection() {
return this.defaultBranchProtection;
}
public void setDefaultBranchProtection(DefaultBranchProtectionLevel defaultBranchProtection) {
this.defaultBranchProtection = defaultBranchProtection;
}
public Group withPath(String path) {
this.path = path;
return this;
}
public Group withDescription(String description) {
this.description = description;
return this;
}
public Group withVisibility(Visibility visibility) {
this.visibility = visibility;
return this;
}
public Group withlfsEnabled(boolean lfsEnabled) {
this.lfsEnabled = lfsEnabled;
return this;
}
public Group withRequestAccessEnabled(boolean requestAccessEnabled) {
this.requestAccessEnabled = requestAccessEnabled;
return this;
}
public Group withParentId(Long parentId) {
this.parentId = parentId;
return this;
}
public Group withSharedRunnersMinutesLimit(Integer minutesLimit) {
this.sharedRunnersMinutesLimit = minutesLimit;
return this;
}
public Group withStatistics(Statistics statistics) {
this.statistics = statistics;
return this;
}
public Group withProjects(List<Project> projects) {
this.projects = projects;
return this;
}
public Group withSharedProjects(List<Project> sharedProjects) {
this.sharedProjects = sharedProjects;
return this;
}
public Group withPreventSharingGroupsOutsideHierarchy(Boolean preventSharingGroupsOutsideHierarchy) {
this.preventSharingGroupsOutsideHierarchy = preventSharingGroupsOutsideHierarchy;
return this;
}
public Group withPreventForkingOutsideGroup(Boolean preventForkingOutsideGroup) {
this.preventForkingOutsideGroup = preventForkingOutsideGroup;
return this;
}
public Group withProjectCreationLevel(ProjectCreationLevel projectCreationLevel) {
this.projectCreationLevel = projectCreationLevel;
return this;
}
public Group withSubgroupCreationLevel(SubgroupCreationLevel subgroupCreationLevel) {
this.subgroupCreationLevel = subgroupCreationLevel;
return this;
}
public Group withDefaultBranchProtection(DefaultBranchProtectionLevel defaultBranchProtection) {
this.defaultBranchProtection = defaultBranchProtection;
return this;
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}