-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ContainerRegistryWebhookCreateOrUpdateContent.cs
42 lines (37 loc) · 2.24 KB
/
ContainerRegistryWebhookCreateOrUpdateContent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.ContainerRegistry.Models
{
/// <summary> The parameters for creating a webhook. </summary>
public partial class ContainerRegistryWebhookCreateOrUpdateContent
{
/// <summary> Initializes a new instance of ContainerRegistryWebhookCreateOrUpdateContent. </summary>
/// <param name="location"> The location of the webhook. This cannot be changed after the resource is created. </param>
public ContainerRegistryWebhookCreateOrUpdateContent(AzureLocation location)
{
Tags = new ChangeTrackingDictionary<string, string>();
Location = location;
CustomHeaders = new ChangeTrackingDictionary<string, string>();
Actions = new ChangeTrackingList<ContainerRegistryWebhookAction>();
}
/// <summary> The tags for the webhook. </summary>
public IDictionary<string, string> Tags { get; }
/// <summary> The location of the webhook. This cannot be changed after the resource is created. </summary>
public AzureLocation Location { get; }
/// <summary> The service URI for the webhook to post notifications. </summary>
public Uri ServiceUri { get; set; }
/// <summary> Custom headers that will be added to the webhook notifications. </summary>
public IDictionary<string, string> CustomHeaders { get; }
/// <summary> The status of the webhook at the time the operation was called. </summary>
public ContainerRegistryWebhookStatus? Status { get; set; }
/// <summary> 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. </summary>
public string Scope { get; set; }
/// <summary> The list of actions that trigger the webhook to post notifications. </summary>
public IList<ContainerRegistryWebhookAction> Actions { get; }
}
}