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 ( f8ff0d...e00e9c )
by
unknown
07:00
created

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