| | 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 target of the event. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ContainerRegistryArtifactEventTarget |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the |
| | 23 | | /// ContainerRegistryArtifactEventTarget class. |
| | 24 | | /// </summary> |
| 2 | 25 | | public ContainerRegistryArtifactEventTarget() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 2 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the |
| | 32 | | /// ContainerRegistryArtifactEventTarget class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="mediaType">The MIME type of the artifact.</param> |
| | 35 | | /// <param name="size">The size in bytes of the artifact.</param> |
| | 36 | | /// <param name="digest">The digest of the artifact.</param> |
| | 37 | | /// <param name="repository">The repository name of the |
| | 38 | | /// artifact.</param> |
| | 39 | | /// <param name="tag">The tag of the artifact.</param> |
| | 40 | | /// <param name="name">The name of the artifact.</param> |
| | 41 | | /// <param name="version">The version of the artifact.</param> |
| 0 | 42 | | public ContainerRegistryArtifactEventTarget(string mediaType = default(string), long? size = default(long?), str |
| | 43 | | { |
| 0 | 44 | | MediaType = mediaType; |
| 0 | 45 | | Size = size; |
| 0 | 46 | | Digest = digest; |
| 0 | 47 | | Repository = repository; |
| 0 | 48 | | Tag = tag; |
| 0 | 49 | | Name = name; |
| 0 | 50 | | Version = version; |
| | 51 | | CustomInit(); |
| 0 | 52 | | } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// An initialization method that performs custom operations like setting defaults |
| | 56 | | /// </summary> |
| | 57 | | partial void CustomInit(); |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets or sets the MIME type of the artifact. |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "mediaType")] |
| 4 | 63 | | public string MediaType { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets the size in bytes of the artifact. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "size")] |
| 0 | 69 | | public long? Size { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets the digest of the artifact. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "digest")] |
| 0 | 75 | | public string Digest { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets the repository name of the artifact. |
| | 79 | | /// </summary> |
| | 80 | | [JsonProperty(PropertyName = "repository")] |
| 0 | 81 | | public string Repository { get; set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets or sets the tag of the artifact. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "tag")] |
| 0 | 87 | | public string Tag { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the name of the artifact. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "name")] |
| 0 | 93 | | public string Name { get; set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets or sets the version of the artifact. |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "version")] |
| 0 | 99 | | public string Version { get; set; } |
| | 100 | |
|
| | 101 | | } |
| | 102 | | } |