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 server.
Constructor
Webhook(*, location: str, tags: Dict[str, str] | None = None, status: str | _models.WebhookStatus | None = None, scope: str | None = None, actions: List[str | _models.WebhookAction] | None = None, **kwargs: Any)Keyword-Only Parameters
| Name | Description | 
|---|---|
| location | The location of the resource. This cannot be changed after the resource is created. Required. | 
| tags | The tags of the resource. Default value: None | 
| status | 
				str or 
				WebhookStatus
		 The status of the webhook at the time the operation was called. Known values are: "enabled" and "disabled". Default value: None | 
| scope | 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. Default value: None | 
| actions | The list of actions that trigger the webhook to post notifications. Default value: None | 
Variables
| Name | Description | 
|---|---|
| id | The resource ID. | 
| name | The name of the resource. | 
| type | The type of the resource. | 
| location | The location of the resource. This cannot be changed after the resource is created. Required. | 
| tags | The tags of the resource. | 
| system_data | 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. Known values are: "enabled" and "disabled". | 
| scope | 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 | The list of actions that trigger the webhook to post notifications. | 
| provisioning_state | The provisioning state of the webhook at the time the operation was called. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". |