| | | 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.Batch.Protocol.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// A reference to an Package to be deployed to Compute Nodes. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class ApplicationPackageReference |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the ApplicationPackageReference |
| | | 23 | | /// class. |
| | | 24 | | /// </summary> |
| | 8025 | 25 | | public ApplicationPackageReference() |
| | | 26 | | { |
| | | 27 | | CustomInit(); |
| | 8025 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Initializes a new instance of the ApplicationPackageReference |
| | | 32 | | /// class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="applicationId">The ID of the application to |
| | | 35 | | /// deploy.</param> |
| | | 36 | | /// <param name="version">The version of the application to deploy. If |
| | | 37 | | /// omitted, the default version is deployed.</param> |
| | 2 | 38 | | public ApplicationPackageReference(string applicationId, string version = default(string)) |
| | | 39 | | { |
| | 2 | 40 | | ApplicationId = applicationId; |
| | 2 | 41 | | Version = version; |
| | | 42 | | CustomInit(); |
| | 2 | 43 | | } |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// An initialization method that performs custom operations like setting defaults |
| | | 47 | | /// </summary> |
| | | 48 | | partial void CustomInit(); |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// Gets or sets the ID of the application to deploy. |
| | | 52 | | /// </summary> |
| | | 53 | | [JsonProperty(PropertyName = "applicationId")] |
| | 19360 | 54 | | public string ApplicationId { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// Gets or sets the version of the application to deploy. If omitted, |
| | | 58 | | /// the default version is deployed. |
| | | 59 | | /// </summary> |
| | | 60 | | /// <remarks> |
| | | 61 | | /// If this is omitted on a Pool, and no default version is specified |
| | | 62 | | /// for this application, the request fails with the error code |
| | | 63 | | /// InvalidApplicationPackageReferences and HTTP status code 409. If |
| | | 64 | | /// this is omitted on a Task, and no default version is specified for |
| | | 65 | | /// this application, the Task fails with a pre-processing error. |
| | | 66 | | /// </remarks> |
| | | 67 | | [JsonProperty(PropertyName = "version")] |
| | 19289 | 68 | | public string Version { get; set; } |
| | | 69 | | |
| | | 70 | | } |
| | | 71 | | } |