| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The platform object describes the platform which the image in the |
| | 20 | | /// manifest runs on. A full list of valid operating system and |
| | 21 | | /// architecture values are listed in the Go language documentation for |
| | 22 | | /// $GOOS and $GOARCH |
| | 23 | | /// </summary> |
| | 24 | | public partial class Platform |
| | 25 | | { |
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the Platform class. |
| | 28 | | /// </summary> |
| 16 | 29 | | public Platform() |
| | 30 | | { |
| | 31 | | CustomInit(); |
| 16 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Initializes a new instance of the Platform class. |
| | 36 | | /// </summary> |
| | 37 | | /// <param name="architecture">Specifies the CPU architecture, for |
| | 38 | | /// example amd64 or ppc64le.</param> |
| | 39 | | /// <param name="os">The os field specifies the operating system, for |
| | 40 | | /// example linux or windows.</param> |
| | 41 | | /// <param name="osversion">The optional os.version field specifies the |
| | 42 | | /// operating system version, for example 10.0.10586.</param> |
| | 43 | | /// <param name="osfeatures">The optional os.features field specifies |
| | 44 | | /// an array of strings, each listing a required OS feature (for |
| | 45 | | /// example on Windows win32k</param> |
| | 46 | | /// <param name="variant">The optional variant field specifies a |
| | 47 | | /// variant of the CPU, for example armv6l to specify a particular CPU |
| | 48 | | /// variant of the ARM CPU.</param> |
| | 49 | | /// <param name="features">The optional features field specifies an |
| | 50 | | /// array of strings, each listing a required CPU feature (for example |
| | 51 | | /// sse4 or aes</param> |
| 0 | 52 | | public Platform(string architecture = default(string), string os = default(string), string osversion = default(s |
| | 53 | | { |
| 0 | 54 | | Architecture = architecture; |
| 0 | 55 | | Os = os; |
| 0 | 56 | | Osversion = osversion; |
| 0 | 57 | | Osfeatures = osfeatures; |
| 0 | 58 | | Variant = variant; |
| 0 | 59 | | Features = features; |
| | 60 | | CustomInit(); |
| 0 | 61 | | } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// An initialization method that performs custom operations like setting defaults |
| | 65 | | /// </summary> |
| | 66 | | partial void CustomInit(); |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets specifies the CPU architecture, for example amd64 or |
| | 70 | | /// ppc64le. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "architecture")] |
| 0 | 73 | | public string Architecture { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets the os field specifies the operating system, for |
| | 77 | | /// example linux or windows. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "os")] |
| 0 | 80 | | public string Os { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the optional os.version field specifies the operating |
| | 84 | | /// system version, for example 10.0.10586. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "os.version")] |
| 0 | 87 | | public string Osversion { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the optional os.features field specifies an array of |
| | 91 | | /// strings, each listing a required OS feature (for example on Windows |
| | 92 | | /// win32k |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "os.features")] |
| 0 | 95 | | public IList<string> Osfeatures { get; set; } |
| | 96 | |
|
| | 97 | | /// <summary> |
| | 98 | | /// Gets or sets the optional variant field specifies a variant of the |
| | 99 | | /// CPU, for example armv6l to specify a particular CPU variant of the |
| | 100 | | /// ARM CPU. |
| | 101 | | /// </summary> |
| | 102 | | [JsonProperty(PropertyName = "variant")] |
| 0 | 103 | | public string Variant { get; set; } |
| | 104 | |
|
| | 105 | | /// <summary> |
| | 106 | | /// Gets or sets the optional features field specifies an array of |
| | 107 | | /// strings, each listing a required CPU feature (for example sse4 or |
| | 108 | | /// aes |
| | 109 | | /// </summary> |
| | 110 | | [JsonProperty(PropertyName = "features")] |
| 0 | 111 | | public IList<string> Features { get; set; } |
| | 112 | |
|
| | 113 | | } |
| | 114 | | } |