@@ -496,12 +496,12 @@ public void deleteCustomIssueTrackerService(Object projectIdOrPath) throws GitLa
496
496
}
497
497
498
498
/**
499
- * Get the Custom Issue Tracker service settings for a project.
499
+ * Get Emails on push service settings for a project.
500
500
*
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>
502
502
*
503
503
* @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
504
- * @return a ExternalUncycloService instance holding the External Uncyclo service settings
504
+ * @return a EmailOnPushService instance holding the Email on push settings
505
505
* @throws GitLabApiException if any exception occurs
506
506
*/
507
507
public EmailOnPushService getEmailOnPushService (Object projectIdOrPath ) throws GitLabApiException {
@@ -510,35 +510,37 @@ public EmailOnPushService getEmailOnPushService(Object projectIdOrPath) throws G
510
510
}
511
511
512
512
/**
513
- * Updates the Custom Issue Tracker service settings for a project.
513
+ * Updates the EmailsOnPush service settings for a project.
514
514
*
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>
516
516
*
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:
518
518
* <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"
525
527
* </p>
526
528
*
527
529
* @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
530
532
* @throws GitLabApiException if any exception occurs
531
533
*/
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 ();
534
536
Response response = put (Response .Status .OK , formData .asMap (), "projects" , getProjectIdOrPath (projectIdOrPath ), "services" , "emails-on-push" );
535
537
return (response .readEntity (EmailOnPushService .class ));
536
538
}
537
539
538
540
/**
539
- * Deletes the Custom Issue Tracker service for a project.
541
+ * Deletes the Emails on push service for a project.
540
542
*
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>
542
544
*
543
545
* @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
544
546
* @throws GitLabApiException if any exception occurs
0 commit comments