| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.EventGrid.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The content of the event request message. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class ContainerRegistryEventData |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the ContainerRegistryEventData class. |
| | | 23 | | /// </summary> |
| | 3 | 24 | | public ContainerRegistryEventData() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 3 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the ContainerRegistryEventData class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="id">The event ID.</param> |
| | | 33 | | /// <param name="timestamp">The time at which the event |
| | | 34 | | /// occurred.</param> |
| | | 35 | | /// <param name="action">The action that encompasses the provided |
| | | 36 | | /// event.</param> |
| | | 37 | | /// <param name="target">The target of the event.</param> |
| | | 38 | | /// <param name="request">The request that generated the event.</param> |
| | | 39 | | /// <param name="actor">The agent that initiated the event. For most |
| | | 40 | | /// situations, this could be from the authorization context of the |
| | | 41 | | /// request.</param> |
| | | 42 | | /// <param name="source">The registry node that generated the event. |
| | | 43 | | /// Put differently, while the actor initiates the event, the source |
| | | 44 | | /// generates it.</param> |
| | 0 | 45 | | public ContainerRegistryEventData(string id = default(string), System.DateTime? timestamp = default(System.DateT |
| | | 46 | | { |
| | 0 | 47 | | Id = id; |
| | 0 | 48 | | Timestamp = timestamp; |
| | 0 | 49 | | Action = action; |
| | 0 | 50 | | Target = target; |
| | 0 | 51 | | Request = request; |
| | 0 | 52 | | Actor = actor; |
| | 0 | 53 | | Source = source; |
| | | 54 | | CustomInit(); |
| | 0 | 55 | | } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// An initialization method that performs custom operations like setting defaults |
| | | 59 | | /// </summary> |
| | | 60 | | partial void CustomInit(); |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets or sets the event ID. |
| | | 64 | | /// </summary> |
| | | 65 | | [JsonProperty(PropertyName = "id")] |
| | 0 | 66 | | public string Id { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// Gets or sets the time at which the event occurred. |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "timestamp")] |
| | 0 | 72 | | public System.DateTime? Timestamp { get; set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Gets or sets the action that encompasses the provided event. |
| | | 76 | | /// </summary> |
| | | 77 | | [JsonProperty(PropertyName = "action")] |
| | 0 | 78 | | public string Action { get; set; } |
| | | 79 | | |
| | | 80 | | /// <summary> |
| | | 81 | | /// Gets or sets the target of the event. |
| | | 82 | | /// </summary> |
| | | 83 | | [JsonProperty(PropertyName = "target")] |
| | 6 | 84 | | public ContainerRegistryEventTarget Target { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// Gets or sets the request that generated the event. |
| | | 88 | | /// </summary> |
| | | 89 | | [JsonProperty(PropertyName = "request")] |
| | 8 | 90 | | public ContainerRegistryEventRequest Request { get; set; } |
| | | 91 | | |
| | | 92 | | /// <summary> |
| | | 93 | | /// Gets or sets the agent that initiated the event. For most |
| | | 94 | | /// situations, this could be from the authorization context of the |
| | | 95 | | /// request. |
| | | 96 | | /// </summary> |
| | | 97 | | [JsonProperty(PropertyName = "actor")] |
| | 7 | 98 | | public ContainerRegistryEventActor Actor { get; set; } |
| | | 99 | | |
| | | 100 | | /// <summary> |
| | | 101 | | /// Gets or sets the registry node that generated the event. Put |
| | | 102 | | /// differently, while the actor initiates the event, the source |
| | | 103 | | /// generates it. |
| | | 104 | | /// </summary> |
| | | 105 | | [JsonProperty(PropertyName = "source")] |
| | 6 | 106 | | public ContainerRegistryEventSource Source { get; set; } |
| | | 107 | | |
| | | 108 | | } |
| | | 109 | | } |