WebhookCreateParameters Class

Definition

The parameters for creating a webhook.

public class WebhookCreateParameters
Inheritance
java.lang.Object
WebhookCreateParameters

Methods

actions()

Get the list of actions that trigger the webhook to post notifications.

customHeaders()

Get custom headers that will be added to the webhook notifications.

location()

Get the location of the webhook. This cannot be changed after the resource is created.

scope()

Get the scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.

serviceUri()

Get the service URI for the webhook to post notifications.

status()

Get the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.

tags()

Get the tags for the webhook.

withActions(List<WebhookAction> actions)

Set the list of actions that trigger the webhook to post notifications.

withCustomHeaders(Map<String, String> customHeaders)

Set custom headers that will be added to the webhook notifications.

withLocation(String location)

Set the location of the webhook. This cannot be changed after the resource is created.

withScope(String scope)

Set the scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.

withServiceUri(String serviceUri)

Set the service URI for the webhook to post notifications.

withStatus(WebhookStatus status)

Set the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.

withTags(Map<String, String> tags)

Set the tags for the webhook.

Applies to