| | 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 ContainerRegistryEventTarget |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ContainerRegistryEventTarget |
| | 23 | | /// class. |
| | 24 | | /// </summary> |
| 3 | 25 | | public ContainerRegistryEventTarget() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 3 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the ContainerRegistryEventTarget |
| | 32 | | /// class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="mediaType">The MIME type of the referenced |
| | 35 | | /// object.</param> |
| | 36 | | /// <param name="size">The number of bytes of the content. Same as |
| | 37 | | /// Length field.</param> |
| | 38 | | /// <param name="digest">The digest of the content, as defined by the |
| | 39 | | /// Registry V2 HTTP API Specification.</param> |
| | 40 | | /// <param name="length">The number of bytes of the content. Same as |
| | 41 | | /// Size field.</param> |
| | 42 | | /// <param name="repository">The repository name.</param> |
| | 43 | | /// <param name="url">The direct URL to the content.</param> |
| | 44 | | /// <param name="tag">The tag name.</param> |
| 0 | 45 | | public ContainerRegistryEventTarget(string mediaType = default(string), long? size = default(long?), string dige |
| | 46 | | { |
| 0 | 47 | | MediaType = mediaType; |
| 0 | 48 | | Size = size; |
| 0 | 49 | | Digest = digest; |
| 0 | 50 | | Length = length; |
| 0 | 51 | | Repository = repository; |
| 0 | 52 | | Url = url; |
| 0 | 53 | | Tag = tag; |
| | 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 MIME type of the referenced object. |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "mediaType")] |
| 0 | 66 | | public string MediaType { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets the number of bytes of the content. Same as Length |
| | 70 | | /// field. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "size")] |
| 0 | 73 | | public long? Size { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets the digest of the content, as defined by the Registry |
| | 77 | | /// V2 HTTP API Specification. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "digest")] |
| 0 | 80 | | public string Digest { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the number of bytes of the content. Same as Size |
| | 84 | | /// field. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "length")] |
| 0 | 87 | | public long? Length { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the repository name. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "repository")] |
| 0 | 93 | | public string Repository { get; set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets or sets the direct URL to the content. |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "url")] |
| 0 | 99 | | public string Url { get; set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Gets or sets the tag name. |
| | 103 | | /// </summary> |
| | 104 | | [JsonProperty(PropertyName = "tag")] |
| 0 | 105 | | public string Tag { get; set; } |
| | 106 | |
|
| | 107 | | } |
| | 108 | | } |