Skip to content

Commit 7e7c391

Browse files
committed
Added support for TagsApi.
1 parent 949e4eb commit 7e7c391

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

src/main/java/org/gitlab4j/api/GitLabApi.java

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,18 @@ public String getApiNamespace() {
5050

5151
private CommitsApi commitsApi;
5252
private DeployKeysApi deployKeysApi;
53+
private EventsApi eventsApi;
5354
private GroupApi groupApi;
5455
private HealthCheckApi healthCheckApi;
5556
private IssuesApi issuesApi;
57+
private JobApi jobApi;
58+
private LabelsApi labelsApi;
5659
private LicensesApi licensesApi;
5760
private MarkdownApi markdownApi;
5861
private MergeRequestApi mergeRequestApi;
5962
private MilestonesApi milestonesApi;
6063
private NamespaceApi namespaceApi;
64+
private NotesApi notesApi;
6165
private NotificationSettingsApi notificationSettingsApi;
6266
private PipelineApi pipelineApi;
6367
private ProjectApi projectApi;
@@ -67,13 +71,10 @@ public String getApiNamespace() {
6771
private RunnersApi runnersApi;
6872
private ServicesApi servicesApi;
6973
private SessionApi sessionApi;
74+
private SnippetsApi snippetsApi;
7075
private SystemHooksApi systemHooksApi;
76+
private TagsApi tagsApi;
7177
private UserApi userApi;
72-
private JobApi jobApi;
73-
private LabelsApi labelsApi;
74-
private NotesApi notesApi;
75-
private EventsApi eventsApi;
76-
private SnippetsApi snippetsApi;
7778
private UncyclosApi wikisApi;
7879

7980
/**
@@ -1256,6 +1257,25 @@ public SystemHooksApi getSystemHooksApi() {
12561257
return (systemHooksApi);
12571258
}
12581259

1260+
/**
1261+
* Gets the TagsApi instance owned by this GitLabApi instance. The TagsApi is used
1262+
* to perform all tag and release related API calls.
1263+
*
1264+
* @return the TagsApi instance owned by this GitLabApi instance
1265+
*/
1266+
public TagsApi getTagsApi() {
1267+
1268+
if (tagsApi == null) {
1269+
synchronized (this) {
1270+
if (tagsApi == null) {
1271+
tagsApi = new TagsApi(this);
1272+
}
1273+
}
1274+
}
1275+
1276+
return (tagsApi);
1277+
}
1278+
12591279
/**
12601280
* Gets the UserApi instance owned by this GitLabApi instance. The UserApi is used
12611281
* to perform all user related API calls.

0 commit comments

Comments
 (0)