Webhook Interface
Implements
public interface Webhook
extends ExternalChildResource<Webhook,Registry>, Resource, HasInnerModel<WebhookInner>, Refreshable<Webhook>, Updatable<Update>
An object that represents a webhook for a container registry.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Map<String,String> |
customHeaders()
Gets the Custom headers that will be added to the webhook notifications. |
abstract void |
disable()
Changes the status of the webhook to "disabled". |
abstract Mono<Void> |
disableAsync()
Changes the status of the webhook to "disabled". |
abstract void |
enable()
Changes the status of the webhook to "enabled". |
abstract Mono<Void> |
enableAsync()
Changes the status of the webhook to "enabled". |
abstract boolean |
isEnabled()
Gets the status of the webhook. |
abstract
Paged |
listEvents()
Gets the list of event info object. |
abstract
Paged |
listEventsAsync()
Gets the list of event info object. |
abstract String |
parentId()
Gets the webhook parent ID. |
abstract String |
ping()
Gets the id on an event info resource. |
abstract Mono<String> |
pingAsync()
Gets the id on an event info resource. |
abstract
Provisioning |
provisioningState()
Gets the provisioning state of the webhook. |
abstract String |
scope()
Gets the scope of repositories where the event can be triggered. |
abstract String |
serviceUri()
Gets the service URI for the webhook to post notifications. |
abstract
Collection<Webhook |
triggers()
Gets the list of actions that trigger the webhook to post notifications. |
Method Details
customHeaders
public abstract Map
Gets the Custom headers that will be added to the webhook notifications.
Returns:
disable
public abstract void disable()
Changes the status of the webhook to "disabled".
disableAsync
public abstract Mono
Changes the status of the webhook to "disabled".
Returns:
enable
public abstract void enable()
Changes the status of the webhook to "enabled".
enableAsync
public abstract Mono
Changes the status of the webhook to "enabled".
Returns:
isEnabled
public abstract boolean isEnabled()
Gets the status of the webhook.
Returns:
listEvents
public abstract PagedIterable
Gets the list of event info object.
Returns:
listEventsAsync
public abstract PagedFlux
Gets the list of event info object.
Returns:
parentId
public abstract String parentId()
Gets the webhook parent ID.
Returns:
ping
public abstract String ping()
Gets the id on an event info resource.
Returns:
pingAsync
public abstract Mono
Gets the id on an event info resource.
Returns:
provisioningState
public abstract ProvisioningState provisioningState()
Gets the provisioning state of the webhook.
Returns:
scope
public abstract String scope()
Gets the scope of repositories where the event can be triggered.
Returns:
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
public abstract String serviceUri()
Gets the service URI for the webhook to post notifications.
Returns:
triggers
public abstract Collection
Gets the list of actions that trigger the webhook to post notifications.
Returns:
Applies to
Azure SDK for Java