@@ -51,6 +51,7 @@ public String getApiNamespace() {
5151
5252 private AwardEmojiApi awardEmojiApi ;
5353 private CommitsApi commitsApi ;
54+ private DiscussionsApi discussionsApi ;
5455 private DeployKeysApi deployKeysApi ;
5556 private EpicsApi epicsApi ;
5657 private EventsApi eventsApi ;
@@ -916,7 +917,7 @@ public CommitsApi getCommitsApi() {
916917 * Gets the DeployKeysApi instance owned by this GitLabApi instance. The DeployKeysApi is used
917918 * to perform all deploy key related API calls.
918919 *
919- * @return the CommitsApi instance owned by this GitLabApi instance
920+ * @return the DeployKeysApi instance owned by this GitLabApi instance
920921 */
921922 public DeployKeysApi getDeployKeysApi () {
922923
@@ -931,6 +932,25 @@ public DeployKeysApi getDeployKeysApi() {
931932 return (deployKeysApi );
932933 }
933934
935+ /**
936+ * Gets the DiscussionsApi instance owned by this GitLabApi instance. The DiscussionsApi is used
937+ * to perform all discussion related API calls.
938+ *
939+ * @return the DiscussionsApi instance owned by this GitLabApi instance
940+ */
941+ public DiscussionsApi getDiscussionsApi () {
942+
943+ if (discussionsApi == null ) {
944+ synchronized (this ) {
945+ if (discussionsApi == null ) {
946+ discussionsApi = new DiscussionsApi (this );
947+ }
948+ }
949+ }
950+
951+ return (discussionsApi );
952+ }
953+
934954 /**
935955 * Gets the EpicsApi instance owned by this GitLabApi instance. The EpicsApi is used
936956 * to perform all Epics and Epic Issues related API calls.
0 commit comments