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 ( 3e2f54...2e8b48 )
by
unknown
07:18
created

CreateJob::withFailEnable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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