@@ -34,8 +34,8 @@ public CommitJobRequest()
34
34
{
35
35
if ( this . GetType ( ) . GetProperty ( "ProductEndpointMap" ) != null && this . GetType ( ) . GetProperty ( "ProductEndpointType" ) != null )
36
36
{
37
- this . GetType ( ) . GetProperty ( "ProductEndpointMap" ) . SetValue ( this , Endpoint . endpointMap , null ) ;
38
- this . GetType ( ) . GetProperty ( "ProductEndpointType" ) . SetValue ( this , Endpoint . endpointRegionalType , null ) ;
37
+ this . GetType ( ) . GetProperty ( "ProductEndpointMap" ) . SetValue ( this , Aliyun . Acs . foas . Endpoint . endpointMap , null ) ;
38
+ this . GetType ( ) . GetProperty ( "ProductEndpointType" ) . SetValue ( this , Aliyun . Acs . foas . Endpoint . endpointRegionalType , null ) ;
39
39
}
40
40
Protocol = ProtocolType . HTTPS ;
41
41
UriPattern = "/api/v2/projects/[projectName]/jobs/[jobName]/commit" ;
@@ -44,6 +44,10 @@ public CommitJobRequest()
44
44
45
45
private string projectName ;
46
46
47
+ private bool ? recommendOnly ;
48
+
49
+ private string suspendPeriods ;
50
+
47
51
private float ? maxCU ;
48
52
49
53
private string configure ;
@@ -52,6 +56,8 @@ public CommitJobRequest()
52
56
53
57
private string jobName ;
54
58
59
+ private List < SuspendPeriodParam > suspendPeriodParams = new List < SuspendPeriodParam > ( ) { } ;
60
+
55
61
public string ProjectName
56
62
{
57
63
get
@@ -65,6 +71,32 @@ public string ProjectName
65
71
}
66
72
}
67
73
74
+ public bool ? RecommendOnly
75
+ {
76
+ get
77
+ {
78
+ return recommendOnly ;
79
+ }
80
+ set
81
+ {
82
+ recommendOnly = value ;
83
+ DictionaryUtil . Add ( BodyParameters , "recommendOnly" , value . ToString ( ) ) ;
84
+ }
85
+ }
86
+
87
+ public string SuspendPeriods
88
+ {
89
+ get
90
+ {
91
+ return suspendPeriods ;
92
+ }
93
+ set
94
+ {
95
+ suspendPeriods = value ;
96
+ DictionaryUtil . Add ( BodyParameters , "suspendPeriods" , value ) ;
97
+ }
98
+ }
99
+
68
100
public float ? MaxCU
69
101
{
70
102
get
@@ -115,6 +147,86 @@ public string JobName
115
147
jobName = value ;
116
148
DictionaryUtil . Add ( PathParameters , "jobName" , value ) ;
117
149
}
150
+ }
151
+
152
+ public List < SuspendPeriodParam > SuspendPeriodParams
153
+ {
154
+ get
155
+ {
156
+ return suspendPeriodParams ;
157
+ }
158
+
159
+ set
160
+ {
161
+ suspendPeriodParams = value ;
162
+ for ( int i = 0 ; i < suspendPeriodParams . Count ; i ++ )
163
+ {
164
+ DictionaryUtil . Add ( BodyParameters , "suspendPeriodParam." + ( i + 1 ) + ".endTime" , suspendPeriodParams [ i ] . EndTime ) ;
165
+ DictionaryUtil . Add ( BodyParameters , "suspendPeriodParam." + ( i + 1 ) + ".startTime" , suspendPeriodParams [ i ] . StartTime ) ;
166
+ DictionaryUtil . Add ( BodyParameters , "suspendPeriodParam." + ( i + 1 ) + ".plan" , suspendPeriodParams [ i ] . Plan ) ;
167
+ DictionaryUtil . Add ( BodyParameters , "suspendPeriodParam." + ( i + 1 ) + ".policy" , suspendPeriodParams [ i ] . Policy ) ;
168
+ }
169
+ }
170
+ }
171
+
172
+ public class SuspendPeriodParam
173
+ {
174
+
175
+ private string endTime ;
176
+
177
+ private string startTime ;
178
+
179
+ private string plan ;
180
+
181
+ private string policy ;
182
+
183
+ public string EndTime
184
+ {
185
+ get
186
+ {
187
+ return endTime ;
188
+ }
189
+ set
190
+ {
191
+ endTime = value ;
192
+ }
193
+ }
194
+
195
+ public string StartTime
196
+ {
197
+ get
198
+ {
199
+ return startTime ;
200
+ }
201
+ set
202
+ {
203
+ startTime = value ;
204
+ }
205
+ }
206
+
207
+ public string Plan
208
+ {
209
+ get
210
+ {
211
+ return plan ;
212
+ }
213
+ set
214
+ {
215
+ plan = value ;
216
+ }
217
+ }
218
+
219
+ public string Policy
220
+ {
221
+ get
222
+ {
223
+ return policy ;
224
+ }
225
+ set
226
+ {
227
+ policy = value ;
228
+ }
229
+ }
118
230
}
119
231
120
232
public override CommitJobResponse GetResponse ( UnmarshallerContext unmarshallerContext )
0 commit comments