GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( f31d3c...93142c )
by
unknown
07:18
created

BatchDeleteJobs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
dl 0
loc 19
c 1
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A withJobIdList() 0 8 2
1
<?php
2
3
namespace AlibabaCloud\Schedulerx2\V20190430;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method BatchDeleteJobs batchDeleteJobs(array $options = [])
9
 * @method BatchDisableJobs batchDisableJobs(array $options = [])
10
 * @method BatchEnableJobs batchEnableJobs(array $options = [])
11
 * @method CreateAppGroup createAppGroup(array $options = [])
12
 * @method CreateJob createJob(array $options = [])
13
 * @method DeleteJob deleteJob(array $options = [])
14
 * @method DeleteWorkflow deleteWorkflow(array $options = [])
15
 * @method DescribeRegions describeRegions(array $options = [])
16
 * @method DisableJob disableJob(array $options = [])
17
 * @method DisableWorkflow disableWorkflow(array $options = [])
18
 * @method EnableJob enableJob(array $options = [])
19
 * @method EnableWorkflow enableWorkflow(array $options = [])
20
 * @method ExecuteJob executeJob(array $options = [])
21
 * @method ExecuteWorkflow executeWorkflow(array $options = [])
22
 * @method GetJobInfo getJobInfo(array $options = [])
23
 * @method GetJobInstance getJobInstance(array $options = [])
24
 * @method GetJobInstanceList getJobInstanceList(array $options = [])
25
 * @method GrantPermission grantPermission(array $options = [])
26
 * @method ListGroups listGroups(array $options = [])
27
 * @method ListJobs listJobs(array $options = [])
28
 * @method ListNamespaces listNamespaces(array $options = [])
29
 * @method RevokePermission revokePermission(array $options = [])
30
 * @method StopInstance stopInstance(array $options = [])
31
 * @method UpdateJob updateJob(array $options = [])
32
 */
33
class Schedulerx2ApiResolver extends ApiResolver
34
{
35
}
36
37
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
38
{
39
    /** @var string */
40
    public $product = 'schedulerx2';
41
42
    /** @var string */
43
    public $version = '2019-04-30';
44
}
45
46
/**
47
 * @method string getNamespaceSource()
48
 * @method $this withNamespaceSource($value)
49
 * @method string getGroupId()
50
 * @method $this withGroupId($value)
51
 * @method array getJobIdList()
52
 * @method string getNamespace()
53
 * @method $this withNamespace($value)
54
 */
55
class BatchDeleteJobs extends Rpc
56
{
57
58
    /** @var string */
59
    public $method = 'POST';
60
61
    /**
62
     * @param array $jobIdList
63
     *
64
     * @return $this
65
     */
66
	public function withJobIdList(array $jobIdList)
67
	{
68
	    $this->data['JobIdList'] = $jobIdList;
69
		foreach ($jobIdList as $i => $iValue) {
70
			$this->options['form_params']['JobIdList.' . ($i + 1)] = $iValue;
71
		}
72
73
		return $this;
74
    }
75
}
76
77
/**
78
 * @method string getNamespaceSource()
79
 * @method $this withNamespaceSource($value)
80
 * @method string getGroupId()
81
 * @method $this withGroupId($value)
82
 * @method string getNamespace()
83
 * @method $this withNamespace($value)
84
 * @method array getJobIdList()
85
 */
86
class BatchDisableJobs extends Rpc
87
{
88
89
    /** @var string */
90
    public $method = 'POST';
91
92
    /**
93
     * @param array $jobIdList
94
     *
95
     * @return $this
96
     */
97
	public function withJobIdList(array $jobIdList)
98
	{
99
	    $this->data['JobIdList'] = $jobIdList;
100
		foreach ($jobIdList as $i => $iValue) {
101
			$this->options['form_params']['JobIdList.' . ($i + 1)] = $iValue;
102
		}
103
104
		return $this;
105
    }
106
}
107
108
/**
109
 * @method string getNamespaceSource()
110
 * @method $this withNamespaceSource($value)
111
 * @method string getGroupId()
112
 * @method $this withGroupId($value)
113
 * @method string getNamespace()
114
 * @method $this withNamespace($value)
115
 * @method array getJobIdList()
116
 */
117
class BatchEnableJobs extends Rpc
118
{
119
120
    /** @var string */
121
    public $method = 'POST';
122
123
    /**
124
     * @param array $jobIdList
125
     *
126
     * @return $this
127
     */
128
	public function withJobIdList(array $jobIdList)
129
	{
130
	    $this->data['JobIdList'] = $jobIdList;
131
		foreach ($jobIdList as $i => $iValue) {
132
			$this->options['form_params']['JobIdList.' . ($i + 1)] = $iValue;
133
		}
134
135
		return $this;
136
    }
137
}
138
139
/**
140
 * @method string getMaxJobs()
141
 * @method $this withMaxJobs($value)
142
 * @method string getNamespaceName()
143
 * @method $this withNamespaceName($value)
144
 * @method string getNamespaceSource()
145
 * @method $this withNamespaceSource($value)
146
 * @method string getMetricsThresholdJson()
147
 * @method $this withMetricsThresholdJson($value)
148
 * @method string getGroupId()
149
 * @method $this withGroupId($value)
150
 * @method string getDescription()
151
 * @method $this withDescription($value)
152
 * @method string getAppName()
153
 * @method $this withAppName($value)
154
 * @method string getNamespace()
155
 * @method $this withNamespace($value)
156
 * @method string getAlarmJson()
157
 * @method $this withAlarmJson($value)
158
 */
159
class CreateAppGroup extends Rpc
160
{
161
162
    /** @var string */
163
    public $scheme = 'https';
164
}
165
166
/**
167
 * @method string getNamespaceSource()
168
 * @method string getDescription()
169
 * @method string getAttemptInterval()
170
 * @method string getContent()
171
 * @method string getTimeout()
172
 * @method string getTimeoutKillEnable()
173
 * @method string getPageSize()
174
 * @method string getConsumerSize()
175
 * @method string getJarUrl()
176
 * @method string getCalendar()
177
 * @method string getFailEnable()
178
 * @method string getSendChannel()
179
 * @method string getDataOffset()
180
 * @method string getGroupId()
181
 * @method string getTaskMaxAttempt()
182
 * @method string getMaxAttempt()
183
 * @method string getDispatcherSize()
184
 * @method string getJobType()
185
 * @method string getTaskAttemptInterval()
186
 * @method string getExecuteMode()
187
 * @method string getQueueSize()
188
 * @method string getTimeExpression()
189
 * @method string getClassName()
190
 * @method string getTimeoutEnable()
191
 * @method array getContactInfo()
192
 * @method string getName()
193
 * @method string getNamespace()
194
 * @method string getMaxConcurrency()
195
 * @method string getTimeType()
196
 * @method string getParameters()
197
 */
198
class CreateJob extends Rpc
199
{
200
201
    /** @var string */
202
    public $method = 'POST';
203
204
    /**
205
     * @param string $value
206
     *
207
     * @return $this
208
     */
209
    public function withNamespaceSource($value)
210
    {
211
        $this->data['NamespaceSource'] = $value;
212
        $this->options['form_params']['NamespaceSource'] = $value;
213
214
        return $this;
215
    }
216
217
    /**
218
     * @param string $value
219
     *
220
     * @return $this
221
     */
222
    public function withDescription($value)
223
    {
224
        $this->data['Description'] = $value;
225
        $this->options['form_params']['Description'] = $value;
226
227
        return $this;
228
    }
229
230
    /**
231
     * @param string $value
232
     *
233
     * @return $this
234
     */
235
    public function withAttemptInterval($value)
236
    {
237
        $this->data['AttemptInterval'] = $value;
238
        $this->options['form_params']['AttemptInterval'] = $value;
239
240
        return $this;
241
    }
242
243
    /**
244
     * @param string $value
245
     *
246
     * @return $this
247
     */
248
    public function withContent($value)
249
    {
250
        $this->data['Content'] = $value;
251
        $this->options['form_params']['Content'] = $value;
252
253
        return $this;
254
    }
255
256
    /**
257
     * @param string $value
258
     *
259
     * @return $this
260
     */
261
    public function withTimeout($value)
262
    {
263
        $this->data['Timeout'] = $value;
264
        $this->options['form_params']['Timeout'] = $value;
265
266
        return $this;
267
    }
268
269
    /**
270
     * @param string $value
271
     *
272
     * @return $this
273
     */
274
    public function withTimeoutKillEnable($value)
275
    {
276
        $this->data['TimeoutKillEnable'] = $value;
277
        $this->options['form_params']['TimeoutKillEnable'] = $value;
278
279
        return $this;
280
    }
281
282
    /**
283
     * @param string $value
284
     *
285
     * @return $this
286
     */
287
    public function withPageSize($value)
288
    {
289
        $this->data['PageSize'] = $value;
290
        $this->options['form_params']['PageSize'] = $value;
291
292
        return $this;
293
    }
294
295
    /**
296
     * @param string $value
297
     *
298
     * @return $this
299
     */
300
    public function withConsumerSize($value)
301
    {
302
        $this->data['ConsumerSize'] = $value;
303
        $this->options['form_params']['ConsumerSize'] = $value;
304
305
        return $this;
306
    }
307
308
    /**
309
     * @param string $value
310
     *
311
     * @return $this
312
     */
313
    public function withJarUrl($value)
314
    {
315
        $this->data['JarUrl'] = $value;
316
        $this->options['form_params']['JarUrl'] = $value;
317
318
        return $this;
319
    }
320
321
    /**
322
     * @param string $value
323
     *
324
     * @return $this
325
     */
326
    public function withCalendar($value)
327
    {
328
        $this->data['Calendar'] = $value;
329
        $this->options['form_params']['Calendar'] = $value;
330
331
        return $this;
332
    }
333
334
    /**
335
     * @param string $value
336
     *
337
     * @return $this
338
     */
339
    public function withFailEnable($value)
340
    {
341
        $this->data['FailEnable'] = $value;
342
        $this->options['form_params']['FailEnable'] = $value;
343
344
        return $this;
345
    }
346
347
    /**
348
     * @param string $value
349
     *
350
     * @return $this
351
     */
352
    public function withSendChannel($value)
353
    {
354
        $this->data['SendChannel'] = $value;
355
        $this->options['form_params']['SendChannel'] = $value;
356
357
        return $this;
358
    }
359
360
    /**
361
     * @param string $value
362
     *
363
     * @return $this
364
     */
365
    public function withDataOffset($value)
366
    {
367
        $this->data['DataOffset'] = $value;
368
        $this->options['form_params']['DataOffset'] = $value;
369
370
        return $this;
371
    }
372
373
    /**
374
     * @param string $value
375
     *
376
     * @return $this
377
     */
378
    public function withGroupId($value)
379
    {
380
        $this->data['GroupId'] = $value;
381
        $this->options['form_params']['GroupId'] = $value;
382
383
        return $this;
384
    }
385
386
    /**
387
     * @param string $value
388
     *
389
     * @return $this
390
     */
391
    public function withTaskMaxAttempt($value)
392
    {
393
        $this->data['TaskMaxAttempt'] = $value;
394
        $this->options['form_params']['TaskMaxAttempt'] = $value;
395
396
        return $this;
397
    }
398
399
    /**
400
     * @param string $value
401
     *
402
     * @return $this
403
     */
404
    public function withMaxAttempt($value)
405
    {
406
        $this->data['MaxAttempt'] = $value;
407
        $this->options['form_params']['MaxAttempt'] = $value;
408
409
        return $this;
410
    }
411
412
    /**
413
     * @param string $value
414
     *
415
     * @return $this
416
     */
417
    public function withDispatcherSize($value)
418
    {
419
        $this->data['DispatcherSize'] = $value;
420
        $this->options['form_params']['DispatcherSize'] = $value;
421
422
        return $this;
423
    }
424
425
    /**
426
     * @param string $value
427
     *
428
     * @return $this
429
     */
430
    public function withJobType($value)
431
    {
432
        $this->data['JobType'] = $value;
433
        $this->options['form_params']['JobType'] = $value;
434
435
        return $this;
436
    }
437
438
    /**
439
     * @param string $value
440
     *
441
     * @return $this
442
     */
443
    public function withTaskAttemptInterval($value)
444
    {
445
        $this->data['TaskAttemptInterval'] = $value;
446
        $this->options['form_params']['TaskAttemptInterval'] = $value;
447
448
        return $this;
449
    }
450
451
    /**
452
     * @param string $value
453
     *
454
     * @return $this
455
     */
456
    public function withExecuteMode($value)
457
    {
458
        $this->data['ExecuteMode'] = $value;
459
        $this->options['form_params']['ExecuteMode'] = $value;
460
461
        return $this;
462
    }
463
464
    /**
465
     * @param string $value
466
     *
467
     * @return $this
468
     */
469
    public function withQueueSize($value)
470
    {
471
        $this->data['QueueSize'] = $value;
472
        $this->options['form_params']['QueueSize'] = $value;
473
474
        return $this;
475
    }
476
477
    /**
478
     * @param string $value
479
     *
480
     * @return $this
481
     */
482
    public function withTimeExpression($value)
483
    {
484
        $this->data['TimeExpression'] = $value;
485
        $this->options['form_params']['TimeExpression'] = $value;
486
487
        return $this;
488
    }
489
490
    /**
491
     * @param string $value
492
     *
493
     * @return $this
494
     */
495
    public function withClassName($value)
496
    {
497
        $this->data['ClassName'] = $value;
498
        $this->options['form_params']['ClassName'] = $value;
499
500
        return $this;
501
    }
502
503
    /**
504
     * @param string $value
505
     *
506
     * @return $this
507
     */
508
    public function withTimeoutEnable($value)
509
    {
510
        $this->data['TimeoutEnable'] = $value;
511
        $this->options['form_params']['TimeoutEnable'] = $value;
512
513
        return $this;
514
    }
515
516
    /**
517
     * @param array $contactInfo
518
     *
519
     * @return $this
520
     */
521
	public function withContactInfo(array $contactInfo)
522
	{
523
	    $this->data['ContactInfo'] = $contactInfo;
524
		foreach ($contactInfo as $depth1 => $depth1Value) {
525
			if(isset($depth1Value['UserPhone'])){
526
				$this->options['form_params']['ContactInfo.' . ($depth1 + 1) . '.UserPhone'] = $depth1Value['UserPhone'];
527
			}
528
			if(isset($depth1Value['UserName'])){
529
				$this->options['form_params']['ContactInfo.' . ($depth1 + 1) . '.UserName'] = $depth1Value['UserName'];
530
			}
531
		}
532
533
		return $this;
534
    }
535
536
    /**
537
     * @param string $value
538
     *
539
     * @return $this
540
     */
541
    public function withName($value)
542
    {
543
        $this->data['Name'] = $value;
544
        $this->options['form_params']['Name'] = $value;
545
546
        return $this;
547
    }
548
549
    /**
550
     * @param string $value
551
     *
552
     * @return $this
553
     */
554
    public function withNamespace($value)
555
    {
556
        $this->data['Namespace'] = $value;
557
        $this->options['form_params']['Namespace'] = $value;
558
559
        return $this;
560
    }
561
562
    /**
563
     * @param string $value
564
     *
565
     * @return $this
566
     */
567
    public function withMaxConcurrency($value)
568
    {
569
        $this->data['MaxConcurrency'] = $value;
570
        $this->options['form_params']['MaxConcurrency'] = $value;
571
572
        return $this;
573
    }
574
575
    /**
576
     * @param string $value
577
     *
578
     * @return $this
579
     */
580
    public function withTimeType($value)
581
    {
582
        $this->data['TimeType'] = $value;
583
        $this->options['form_params']['TimeType'] = $value;
584
585
        return $this;
586
    }
587
588
    /**
589
     * @param string $value
590
     *
591
     * @return $this
592
     */
593
    public function withParameters($value)
594
    {
595
        $this->data['Parameters'] = $value;
596
        $this->options['form_params']['Parameters'] = $value;
597
598
        return $this;
599
    }
600
}
601
602
/**
603
 * @method string getNamespaceSource()
604
 * @method $this withNamespaceSource($value)
605
 * @method string getGroupId()
606
 * @method $this withGroupId($value)
607
 * @method string getJobId()
608
 * @method $this withJobId($value)
609
 * @method string getNamespace()
610
 * @method $this withNamespace($value)
611
 */
612
class DeleteJob extends Rpc
613
{
614
}
615
616
/**
617
 * @method string getNamespaceSource()
618
 * @method $this withNamespaceSource($value)
619
 * @method string getGroupId()
620
 * @method $this withGroupId($value)
621
 * @method string getNamespace()
622
 * @method $this withNamespace($value)
623
 * @method string getWorkflowId()
624
 * @method $this withWorkflowId($value)
625
 */
626
class DeleteWorkflow extends Rpc
627
{
628
629
    /** @var string */
630
    public $scheme = 'https';
631
}
632
633
class DescribeRegions extends Rpc
634
{
635
636
    /** @var string */
637
    public $method = 'POST';
638
}
639
640
/**
641
 * @method string getJobId()
642
 * @method $this withJobId($value)
643
 * @method string getNamespaceSource()
644
 * @method $this withNamespaceSource($value)
645
 * @method string getGroupId()
646
 * @method $this withGroupId($value)
647
 * @method string getNamespace()
648
 * @method $this withNamespace($value)
649
 */
650
class DisableJob extends Rpc
651
{
652
}
653
654
/**
655
 * @method string getNamespaceSource()
656
 * @method $this withNamespaceSource($value)
657
 * @method string getGroupId()
658
 * @method $this withGroupId($value)
659
 * @method string getNamespace()
660
 * @method $this withNamespace($value)
661
 * @method string getWorkflowId()
662
 * @method $this withWorkflowId($value)
663
 */
664
class DisableWorkflow extends Rpc
665
{
666
667
    /** @var string */
668
    public $scheme = 'https';
669
}
670
671
/**
672
 * @method string getJobId()
673
 * @method $this withJobId($value)
674
 * @method string getNamespaceSource()
675
 * @method $this withNamespaceSource($value)
676
 * @method string getGroupId()
677
 * @method $this withGroupId($value)
678
 * @method string getNamespace()
679
 * @method $this withNamespace($value)
680
 */
681
class EnableJob extends Rpc
682
{
683
}
684
685
/**
686
 * @method string getNamespaceSource()
687
 * @method $this withNamespaceSource($value)
688
 * @method string getGroupId()
689
 * @method $this withGroupId($value)
690
 * @method string getNamespace()
691
 * @method $this withNamespace($value)
692
 * @method string getWorkflowId()
693
 * @method $this withWorkflowId($value)
694
 */
695
class EnableWorkflow extends Rpc
696
{
697
698
    /** @var string */
699
    public $scheme = 'https';
700
}
701
702
/**
703
 * @method string getJobId()
704
 * @method $this withJobId($value)
705
 * @method string getNamespaceSource()
706
 * @method $this withNamespaceSource($value)
707
 * @method string getGroupId()
708
 * @method $this withGroupId($value)
709
 * @method string getNamespace()
710
 * @method $this withNamespace($value)
711
 * @method string getInstanceParameters()
712
 * @method $this withInstanceParameters($value)
713
 */
714
class ExecuteJob extends Rpc
715
{
716
}
717
718
/**
719
 * @method string getNamespaceSource()
720
 * @method $this withNamespaceSource($value)
721
 * @method string getGroupId()
722
 * @method $this withGroupId($value)
723
 * @method string getNamespace()
724
 * @method $this withNamespace($value)
725
 * @method string getWorkflowId()
726
 * @method $this withWorkflowId($value)
727
 * @method string getInstanceParameters()
728
 * @method $this withInstanceParameters($value)
729
 */
730
class ExecuteWorkflow extends Rpc
731
{
732
733
    /** @var string */
734
    public $scheme = 'https';
735
}
736
737
/**
738
 * @method string getJobId()
739
 * @method $this withJobId($value)
740
 * @method string getNamespaceSource()
741
 * @method $this withNamespaceSource($value)
742
 * @method string getGroupId()
743
 * @method $this withGroupId($value)
744
 * @method string getNamespace()
745
 * @method $this withNamespace($value)
746
 */
747
class GetJobInfo extends Rpc
748
{
749
}
750
751
/**
752
 * @method string getJobId()
753
 * @method $this withJobId($value)
754
 * @method string getNamespaceSource()
755
 * @method $this withNamespaceSource($value)
756
 * @method string getGroupId()
757
 * @method $this withGroupId($value)
758
 * @method string getNamespace()
759
 * @method $this withNamespace($value)
760
 * @method string getJobInstanceId()
761
 * @method $this withJobInstanceId($value)
762
 */
763
class GetJobInstance extends Rpc
764
{
765
766
    /** @var string */
767
    public $scheme = 'https';
768
}
769
770
/**
771
 * @method string getJobId()
772
 * @method $this withJobId($value)
773
 * @method string getNamespaceSource()
774
 * @method $this withNamespaceSource($value)
775
 * @method string getGroupId()
776
 * @method $this withGroupId($value)
777
 * @method string getNamespace()
778
 * @method $this withNamespace($value)
779
 */
780
class GetJobInstanceList extends Rpc
781
{
782
}
783
784
/**
785
 * @method string getNamespaceSource()
786
 * @method $this withNamespaceSource($value)
787
 * @method string getGroupId()
788
 * @method $this withGroupId($value)
789
 * @method string getUserId()
790
 * @method $this withUserId($value)
791
 * @method string getGrantOption()
792
 * @method $this withGrantOption($value)
793
 * @method string getNamespace()
794
 * @method $this withNamespace($value)
795
 * @method string getUserName()
796
 * @method $this withUserName($value)
797
 */
798
class GrantPermission extends Rpc
799
{
800
801
    /** @var string */
802
    public $method = 'POST';
803
}
804
805
/**
806
 * @method string getNamespaceSource()
807
 * @method $this withNamespaceSource($value)
808
 * @method string getNamespace()
809
 * @method $this withNamespace($value)
810
 */
811
class ListGroups extends Rpc
812
{
813
}
814
815
/**
816
 * @method string getNamespaceSource()
817
 * @method $this withNamespaceSource($value)
818
 * @method string getGroupId()
819
 * @method $this withGroupId($value)
820
 * @method string getNamespace()
821
 * @method $this withNamespace($value)
822
 * @method string getJobName()
823
 * @method $this withJobName($value)
824
 * @method string getStatus()
825
 * @method $this withStatus($value)
826
 */
827
class ListJobs extends Rpc
828
{
829
}
830
831
class ListNamespaces extends Rpc
832
{
833
}
834
835
/**
836
 * @method string getNamespaceSource()
837
 * @method $this withNamespaceSource($value)
838
 * @method string getGroupId()
839
 * @method $this withGroupId($value)
840
 * @method string getNamespace()
841
 * @method $this withNamespace($value)
842
 * @method string getUserId()
843
 * @method $this withUserId($value)
844
 */
845
class RevokePermission extends Rpc
846
{
847
848
    /** @var string */
849
    public $method = 'POST';
850
}
851
852
/**
853
 * @method string getJobId()
854
 * @method $this withJobId($value)
855
 * @method string getNamespaceSource()
856
 * @method $this withNamespaceSource($value)
857
 * @method string getInstanceId()
858
 * @method $this withInstanceId($value)
859
 * @method string getGroupId()
860
 * @method $this withGroupId($value)
861
 * @method string getNamespace()
862
 * @method $this withNamespace($value)
863
 */
864
class StopInstance extends Rpc
865
{
866
867
    /** @var string */
868
    public $scheme = 'https';
869
}
870
871
/**
872
 * @method string getNamespaceSource()
873
 * @method string getDescription()
874
 * @method string getAttemptInterval()
875
 * @method string getContent()
876
 * @method string getTimeout()
877
 * @method string getTimeoutKillEnable()
878
 * @method string getJobId()
879
 * @method string getPageSize()
880
 * @method string getConsumerSize()
881
 * @method string getJarUrl()
882
 * @method string getCalendar()
883
 * @method string getFailEnable()
884
 * @method string getSendChannel()
885
 * @method string getDataOffset()
886
 * @method string getGroupId()
887
 * @method string getTaskMaxAttempt()
888
 * @method string getMaxAttempt()
889
 * @method string getDispatcherSize()
890
 * @method string getTaskAttemptInterval()
891
 * @method string getExecuteMode()
892
 * @method string getQueueSize()
893
 * @method string getTimeExpression()
894
 * @method string getClassName()
895
 * @method string getTimeoutEnable()
896
 * @method array getContactInfo()
897
 * @method string getName()
898
 * @method string getNamespace()
899
 * @method string getMaxConcurrency()
900
 * @method string getTimeType()
901
 * @method string getParameters()
902
 */
903
class UpdateJob extends Rpc
904
{
905
906
    /** @var string */
907
    public $method = 'POST';
908
909
    /**
910
     * @param string $value
911
     *
912
     * @return $this
913
     */
914
    public function withNamespaceSource($value)
915
    {
916
        $this->data['NamespaceSource'] = $value;
917
        $this->options['form_params']['NamespaceSource'] = $value;
918
919
        return $this;
920
    }
921
922
    /**
923
     * @param string $value
924
     *
925
     * @return $this
926
     */
927
    public function withDescription($value)
928
    {
929
        $this->data['Description'] = $value;
930
        $this->options['form_params']['Description'] = $value;
931
932
        return $this;
933
    }
934
935
    /**
936
     * @param string $value
937
     *
938
     * @return $this
939
     */
940
    public function withAttemptInterval($value)
941
    {
942
        $this->data['AttemptInterval'] = $value;
943
        $this->options['form_params']['AttemptInterval'] = $value;
944
945
        return $this;
946
    }
947
948
    /**
949
     * @param string $value
950
     *
951
     * @return $this
952
     */
953
    public function withContent($value)
954
    {
955
        $this->data['Content'] = $value;
956
        $this->options['form_params']['Content'] = $value;
957
958
        return $this;
959
    }
960
961
    /**
962
     * @param string $value
963
     *
964
     * @return $this
965
     */
966
    public function withTimeout($value)
967
    {
968
        $this->data['Timeout'] = $value;
969
        $this->options['form_params']['Timeout'] = $value;
970
971
        return $this;
972
    }
973
974
    /**
975
     * @param string $value
976
     *
977
     * @return $this
978
     */
979
    public function withTimeoutKillEnable($value)
980
    {
981
        $this->data['TimeoutKillEnable'] = $value;
982
        $this->options['form_params']['TimeoutKillEnable'] = $value;
983
984
        return $this;
985
    }
986
987
    /**
988
     * @param string $value
989
     *
990
     * @return $this
991
     */
992
    public function withJobId($value)
993
    {
994
        $this->data['JobId'] = $value;
995
        $this->options['form_params']['JobId'] = $value;
996
997
        return $this;
998
    }
999
1000
    /**
1001
     * @param string $value
1002
     *
1003
     * @return $this
1004
     */
1005
    public function withPageSize($value)
1006
    {
1007
        $this->data['PageSize'] = $value;
1008
        $this->options['form_params']['PageSize'] = $value;
1009
1010
        return $this;
1011
    }
1012
1013
    /**
1014
     * @param string $value
1015
     *
1016
     * @return $this
1017
     */
1018
    public function withConsumerSize($value)
1019
    {
1020
        $this->data['ConsumerSize'] = $value;
1021
        $this->options['form_params']['ConsumerSize'] = $value;
1022
1023
        return $this;
1024
    }
1025
1026
    /**
1027
     * @param string $value
1028
     *
1029
     * @return $this
1030
     */
1031
    public function withJarUrl($value)
1032
    {
1033
        $this->data['JarUrl'] = $value;
1034
        $this->options['form_params']['JarUrl'] = $value;
1035
1036
        return $this;
1037
    }
1038
1039
    /**
1040
     * @param string $value
1041
     *
1042
     * @return $this
1043
     */
1044
    public function withCalendar($value)
1045
    {
1046
        $this->data['Calendar'] = $value;
1047
        $this->options['form_params']['Calendar'] = $value;
1048
1049
        return $this;
1050
    }
1051
1052
    /**
1053
     * @param string $value
1054
     *
1055
     * @return $this
1056
     */
1057
    public function withFailEnable($value)
1058
    {
1059
        $this->data['FailEnable'] = $value;
1060
        $this->options['form_params']['FailEnable'] = $value;
1061
1062
        return $this;
1063
    }
1064
1065
    /**
1066
     * @param string $value
1067
     *
1068
     * @return $this
1069
     */
1070
    public function withSendChannel($value)
1071
    {
1072
        $this->data['SendChannel'] = $value;
1073
        $this->options['form_params']['SendChannel'] = $value;
1074
1075
        return $this;
1076
    }
1077
1078
    /**
1079
     * @param string $value
1080
     *
1081
     * @return $this
1082
     */
1083
    public function withDataOffset($value)
1084
    {
1085
        $this->data['DataOffset'] = $value;
1086
        $this->options['form_params']['DataOffset'] = $value;
1087
1088
        return $this;
1089
    }
1090
1091
    /**
1092
     * @param string $value
1093
     *
1094
     * @return $this
1095
     */
1096
    public function withGroupId($value)
1097
    {
1098
        $this->data['GroupId'] = $value;
1099
        $this->options['form_params']['GroupId'] = $value;
1100
1101
        return $this;
1102
    }
1103
1104
    /**
1105
     * @param string $value
1106
     *
1107
     * @return $this
1108
     */
1109
    public function withTaskMaxAttempt($value)
1110
    {
1111
        $this->data['TaskMaxAttempt'] = $value;
1112
        $this->options['form_params']['TaskMaxAttempt'] = $value;
1113
1114
        return $this;
1115
    }
1116
1117
    /**
1118
     * @param string $value
1119
     *
1120
     * @return $this
1121
     */
1122
    public function withMaxAttempt($value)
1123
    {
1124
        $this->data['MaxAttempt'] = $value;
1125
        $this->options['form_params']['MaxAttempt'] = $value;
1126
1127
        return $this;
1128
    }
1129
1130
    /**
1131
     * @param string $value
1132
     *
1133
     * @return $this
1134
     */
1135
    public function withDispatcherSize($value)
1136
    {
1137
        $this->data['DispatcherSize'] = $value;
1138
        $this->options['form_params']['DispatcherSize'] = $value;
1139
1140
        return $this;
1141
    }
1142
1143
    /**
1144
     * @param string $value
1145
     *
1146
     * @return $this
1147
     */
1148
    public function withTaskAttemptInterval($value)
1149
    {
1150
        $this->data['TaskAttemptInterval'] = $value;
1151
        $this->options['form_params']['TaskAttemptInterval'] = $value;
1152
1153
        return $this;
1154
    }
1155
1156
    /**
1157
     * @param string $value
1158
     *
1159
     * @return $this
1160
     */
1161
    public function withExecuteMode($value)
1162
    {
1163
        $this->data['ExecuteMode'] = $value;
1164
        $this->options['form_params']['ExecuteMode'] = $value;
1165
1166
        return $this;
1167
    }
1168
1169
    /**
1170
     * @param string $value
1171
     *
1172
     * @return $this
1173
     */
1174
    public function withQueueSize($value)
1175
    {
1176
        $this->data['QueueSize'] = $value;
1177
        $this->options['form_params']['QueueSize'] = $value;
1178
1179
        return $this;
1180
    }
1181
1182
    /**
1183
     * @param string $value
1184
     *
1185
     * @return $this
1186
     */
1187
    public function withTimeExpression($value)
1188
    {
1189
        $this->data['TimeExpression'] = $value;
1190
        $this->options['form_params']['TimeExpression'] = $value;
1191
1192
        return $this;
1193
    }
1194
1195
    /**
1196
     * @param string $value
1197
     *
1198
     * @return $this
1199
     */
1200
    public function withClassName($value)
1201
    {
1202
        $this->data['ClassName'] = $value;
1203
        $this->options['form_params']['ClassName'] = $value;
1204
1205
        return $this;
1206
    }
1207
1208
    /**
1209
     * @param string $value
1210
     *
1211
     * @return $this
1212
     */
1213
    public function withTimeoutEnable($value)
1214
    {
1215
        $this->data['TimeoutEnable'] = $value;
1216
        $this->options['form_params']['TimeoutEnable'] = $value;
1217
1218
        return $this;
1219
    }
1220
1221
    /**
1222
     * @param array $contactInfo
1223
     *
1224
     * @return $this
1225
     */
1226
	public function withContactInfo(array $contactInfo)
1227
	{
1228
	    $this->data['ContactInfo'] = $contactInfo;
1229
		foreach ($contactInfo as $depth1 => $depth1Value) {
1230
			if(isset($depth1Value['UserPhone'])){
1231
				$this->options['form_params']['ContactInfo.' . ($depth1 + 1) . '.UserPhone'] = $depth1Value['UserPhone'];
1232
			}
1233
			if(isset($depth1Value['UserName'])){
1234
				$this->options['form_params']['ContactInfo.' . ($depth1 + 1) . '.UserName'] = $depth1Value['UserName'];
1235
			}
1236
		}
1237
1238
		return $this;
1239
    }
1240
1241
    /**
1242
     * @param string $value
1243
     *
1244
     * @return $this
1245
     */
1246
    public function withName($value)
1247
    {
1248
        $this->data['Name'] = $value;
1249
        $this->options['form_params']['Name'] = $value;
1250
1251
        return $this;
1252
    }
1253
1254
    /**
1255
     * @param string $value
1256
     *
1257
     * @return $this
1258
     */
1259
    public function withNamespace($value)
1260
    {
1261
        $this->data['Namespace'] = $value;
1262
        $this->options['form_params']['Namespace'] = $value;
1263
1264
        return $this;
1265
    }
1266
1267
    /**
1268
     * @param string $value
1269
     *
1270
     * @return $this
1271
     */
1272
    public function withMaxConcurrency($value)
1273
    {
1274
        $this->data['MaxConcurrency'] = $value;
1275
        $this->options['form_params']['MaxConcurrency'] = $value;
1276
1277
        return $this;
1278
    }
1279
1280
    /**
1281
     * @param string $value
1282
     *
1283
     * @return $this
1284
     */
1285
    public function withTimeType($value)
1286
    {
1287
        $this->data['TimeType'] = $value;
1288
        $this->options['form_params']['TimeType'] = $value;
1289
1290
        return $this;
1291
    }
1292
1293
    /**
1294
     * @param string $value
1295
     *
1296
     * @return $this
1297
     */
1298
    public function withParameters($value)
1299
    {
1300
        $this->data['Parameters'] = $value;
1301
        $this->options['form_params']['Parameters'] = $value;
1302
1303
        return $this;
1304
    }
1305
}
1306