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 ( e065cf...c7db40 )
by
unknown
06:26
created

CreateHubCluster::withIsEnterpriseSecurityGroup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Adcp\V20220101;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AttachClusterToHub attachClusterToHub(array $options = [])
9
 * @method CreateHubCluster createHubCluster(array $options = [])
10
 * @method DeleteHubCluster deleteHubCluster(array $options = [])
11
 * @method DeletePolicyInstance deletePolicyInstance(array $options = [])
12
 * @method DeleteUserPermission deleteUserPermission(array $options = [])
13
 * @method DeployPolicyInstance deployPolicyInstance(array $options = [])
14
 * @method DescribeHubClusterDetails describeHubClusterDetails(array $options = [])
15
 * @method DescribeHubClusterKubeconfig describeHubClusterKubeconfig(array $options = [])
16
 * @method DescribeHubClusterLogs describeHubClusterLogs(array $options = [])
17
 * @method DescribeHubClusters describeHubClusters(array $options = [])
18
 * @method DescribeManagedClusters describeManagedClusters(array $options = [])
19
 * @method DescribePolicies describePolicies(array $options = [])
20
 * @method DescribePolicyDetails describePolicyDetails(array $options = [])
21
 * @method DescribePolicyGovernanceInCluster describePolicyGovernanceInCluster(array $options = [])
22
 * @method DescribePolicyInstances describePolicyInstances(array $options = [])
23
 * @method DescribePolicyInstancesStatus describePolicyInstancesStatus(array $options = [])
24
 * @method DescribeRegions describeRegions(array $options = [])
25
 * @method DescribeUserPermissions describeUserPermissions(array $options = [])
26
 * @method DetachClusterFromHub detachClusterFromHub(array $options = [])
27
 * @method GrantUserPermission grantUserPermission(array $options = [])
28
 * @method GrantUserPermissions grantUserPermissions(array $options = [])
29
 * @method UpdateHubClusterFeature updateHubClusterFeature(array $options = [])
30
 * @method UpdateUserPermission updateUserPermission(array $options = [])
31
 */
32
class AdcpApiResolver extends ApiResolver
33
{
34
}
35
36
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
37
{
38
    /** @var string */
39
    public $product = 'adcp';
40
41
    /** @var string */
42
    public $version = '2022-01-01';
43
44
    /** @var string */
45
    public $method = 'POST';
46
47
    /** @var string */
48
    public $serviceCode = 'adcp';
49
}
50
51
/**
52
 * @method string getClusterId()
53
 * @method $this withClusterId($value)
54
 * @method string getClusterIds()
55
 * @method string getAttachToMesh()
56
 * @method $this withAttachToMesh($value)
57
 */
58
class AttachClusterToHub extends Rpc
59
{
60
61
    /**
62
     * @param string $value
63
     *
64
     * @return $this
65
     */
66
    public function withClusterIds($value)
67
    {
68
        $this->data['ClusterIds'] = $value;
69
        $this->options['form_params']['ClusterIds'] = $value;
70
71
        return $this;
72
    }
73
}
74
75
/**
76
 * @method string getAuditLogProject()
77
 * @method string getLoadBalancerSpec()
78
 * @method string getKubernetesVersion()
79
 * @method string getProfile()
80
 * @method string getVSwitches()
81
 * @method string getControlPlaneLogProject()
82
 * @method string getLoadBalancerId()
83
 * @method string getClusterSpec()
84
 * @method string getName()
85
 * @method string getClusterDomain()
86
 * @method string getControlPlaneLogTTL()
87
 * @method string getWorkflowUnits()
88
 * @method string getAuditLogStoreTTL()
89
 * @method string getIPStack()
90
 * @method string getControlPlaneLogEnabled()
91
 * @method string getArgoServerEnabled()
92
 * @method string getWorkflowScheduleMode()
93
 * @method string getApiServerPublicEip()
94
 * @method string getAuditLogEnabled()
95
 * @method string getSecurityGroupIDs()
96
 * @method string getPriceLimit()
97
 * @method string getIsEnterpriseSecurityGroup()
98
 * @method string getVpcId()
99
 */
100
class CreateHubCluster extends Rpc
101
{
102
103
    /**
104
     * @param string $value
105
     *
106
     * @return $this
107
     */
108
    public function withAuditLogProject($value)
109
    {
110
        $this->data['AuditLogProject'] = $value;
111
        $this->options['form_params']['AuditLogProject'] = $value;
112
113
        return $this;
114
    }
115
116
    /**
117
     * @param string $value
118
     *
119
     * @return $this
120
     */
121
    public function withLoadBalancerSpec($value)
122
    {
123
        $this->data['LoadBalancerSpec'] = $value;
124
        $this->options['form_params']['LoadBalancerSpec'] = $value;
125
126
        return $this;
127
    }
128
129
    /**
130
     * @param string $value
131
     *
132
     * @return $this
133
     */
134
    public function withKubernetesVersion($value)
135
    {
136
        $this->data['KubernetesVersion'] = $value;
137
        $this->options['form_params']['KubernetesVersion'] = $value;
138
139
        return $this;
140
    }
141
142
    /**
143
     * @param string $value
144
     *
145
     * @return $this
146
     */
147
    public function withProfile($value)
148
    {
149
        $this->data['Profile'] = $value;
150
        $this->options['form_params']['Profile'] = $value;
151
152
        return $this;
153
    }
154
155
    /**
156
     * @param string $value
157
     *
158
     * @return $this
159
     */
160
    public function withVSwitches($value)
161
    {
162
        $this->data['VSwitches'] = $value;
163
        $this->options['form_params']['VSwitches'] = $value;
164
165
        return $this;
166
    }
167
168
    /**
169
     * @param string $value
170
     *
171
     * @return $this
172
     */
173
    public function withControlPlaneLogProject($value)
174
    {
175
        $this->data['ControlPlaneLogProject'] = $value;
176
        $this->options['form_params']['ControlPlaneLogProject'] = $value;
177
178
        return $this;
179
    }
180
181
    /**
182
     * @param string $value
183
     *
184
     * @return $this
185
     */
186
    public function withLoadBalancerId($value)
187
    {
188
        $this->data['LoadBalancerId'] = $value;
189
        $this->options['form_params']['LoadBalancerId'] = $value;
190
191
        return $this;
192
    }
193
194
    /**
195
     * @param string $value
196
     *
197
     * @return $this
198
     */
199
    public function withClusterSpec($value)
200
    {
201
        $this->data['ClusterSpec'] = $value;
202
        $this->options['form_params']['ClusterSpec'] = $value;
203
204
        return $this;
205
    }
206
207
    /**
208
     * @param string $value
209
     *
210
     * @return $this
211
     */
212
    public function withName($value)
213
    {
214
        $this->data['Name'] = $value;
215
        $this->options['form_params']['Name'] = $value;
216
217
        return $this;
218
    }
219
220
    /**
221
     * @param string $value
222
     *
223
     * @return $this
224
     */
225
    public function withClusterDomain($value)
226
    {
227
        $this->data['ClusterDomain'] = $value;
228
        $this->options['form_params']['ClusterDomain'] = $value;
229
230
        return $this;
231
    }
232
233
    /**
234
     * @param string $value
235
     *
236
     * @return $this
237
     */
238
    public function withControlPlaneLogTTL($value)
239
    {
240
        $this->data['ControlPlaneLogTTL'] = $value;
241
        $this->options['form_params']['ControlPlaneLogTTL'] = $value;
242
243
        return $this;
244
    }
245
246
    /**
247
     * @param string $value
248
     *
249
     * @return $this
250
     */
251
    public function withWorkflowUnits($value)
252
    {
253
        $this->data['WorkflowUnits'] = $value;
254
        $this->options['form_params']['WorkflowUnits'] = $value;
255
256
        return $this;
257
    }
258
259
    /**
260
     * @param string $value
261
     *
262
     * @return $this
263
     */
264
    public function withAuditLogStoreTTL($value)
265
    {
266
        $this->data['AuditLogStoreTTL'] = $value;
267
        $this->options['form_params']['AuditLogStoreTTL'] = $value;
268
269
        return $this;
270
    }
271
272
    /**
273
     * @param string $value
274
     *
275
     * @return $this
276
     */
277
    public function withIPStack($value)
278
    {
279
        $this->data['IPStack'] = $value;
280
        $this->options['form_params']['IPStack'] = $value;
281
282
        return $this;
283
    }
284
285
    /**
286
     * @param string $value
287
     *
288
     * @return $this
289
     */
290
    public function withControlPlaneLogEnabled($value)
291
    {
292
        $this->data['ControlPlaneLogEnabled'] = $value;
293
        $this->options['form_params']['ControlPlaneLogEnabled'] = $value;
294
295
        return $this;
296
    }
297
298
    /**
299
     * @param string $value
300
     *
301
     * @return $this
302
     */
303
    public function withArgoServerEnabled($value)
304
    {
305
        $this->data['ArgoServerEnabled'] = $value;
306
        $this->options['form_params']['ArgoServerEnabled'] = $value;
307
308
        return $this;
309
    }
310
311
    /**
312
     * @param string $value
313
     *
314
     * @return $this
315
     */
316
    public function withWorkflowScheduleMode($value)
317
    {
318
        $this->data['WorkflowScheduleMode'] = $value;
319
        $this->options['form_params']['WorkflowScheduleMode'] = $value;
320
321
        return $this;
322
    }
323
324
    /**
325
     * @param string $value
326
     *
327
     * @return $this
328
     */
329
    public function withApiServerPublicEip($value)
330
    {
331
        $this->data['ApiServerPublicEip'] = $value;
332
        $this->options['form_params']['ApiServerPublicEip'] = $value;
333
334
        return $this;
335
    }
336
337
    /**
338
     * @param string $value
339
     *
340
     * @return $this
341
     */
342
    public function withAuditLogEnabled($value)
343
    {
344
        $this->data['AuditLogEnabled'] = $value;
345
        $this->options['form_params']['AuditLogEnabled'] = $value;
346
347
        return $this;
348
    }
349
350
    /**
351
     * @param string $value
352
     *
353
     * @return $this
354
     */
355
    public function withSecurityGroupIDs($value)
356
    {
357
        $this->data['SecurityGroupIDs'] = $value;
358
        $this->options['form_params']['SecurityGroupIDs'] = $value;
359
360
        return $this;
361
    }
362
363
    /**
364
     * @param string $value
365
     *
366
     * @return $this
367
     */
368
    public function withPriceLimit($value)
369
    {
370
        $this->data['PriceLimit'] = $value;
371
        $this->options['form_params']['PriceLimit'] = $value;
372
373
        return $this;
374
    }
375
376
    /**
377
     * @param string $value
378
     *
379
     * @return $this
380
     */
381
    public function withIsEnterpriseSecurityGroup($value)
382
    {
383
        $this->data['IsEnterpriseSecurityGroup'] = $value;
384
        $this->options['form_params']['IsEnterpriseSecurityGroup'] = $value;
385
386
        return $this;
387
    }
388
389
    /**
390
     * @param string $value
391
     *
392
     * @return $this
393
     */
394
    public function withVpcId($value)
395
    {
396
        $this->data['VpcId'] = $value;
397
        $this->options['form_params']['VpcId'] = $value;
398
399
        return $this;
400
    }
401
}
402
403
/**
404
 * @method string getRetainResources()
405
 * @method $this withRetainResources($value)
406
 * @method string getClusterId()
407
 * @method $this withClusterId($value)
408
 * @method string getForce()
409
 * @method $this withForce($value)
410
 */
411
class DeleteHubCluster extends Rpc
412
{
413
}
414
415
/**
416
 * @method string getClusterId()
417
 * @method $this withClusterId($value)
418
 * @method string getClusterIds()
419
 * @method $this withClusterIds($value)
420
 * @method string getPolicyName()
421
 * @method $this withPolicyName($value)
422
 */
423
class DeletePolicyInstance extends Rpc
424
{
425
}
426
427
/**
428
 * @method string getUserId()
429
 * @method $this withUserId($value)
430
 * @method string getClusterId()
431
 * @method $this withClusterId($value)
432
 */
433
class DeleteUserPermission extends Rpc
434
{
435
}
436
437
/**
438
 * @method string getClusterId()
439
 * @method $this withClusterId($value)
440
 * @method string getPolicyAction()
441
 * @method $this withPolicyAction($value)
442
 * @method string getClusterIds()
443
 * @method $this withClusterIds($value)
444
 * @method string getPolicyName()
445
 * @method $this withPolicyName($value)
446
 * @method string getNamespaces()
447
 * @method $this withNamespaces($value)
448
 */
449
class DeployPolicyInstance extends Rpc
450
{
451
}
452
453
/**
454
 * @method string getClusterId()
455
 * @method $this withClusterId($value)
456
 */
457
class DescribeHubClusterDetails extends Rpc
458
{
459
}
460
461
/**
462
 * @method string getClusterId()
463
 * @method $this withClusterId($value)
464
 * @method string getPrivateIpAddress()
465
 * @method $this withPrivateIpAddress($value)
466
 */
467
class DescribeHubClusterKubeconfig extends Rpc
468
{
469
}
470
471
/**
472
 * @method string getClusterId()
473
 * @method $this withClusterId($value)
474
 */
475
class DescribeHubClusterLogs extends Rpc
476
{
477
}
478
479
/**
480
 * @method string getProfile()
481
 * @method $this withProfile($value)
482
 */
483
class DescribeHubClusters extends Rpc
484
{
485
}
486
487
/**
488
 * @method string getClusterId()
489
 * @method $this withClusterId($value)
490
 */
491
class DescribeManagedClusters extends Rpc
492
{
493
}
494
495
class DescribePolicies extends Rpc
496
{
497
}
498
499
/**
500
 * @method string getPolicyName()
501
 * @method $this withPolicyName($value)
502
 */
503
class DescribePolicyDetails extends Rpc
504
{
505
}
506
507
/**
508
 * @method string getClusterId()
509
 * @method $this withClusterId($value)
510
 */
511
class DescribePolicyGovernanceInCluster extends Rpc
512
{
513
}
514
515
/**
516
 * @method string getClusterId()
517
 * @method $this withClusterId($value)
518
 * @method string getPolicyName()
519
 * @method $this withPolicyName($value)
520
 */
521
class DescribePolicyInstances extends Rpc
522
{
523
}
524
525
/**
526
 * @method string getClusterId()
527
 * @method $this withClusterId($value)
528
 */
529
class DescribePolicyInstancesStatus extends Rpc
530
{
531
}
532
533
/**
534
 * @method string getLanguage()
535
 * @method $this withLanguage($value)
536
 */
537
class DescribeRegions extends Rpc
538
{
539
540
    /** @var string */
541
    public $method = 'GET';
542
}
543
544
/**
545
 * @method string getUserId()
546
 * @method $this withUserId($value)
547
 */
548
class DescribeUserPermissions extends Rpc
549
{
550
}
551
552
/**
553
 * @method string getDetachFromMesh()
554
 * @method $this withDetachFromMesh($value)
555
 * @method string getClusterId()
556
 * @method $this withClusterId($value)
557
 * @method string getClusterIds()
558
 */
559
class DetachClusterFromHub extends Rpc
560
{
561
562
    /**
563
     * @param string $value
564
     *
565
     * @return $this
566
     */
567
    public function withClusterIds($value)
568
    {
569
        $this->data['ClusterIds'] = $value;
570
        $this->options['form_params']['ClusterIds'] = $value;
571
572
        return $this;
573
    }
574
}
575
576
/**
577
 * @method string getUserId()
578
 * @method $this withUserId($value)
579
 * @method string getIsRamRole()
580
 * @method $this withIsRamRole($value)
581
 * @method string getRoleType()
582
 * @method $this withRoleType($value)
583
 * @method string getRoleName()
584
 * @method $this withRoleName($value)
585
 * @method string getClusterId()
586
 * @method $this withClusterId($value)
587
 * @method string getNamespace()
588
 * @method $this withNamespace($value)
589
 */
590
class GrantUserPermission extends Rpc
591
{
592
}
593
594
/**
595
 * @method string getUserId()
596
 * @method $this withUserId($value)
597
 * @method string getPermissions()
598
 * @method $this withPermissions($value)
599
 */
600
class GrantUserPermissions extends Rpc
601
{
602
}
603
604
/**
605
 * @method string getAccessControlList()
606
 * @method $this withAccessControlList($value)
607
 * @method string getMonitorEnabled()
608
 * @method $this withMonitorEnabled($value)
609
 * @method string getDeletionProtection()
610
 * @method $this withDeletionProtection($value)
611
 * @method string getEnableMesh()
612
 * @method $this withEnableMesh($value)
613
 * @method string getArgoCDHAEnabled()
614
 * @method $this withArgoCDHAEnabled($value)
615
 * @method string getArgoCDEnabled()
616
 * @method $this withArgoCDEnabled($value)
617
 * @method string getVSwitches()
618
 * @method $this withVSwitches($value)
619
 * @method string getName()
620
 * @method $this withName($value)
621
 * @method string getPublicAccessEnabled()
622
 * @method $this withPublicAccessEnabled($value)
623
 * @method string getPublicApiServerEnabled()
624
 * @method $this withPublicApiServerEnabled($value)
625
 * @method string getArgoServerEnabled()
626
 * @method $this withArgoServerEnabled($value)
627
 * @method string getWorkflowScheduleMode()
628
 * @method $this withWorkflowScheduleMode($value)
629
 * @method string getAuditLogEnabled()
630
 * @method $this withAuditLogEnabled($value)
631
 * @method string getClusterId()
632
 * @method $this withClusterId($value)
633
 * @method string getPriceLimit()
634
 * @method $this withPriceLimit($value)
635
 * @method string getApiServerEipId()
636
 * @method $this withApiServerEipId($value)
637
 */
638
class UpdateHubClusterFeature extends Rpc
639
{
640
}
641
642
/**
643
 * @method string getUserId()
644
 * @method $this withUserId($value)
645
 * @method string getRoleType()
646
 * @method $this withRoleType($value)
647
 * @method string getRoleName()
648
 * @method $this withRoleName($value)
649
 * @method string getClusterId()
650
 * @method $this withClusterId($value)
651
 * @method string getNamespace()
652
 * @method $this withNamespace($value)
653
 */
654
class UpdateUserPermission extends Rpc
655
{
656
}
657