Share via


WebhookCreateParameters Class

Definition

The parameters for creating a webhook.

[Microsoft.Rest.Serialization.JsonTransformation]
public class WebhookCreateParameters
[<Microsoft.Rest.Serialization.JsonTransformation>]
type WebhookCreateParameters = class
Public Class WebhookCreateParameters
Inheritance
WebhookCreateParameters
Attributes

Constructors

WebhookCreateParameters()

Initializes a new instance of the WebhookCreateParameters class.

WebhookCreateParameters(String, String, IList<String>, IDictionary<String,String>, IDictionary<String,String>, String, String)

Initializes a new instance of the WebhookCreateParameters class.

Properties

Actions

Gets or sets the list of actions that trigger the webhook to post notifications.

CustomHeaders

Gets or sets custom headers that will be added to the webhook notifications.

Location

Gets or sets the location of the webhook. This cannot be changed after the resource is created.

Scope

Gets or sets 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.

ServiceUri

Gets or sets the service URI for the webhook to post notifications.

Status

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

Tags

Gets or sets the tags for the webhook.

Methods

Validate()

Validate the object.

Applies to