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 ( 77aca3...c68952 )
by
unknown
06:24
created

ListSurveyJobDownLoadJobs   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A withBody() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Apds\V20220331;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateFileJob createFileJob(array $options = [])
9
 * @method CreateMigrationGroup createMigrationGroup(array $options = [])
10
 * @method CreateMigrationJob createMigrationJob(array $options = [])
11
 * @method CreateSurveyJob createSurveyJob(array $options = [])
12
 * @method CreateSurveyJobOffline createSurveyJobOffline(array $options = [])
13
 * @method DeleteMigrationGroup deleteMigrationGroup(array $options = [])
14
 * @method DeleteMigrationJob deleteMigrationJob(array $options = [])
15
 * @method DeleteOssFile deleteOssFile(array $options = [])
16
 * @method DeleteSurveyJob deleteSurveyJob(array $options = [])
17
 * @method DeleteSurveyResources deleteSurveyResources(array $options = [])
18
 * @method DescribeMigrationJobConfig describeMigrationJobConfig(array $options = [])
19
 * @method DescribeMigrationJobCount describeMigrationJobCount(array $options = [])
20
 * @method DescribeOssSts describeOssSts(array $options = [])
21
 * @method DescribeSummaryByStatus describeSummaryByStatus(array $options = [])
22
 * @method DescribeSummaryByStatusAndGroup describeSummaryByStatusAndGroup(array $options = [])
23
 * @method DescribeSurveyJob describeSurveyJob(array $options = [])
24
 * @method DescribeSurveyJobCount describeSurveyJobCount(array $options = [])
25
 * @method DescribeSurveyResourceTag describeSurveyResourceTag(array $options = [])
26
 * @method DescribeSurveyTemplate describeSurveyTemplate(array $options = [])
27
 * @method ListMigrationJobs listMigrationJobs(array $options = [])
28
 * @method ListRegions listRegions(array $options = [])
29
 * @method ListSurveyJobDownLoadJobs listSurveyJobDownLoadJobs(array $options = [])
30
 * @method ListSurveyJobs listSurveyJobs(array $options = [])
31
 * @method ListSurveyResourceByMigrationGroups listSurveyResourceByMigrationGroups(array $options = [])
32
 * @method ListSurveyResourceConnections listSurveyResourceConnections(array $options = [])
33
 * @method ListSurveyResourcesDetail listSurveyResourcesDetail(array $options = [])
34
 * @method ListSurveyResourceTypes listSurveyResourceTypes(array $options = [])
35
 * @method RecoverMigrationJob recoverMigrationJob(array $options = [])
36
 * @method StopSyncMigrationJob stopSyncMigrationJob(array $options = [])
37
 * @method SyncMigrationJob syncMigrationJob(array $options = [])
38
 */
39
class ApdsApiResolver extends ApiResolver
40
{
41
}
42
43
class Roa extends \AlibabaCloud\Client\Resolver\Roa
44
{
45
    /** @var string */
46
    public $product = 'apds';
47
48
    /** @var string */
49
    public $version = '2022-03-31';
50
51
    /** @var string */
52
    public $method = 'POST';
53
}
54
55
/**
56
 * @method string getBody()
57
 */
58
class CreateFileJob extends Roa
59
{
60
    /** @var string */
61
    public $pathPattern = '/okss-services/file-job/create';
62
63
    /**
64
     * @param string $value
65
     *
66
     * @return $this
67
     */
68
    public function withBody($value)
69
    {
70
        $this->data['Body'] = $value;
71
        $this->options['form_params']['body'] = $value;
72
73
        return $this;
74
    }
75
}
76
77
/**
78
 * @method string getBody()
79
 */
80
class CreateMigrationGroup extends Roa
81
{
82
    /** @var string */
83
    public $pathPattern = '/okss-services/migration-group/save-migration-group';
84
85
    /**
86
     * @param string $value
87
     *
88
     * @return $this
89
     */
90
    public function withBody($value)
91
    {
92
        $this->data['Body'] = $value;
93
        $this->options['form_params']['body'] = $value;
94
95
        return $this;
96
    }
97
}
98
99
/**
100
 * @method string getBody()
101
 */
102
class CreateMigrationJob extends Roa
103
{
104
    /** @var string */
105
    public $pathPattern = '/okss-services/migration-job/create-migration-jobs';
106
107
    /**
108
     * @param string $value
109
     *
110
     * @return $this
111
     */
112
    public function withBody($value)
113
    {
114
        $this->data['Body'] = $value;
115
        $this->options['form_params']['body'] = $value;
116
117
        return $this;
118
    }
119
}
120
121
/**
122
 * @method string getBody()
123
 */
124
class CreateSurveyJob extends Roa
125
{
126
    /** @var string */
127
    public $pathPattern = '/okss-services/winback/add-survey-job';
128
129
    /**
130
     * @param string $value
131
     *
132
     * @return $this
133
     */
134
    public function withBody($value)
135
    {
136
        $this->data['Body'] = $value;
137
        $this->options['form_params']['body'] = $value;
138
139
        return $this;
140
    }
141
}
142
143
/**
144
 * @method string getBody()
145
 */
146
class CreateSurveyJobOffline extends Roa
147
{
148
    /** @var string */
149
    public $pathPattern = '/okss-services/winback/add-import-survey-job';
150
151
    /**
152
     * @param string $value
153
     *
154
     * @return $this
155
     */
156
    public function withBody($value)
157
    {
158
        $this->data['Body'] = $value;
159
        $this->options['form_params']['body'] = $value;
160
161
        return $this;
162
    }
163
}
164
165
/**
166
 * @method string getId()
167
 */
168
class DeleteMigrationGroup extends Roa
169
{
170
    /** @var string */
171
    public $pathPattern = '/okss-services/migration-group/remove-migration-group';
172
173
    /**
174
     * @param string $value
175
     *
176
     * @return $this
177
     */
178
    public function withId($value)
179
    {
180
        $this->data['Id'] = $value;
181
        $this->options['query']['id'] = $value;
182
183
        return $this;
184
    }
185
}
186
187
/**
188
 * @method string getId()
189
 */
190
class DeleteMigrationJob extends Roa
191
{
192
    /** @var string */
193
    public $pathPattern = '/okss-services/migration-job/remove-migration-job';
194
195
    /**
196
     * @param string $value
197
     *
198
     * @return $this
199
     */
200
    public function withId($value)
201
    {
202
        $this->data['Id'] = $value;
203
        $this->options['query']['id'] = $value;
204
205
        return $this;
206
    }
207
}
208
209
/**
210
 * @method string getObjectName()
211
 */
212
class DeleteOssFile extends Roa
213
{
214
    /** @var string */
215
    public $pathPattern = '/okss-services/file-job/delete-file';
216
217
    /**
218
     * @param string $value
219
     *
220
     * @return $this
221
     */
222
    public function withObjectName($value)
223
    {
224
        $this->data['ObjectName'] = $value;
225
        $this->options['query']['objectName'] = $value;
226
227
        return $this;
228
    }
229
}
230
231
/**
232
 * @method string getId()
233
 */
234
class DeleteSurveyJob extends Roa
235
{
236
    /** @var string */
237
    public $pathPattern = '/okss-services/winback/delete-survey-job';
238
239
    /**
240
     * @param string $value
241
     *
242
     * @return $this
243
     */
244
    public function withId($value)
245
    {
246
        $this->data['Id'] = $value;
247
        $this->options['query']['id'] = $value;
248
249
        return $this;
250
    }
251
}
252
253
/**
254
 * @method string getIds()
255
 */
256
class DeleteSurveyResources extends Roa
257
{
258
    /** @var string */
259
    public $pathPattern = '/okss-services/confirm-resource/destroy';
260
261
    /**
262
     * @param string $value
263
     *
264
     * @return $this
265
     */
266
    public function withIds($value)
267
    {
268
        $this->data['Ids'] = $value;
269
        $this->options['query']['ids'] = $value;
270
271
        return $this;
272
    }
273
}
274
275
class DescribeMigrationJobConfig extends Roa
276
{
277
    /** @var string */
278
    public $pathPattern = '/okss-services/migration-job/describe-migration-job-config';
279
}
280
281
/**
282
 * @method string getBody()
283
 */
284
class DescribeMigrationJobCount extends Roa
285
{
286
    /** @var string */
287
    public $pathPattern = '/okss-services/migration-job/count-migration-jobs';
288
289
    /**
290
     * @param string $value
291
     *
292
     * @return $this
293
     */
294
    public function withBody($value)
295
    {
296
        $this->data['Body'] = $value;
297
        $this->options['form_params']['body'] = $value;
298
299
        return $this;
300
    }
301
}
302
303
/**
304
 * @method string getCloudType()
305
 * @method string getAk()
306
 * @method string getSk()
307
 * @method string getTenantId()
308
 * @method string getRegion()
309
 */
310
class DescribeOssSts extends Roa
311
{
312
    /** @var string */
313
    public $pathPattern = '/okss-services/file-job/sts';
314
315
    /**
316
     * @param string $value
317
     *
318
     * @return $this
319
     */
320
    public function withCloudType($value)
321
    {
322
        $this->data['CloudType'] = $value;
323
        $this->options['query']['cloudType'] = $value;
324
325
        return $this;
326
    }
327
328
    /**
329
     * @param string $value
330
     *
331
     * @return $this
332
     */
333
    public function withAk($value)
334
    {
335
        $this->data['Ak'] = $value;
336
        $this->options['query']['ak'] = $value;
337
338
        return $this;
339
    }
340
341
    /**
342
     * @param string $value
343
     *
344
     * @return $this
345
     */
346
    public function withSk($value)
347
    {
348
        $this->data['Sk'] = $value;
349
        $this->options['query']['sk'] = $value;
350
351
        return $this;
352
    }
353
354
    /**
355
     * @param string $value
356
     *
357
     * @return $this
358
     */
359
    public function withTenantId($value)
360
    {
361
        $this->data['TenantId'] = $value;
362
        $this->options['query']['tenantId'] = $value;
363
364
        return $this;
365
    }
366
367
    /**
368
     * @param string $value
369
     *
370
     * @return $this
371
     */
372
    public function withRegion($value)
373
    {
374
        $this->data['Region'] = $value;
375
        $this->options['query']['region'] = $value;
376
377
        return $this;
378
    }
379
}
380
381
class DescribeSummaryByStatus extends Roa
382
{
383
    /** @var string */
384
    public $pathPattern = '/okss-services/summary/summary-by-status';
385
}
386
387
class DescribeSummaryByStatusAndGroup extends Roa
388
{
389
    /** @var string */
390
    public $pathPattern = '/okss-services/summary/summary-by-status-and-region';
391
}
392
393
/**
394
 * @method string getId()
395
 */
396
class DescribeSurveyJob extends Roa
397
{
398
    /** @var string */
399
    public $pathPattern = '/okss-services/winback/query-survey-job';
400
401
    /**
402
     * @param string $value
403
     *
404
     * @return $this
405
     */
406
    public function withId($value)
407
    {
408
        $this->data['Id'] = $value;
409
        $this->options['query']['id'] = $value;
410
411
        return $this;
412
    }
413
}
414
415
class DescribeSurveyJobCount extends Roa
416
{
417
    /** @var string */
418
    public $pathPattern = '/okss-services/winback/count-survey-job';
419
}
420
421
class DescribeSurveyResourceTag extends Roa
422
{
423
    /** @var string */
424
    public $pathPattern = '/okss-services/confirm-resource/get-resource-tag';
425
}
426
427
/**
428
 * @method string getResourceType()
429
 */
430
class DescribeSurveyTemplate extends Roa
431
{
432
    /** @var string */
433
    public $pathPattern = '/okss-services/survey-template/list';
434
435
    /**
436
     * @param string $value
437
     *
438
     * @return $this
439
     */
440
    public function withResourceType($value)
441
    {
442
        $this->data['ResourceType'] = $value;
443
        $this->options['query']['resourceType'] = $value;
444
445
        return $this;
446
    }
447
}
448
449
/**
450
 * @method string getBody()
451
 */
452
class ListMigrationJobs extends Roa
453
{
454
    /** @var string */
455
    public $pathPattern = '/okss-services/migration-job/describe-migration-jobs';
456
457
    /**
458
     * @param string $value
459
     *
460
     * @return $this
461
     */
462
    public function withBody($value)
463
    {
464
        $this->data['Body'] = $value;
465
        $this->options['form_params']['body'] = $value;
466
467
        return $this;
468
    }
469
}
470
471
/**
472
 * @method string getCloudType()
473
 * @method string getAk()
474
 * @method string getSk()
475
 * @method string getTenantId()
476
 * @method string getRegion()
477
 */
478
class ListRegions extends Roa
479
{
480
    /** @var string */
481
    public $pathPattern = '/okss-services/winback/query-region';
482
483
    /**
484
     * @param string $value
485
     *
486
     * @return $this
487
     */
488
    public function withCloudType($value)
489
    {
490
        $this->data['CloudType'] = $value;
491
        $this->options['query']['cloudType'] = $value;
492
493
        return $this;
494
    }
495
496
    /**
497
     * @param string $value
498
     *
499
     * @return $this
500
     */
501
    public function withAk($value)
502
    {
503
        $this->data['Ak'] = $value;
504
        $this->options['query']['ak'] = $value;
505
506
        return $this;
507
    }
508
509
    /**
510
     * @param string $value
511
     *
512
     * @return $this
513
     */
514
    public function withSk($value)
515
    {
516
        $this->data['Sk'] = $value;
517
        $this->options['query']['sk'] = $value;
518
519
        return $this;
520
    }
521
522
    /**
523
     * @param string $value
524
     *
525
     * @return $this
526
     */
527
    public function withTenantId($value)
528
    {
529
        $this->data['TenantId'] = $value;
530
        $this->options['query']['tenantId'] = $value;
531
532
        return $this;
533
    }
534
535
    /**
536
     * @param string $value
537
     *
538
     * @return $this
539
     */
540
    public function withRegion($value)
541
    {
542
        $this->data['Region'] = $value;
543
        $this->options['query']['region'] = $value;
544
545
        return $this;
546
    }
547
}
548
549
/**
550
 * @method string getBody()
551
 */
552
class ListSurveyJobDownLoadJobs extends Roa
553
{
554
    /** @var string */
555
    public $pathPattern = '/okss-services/file-job/list';
556
557
    /**
558
     * @param string $value
559
     *
560
     * @return $this
561
     */
562
    public function withBody($value)
563
    {
564
        $this->data['Body'] = $value;
565
        $this->options['form_params']['body'] = $value;
566
567
        return $this;
568
    }
569
}
570
571
/**
572
 * @method string getBody()
573
 */
574
class ListSurveyJobs extends Roa
575
{
576
    /** @var string */
577
    public $pathPattern = '/okss-services/winback/query-survey-jobs';
578
579
    /**
580
     * @param string $value
581
     *
582
     * @return $this
583
     */
584
    public function withBody($value)
585
    {
586
        $this->data['Body'] = $value;
587
        $this->options['form_params']['body'] = $value;
588
589
        return $this;
590
    }
591
}
592
593
/**
594
 * @method string getBody()
595
 */
596
class ListSurveyResourceByMigrationGroups extends Roa
597
{
598
    /** @var string */
599
    public $pathPattern = '/okss-services/migration-group/get-survey-resource';
600
601
    /**
602
     * @param string $value
603
     *
604
     * @return $this
605
     */
606
    public function withBody($value)
607
    {
608
        $this->data['Body'] = $value;
609
        $this->options['query']['body'] = $value;
610
611
        return $this;
612
    }
613
}
614
615
/**
616
 * @method string getBody()
617
 */
618
class ListSurveyResourceConnections extends Roa
619
{
620
    /** @var string */
621
    public $pathPattern = '/okss-services/resource-connects';
622
623
    /**
624
     * @param string $value
625
     *
626
     * @return $this
627
     */
628
    public function withBody($value)
629
    {
630
        $this->data['Body'] = $value;
631
        $this->options['form_params']['body'] = $value;
632
633
        return $this;
634
    }
635
}
636
637
/**
638
 * @method string getBody()
639
 */
640
class ListSurveyResourcesDetail extends Roa
641
{
642
    /** @var string */
643
    public $pathPattern = '/okss-services/survey-detail/query';
644
645
    /**
646
     * @param string $value
647
     *
648
     * @return $this
649
     */
650
    public function withBody($value)
651
    {
652
        $this->data['Body'] = $value;
653
        $this->options['form_params']['body'] = $value;
654
655
        return $this;
656
    }
657
}
658
659
/**
660
 * @method string getCloudType()
661
 * @method string getAk()
662
 * @method string getSk()
663
 * @method string getRegion()
664
 */
665
class ListSurveyResourceTypes extends Roa
666
{
667
    /** @var string */
668
    public $pathPattern = '/okss-services/winback/query-resource-type';
669
670
    /**
671
     * @param string $value
672
     *
673
     * @return $this
674
     */
675
    public function withCloudType($value)
676
    {
677
        $this->data['CloudType'] = $value;
678
        $this->options['query']['cloudType'] = $value;
679
680
        return $this;
681
    }
682
683
    /**
684
     * @param string $value
685
     *
686
     * @return $this
687
     */
688
    public function withAk($value)
689
    {
690
        $this->data['Ak'] = $value;
691
        $this->options['query']['ak'] = $value;
692
693
        return $this;
694
    }
695
696
    /**
697
     * @param string $value
698
     *
699
     * @return $this
700
     */
701
    public function withSk($value)
702
    {
703
        $this->data['Sk'] = $value;
704
        $this->options['query']['sk'] = $value;
705
706
        return $this;
707
    }
708
709
    /**
710
     * @param string $value
711
     *
712
     * @return $this
713
     */
714
    public function withRegion($value)
715
    {
716
        $this->data['Region'] = $value;
717
        $this->options['query']['region'] = $value;
718
719
        return $this;
720
    }
721
}
722
723
/**
724
 * @method string getId()
725
 */
726
class RecoverMigrationJob extends Roa
727
{
728
    /** @var string */
729
    public $pathPattern = '/okss-services/migration-job/recover-migration-job';
730
731
    /**
732
     * @param string $value
733
     *
734
     * @return $this
735
     */
736
    public function withId($value)
737
    {
738
        $this->data['Id'] = $value;
739
        $this->options['query']['id'] = $value;
740
741
        return $this;
742
    }
743
}
744
745
/**
746
 * @method string getJobType()
747
 */
748
class StopSyncMigrationJob extends Roa
749
{
750
    /** @var string */
751
    public $pathPattern = '/okss-services/migration-job/unsync-migration-job';
752
753
    /**
754
     * @param string $value
755
     *
756
     * @return $this
757
     */
758
    public function withJobType($value)
759
    {
760
        $this->data['JobType'] = $value;
761
        $this->options['query']['jobType'] = $value;
762
763
        return $this;
764
    }
765
}
766
767
/**
768
 * @method string getRegions()
769
 * @method string getJobType()
770
 */
771
class SyncMigrationJob extends Roa
772
{
773
    /** @var string */
774
    public $pathPattern = '/okss-services/migration-job/sync-migration-job';
775
776
    /**
777
     * @param string $value
778
     *
779
     * @return $this
780
     */
781
    public function withRegions($value)
782
    {
783
        $this->data['Regions'] = $value;
784
        $this->options['query']['regions'] = $value;
785
786
        return $this;
787
    }
788
789
    /**
790
     * @param string $value
791
     *
792
     * @return $this
793
     */
794
    public function withJobType($value)
795
    {
796
        $this->data['JobType'] = $value;
797
        $this->options['query']['jobType'] = $value;
798
799
        return $this;
800
    }
801
}
802