Webhook Class
An object that represents a webhook for a container registry.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.containerregistry.v2021_06_01_preview.models._models_py3.ResourceWebhook
Constructor
Webhook(*, location: str, tags: Optional[Dict[str, str]] = None, status: Optional[Union[str, azure.mgmt.containerregistry.v2021_06_01_preview.models._container_registry_management_client_enums.WebhookStatus]] = None, scope: Optional[str] = None, actions: Optional[List[Union[str, azure.mgmt.containerregistry.v2021_06_01_preview.models._container_registry_management_client_enums.WebhookAction]]] = None, **kwargs)
Variables
- id
- str
The resource ID.
- name
- str
The name of the resource.
- type
- str
The type of the resource.
- location
- str
Required. The location of the resource. This cannot be changed after the resource is created.
- system_data
- SystemData
Metadata pertaining to creation and last modification of the resource.
- status
- str or WebhookStatus
The status of the webhook at the time the operation was called. Possible values include: "enabled", "disabled".
- scope
- str
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.
- actions
- list[str or WebhookAction]
The list of actions that trigger the webhook to post notifications.
- provisioning_state
- str or ProvisioningState
The provisioning state of the webhook at the time the operation was called. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled".
Feedback
Submit and view feedback for