| | 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.ContainerRegistry.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Signature of a signed manifest |
| | 18 | | /// </summary> |
| | 19 | | public partial class ImageSignature |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ImageSignature class. |
| | 23 | | /// </summary> |
| 4 | 24 | | public ImageSignature() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 4 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ImageSignature class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="header">A JSON web signature</param> |
| | 33 | | /// <param name="signature">A signature for the image manifest, signed |
| | 34 | | /// by a libtrust private key</param> |
| | 35 | | /// <param name="protectedProperty">The signed protected header</param> |
| 0 | 36 | | public ImageSignature(JWK header = default(JWK), string signature = default(string), string protectedProperty = |
| | 37 | | { |
| 0 | 38 | | Header = header; |
| 0 | 39 | | Signature = signature; |
| 0 | 40 | | ProtectedProperty = protectedProperty; |
| | 41 | | CustomInit(); |
| 0 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | 46 | | /// </summary> |
| | 47 | | partial void CustomInit(); |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets or sets a JSON web signature |
| | 51 | | /// </summary> |
| | 52 | | [JsonProperty(PropertyName = "header")] |
| 6 | 53 | | public JWK Header { get; set; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets a signature for the image manifest, signed by a |
| | 57 | | /// libtrust private key |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "signature")] |
| 0 | 60 | | public string Signature { get; set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets or sets the signed protected header |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "protected")] |
| 0 | 66 | | public string ProtectedProperty { get; set; } |
| | 67 | |
|
| | 68 | | } |
| | 69 | | } |