1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Cds\V20170925; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Roa; |
6
|
|
|
|
7
|
|
|
class V20170925Roa extends Roa |
8
|
|
|
{ |
9
|
|
|
/** @var string */ |
10
|
|
|
public $product = 'Cds'; |
11
|
|
|
|
12
|
|
|
/** @var string */ |
13
|
|
|
public $version = '2017-09-25'; |
14
|
|
|
|
15
|
|
|
/** @var string */ |
16
|
|
|
public $method = 'POST'; |
17
|
|
|
|
18
|
|
|
/** @var string */ |
19
|
|
|
public $serviceCode = 'cds'; |
20
|
|
|
} |
21
|
|
|
|
22
|
|
|
class GetCredentials extends V20170925Roa |
23
|
|
|
{ |
24
|
|
|
/** @var string */ |
25
|
|
|
public $pathPattern = '/v1/credentials'; |
26
|
|
|
|
27
|
|
|
/** @var string */ |
28
|
|
|
public $method = 'GET'; |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @method string getJsonContent() |
33
|
|
|
* @method string getJobName() |
34
|
|
|
*/ |
35
|
|
|
class UpdateJob extends V20170925Roa |
36
|
|
|
{ |
37
|
|
|
/** @var string */ |
38
|
|
|
public $pathPattern = '/v1/job/update'; |
39
|
|
|
|
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @param string $value |
43
|
|
|
* |
44
|
|
|
* @return $this |
45
|
|
|
*/ |
46
|
|
|
public function withJsonContent($value) |
47
|
|
|
{ |
48
|
|
|
$this->data['JsonContent'] = $value; |
49
|
|
|
$this->options['query']['JsonContent'] = $value; |
50
|
|
|
|
51
|
|
|
return $this; |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @param string $value |
56
|
|
|
* |
57
|
|
|
* @return $this |
58
|
|
|
*/ |
59
|
|
|
public function withJobName($value) |
60
|
|
|
{ |
61
|
|
|
$this->data['JobName'] = $value; |
62
|
|
|
$this->options['query']['JobName'] = $value; |
63
|
|
|
|
64
|
|
|
return $this; |
65
|
|
|
} |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @method string getCredentialType() |
70
|
|
|
* @method string getJsonContent() |
71
|
|
|
* @method string getCredentialId() |
72
|
|
|
*/ |
73
|
|
|
class UpdateCredential extends V20170925Roa |
74
|
|
|
{ |
75
|
|
|
/** @var string */ |
76
|
|
|
public $pathPattern = '/v1/credential/update'; |
77
|
|
|
|
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @param string $value |
81
|
|
|
* |
82
|
|
|
* @return $this |
83
|
|
|
*/ |
84
|
|
|
public function withCredentialType($value) |
85
|
|
|
{ |
86
|
|
|
$this->data['CredentialType'] = $value; |
87
|
|
|
$this->options['query']['CredentialType'] = $value; |
88
|
|
|
|
89
|
|
|
return $this; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @param string $value |
94
|
|
|
* |
95
|
|
|
* @return $this |
96
|
|
|
*/ |
97
|
|
|
public function withJsonContent($value) |
98
|
|
|
{ |
99
|
|
|
$this->data['JsonContent'] = $value; |
100
|
|
|
$this->options['query']['JsonContent'] = $value; |
101
|
|
|
|
102
|
|
|
return $this; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @param string $value |
107
|
|
|
* |
108
|
|
|
* @return $this |
109
|
|
|
*/ |
110
|
|
|
public function withCredentialId($value) |
111
|
|
|
{ |
112
|
|
|
$this->data['CredentialId'] = $value; |
113
|
|
|
$this->options['query']['CredentialId'] = $value; |
114
|
|
|
|
115
|
|
|
return $this; |
116
|
|
|
} |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @method string getCredentialId() |
121
|
|
|
*/ |
122
|
|
|
class DeleteCredential extends V20170925Roa |
123
|
|
|
{ |
124
|
|
|
/** @var string */ |
125
|
|
|
public $pathPattern = '/v1/credential/delete'; |
126
|
|
|
|
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @param string $value |
130
|
|
|
* |
131
|
|
|
* @return $this |
132
|
|
|
*/ |
133
|
|
|
public function withCredentialId($value) |
134
|
|
|
{ |
135
|
|
|
$this->data['CredentialId'] = $value; |
136
|
|
|
$this->options['query']['CredentialId'] = $value; |
137
|
|
|
|
138
|
|
|
return $this; |
139
|
|
|
} |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @method string getCredentialType() |
144
|
|
|
* @method string getJsonContent() |
145
|
|
|
*/ |
146
|
|
|
class CreateCredential extends V20170925Roa |
147
|
|
|
{ |
148
|
|
|
/** @var string */ |
149
|
|
|
public $pathPattern = '/v1/credential/create'; |
150
|
|
|
|
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* @param string $value |
154
|
|
|
* |
155
|
|
|
* @return $this |
156
|
|
|
*/ |
157
|
|
|
public function withCredentialType($value) |
158
|
|
|
{ |
159
|
|
|
$this->data['CredentialType'] = $value; |
160
|
|
|
$this->options['query']['CredentialType'] = $value; |
161
|
|
|
|
162
|
|
|
return $this; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @param string $value |
167
|
|
|
* |
168
|
|
|
* @return $this |
169
|
|
|
*/ |
170
|
|
|
public function withJsonContent($value) |
171
|
|
|
{ |
172
|
|
|
$this->data['JsonContent'] = $value; |
173
|
|
|
$this->options['query']['JsonContent'] = $value; |
174
|
|
|
|
175
|
|
|
return $this; |
176
|
|
|
} |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* @method string getJsonContent() |
181
|
|
|
* @method string getJobName() |
182
|
|
|
* @method string getDeployType() |
183
|
|
|
*/ |
184
|
|
|
class CreateJob extends V20170925Roa |
185
|
|
|
{ |
186
|
|
|
/** @var string */ |
187
|
|
|
public $pathPattern = '/v1/job/create'; |
188
|
|
|
|
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @param string $value |
192
|
|
|
* |
193
|
|
|
* @return $this |
194
|
|
|
*/ |
195
|
|
|
public function withJsonContent($value) |
196
|
|
|
{ |
197
|
|
|
$this->data['JsonContent'] = $value; |
198
|
|
|
$this->options['query']['JsonContent'] = $value; |
199
|
|
|
|
200
|
|
|
return $this; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @param string $value |
205
|
|
|
* |
206
|
|
|
* @return $this |
207
|
|
|
*/ |
208
|
|
|
public function withJobName($value) |
209
|
|
|
{ |
210
|
|
|
$this->data['JobName'] = $value; |
211
|
|
|
$this->options['query']['JobName'] = $value; |
212
|
|
|
|
213
|
|
|
return $this; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* @param string $value |
218
|
|
|
* |
219
|
|
|
* @return $this |
220
|
|
|
*/ |
221
|
|
|
public function withDeployType($value) |
222
|
|
|
{ |
223
|
|
|
$this->data['DeployType'] = $value; |
224
|
|
|
$this->options['query']['DeployType'] = $value; |
225
|
|
|
|
226
|
|
|
return $this; |
227
|
|
|
} |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @method string getBuildNumber() |
232
|
|
|
* @method $this withBuildNumber($value) |
233
|
|
|
* @method string getJobName() |
234
|
|
|
* @method $this withJobName($value) |
235
|
|
|
*/ |
236
|
|
|
class GetBuild extends V20170925Roa |
237
|
|
|
{ |
238
|
|
|
/** @var string */ |
239
|
|
|
public $pathPattern = '/v1/job/[JobName]/build/[BuildNumber]'; |
240
|
|
|
|
241
|
|
|
/** @var string */ |
242
|
|
|
public $method = 'GET'; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @method string getJobName() |
247
|
|
|
* @method $this withJobName($value) |
248
|
|
|
*/ |
249
|
|
|
class DeleteJob extends V20170925Roa |
250
|
|
|
{ |
251
|
|
|
/** @var string */ |
252
|
|
|
public $pathPattern = '/v1/job/[JobName]'; |
253
|
|
|
|
254
|
|
|
/** @var string */ |
255
|
|
|
public $method = 'DELETE'; |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* @method string getJobName() |
260
|
|
|
* @method $this withJobName($value) |
261
|
|
|
*/ |
262
|
|
|
class GetJob extends V20170925Roa |
263
|
|
|
{ |
264
|
|
|
/** @var string */ |
265
|
|
|
public $pathPattern = '/v1/job/[JobName]'; |
266
|
|
|
|
267
|
|
|
/** @var string */ |
268
|
|
|
public $method = 'GET'; |
269
|
|
|
} |
270
|
|
|
|
271
|
|
|
/** |
272
|
|
|
* @method string getStart() |
273
|
|
|
* @method string getNumberPerPage() |
274
|
|
|
* @method string getJobName() |
275
|
|
|
* @method $this withJobName($value) |
276
|
|
|
*/ |
277
|
|
|
class GetBuilds extends V20170925Roa |
278
|
|
|
{ |
279
|
|
|
/** @var string */ |
280
|
|
|
public $pathPattern = '/v1/job/[JobName]/builds'; |
281
|
|
|
|
282
|
|
|
/** @var string */ |
283
|
|
|
public $method = 'GET'; |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* @param string $value |
287
|
|
|
* |
288
|
|
|
* @return $this |
289
|
|
|
*/ |
290
|
|
|
public function withStart($value) |
291
|
|
|
{ |
292
|
|
|
$this->data['Start'] = $value; |
293
|
|
|
$this->options['query']['Start'] = $value; |
294
|
|
|
|
295
|
|
|
return $this; |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* @param string $value |
300
|
|
|
* |
301
|
|
|
* @return $this |
302
|
|
|
*/ |
303
|
|
|
public function withNumberPerPage($value) |
304
|
|
|
{ |
305
|
|
|
$this->data['NumberPerPage'] = $value; |
306
|
|
|
$this->options['query']['NumberPerPage'] = $value; |
307
|
|
|
|
308
|
|
|
return $this; |
309
|
|
|
} |
310
|
|
|
} |
311
|
|
|
|
312
|
|
|
/** |
313
|
|
|
* @method string getBuildNumber() |
314
|
|
|
* @method $this withBuildNumber($value) |
315
|
|
|
* @method string getJobName() |
316
|
|
|
* @method $this withJobName($value) |
317
|
|
|
*/ |
318
|
|
|
class DeleteBuild extends V20170925Roa |
319
|
|
|
{ |
320
|
|
|
/** @var string */ |
321
|
|
|
public $pathPattern = '/v1/job/[JobName]/build/[BuildNumber]'; |
322
|
|
|
|
323
|
|
|
/** @var string */ |
324
|
|
|
public $method = 'DELETE'; |
325
|
|
|
} |
326
|
|
|
|
327
|
|
|
/** |
328
|
|
|
* @method string getJobName() |
329
|
|
|
* @method $this withJobName($value) |
330
|
|
|
*/ |
331
|
|
|
class RunJob extends V20170925Roa |
332
|
|
|
{ |
333
|
|
|
/** @var string */ |
334
|
|
|
public $pathPattern = '/v1/job/[JobName]/run'; |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* @method string getBuildNumber() |
339
|
|
|
* @method $this withBuildNumber($value) |
340
|
|
|
* @method string getJobName() |
341
|
|
|
* @method $this withJobName($value) |
342
|
|
|
*/ |
343
|
|
|
class StopBuild extends V20170925Roa |
344
|
|
|
{ |
345
|
|
|
/** @var string */ |
346
|
|
|
public $pathPattern = '/v1/job/[JobName]/build/[BuildNumber]/stop'; |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
/** |
350
|
|
|
* @method string getStart() |
351
|
|
|
* @method string getNumberPerPage() |
352
|
|
|
*/ |
353
|
|
|
class GetJobs extends V20170925Roa |
354
|
|
|
{ |
355
|
|
|
/** @var string */ |
356
|
|
|
public $pathPattern = '/v1/jobs'; |
357
|
|
|
|
358
|
|
|
/** @var string */ |
359
|
|
|
public $method = 'GET'; |
360
|
|
|
|
361
|
|
|
/** |
362
|
|
|
* @param string $value |
363
|
|
|
* |
364
|
|
|
* @return $this |
365
|
|
|
*/ |
366
|
|
|
public function withStart($value) |
367
|
|
|
{ |
368
|
|
|
$this->data['Start'] = $value; |
369
|
|
|
$this->options['query']['Start'] = $value; |
370
|
|
|
|
371
|
|
|
return $this; |
372
|
|
|
} |
373
|
|
|
|
374
|
|
|
/** |
375
|
|
|
* @param string $value |
376
|
|
|
* |
377
|
|
|
* @return $this |
378
|
|
|
*/ |
379
|
|
|
public function withNumberPerPage($value) |
380
|
|
|
{ |
381
|
|
|
$this->data['NumberPerPage'] = $value; |
382
|
|
|
$this->options['query']['NumberPerPage'] = $value; |
383
|
|
|
|
384
|
|
|
return $this; |
385
|
|
|
} |
386
|
|
|
} |
387
|
|
|
|