-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
JobSchedulePatchOptions.cs
151 lines (138 loc) · 6.88 KB
/
JobSchedulePatchOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Batch.Protocol.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// Additional parameters for Patch operation.
/// </summary>
public partial class JobSchedulePatchOptions
{
/// <summary>
/// Initializes a new instance of the JobSchedulePatchOptions class.
/// </summary>
public JobSchedulePatchOptions()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the JobSchedulePatchOptions class.
/// </summary>
/// <param name="timeout">The maximum time that the server can spend
/// processing the request, in seconds. The default is 30 seconds. If
/// the value is larger than 30, the default will be used
/// instead.</param>
/// <param name="clientRequestId">The caller-generated request
/// identity, in the form of a GUID with no decoration such as curly
/// braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.</param>
/// <param name="returnClientRequestId">Whether the server should
/// return the client-request-id in the response.</param>
/// <param name="ocpDate">The time the request was issued. Client
/// libraries typically set this to the current system clock time; set
/// it explicitly if you are calling the REST API directly.</param>
/// <param name="ifMatch">An ETag value associated with the version of
/// the resource known to the client. The operation will be performed
/// only if the resource's current ETag on the service exactly matches
/// the value specified by the client.</param>
/// <param name="ifNoneMatch">An ETag value associated with the version
/// of the resource known to the client. The operation will be
/// performed only if the resource's current ETag on the service does
/// not match the value specified by the client.</param>
/// <param name="ifModifiedSince">A timestamp indicating the last
/// modified time of the resource known to the client. The operation
/// will be performed only if the resource on the service has been
/// modified since the specified time.</param>
/// <param name="ifUnmodifiedSince">A timestamp indicating the last
/// modified time of the resource known to the client. The operation
/// will be performed only if the resource on the service has not been
/// modified since the specified time.</param>
public JobSchedulePatchOptions(int? timeout = default(int?), System.Guid? clientRequestId = default(System.Guid?), bool? returnClientRequestId = default(bool?), System.DateTime? ocpDate = default(System.DateTime?), string ifMatch = default(string), string ifNoneMatch = default(string), System.DateTime? ifModifiedSince = default(System.DateTime?), System.DateTime? ifUnmodifiedSince = default(System.DateTime?))
{
Timeout = timeout;
ClientRequestId = clientRequestId;
ReturnClientRequestId = returnClientRequestId;
OcpDate = ocpDate;
IfMatch = ifMatch;
IfNoneMatch = ifNoneMatch;
IfModifiedSince = ifModifiedSince;
IfUnmodifiedSince = ifUnmodifiedSince;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the maximum time that the server can spend processing
/// the request, in seconds. The default is 30 seconds. If the value is
/// larger than 30, the default will be used instead.
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public int? Timeout { get; set; }
/// <summary>
/// Gets or sets the caller-generated request identity, in the form of
/// a GUID with no decoration such as curly braces, e.g.
/// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public System.Guid? ClientRequestId { get; set; }
/// <summary>
/// Gets or sets whether the server should return the client-request-id
/// in the response.
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public bool? ReturnClientRequestId { get; set; }
/// <summary>
/// Gets or sets the time the request was issued. Client libraries
/// typically set this to the current system clock time; set it
/// explicitly if you are calling the REST API directly.
/// </summary>
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
[Newtonsoft.Json.JsonIgnore]
public System.DateTime? OcpDate { get; set; }
/// <summary>
/// Gets or sets an ETag value associated with the version of the
/// resource known to the client. The operation will be performed only
/// if the resource's current ETag on the service exactly matches the
/// value specified by the client.
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public string IfMatch { get; set; }
/// <summary>
/// Gets or sets an ETag value associated with the version of the
/// resource known to the client. The operation will be performed only
/// if the resource's current ETag on the service does not match the
/// value specified by the client.
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public string IfNoneMatch { get; set; }
/// <summary>
/// Gets or sets a timestamp indicating the last modified time of the
/// resource known to the client. The operation will be performed only
/// if the resource on the service has been modified since the
/// specified time.
/// </summary>
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
[Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfModifiedSince { get; set; }
/// <summary>
/// Gets or sets a timestamp indicating the last modified time of the
/// resource known to the client. The operation will be performed only
/// if the resource on the service has not been modified since the
/// specified time.
/// </summary>
[JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
[Newtonsoft.Json.JsonIgnore]
public System.DateTime? IfUnmodifiedSince { get; set; }
}
}