WebhookInner Class
- java.
lang. Object - Resource
- com.
microsoft. azure. management. containerregistry. implementation. WebhookInner
- com.
public class WebhookInner
An object that represents a webhook for a container registry.
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Webhook |
actions()
Get the list of actions that trigger the webhook to post notifications. |
Provisioning |
provisioningState()
Get the provisioning state of the webhook at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'. |
String |
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. |
Webhook |
status()
Get the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'. |
Webhook |
withActions(List<WebhookAction> actions)
Set the list of actions that trigger the webhook to post notifications. |
Webhook |
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. |
Webhook |
withStatus(WebhookStatus status)
Set the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'. |
Method Details
actions
public List
Get the list of actions that trigger the webhook to post notifications.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioning state of the webhook at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'.
Returns:
scope
public String 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.
Returns:
status
public WebhookStatus status()
Get the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.
Returns:
withActions
public WebhookInner withActions(List
Set the list of actions that trigger the webhook to post notifications.
Parameters:
Returns:
withScope
public WebhookInner 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.
Parameters:
Returns:
withStatus
public WebhookInner withStatus(WebhookStatus status)
Set the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for