| | 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 locality hint that can be used by the Batch service to select a |
| | 18 | | /// Compute Node on which to start a Task. |
| | 19 | | /// </summary> |
| | 20 | | public partial class AffinityInformation |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the AffinityInformation class. |
| | 24 | | /// </summary> |
| 662 | 25 | | public AffinityInformation() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 662 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the AffinityInformation class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="affinityId">An opaque string representing the location |
| | 34 | | /// of a Compute Node or a Task that has run previously.</param> |
| 0 | 35 | | public AffinityInformation(string affinityId) |
| | 36 | | { |
| 0 | 37 | | AffinityId = affinityId; |
| | 38 | | CustomInit(); |
| 0 | 39 | | } |
| | 40 | |
|
| | 41 | | /// <summary> |
| | 42 | | /// An initialization method that performs custom operations like setting defaults |
| | 43 | | /// </summary> |
| | 44 | | partial void CustomInit(); |
| | 45 | |
|
| | 46 | | /// <summary> |
| | 47 | | /// Gets or sets an opaque string representing the location of a |
| | 48 | | /// Compute Node or a Task that has run previously. |
| | 49 | | /// </summary> |
| | 50 | | /// <remarks> |
| | 51 | | /// You can pass the affinityId of a Node to indicate that this Task |
| | 52 | | /// needs to run on that Compute Node. Note that this is just a soft |
| | 53 | | /// affinity. If the target Compute Node is busy or unavailable at the |
| | 54 | | /// time the Task is scheduled, then the Task will be scheduled |
| | 55 | | /// elsewhere. |
| | 56 | | /// </remarks> |
| | 57 | | [JsonProperty(PropertyName = "affinityId")] |
| 1565 | 58 | | public string AffinityId { get; set; } |
| | 59 | |
|
| | 60 | | } |
| | 61 | | } |