public final class WebhookManagementServiceImpl extends BitbucketCloudRestApiClient implements WebhookManagementService
bitbucketClientSupplier
Constructor and Description |
---|
WebhookManagementServiceImpl() |
Modifier and Type | Method and Description |
---|---|
WebhookResponse |
createRepositoryWebhook(@NotNull String owner,
@NotNull String slug,
@NotNull String username,
@NotNull String password,
@NotNull String bambooEntryPoint)
Create a webhooks for specified repository.
|
void |
destroyRepositoryWebhook(String owner,
String slug,
String username,
String password,
String webhookUuid)
Destroys a webhook with requested uuid for specified repository.
|
ListWebhooksResponse |
getRepositoryWebhooks(String owner,
String slug,
String username,
String password)
Retrieve a list of all available webhooks specified for the specified repository.
|
addFilters, getAuthFilter, getLoggingFilter, prepareResourceCall
public WebhookResponse createRepositoryWebhook(@NotNull @NotNull String owner, @NotNull @NotNull String slug, @NotNull @NotNull String username, @NotNull @NotNull String password, @NotNull @NotNull String bambooEntryPoint)
WebhookManagementService
createRepositoryWebhook
in interface WebhookManagementService
owner
- e.g. workspaceslug
- repository slugusername
- username of the user with access to perform rest callpassword
- password of the user, in most cases the app passwordbambooEntryPoint
- bamboo entrypoint used by bbc to send webhookspublic void destroyRepositoryWebhook(String owner, String slug, String username, String password, String webhookUuid)
WebhookManagementService
destroyRepositoryWebhook
in interface WebhookManagementService
owner
- e.g. workspaceslug
- repository slugusername
- username of the user with access to perform rest callpassword
- password of the user, in most cases the app passwordwebhookUuid
- unique webhook uuidpublic ListWebhooksResponse getRepositoryWebhooks(String owner, String slug, String username, String password)
WebhookManagementService
getRepositoryWebhooks
in interface WebhookManagementService
owner
- e.g. workspaceslug
- repository slugusername
- username of the user with access to perform rest callpassword
- password of the user, in most cases the app passwordCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.