| | | 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 specification for uploading files from an Azure Batch Compute Node to |
| | | 18 | | /// another location after the Batch service has finished executing the |
| | | 19 | | /// Task process. |
| | | 20 | | /// </summary> |
| | | 21 | | public partial class OutputFile |
| | | 22 | | { |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the OutputFile class. |
| | | 25 | | /// </summary> |
| | 4608 | 26 | | public OutputFile() |
| | | 27 | | { |
| | | 28 | | CustomInit(); |
| | 4608 | 29 | | } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Initializes a new instance of the OutputFile class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="filePattern">A pattern indicating which file(s) to |
| | | 35 | | /// upload.</param> |
| | | 36 | | /// <param name="destination">The destination for the output |
| | | 37 | | /// file(s).</param> |
| | | 38 | | /// <param name="uploadOptions">Additional options for the upload |
| | | 39 | | /// operation, including under what conditions to perform the |
| | | 40 | | /// upload.</param> |
| | 0 | 41 | | public OutputFile(string filePattern, OutputFileDestination destination, OutputFileUploadOptions uploadOptions) |
| | | 42 | | { |
| | 0 | 43 | | FilePattern = filePattern; |
| | 0 | 44 | | Destination = destination; |
| | 0 | 45 | | UploadOptions = uploadOptions; |
| | | 46 | | CustomInit(); |
| | 0 | 47 | | } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | | 51 | | /// </summary> |
| | | 52 | | partial void CustomInit(); |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Gets or sets a pattern indicating which file(s) to upload. |
| | | 56 | | /// </summary> |
| | | 57 | | /// <remarks> |
| | | 58 | | /// Both relative and absolute paths are supported. Relative paths are |
| | | 59 | | /// relative to the Task working directory. The following wildcards are |
| | | 60 | | /// supported: * matches 0 or more characters (for example pattern abc* |
| | | 61 | | /// would match abc or abcdef), ** matches any directory, ? matches any |
| | | 62 | | /// single character, [abc] matches one character in the brackets, and |
| | | 63 | | /// [a-c] matches one character in the range. Brackets can include a |
| | | 64 | | /// negation to match any character not specified (for example [!abc] |
| | | 65 | | /// matches any character but a, b, or c). If a file name starts with |
| | | 66 | | /// "." it is ignored by default but may be matched by specifying it |
| | | 67 | | /// explicitly (for example *.gif will not match .a.gif, but .*.gif |
| | | 68 | | /// will). A simple example: **\*.txt matches any file that does not |
| | | 69 | | /// start in '.' and ends with .txt in the Task working directory or |
| | | 70 | | /// any subdirectory. If the filename contains a wildcard character it |
| | | 71 | | /// can be escaped using brackets (for example abc[*] would match a |
| | | 72 | | /// file named abc*). Note that both \ and / are treated as directory |
| | | 73 | | /// separators on Windows, but only / is on Linux. Environment |
| | | 74 | | /// variables (%var% on Windows or $var on Linux) are expanded prior to |
| | | 75 | | /// the pattern being applied. |
| | | 76 | | /// </remarks> |
| | | 77 | | [JsonProperty(PropertyName = "filePattern")] |
| | 11069 | 78 | | public string FilePattern { get; set; } |
| | | 79 | | |
| | | 80 | | /// <summary> |
| | | 81 | | /// Gets or sets the destination for the output file(s). |
| | | 82 | | /// </summary> |
| | | 83 | | [JsonProperty(PropertyName = "destination")] |
| | 11181 | 84 | | public OutputFileDestination Destination { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// Gets or sets additional options for the upload operation, including |
| | | 88 | | /// under what conditions to perform the upload. |
| | | 89 | | /// </summary> |
| | | 90 | | [JsonProperty(PropertyName = "uploadOptions")] |
| | 11097 | 91 | | public OutputFileUploadOptions UploadOptions { get; set; } |
| | | 92 | | |
| | | 93 | | } |
| | | 94 | | } |