WebhookInner Class

  • java.lang.Object
    • Resource
      • com.microsoft.azure.management.containerregistry.implementation.WebhookInner

public class WebhookInner

An object that represents a webhook for a container registry.

Method Summary

Modifier and Type Method and Description
List<WebhookAction> actions()

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

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'.

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.

WebhookStatus status()

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

WebhookInner withActions(List<WebhookAction> actions)

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

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.

WebhookInner 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 actions()

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

Returns:

the actions value

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:

the provisioningState value

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:

the scope value

status

public WebhookStatus status()

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

Returns:

the status value

withActions

public WebhookInner withActions(List actions)

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

Parameters:

actions - the actions value to set

Returns:

the WebhookInner object itself.

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:

scope - the scope value to set

Returns:

the WebhookInner object itself.

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:

status - the status value to set

Returns:

the WebhookInner object itself.

Applies to