| | 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 Microsoft.Rest; |
| | 14 | | using Microsoft.Rest.Serialization; |
| | 15 | | using Newtonsoft.Json; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Defines headers for GetFromTask operation. |
| | 20 | | /// </summary> |
| | 21 | | public partial class FileGetFromTaskHeaders |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the FileGetFromTaskHeaders class. |
| | 25 | | /// </summary> |
| 3 | 26 | | public FileGetFromTaskHeaders() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 3 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the FileGetFromTaskHeaders class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="clientRequestId">The client-request-id provided by the |
| | 35 | | /// client during the request. This will be returned only if the |
| | 36 | | /// return-client-request-id parameter was set to true.</param> |
| | 37 | | /// <param name="requestId">A unique identifier for the request that |
| | 38 | | /// was made to the Batch service. If a request is consistently failing |
| | 39 | | /// and you have verified that the request is properly formulated, you |
| | 40 | | /// may use this value to report the error to Microsoft. In your |
| | 41 | | /// report, include the value of this request ID, the approximate time |
| | 42 | | /// that the request was made, the Batch Account against which the |
| | 43 | | /// request was made, and the region that Account resides in.</param> |
| | 44 | | /// <param name="eTag">The ETag HTTP response header. This is an opaque |
| | 45 | | /// string. You can use it to detect whether the resource has changed |
| | 46 | | /// between requests. In particular, you can pass the ETag to one of |
| | 47 | | /// the If-Modified-Since, If-Unmodified-Since, If-Match or |
| | 48 | | /// If-None-Match headers.</param> |
| | 49 | | /// <param name="lastModified">The time at which the resource was last |
| | 50 | | /// modified.</param> |
| | 51 | | /// <param name="ocpCreationTime">The file creation time.</param> |
| | 52 | | /// <param name="ocpBatchFileIsdirectory">Whether the object represents |
| | 53 | | /// a directory.</param> |
| | 54 | | /// <param name="ocpBatchFileUrl">The URL of the file.</param> |
| | 55 | | /// <param name="ocpBatchFileMode">The file mode attribute in octal |
| | 56 | | /// format.</param> |
| | 57 | | /// <param name="contentType">The content type of the file.</param> |
| | 58 | | /// <param name="contentLength">The length of the file.</param> |
| 0 | 59 | | public FileGetFromTaskHeaders(System.Guid? clientRequestId = default(System.Guid?), System.Guid? requestId = def |
| | 60 | | { |
| 0 | 61 | | ClientRequestId = clientRequestId; |
| 0 | 62 | | RequestId = requestId; |
| 0 | 63 | | ETag = eTag; |
| 0 | 64 | | LastModified = lastModified; |
| 0 | 65 | | OcpCreationTime = ocpCreationTime; |
| 0 | 66 | | OcpBatchFileIsdirectory = ocpBatchFileIsdirectory; |
| 0 | 67 | | OcpBatchFileUrl = ocpBatchFileUrl; |
| 0 | 68 | | OcpBatchFileMode = ocpBatchFileMode; |
| 0 | 69 | | ContentType = contentType; |
| 0 | 70 | | ContentLength = contentLength; |
| | 71 | | CustomInit(); |
| 0 | 72 | | } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// An initialization method that performs custom operations like setting defaults |
| | 76 | | /// </summary> |
| | 77 | | partial void CustomInit(); |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets or sets the client-request-id provided by the client during |
| | 81 | | /// the request. This will be returned only if the |
| | 82 | | /// return-client-request-id parameter was set to true. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "client-request-id")] |
| 0 | 85 | | public System.Guid? ClientRequestId { get; set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Gets or sets a unique identifier for the request that was made to |
| | 89 | | /// the Batch service. If a request is consistently failing and you |
| | 90 | | /// have verified that the request is properly formulated, you may use |
| | 91 | | /// this value to report the error to Microsoft. In your report, |
| | 92 | | /// include the value of this request ID, the approximate time that the |
| | 93 | | /// request was made, the Batch Account against which the request was |
| | 94 | | /// made, and the region that Account resides in. |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "request-id")] |
| 0 | 97 | | public System.Guid? RequestId { get; set; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets or sets the ETag HTTP response header. This is an opaque |
| | 101 | | /// string. You can use it to detect whether the resource has changed |
| | 102 | | /// between requests. In particular, you can pass the ETag to one of |
| | 103 | | /// the If-Modified-Since, If-Unmodified-Since, If-Match or |
| | 104 | | /// If-None-Match headers. |
| | 105 | | /// </summary> |
| | 106 | | [JsonProperty(PropertyName = "ETag")] |
| 0 | 107 | | public string ETag { get; set; } |
| | 108 | |
|
| | 109 | | /// <summary> |
| | 110 | | /// Gets or sets the time at which the resource was last modified. |
| | 111 | | /// </summary> |
| | 112 | | [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] |
| | 113 | | [JsonProperty(PropertyName = "Last-Modified")] |
| 5 | 114 | | public System.DateTime? LastModified { get; set; } |
| | 115 | |
|
| | 116 | | /// <summary> |
| | 117 | | /// Gets or sets the file creation time. |
| | 118 | | /// </summary> |
| | 119 | | [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] |
| | 120 | | [JsonProperty(PropertyName = "ocp-creation-time")] |
| 0 | 121 | | public System.DateTime? OcpCreationTime { get; set; } |
| | 122 | |
|
| | 123 | | /// <summary> |
| | 124 | | /// Gets or sets whether the object represents a directory. |
| | 125 | | /// </summary> |
| | 126 | | [JsonProperty(PropertyName = "ocp-batch-file-isdirectory")] |
| 0 | 127 | | public bool? OcpBatchFileIsdirectory { get; set; } |
| | 128 | |
|
| | 129 | | /// <summary> |
| | 130 | | /// Gets or sets the URL of the file. |
| | 131 | | /// </summary> |
| | 132 | | [JsonProperty(PropertyName = "ocp-batch-file-url")] |
| 0 | 133 | | public string OcpBatchFileUrl { get; set; } |
| | 134 | |
|
| | 135 | | /// <summary> |
| | 136 | | /// Gets or sets the file mode attribute in octal format. |
| | 137 | | /// </summary> |
| | 138 | | [JsonProperty(PropertyName = "ocp-batch-file-mode")] |
| 0 | 139 | | public string OcpBatchFileMode { get; set; } |
| | 140 | |
|
| | 141 | | /// <summary> |
| | 142 | | /// Gets or sets the content type of the file. |
| | 143 | | /// </summary> |
| | 144 | | [JsonProperty(PropertyName = "Content-Type")] |
| 5 | 145 | | public string ContentType { get; set; } |
| | 146 | |
|
| | 147 | | /// <summary> |
| | 148 | | /// Gets or sets the length of the file. |
| | 149 | | /// </summary> |
| | 150 | | [JsonProperty(PropertyName = "Content-Length")] |
| 5 | 151 | | public long? ContentLength { get; set; } |
| | 152 | |
|
| | 153 | | } |
| | 154 | | } |