@@ -496,12 +496,12 @@ public void deleteCustomIssueTrackerService(Object projectIdOrPath) throws GitLa
496496 }
497497
498498 /**
499- * Get the Custom Issue Tracker service settings for a project.
499+ * Get Emails on push service settings for a project.
500500 *
501- * <pre><code>GitLab Endpoint: GET /projects/:id/services/custom_issue_tracker </code></pre>
501+ * <pre><code>GitLab Endpoint: GET /projects/:id/services/emails-on-push </code></pre>
502502 *
503503 * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
504- * @return a ExternalWikiService instance holding the External Wiki service settings
504+ * @return a EmailOnPushService instance holding the Email on push settings
505505 * @throws GitLabApiException if any exception occurs
506506 */
507507 public EmailOnPushService getEmailOnPushService (Object projectIdOrPath ) throws GitLabApiException {
@@ -510,35 +510,37 @@ public EmailOnPushService getEmailOnPushService(Object projectIdOrPath) throws G
510510 }
511511
512512 /**
513- * Updates the Custom Issue Tracker service settings for a project.
513+ * Updates the EmailsOnPush service settings for a project.
514514 *
515- * <pre><code>GitLab Endpoint: PUT /projects/:id/services/custom_issue_tracker </code></pre>
515+ * <pre><code>GitLab Endpoint: PUT /projects/:id/services/emails-on-push </code></pre>
516516 *
517- * The following properties on the CustomIssueTrackerService instance are utilized in the update of the settings:
517+ * The following properties on the EmailOnPushService instance are utilized in the update of the settings:
518518 * <p>
519- * description (optional), description
520- * issuesUrl (required), issue url
521- * newIssueUrl (required), new Issue url
522- * projectUrl (required), project url
523- * pushEvents (optional) - Enable notifications for push events
524- * title (optional), the title for the custom issue tracker
519+ * recipients (required), Emails separated by whitespace
520+ * disable_diffs (optional), Disable code diffs
521+ * send_from_committer_email (optional), Send from committer
522+ * push_events (optional), Enable notifications for push events
523+ * tag_push_events(optional), Enable notifications for tag push events
524+ * branches_to_be_notified (optional), Branches to send notifications for. Valid options are "all", "default",
525+ * "protected", and "default_and_protected". Notifications are always fired
526+ * for tag pushes. The default value is "all"
525527 * </p>
526528 *
527529 * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
528- * @param customIssueTracker the CustomIssueTrackerService instance holding the settings
529- * @return a CustomIssueTrackerService instance holding the newly updated settings
530+ * @param emailsOnPush the EmailOnPushService instance holding the settings
531+ * @return a EmailOnPushService instance holding the newly updated settings
530532 * @throws GitLabApiException if any exception occurs
531533 */
532- public EmailOnPushService updateEmailOnPushService (Object projectIdOrPath , EmailOnPushService customIssueTracker ) throws GitLabApiException {
533- GitLabApiForm formData = customIssueTracker .servicePropertiesForm ();
534+ public EmailOnPushService updateEmailOnPushService (Object projectIdOrPath , EmailOnPushService emailsOnPush ) throws GitLabApiException {
535+ GitLabApiForm formData = emailsOnPush .servicePropertiesForm ();
534536 Response response = put (Response .Status .OK , formData .asMap (), "projects" , getProjectIdOrPath (projectIdOrPath ), "services" , "emails-on-push" );
535537 return (response .readEntity (EmailOnPushService .class ));
536538 }
537539
538540 /**
539- * Deletes the Custom Issue Tracker service for a project.
541+ * Deletes the Emails on push service for a project.
540542 *
541- * <pre><code>GitLab Endpoint: DELETE /projects/:id/services/custom_issue_tracker </code></pre>
543+ * <pre><code>GitLab Endpoint: DELETE /projects/:id/services/emails-on-push </code></pre>
542544 *
543545 * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
544546 * @throws GitLabApiException if any exception occurs
0 commit comments