| | 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 | | /// The Azure Batch service log files upload configuration for a Compute |
| | 18 | | /// Node. |
| | 19 | | /// </summary> |
| | 20 | | public partial class UploadBatchServiceLogsConfiguration |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the |
| | 24 | | /// UploadBatchServiceLogsConfiguration class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public UploadBatchServiceLogsConfiguration() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the |
| | 33 | | /// UploadBatchServiceLogsConfiguration class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="containerUrl">The URL of the container within Azure |
| | 36 | | /// Blob Storage to which to upload the Batch Service log |
| | 37 | | /// file(s).</param> |
| | 38 | | /// <param name="startTime">The start of the time range from which to |
| | 39 | | /// upload Batch Service log file(s).</param> |
| | 40 | | /// <param name="endTime">The end of the time range from which to |
| | 41 | | /// upload Batch Service log file(s).</param> |
| 1 | 42 | | public UploadBatchServiceLogsConfiguration(string containerUrl, System.DateTime startTime, System.DateTime? endT |
| | 43 | | { |
| 1 | 44 | | ContainerUrl = containerUrl; |
| 1 | 45 | | StartTime = startTime; |
| 1 | 46 | | EndTime = endTime; |
| | 47 | | CustomInit(); |
| 1 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets the URL of the container within Azure Blob Storage to |
| | 57 | | /// which to upload the Batch Service log file(s). |
| | 58 | | /// </summary> |
| | 59 | | /// <remarks> |
| | 60 | | /// The URL must include a Shared Access Signature (SAS) granting write |
| | 61 | | /// permissions to the container. The SAS duration must allow enough |
| | 62 | | /// time for the upload to finish. The start time for SAS is optional |
| | 63 | | /// and recommended to not be specified. |
| | 64 | | /// </remarks> |
| | 65 | | [JsonProperty(PropertyName = "containerUrl")] |
| 0 | 66 | | public string ContainerUrl { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets the start of the time range from which to upload Batch |
| | 70 | | /// Service log file(s). |
| | 71 | | /// </summary> |
| | 72 | | /// <remarks> |
| | 73 | | /// Any log file containing a log message in the time range will be |
| | 74 | | /// uploaded. This means that the operation might retrieve more logs |
| | 75 | | /// than have been requested since the entire log file is always |
| | 76 | | /// uploaded, but the operation should not retrieve fewer logs than |
| | 77 | | /// have been requested. |
| | 78 | | /// </remarks> |
| | 79 | | [JsonProperty(PropertyName = "startTime")] |
| 0 | 80 | | public System.DateTime StartTime { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the end of the time range from which to upload Batch |
| | 84 | | /// Service log file(s). |
| | 85 | | /// </summary> |
| | 86 | | /// <remarks> |
| | 87 | | /// Any log file containing a log message in the time range will be |
| | 88 | | /// uploaded. This means that the operation might retrieve more logs |
| | 89 | | /// than have been requested since the entire log file is always |
| | 90 | | /// uploaded, but the operation should not retrieve fewer logs than |
| | 91 | | /// have been requested. If omitted, the default is to upload all logs |
| | 92 | | /// available after the startTime. |
| | 93 | | /// </remarks> |
| | 94 | | [JsonProperty(PropertyName = "endTime")] |
| 0 | 95 | | public System.DateTime? EndTime { get; set; } |
| | 96 | |
|
| | 97 | | } |
| | 98 | | } |