| | | 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 | | /// Information about a file or directory on a Compute Node. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class NodeFile |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the NodeFile class. |
| | | 23 | | /// </summary> |
| | 12 | 24 | | public NodeFile() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 12 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the NodeFile class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="name">The file path.</param> |
| | | 33 | | /// <param name="url">The URL of the file.</param> |
| | | 34 | | /// <param name="isDirectory">Whether the object represents a |
| | | 35 | | /// directory.</param> |
| | | 36 | | /// <param name="properties">The file properties.</param> |
| | 2 | 37 | | public NodeFile(string name = default(string), string url = default(string), bool? isDirectory = default(bool?), |
| | | 38 | | { |
| | 2 | 39 | | Name = name; |
| | 2 | 40 | | Url = url; |
| | 2 | 41 | | IsDirectory = isDirectory; |
| | 2 | 42 | | Properties = properties; |
| | | 43 | | CustomInit(); |
| | 2 | 44 | | } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// An initialization method that performs custom operations like setting defaults |
| | | 48 | | /// </summary> |
| | | 49 | | partial void CustomInit(); |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Gets or sets the file path. |
| | | 53 | | /// </summary> |
| | | 54 | | [JsonProperty(PropertyName = "name")] |
| | 20 | 55 | | public string Name { get; set; } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// Gets or sets the URL of the file. |
| | | 59 | | /// </summary> |
| | | 60 | | [JsonProperty(PropertyName = "url")] |
| | 0 | 61 | | public string Url { get; set; } |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Gets or sets whether the object represents a directory. |
| | | 65 | | /// </summary> |
| | | 66 | | [JsonProperty(PropertyName = "isDirectory")] |
| | 0 | 67 | | public bool? IsDirectory { get; set; } |
| | | 68 | | |
| | | 69 | | /// <summary> |
| | | 70 | | /// Gets or sets the file properties. |
| | | 71 | | /// </summary> |
| | | 72 | | [JsonProperty(PropertyName = "properties")] |
| | 28 | 73 | | public FileProperties Properties { get; set; } |
| | | 74 | | |
| | | 75 | | } |
| | | 76 | | } |