WebhookPropertiesUpdateParameters Class

The parameters for updating the properties of a webhook.

Constructor

WebhookPropertiesUpdateParameters()

Variables

Name Description
serviceUri
str

The service URI for the webhook to post notifications.

customHeaders

Custom headers that will be added to the webhook notifications.

status
Union[str, <xref:"WebhookStatus">]

The status of the webhook at the time the operation was called. Known values are: "enabled" and "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[Union[str, <xref:"WebhookAction">]]

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

Attributes

actions

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

actions: list[typing.Union[str, ForwardRef('WebhookAction')]]

customHeaders

Custom headers that will be added to the webhook notifications.

customHeaders: dict[str, str]

scope

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

scope: str

serviceUri

The service URI for the webhook to post notifications.

serviceUri: str

status

"enabled" and "disabled".

status: str | WebhookStatus