-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ContainerRegistryWebhookData.cs
56 lines (50 loc) · 3.31 KB
/
ContainerRegistryWebhookData.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.ContainerRegistry.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.ContainerRegistry
{
/// <summary>
/// A class representing the ContainerRegistryWebhook data model.
/// An object that represents a webhook for a container registry.
/// </summary>
public partial class ContainerRegistryWebhookData : TrackedResourceData
{
/// <summary> Initializes a new instance of ContainerRegistryWebhookData. </summary>
/// <param name="location"> The location. </param>
public ContainerRegistryWebhookData(AzureLocation location) : base(location)
{
Actions = new ChangeTrackingList<ContainerRegistryWebhookAction>();
}
/// <summary> Initializes a new instance of ContainerRegistryWebhookData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="status"> The status of the webhook at the time the operation was called. </param>
/// <param 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. </param>
/// <param name="actions"> The list of actions that trigger the webhook to post notifications. </param>
/// <param name="provisioningState"> The provisioning state of the webhook at the time the operation was called. </param>
internal ContainerRegistryWebhookData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, ContainerRegistryWebhookStatus? status, string scope, IList<ContainerRegistryWebhookAction> actions, ContainerRegistryProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location)
{
Status = status;
Scope = scope;
Actions = actions;
ProvisioningState = provisioningState;
}
/// <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; }
/// <summary> The provisioning state of the webhook at the time the operation was called. </summary>
public ContainerRegistryProvisioningState? ProvisioningState { get; }
}
}