Bagikan melalui


Webhook Class

Definition

An object that represents a webhook for a container registry.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.WebhookTypeConverter))]
public class Webhook : Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.WebhookTypeConverter))>]
type Webhook = class
    interface IWebhook
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class Webhook
Implements IValidates, IWebhook
Inheritance
Webhook
Attributes
Implements

Constructors

Webhook()

Creates an new Webhook instance.

Properties

Action

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

Id

The resource ID.

Location

The location of the resource. This cannot be changed after the resource is created.

Name

The name of the resource.

ProvisioningState

The provisioning state of the webhook at the time the operation was called.

ResourceGroupName

Gets the resource group name

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.

Status

The status of the webhook at the time the operation was called.

SystemData

Metadata pertaining to creation and last modification of the resource.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource modification (UTC).

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Tag

The tags of the resource.

Type

The type of the resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Webhook.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Webhook.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IWebhook.

FromJsonString(String)

Creates a new instance of Webhook, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Webhook into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to