File tree Expand file tree Collapse file tree 5 files changed +92
-0
lines changed
gitlab4j-models/src/main/java/org/gitlab4j/api/models Expand file tree Collapse file tree 5 files changed +92
-0
lines changed Original file line number Diff line number Diff line change 44
55import org .gitlab4j .models .utils .JacksonJson ;
66
7+ import com .fasterxml .jackson .annotation .JsonProperty ;
8+
79public class Associations implements Serializable {
810 private static final long serialVersionUID = 1L ;
911
12+ @ JsonProperty ("groups_count" )
1013 private int groupsCount ;
14+
15+ @ JsonProperty ("projects_count" )
1116 private int projectsCount ;
17+
18+ @ JsonProperty ("issues_count" )
1219 private int issuesCount ;
20+
21+ @ JsonProperty ("merge_requests_count" )
1322 private int mergeRequestsCount ;
1423
1524 public int getGroupsCount () {
Original file line number Diff line number Diff line change 44
55import org .gitlab4j .models .utils .JacksonJson ;
66
7+ import com .fasterxml .jackson .annotation .JsonFormat ;
8+ import com .fasterxml .jackson .annotation .JsonProperty ;
9+
710/**
811 * @author Yaris van Thiel
912 */
1013public class Build {
1114
15+ @ JsonProperty ("id" )
1216 private Long id ;
17+
18+ @ JsonProperty ("stage" )
1319 private String stage ;
20+
21+ @ JsonProperty ("name" )
1422 private String name ;
23+
24+ @ JsonProperty ("status" )
1525 private BuildStatus status ;
26+
27+ @ JsonProperty ("created_at" )
28+ @ JsonFormat (shape = JsonFormat .Shape .STRING , pattern = "yyyy-MM-dd HH:mm:ss z" )
1629 private Date createdAt ;
30+
31+ @ JsonProperty ("started_at" )
32+ @ JsonFormat (shape = JsonFormat .Shape .STRING , pattern = "yyyy-MM-dd HH:mm:ss z" )
1733 private Date startedAt ;
34+
35+ @ JsonProperty ("finished_at" )
36+ @ JsonFormat (shape = JsonFormat .Shape .STRING , pattern = "yyyy-MM-dd HH:mm:ss z" )
1837 private Date finishedAt ;
38+
39+ @ JsonProperty ("duration" )
1940 private Float duration ;
41+
42+ @ JsonProperty ("queued_duration" )
2043 private Float queuedDuration ;
44+
45+ @ JsonProperty ("failure_reason" )
2146 private String failureReason ;
47+
48+ @ JsonProperty ("when" )
2249 private String when ;
50+
51+ @ JsonProperty ("manual" )
2352 private Boolean manual ;
53+
54+ @ JsonProperty ("allow_failure" )
2455 private Boolean allowFailure ;
56+
57+ @ JsonProperty ("user" )
2558 private User user ;
59+
60+ @ JsonProperty ("runner" )
2661 private Runner runner ;
62+
63+ @ JsonProperty ("artifacts_file" )
2764 private ArtifactsFile artifactsFile ;
2865
2966 public Long getId () {
Original file line number Diff line number Diff line change 44
55import org .gitlab4j .models .utils .JacksonJson ;
66
7+ import com .fasterxml .jackson .annotation .JsonProperty ;
8+
79public class ContainerExpirationPolicy implements Serializable {
810 private static final long serialVersionUID = 1L ;
911
12+ @ JsonProperty ("cadence" )
1013 private String cadence ;
14+
15+ @ JsonProperty ("enabled" )
1116 private Boolean enabled ;
17+
18+ @ JsonProperty ("keep_n" )
1219 private Integer keepN ;
20+
21+ @ JsonProperty ("older_than" )
1322 private String olderThan ;
23+
24+ @ JsonProperty ("name_regex" )
1425 private String nameRegex ;
26+
27+ @ JsonProperty ("name_regex_keep" )
1528 private String nameRegexKeep ;
1629
30+ @ JsonProperty ("next_run_at" )
1731 private String nextRunAt ;
1832
1933 public String getCadence () {
Original file line number Diff line number Diff line change 77import org .gitlab4j .models .GitLabForm ;
88import org .gitlab4j .models .utils .JacksonJson ;
99
10+ import com .fasterxml .jackson .annotation .JsonProperty ;
11+
1012public class CreateRunnerParams implements Serializable {
1113 private static final long serialVersionUID = 1L ;
1214
15+ @ JsonProperty ("runner_type" )
1316 private RunnerType runnerType ;
17+
18+ @ JsonProperty ("group_id" )
1419 private Long groupId ;
20+
21+ @ JsonProperty ("project_id" )
1522 private Long projectId ;
23+
24+ @ JsonProperty ("description" )
1625 private String description ;
26+
27+ @ JsonProperty ("paused" )
1728 private Boolean paused ;
29+
30+ @ JsonProperty ("locked" )
1831 private Boolean locked ;
32+
33+ @ JsonProperty ("run_untagged" )
1934 private Boolean runUntagged ;
35+
36+ @ JsonProperty ("tag_list" )
2037 private List <String > tagList ;
38+
39+ @ JsonProperty ("access_level" )
2140 private String accessLevel ;
41+
42+ @ JsonProperty ("maximum_timeout" )
2243 private Integer maximumTimeout ;
44+
45+ @ JsonProperty ("maintenance_note" )
2346 private String maintenanceNote ;
2447
2548 public GitLabForm getForm () {
Original file line number Diff line number Diff line change 55
66import org .gitlab4j .models .utils .JacksonJson ;
77
8+ import com .fasterxml .jackson .annotation .JsonFormat ;
9+ import com .fasterxml .jackson .annotation .JsonProperty ;
10+
811public class CreateRunnerResponse implements Serializable {
912 private static final long serialVersionUID = 1L ;
1013
14+ @ JsonProperty ("id" )
1115 private Long id ;
16+
17+ @ JsonProperty ("token" )
1218 private String token ;
19+
20+ @ JsonProperty ("token_expires_at" )
21+ @ JsonFormat (shape = JsonFormat .Shape .STRING , pattern = "yyyy-MM-dd'T'HH:mm:ssXXX" )
1322 private Date tokenExpiresAt ;
1423
1524 public Long getId () {
You can’t perform that action at this time.
0 commit comments