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 ( 715477...ad32a0 )
by
unknown
06:49
created

UpdateVpd   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A withDescription() 0 6 1
A withVpdId() 0 6 1
A withName() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Eflo\V20220530;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateSubnet createSubnet(array $options = [])
9
 * @method CreateVcc createVcc(array $options = [])
10
 * @method CreateVpd createVpd(array $options = [])
11
 * @method DeleteSubnet deleteSubnet(array $options = [])
12
 * @method DeleteVpd deleteVpd(array $options = [])
13
 * @method GetSubnet getSubnet(array $options = [])
14
 * @method GetVcc getVcc(array $options = [])
15
 * @method GetVpd getVpd(array $options = [])
16
 * @method InitializeVcc initializeVcc(array $options = [])
17
 * @method ListSubnets listSubnets(array $options = [])
18
 * @method ListVccs listVccs(array $options = [])
19
 * @method ListVpds listVpds(array $options = [])
20
 * @method UpdateSubnet updateSubnet(array $options = [])
21
 * @method UpdateVcc updateVcc(array $options = [])
22
 * @method UpdateVpd updateVpd(array $options = [])
23
 */
24
class EfloApiResolver extends ApiResolver
25
{
26
}
27
28
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
29
{
30
    /** @var string */
31
    public $product = 'eflo';
32
33
    /** @var string */
34
    public $version = '2022-05-30';
35
36
    /** @var string */
37
    public $method = 'POST';
38
39
    /** @var string */
40
    public $serviceCode = 'eflo';
41
}
42
43
/**
44
 * @method string getType()
45
 * @method string getVpdId()
46
 * @method string getName()
47
 * @method string getZoneId()
48
 * @method string getCidr()
49
 */
50
class CreateSubnet extends Rpc
51
{
52
53
    /**
54
     * @param string $value
55
     *
56
     * @return $this
57
     */
58
    public function withType($value)
59
    {
60
        $this->data['Type'] = $value;
61
        $this->options['form_params']['Type'] = $value;
62
63
        return $this;
64
    }
65
66
    /**
67
     * @param string $value
68
     *
69
     * @return $this
70
     */
71
    public function withVpdId($value)
72
    {
73
        $this->data['VpdId'] = $value;
74
        $this->options['form_params']['VpdId'] = $value;
75
76
        return $this;
77
    }
78
79
    /**
80
     * @param string $value
81
     *
82
     * @return $this
83
     */
84
    public function withName($value)
85
    {
86
        $this->data['Name'] = $value;
87
        $this->options['form_params']['Name'] = $value;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @param string $value
94
     *
95
     * @return $this
96
     */
97
    public function withZoneId($value)
98
    {
99
        $this->data['ZoneId'] = $value;
100
        $this->options['form_params']['ZoneId'] = $value;
101
102
        return $this;
103
    }
104
105
    /**
106
     * @param string $value
107
     *
108
     * @return $this
109
     */
110
    public function withCidr($value)
111
    {
112
        $this->data['Cidr'] = $value;
113
        $this->options['form_params']['Cidr'] = $value;
114
115
        return $this;
116
    }
117
}
118
119
/**
120
 * @method string getBgpCidr()
121
 * @method string getCenId()
122
 * @method string getDescription()
123
 * @method string getAccessCouldService()
124
 * @method string getVccId()
125
 * @method string getVSwitchId()
126
 * @method string getVpdId()
127
 * @method string getVpcId()
128
 */
129
class CreateVcc extends Rpc
130
{
131
132
    /**
133
     * @param string $value
134
     *
135
     * @return $this
136
     */
137
    public function withBgpCidr($value)
138
    {
139
        $this->data['BgpCidr'] = $value;
140
        $this->options['form_params']['BgpCidr'] = $value;
141
142
        return $this;
143
    }
144
145
    /**
146
     * @param string $value
147
     *
148
     * @return $this
149
     */
150
    public function withCenId($value)
151
    {
152
        $this->data['CenId'] = $value;
153
        $this->options['form_params']['CenId'] = $value;
154
155
        return $this;
156
    }
157
158
    /**
159
     * @param string $value
160
     *
161
     * @return $this
162
     */
163
    public function withDescription($value)
164
    {
165
        $this->data['Description'] = $value;
166
        $this->options['form_params']['Description'] = $value;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @param string $value
173
     *
174
     * @return $this
175
     */
176
    public function withAccessCouldService($value)
177
    {
178
        $this->data['AccessCouldService'] = $value;
179
        $this->options['form_params']['AccessCouldService'] = $value;
180
181
        return $this;
182
    }
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withVccId($value)
190
    {
191
        $this->data['VccId'] = $value;
192
        $this->options['form_params']['VccId'] = $value;
193
194
        return $this;
195
    }
196
197
    /**
198
     * @param string $value
199
     *
200
     * @return $this
201
     */
202
    public function withVSwitchId($value)
203
    {
204
        $this->data['VSwitchId'] = $value;
205
        $this->options['form_params']['VSwitchId'] = $value;
206
207
        return $this;
208
    }
209
210
    /**
211
     * @param string $value
212
     *
213
     * @return $this
214
     */
215
    public function withVpdId($value)
216
    {
217
        $this->data['VpdId'] = $value;
218
        $this->options['form_params']['VpdId'] = $value;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @param string $value
225
     *
226
     * @return $this
227
     */
228
    public function withVpcId($value)
229
    {
230
        $this->data['VpcId'] = $value;
231
        $this->options['form_params']['VpcId'] = $value;
232
233
        return $this;
234
    }
235
}
236
237
/**
238
 * @method string getName()
239
 * @method string getCidr()
240
 * @method array getSubnets()
241
 */
242
class CreateVpd extends Rpc
243
{
244
245
    /**
246
     * @param string $value
247
     *
248
     * @return $this
249
     */
250
    public function withName($value)
251
    {
252
        $this->data['Name'] = $value;
253
        $this->options['form_params']['Name'] = $value;
254
255
        return $this;
256
    }
257
258
    /**
259
     * @param string $value
260
     *
261
     * @return $this
262
     */
263
    public function withCidr($value)
264
    {
265
        $this->data['Cidr'] = $value;
266
        $this->options['form_params']['Cidr'] = $value;
267
268
        return $this;
269
    }
270
271
    /**
272
     * @param array $subnets
273
     *
274
     * @return $this
275
     */
276
	public function withSubnets(array $subnets)
277
	{
278
	    $this->data['Subnets'] = $subnets;
279
		foreach ($subnets as $depth1 => $depth1Value) {
280
			if(isset($depth1Value['RegionId'])){
281
				$this->options['form_params']['Subnets.' . ($depth1 + 1) . '.RegionId'] = $depth1Value['RegionId'];
282
			}
283
			if(isset($depth1Value['Name'])){
284
				$this->options['form_params']['Subnets.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
285
			}
286
			if(isset($depth1Value['ZoneId'])){
287
				$this->options['form_params']['Subnets.' . ($depth1 + 1) . '.ZoneId'] = $depth1Value['ZoneId'];
288
			}
289
			if(isset($depth1Value['Cidr'])){
290
				$this->options['form_params']['Subnets.' . ($depth1 + 1) . '.Cidr'] = $depth1Value['Cidr'];
291
			}
292
			if(isset($depth1Value['Type'])){
293
				$this->options['form_params']['Subnets.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
294
			}
295
		}
296
297
		return $this;
298
    }
299
}
300
301
/**
302
 * @method string getSubnetId()
303
 * @method string getVpdId()
304
 * @method string getZoneId()
305
 */
306
class DeleteSubnet extends Rpc
307
{
308
309
    /**
310
     * @param string $value
311
     *
312
     * @return $this
313
     */
314
    public function withSubnetId($value)
315
    {
316
        $this->data['SubnetId'] = $value;
317
        $this->options['form_params']['SubnetId'] = $value;
318
319
        return $this;
320
    }
321
322
    /**
323
     * @param string $value
324
     *
325
     * @return $this
326
     */
327
    public function withVpdId($value)
328
    {
329
        $this->data['VpdId'] = $value;
330
        $this->options['form_params']['VpdId'] = $value;
331
332
        return $this;
333
    }
334
335
    /**
336
     * @param string $value
337
     *
338
     * @return $this
339
     */
340
    public function withZoneId($value)
341
    {
342
        $this->data['ZoneId'] = $value;
343
        $this->options['form_params']['ZoneId'] = $value;
344
345
        return $this;
346
    }
347
}
348
349
/**
350
 * @method string getVpdId()
351
 */
352
class DeleteVpd extends Rpc
353
{
354
355
    /**
356
     * @param string $value
357
     *
358
     * @return $this
359
     */
360
    public function withVpdId($value)
361
    {
362
        $this->data['VpdId'] = $value;
363
        $this->options['form_params']['VpdId'] = $value;
364
365
        return $this;
366
    }
367
}
368
369
/**
370
 * @method string getSubnetId()
371
 */
372
class GetSubnet extends Rpc
373
{
374
375
    /**
376
     * @param string $value
377
     *
378
     * @return $this
379
     */
380
    public function withSubnetId($value)
381
    {
382
        $this->data['SubnetId'] = $value;
383
        $this->options['form_params']['SubnetId'] = $value;
384
385
        return $this;
386
    }
387
}
388
389
/**
390
 * @method string getVccId()
391
 */
392
class GetVcc extends Rpc
393
{
394
395
    /**
396
     * @param string $value
397
     *
398
     * @return $this
399
     */
400
    public function withVccId($value)
401
    {
402
        $this->data['VccId'] = $value;
403
        $this->options['form_params']['VccId'] = $value;
404
405
        return $this;
406
    }
407
}
408
409
/**
410
 * @method string getVpdId()
411
 */
412
class GetVpd extends Rpc
413
{
414
415
    /**
416
     * @param string $value
417
     *
418
     * @return $this
419
     */
420
    public function withVpdId($value)
421
    {
422
        $this->data['VpdId'] = $value;
423
        $this->options['form_params']['VpdId'] = $value;
424
425
        return $this;
426
    }
427
}
428
429
class InitializeVcc extends Rpc
430
{
431
}
432
433
/**
434
 * @method string getType()
435
 * @method string getPageNumber()
436
 * @method string getPageSize()
437
 * @method string getSubnetId()
438
 * @method string getVpdId()
439
 * @method string getEnablePage()
440
 * @method string getName()
441
 * @method string getZoneId()
442
 * @method string getStatus()
443
 */
444
class ListSubnets extends Rpc
445
{
446
447
    /**
448
     * @param string $value
449
     *
450
     * @return $this
451
     */
452
    public function withType($value)
453
    {
454
        $this->data['Type'] = $value;
455
        $this->options['form_params']['Type'] = $value;
456
457
        return $this;
458
    }
459
460
    /**
461
     * @param string $value
462
     *
463
     * @return $this
464
     */
465
    public function withPageNumber($value)
466
    {
467
        $this->data['PageNumber'] = $value;
468
        $this->options['form_params']['PageNumber'] = $value;
469
470
        return $this;
471
    }
472
473
    /**
474
     * @param string $value
475
     *
476
     * @return $this
477
     */
478
    public function withPageSize($value)
479
    {
480
        $this->data['PageSize'] = $value;
481
        $this->options['form_params']['PageSize'] = $value;
482
483
        return $this;
484
    }
485
486
    /**
487
     * @param string $value
488
     *
489
     * @return $this
490
     */
491
    public function withSubnetId($value)
492
    {
493
        $this->data['SubnetId'] = $value;
494
        $this->options['form_params']['SubnetId'] = $value;
495
496
        return $this;
497
    }
498
499
    /**
500
     * @param string $value
501
     *
502
     * @return $this
503
     */
504
    public function withVpdId($value)
505
    {
506
        $this->data['VpdId'] = $value;
507
        $this->options['form_params']['VpdId'] = $value;
508
509
        return $this;
510
    }
511
512
    /**
513
     * @param string $value
514
     *
515
     * @return $this
516
     */
517
    public function withEnablePage($value)
518
    {
519
        $this->data['EnablePage'] = $value;
520
        $this->options['form_params']['EnablePage'] = $value;
521
522
        return $this;
523
    }
524
525
    /**
526
     * @param string $value
527
     *
528
     * @return $this
529
     */
530
    public function withName($value)
531
    {
532
        $this->data['Name'] = $value;
533
        $this->options['form_params']['Name'] = $value;
534
535
        return $this;
536
    }
537
538
    /**
539
     * @param string $value
540
     *
541
     * @return $this
542
     */
543
    public function withZoneId($value)
544
    {
545
        $this->data['ZoneId'] = $value;
546
        $this->options['form_params']['ZoneId'] = $value;
547
548
        return $this;
549
    }
550
551
    /**
552
     * @param string $value
553
     *
554
     * @return $this
555
     */
556
    public function withStatus($value)
557
    {
558
        $this->data['Status'] = $value;
559
        $this->options['form_params']['Status'] = $value;
560
561
        return $this;
562
    }
563
}
564
565
/**
566
 * @method string getCenId()
567
 * @method string getPageNumber()
568
 * @method string getPageSize()
569
 * @method string getVccId()
570
 * @method string getBandwidth()
571
 * @method string getExStatus()
572
 * @method string getVpdId()
573
 * @method string getVpcId()
574
 * @method string getEnablePage()
575
 * @method string getStatus()
576
 */
577
class ListVccs extends Rpc
578
{
579
580
    /**
581
     * @param string $value
582
     *
583
     * @return $this
584
     */
585
    public function withCenId($value)
586
    {
587
        $this->data['CenId'] = $value;
588
        $this->options['form_params']['CenId'] = $value;
589
590
        return $this;
591
    }
592
593
    /**
594
     * @param string $value
595
     *
596
     * @return $this
597
     */
598
    public function withPageNumber($value)
599
    {
600
        $this->data['PageNumber'] = $value;
601
        $this->options['form_params']['PageNumber'] = $value;
602
603
        return $this;
604
    }
605
606
    /**
607
     * @param string $value
608
     *
609
     * @return $this
610
     */
611
    public function withPageSize($value)
612
    {
613
        $this->data['PageSize'] = $value;
614
        $this->options['form_params']['PageSize'] = $value;
615
616
        return $this;
617
    }
618
619
    /**
620
     * @param string $value
621
     *
622
     * @return $this
623
     */
624
    public function withVccId($value)
625
    {
626
        $this->data['VccId'] = $value;
627
        $this->options['form_params']['VccId'] = $value;
628
629
        return $this;
630
    }
631
632
    /**
633
     * @param string $value
634
     *
635
     * @return $this
636
     */
637
    public function withBandwidth($value)
638
    {
639
        $this->data['Bandwidth'] = $value;
640
        $this->options['form_params']['Bandwidth'] = $value;
641
642
        return $this;
643
    }
644
645
    /**
646
     * @param string $value
647
     *
648
     * @return $this
649
     */
650
    public function withExStatus($value)
651
    {
652
        $this->data['ExStatus'] = $value;
653
        $this->options['form_params']['ExStatus'] = $value;
654
655
        return $this;
656
    }
657
658
    /**
659
     * @param string $value
660
     *
661
     * @return $this
662
     */
663
    public function withVpdId($value)
664
    {
665
        $this->data['VpdId'] = $value;
666
        $this->options['form_params']['VpdId'] = $value;
667
668
        return $this;
669
    }
670
671
    /**
672
     * @param string $value
673
     *
674
     * @return $this
675
     */
676
    public function withVpcId($value)
677
    {
678
        $this->data['VpcId'] = $value;
679
        $this->options['form_params']['VpcId'] = $value;
680
681
        return $this;
682
    }
683
684
    /**
685
     * @param string $value
686
     *
687
     * @return $this
688
     */
689
    public function withEnablePage($value)
690
    {
691
        $this->data['EnablePage'] = $value;
692
        $this->options['form_params']['EnablePage'] = $value;
693
694
        return $this;
695
    }
696
697
    /**
698
     * @param string $value
699
     *
700
     * @return $this
701
     */
702
    public function withStatus($value)
703
    {
704
        $this->data['Status'] = $value;
705
        $this->options['form_params']['Status'] = $value;
706
707
        return $this;
708
    }
709
}
710
711
/**
712
 * @method string getPageNumber()
713
 * @method string getWithDependence()
714
 * @method string getWithoutVcc()
715
 * @method string getPageSize()
716
 * @method string getForSelect()
717
 * @method string getFilterErId()
718
 * @method string getVpdId()
719
 * @method string getEnablePage()
720
 * @method string getName()
721
 * @method string getStatus()
722
 */
723
class ListVpds extends Rpc
724
{
725
726
    /**
727
     * @param string $value
728
     *
729
     * @return $this
730
     */
731
    public function withPageNumber($value)
732
    {
733
        $this->data['PageNumber'] = $value;
734
        $this->options['form_params']['PageNumber'] = $value;
735
736
        return $this;
737
    }
738
739
    /**
740
     * @param string $value
741
     *
742
     * @return $this
743
     */
744
    public function withWithDependence($value)
745
    {
746
        $this->data['WithDependence'] = $value;
747
        $this->options['form_params']['WithDependence'] = $value;
748
749
        return $this;
750
    }
751
752
    /**
753
     * @param string $value
754
     *
755
     * @return $this
756
     */
757
    public function withWithoutVcc($value)
758
    {
759
        $this->data['WithoutVcc'] = $value;
760
        $this->options['form_params']['WithoutVcc'] = $value;
761
762
        return $this;
763
    }
764
765
    /**
766
     * @param string $value
767
     *
768
     * @return $this
769
     */
770
    public function withPageSize($value)
771
    {
772
        $this->data['PageSize'] = $value;
773
        $this->options['form_params']['PageSize'] = $value;
774
775
        return $this;
776
    }
777
778
    /**
779
     * @param string $value
780
     *
781
     * @return $this
782
     */
783
    public function withForSelect($value)
784
    {
785
        $this->data['ForSelect'] = $value;
786
        $this->options['form_params']['ForSelect'] = $value;
787
788
        return $this;
789
    }
790
791
    /**
792
     * @param string $value
793
     *
794
     * @return $this
795
     */
796
    public function withFilterErId($value)
797
    {
798
        $this->data['FilterErId'] = $value;
799
        $this->options['form_params']['FilterErId'] = $value;
800
801
        return $this;
802
    }
803
804
    /**
805
     * @param string $value
806
     *
807
     * @return $this
808
     */
809
    public function withVpdId($value)
810
    {
811
        $this->data['VpdId'] = $value;
812
        $this->options['form_params']['VpdId'] = $value;
813
814
        return $this;
815
    }
816
817
    /**
818
     * @param string $value
819
     *
820
     * @return $this
821
     */
822
    public function withEnablePage($value)
823
    {
824
        $this->data['EnablePage'] = $value;
825
        $this->options['form_params']['EnablePage'] = $value;
826
827
        return $this;
828
    }
829
830
    /**
831
     * @param string $value
832
     *
833
     * @return $this
834
     */
835
    public function withName($value)
836
    {
837
        $this->data['Name'] = $value;
838
        $this->options['form_params']['Name'] = $value;
839
840
        return $this;
841
    }
842
843
    /**
844
     * @param string $value
845
     *
846
     * @return $this
847
     */
848
    public function withStatus($value)
849
    {
850
        $this->data['Status'] = $value;
851
        $this->options['form_params']['Status'] = $value;
852
853
        return $this;
854
    }
855
}
856
857
/**
858
 * @method string getSubnetId()
859
 * @method string getDescription()
860
 * @method string getVpdId()
861
 * @method string getName()
862
 * @method string getZoneId()
863
 */
864
class UpdateSubnet extends Rpc
865
{
866
867
    /**
868
     * @param string $value
869
     *
870
     * @return $this
871
     */
872
    public function withSubnetId($value)
873
    {
874
        $this->data['SubnetId'] = $value;
875
        $this->options['form_params']['SubnetId'] = $value;
876
877
        return $this;
878
    }
879
880
    /**
881
     * @param string $value
882
     *
883
     * @return $this
884
     */
885
    public function withDescription($value)
886
    {
887
        $this->data['Description'] = $value;
888
        $this->options['form_params']['Description'] = $value;
889
890
        return $this;
891
    }
892
893
    /**
894
     * @param string $value
895
     *
896
     * @return $this
897
     */
898
    public function withVpdId($value)
899
    {
900
        $this->data['VpdId'] = $value;
901
        $this->options['form_params']['VpdId'] = $value;
902
903
        return $this;
904
    }
905
906
    /**
907
     * @param string $value
908
     *
909
     * @return $this
910
     */
911
    public function withName($value)
912
    {
913
        $this->data['Name'] = $value;
914
        $this->options['form_params']['Name'] = $value;
915
916
        return $this;
917
    }
918
919
    /**
920
     * @param string $value
921
     *
922
     * @return $this
923
     */
924
    public function withZoneId($value)
925
    {
926
        $this->data['ZoneId'] = $value;
927
        $this->options['form_params']['ZoneId'] = $value;
928
929
        return $this;
930
    }
931
}
932
933
/**
934
 * @method string getBandwidth()
935
 * @method string getOrderId()
936
 * @method string getVccName()
937
 * @method string getVccId()
938
 */
939
class UpdateVcc extends Rpc
940
{
941
942
    /**
943
     * @param string $value
944
     *
945
     * @return $this
946
     */
947
    public function withBandwidth($value)
948
    {
949
        $this->data['Bandwidth'] = $value;
950
        $this->options['form_params']['Bandwidth'] = $value;
951
952
        return $this;
953
    }
954
955
    /**
956
     * @param string $value
957
     *
958
     * @return $this
959
     */
960
    public function withOrderId($value)
961
    {
962
        $this->data['OrderId'] = $value;
963
        $this->options['form_params']['OrderId'] = $value;
964
965
        return $this;
966
    }
967
968
    /**
969
     * @param string $value
970
     *
971
     * @return $this
972
     */
973
    public function withVccName($value)
974
    {
975
        $this->data['VccName'] = $value;
976
        $this->options['form_params']['VccName'] = $value;
977
978
        return $this;
979
    }
980
981
    /**
982
     * @param string $value
983
     *
984
     * @return $this
985
     */
986
    public function withVccId($value)
987
    {
988
        $this->data['VccId'] = $value;
989
        $this->options['form_params']['VccId'] = $value;
990
991
        return $this;
992
    }
993
}
994
995
/**
996
 * @method string getDescription()
997
 * @method string getVpdId()
998
 * @method string getName()
999
 */
1000
class UpdateVpd extends Rpc
1001
{
1002
1003
    /**
1004
     * @param string $value
1005
     *
1006
     * @return $this
1007
     */
1008
    public function withDescription($value)
1009
    {
1010
        $this->data['Description'] = $value;
1011
        $this->options['form_params']['Description'] = $value;
1012
1013
        return $this;
1014
    }
1015
1016
    /**
1017
     * @param string $value
1018
     *
1019
     * @return $this
1020
     */
1021
    public function withVpdId($value)
1022
    {
1023
        $this->data['VpdId'] = $value;
1024
        $this->options['form_params']['VpdId'] = $value;
1025
1026
        return $this;
1027
    }
1028
1029
    /**
1030
     * @param string $value
1031
     *
1032
     * @return $this
1033
     */
1034
    public function withName($value)
1035
    {
1036
        $this->data['Name'] = $value;
1037
        $this->options['form_params']['Name'] = $value;
1038
1039
        return $this;
1040
    }
1041
}
1042