All Superinterfaces:
ChildResource<Registry>, ExternalChildResource<Webhook,Registry>, HasId, HasInner<com.microsoft.azure.management.containerregistry.implementation.WebhookInner>, HasName, HasParent<Registry>, Indexable, Refreshable<Webhook>, Resource, Updatable<Webhook.Update>

@Beta(V1_4_0) public interface Webhook extends ExternalChildResource<Webhook,Registry>, Resource, HasInner<com.microsoft.azure.management.containerregistry.implementation.WebhookInner>, Refreshable<Webhook>, Updatable<Webhook.Update>
An object that represents a webhook for a container registry.
  • Method Details

    • isEnabled

      boolean isEnabled()
      Returns:
      the status of the webhook
    • scope

      String scope()
      Returns:
      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

      String serviceUri()
      Returns:
      the service URI for the webhook to post notifications
    • customHeaders

      Map<String,String> customHeaders()
      Returns:
      the Custom headers that will be added to the webhook notifications
    • triggers

      Returns:
      the list of actions that trigger the webhook to post notifications
    • provisioningState

      ProvisioningState provisioningState()
      Returns:
      the provisioning state of the webhook
    • parentId

      String parentId()
      Returns:
      the webhook parent ID
    • enable

      void enable()
      Changes the status of the webhook to "enabled".
    • enableAsync

      rx.Completable enableAsync()
      Changes the status of the webhook to "enabled".
      Returns:
      a representation of the future computation of this call
    • disable

      void disable()
      Changes the status of the webhook to "disabled".
    • disableAsync

      rx.Completable disableAsync()
      Changes the status of the webhook to "disabled".
      Returns:
      a representation of the future computation of this call
    • ping

      String ping()
      Returns:
      the id on an event info resource
    • pingAsync

      rx.Observable<String> pingAsync()
      Returns:
      a representation of the future computation of this call, returning the id on an event info resource
    • listEvents

      com.microsoft.azure.PagedList<WebhookEventInfo> listEvents()
      Returns:
      the list of event info object
    • listEventsAsync

      rx.Observable<WebhookEventInfo> listEventsAsync()
      Returns:
      a representation of the future computation of this call, returning the list of event info object