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.
Passed
Push — master ( 7cb6c5...2f15c0 )
by
unknown
06:27
created

DescribeClusters   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 29
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withClusterType() 0 6 1
A withName() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\CS\V20180418;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method DescribeKubernetesTemplate describeKubernetesTemplate(array $options = [])
9
 * @method DescribeUserContainers describeUserContainers(array $options = [])
10
 * @method DescribeTemplates describeTemplates(array $options = [])
11
 * @method CheckAliyunCSServiceRole checkAliyunCSServiceRole(array $options = [])
12
 * @method AddAgilityCluster addAgilityCluster(array $options = [])
13
 * @method GetTriggerHook getTriggerHook(array $options = [])
14
 * @method DescribeTemplateAttribute describeTemplateAttribute(array $options = [])
15
 * @method DescribeTaskInfo describeTaskInfo(array $options = [])
16
 * @method RevokeClusterToken revokeClusterToken(array $options = [])
17
 * @method ScaleInCluster scaleInCluster(array $options = [])
18
 * @method DescribeClusterScaledNode describeClusterScaledNode(array $options = [])
19
 * @method DescribeClusterServices describeClusterServices(array $options = [])
20
 * @method CreateCluster createCluster(array $options = [])
21
 * @method DescribeClusterLogs describeClusterLogs(array $options = [])
22
 * @method DescribeAgilityTunnelCerts describeAgilityTunnelCerts(array $options = [])
23
 * @method DescribeClusters describeClusters(array $options = [])
24
 * @method DescribeKubernetesTemplates describeKubernetesTemplates(array $options = [])
25
 * @method ResetClusterNode resetClusterNode(array $options = [])
26
 * @method ScaleCluster scaleCluster(array $options = [])
27
 * @method DescribeAgilityTunnelAgentInfo describeAgilityTunnelAgentInfo(array $options = [])
28
 * @method DeleteClusterNode deleteClusterNode(array $options = [])
29
 * @method DeleteCluster deleteCluster(array $options = [])
30
 * @method DownloadClusterNodeCerts downloadClusterNodeCerts(array $options = [])
31
 * @method DescribeServiceContainers describeServiceContainers(array $options = [])
32
 * @method DescribeClusterNodeInfo describeClusterNodeInfo(array $options = [])
33
 * @method CreateTemplate createTemplate(array $options = [])
34
 * @method UpdateSubUserResouces updateSubUserResouces(array $options = [])
35
 * @method DescribeClusterTokens describeClusterTokens(array $options = [])
36
 * @method DescribeClusterHosts describeClusterHosts(array $options = [])
37
 * @method GetProjectEvents getProjectEvents(array $options = [])
38
 * @method ModifyClusterName modifyClusterName(array $options = [])
39
 * @method CallbackClusterToken callbackClusterToken(array $options = [])
40
 * @method CallBackAgilityCluster callBackAgilityCluster(array $options = [])
41
 * @method UpgradeClusterComponents upgradeClusterComponents(array $options = [])
42
 * @method DescribeClusterDetail describeClusterDetail(array $options = [])
43
 * @method DescribeImages describeImages(array $options = [])
44
 * @method DescribeClusterNodeInfoWithInstance describeClusterNodeInfoWithInstance(array $options = [])
45
 * @method DescribeApiVersion describeApiVersion(array $options = [])
46
 * @method GatherLogsToken gatherLogsToken(array $options = [])
47
 * @method DescribeClusterCerts describeClusterCerts(array $options = [])
48
 * @method GetClusterProjects getClusterProjects(array $options = [])
49
 * @method DescribeClusterNodes describeClusterNodes(array $options = [])
50
 * @method AttachInstances attachInstances(array $options = [])
51
 * @method CreateClusterToken createClusterToken(array $options = [])
52
 */
53
class CSApiResolver extends ApiResolver
54
{
55
}
56
57
class Roa extends \AlibabaCloud\Client\Resolver\Roa
58
{
59
    /** @var string */
60
    public $product = 'CS';
61
62
    /** @var string */
63
    public $version = '2018-04-18';
64
65
    /** @var string */
66
    public $serviceCode = 'cs';
67
}
68
69
/**
70
 * @method string getClusterId()
71
 * @method $this withClusterId($value)
72
 */
73
class DescribeKubernetesTemplate extends Roa
74
{
75
    /** @var string */
76
    public $pathPattern = '/k8s/templates/[ClusterId]';
77
}
78
79
/**
80
 * @method string getServiceId()
81
 */
82
class DescribeUserContainers extends Roa
83
{
84
    /** @var string */
85
    public $pathPattern = '/region/[RegionId]/containers';
86
87
    /**
88
     * @param string $value
89
     *
90
     * @return $this
91
     */
92
    public function withServiceId($value)
93
    {
94
        $this->data['ServiceId'] = $value;
95
        $this->options['query']['ServiceId'] = $value;
96
97
        return $this;
98
    }
99
}
100
101
class DescribeTemplates extends Roa
102
{
103
    /** @var string */
104
    public $pathPattern = '/templates';
105
}
106
107
class CheckAliyunCSServiceRole extends Roa
108
{
109
    /** @var string */
110
    public $pathPattern = '/aliyuncsrole/status';
111
}
112
113
class AddAgilityCluster extends Roa
114
{
115
    /** @var string */
116
    public $pathPattern = '/add_agility_cluster';
117
118
    /** @var string */
119
    public $method = 'POST';
120
}
121
122
/**
123
 * @method string getClusterId()
124
 * @method $this withClusterId($value)
125
 * @method string getProjectId()
126
 * @method $this withProjectId($value)
127
 */
128
class GetTriggerHook extends Roa
129
{
130
    /** @var string */
131
    public $pathPattern = '/hook/trigger/[ClusterId]/[ProjectId]';
132
}
133
134
/**
135
 * @method string getTemplateId()
136
 * @method $this withTemplateId($value)
137
 */
138
class DescribeTemplateAttribute extends Roa
139
{
140
    /** @var string */
141
    public $pathPattern = '/templates/[TemplateId]';
142
}
143
144
/**
145
 * @method string getTaskId()
146
 * @method $this withTaskId($value)
147
 */
148
class DescribeTaskInfo extends Roa
149
{
150
    /** @var string */
151
    public $pathPattern = '/tasks/[TaskId]';
152
}
153
154
/**
155
 * @method string getToken()
156
 * @method $this withToken($value)
157
 */
158
class RevokeClusterToken extends Roa
159
{
160
    /** @var string */
161
    public $pathPattern = '/token/[Token]/revoke';
162
163
    /** @var string */
164
    public $method = 'DELETE';
165
}
166
167
/**
168
 * @method string getClusterId()
169
 * @method $this withClusterId($value)
170
 */
171
class ScaleInCluster extends Roa
172
{
173
    /** @var string */
174
    public $pathPattern = '/clusters/[ClusterId]/scalein';
175
176
    /** @var string */
177
    public $method = 'POST';
178
}
179
180
/**
181
 * @method string getClusterId()
182
 * @method $this withClusterId($value)
183
 */
184
class DescribeClusterScaledNode extends Roa
185
{
186
    /** @var string */
187
    public $pathPattern = '/clusters/[ClusterId]/scaled_nodes/';
188
}
189
190
/**
191
 * @method string getClusterId()
192
 * @method $this withClusterId($value)
193
 */
194
class DescribeClusterServices extends Roa
195
{
196
    /** @var string */
197
    public $pathPattern = '/clusters/[ClusterId]/services';
198
}
199
200
class CreateCluster extends Roa
201
{
202
    /** @var string */
203
    public $pathPattern = '/clusters';
204
205
    /** @var string */
206
    public $method = 'POST';
207
}
208
209
/**
210
 * @method string getClusterId()
211
 * @method $this withClusterId($value)
212
 */
213
class DescribeClusterLogs extends Roa
214
{
215
    /** @var string */
216
    public $pathPattern = '/clusters/[ClusterId]/logs';
217
}
218
219
/**
220
 * @method string getToken()
221
 * @method $this withToken($value)
222
 */
223
class DescribeAgilityTunnelCerts extends Roa
224
{
225
    /** @var string */
226
    public $pathPattern = '/agility/[Token]/agent_certs';
227
}
228
229
/**
230
 * @method string getClusterType()
231
 * @method string getName()
232
 */
233
class DescribeClusters extends Roa
234
{
235
    /** @var string */
236
    public $pathPattern = '/clusters';
237
238
    /**
239
     * @param string $value
240
     *
241
     * @return $this
242
     */
243
    public function withClusterType($value)
244
    {
245
        $this->data['ClusterType'] = $value;
246
        $this->options['query']['clusterType'] = $value;
247
248
        return $this;
249
    }
250
251
    /**
252
     * @param string $value
253
     *
254
     * @return $this
255
     */
256
    public function withName($value)
257
    {
258
        $this->data['Name'] = $value;
259
        $this->options['query']['Name'] = $value;
260
261
        return $this;
262
    }
263
}
264
265
/**
266
 * @method string getKubernetesVersion()
267
 * @method string getRegion()
268
 */
269
class DescribeKubernetesTemplates extends Roa
270
{
271
    /** @var string */
272
    public $pathPattern = '/k8s/templates';
273
274
    /**
275
     * @param string $value
276
     *
277
     * @return $this
278
     */
279
    public function withKubernetesVersion($value)
280
    {
281
        $this->data['KubernetesVersion'] = $value;
282
        $this->options['query']['KubernetesVersion'] = $value;
283
284
        return $this;
285
    }
286
287
    /**
288
     * @param string $value
289
     *
290
     * @return $this
291
     */
292
    public function withRegion($value)
293
    {
294
        $this->data['Region'] = $value;
295
        $this->options['query']['Region'] = $value;
296
297
        return $this;
298
    }
299
}
300
301
/**
302
 * @method string getInstanceId()
303
 * @method $this withInstanceId($value)
304
 * @method string getClusterId()
305
 * @method $this withClusterId($value)
306
 */
307
class ResetClusterNode extends Roa
308
{
309
    /** @var string */
310
    public $pathPattern = '/clusters/[ClusterId]/instances/[InstanceId]/reset';
311
312
    /** @var string */
313
    public $method = 'POST';
314
}
315
316
/**
317
 * @method string getClusterId()
318
 * @method $this withClusterId($value)
319
 */
320
class ScaleCluster extends Roa
321
{
322
    /** @var string */
323
    public $pathPattern = '/clusters/[ClusterId]';
324
325
    /** @var string */
326
    public $method = 'PUT';
327
}
328
329
/**
330
 * @method string getToken()
331
 * @method $this withToken($value)
332
 */
333
class DescribeAgilityTunnelAgentInfo extends Roa
334
{
335
    /** @var string */
336
    public $pathPattern = '/agility/[Token]/agent_info';
337
}
338
339
/**
340
 * @method string getReleaseInstance()
341
 * @method string getIp()
342
 * @method $this withIp($value)
343
 * @method string getForce()
344
 * @method string getClusterId()
345
 * @method $this withClusterId($value)
346
 */
347
class DeleteClusterNode extends Roa
348
{
349
    /** @var string */
350
    public $pathPattern = '/clusters/[ClusterId]/ip/[Ip]';
351
352
    /** @var string */
353
    public $method = 'DELETE';
354
355
    /**
356
     * @param string $value
357
     *
358
     * @return $this
359
     */
360
    public function withReleaseInstance($value)
361
    {
362
        $this->data['ReleaseInstance'] = $value;
363
        $this->options['query']['releaseInstance'] = $value;
364
365
        return $this;
366
    }
367
368
    /**
369
     * @param string $value
370
     *
371
     * @return $this
372
     */
373
    public function withForce($value)
374
    {
375
        $this->data['Force'] = $value;
376
        $this->options['query']['force'] = $value;
377
378
        return $this;
379
    }
380
}
381
382
/**
383
 * @method string getClusterId()
384
 * @method $this withClusterId($value)
385
 */
386
class DeleteCluster extends Roa
387
{
388
    /** @var string */
389
    public $pathPattern = '/clusters/[ClusterId]';
390
391
    /** @var string */
392
    public $method = 'DELETE';
393
}
394
395
/**
396
 * @method string getNodeId()
397
 * @method $this withNodeId($value)
398
 * @method string getToken()
399
 * @method $this withToken($value)
400
 */
401
class DownloadClusterNodeCerts extends Roa
402
{
403
    /** @var string */
404
    public $pathPattern = '/token/[Token]/nodes/[NodeId]/certs';
405
}
406
407
/**
408
 * @method string getClusterId()
409
 * @method $this withClusterId($value)
410
 * @method string getServiceId()
411
 * @method $this withServiceId($value)
412
 */
413
class DescribeServiceContainers extends Roa
414
{
415
    /** @var string */
416
    public $pathPattern = '/clusters/[ClusterId]/services/[ServiceId]/containers';
417
}
418
419
/**
420
 * @method string getToken()
421
 * @method $this withToken($value)
422
 */
423
class DescribeClusterNodeInfo extends Roa
424
{
425
    /** @var string */
426
    public $pathPattern = '/token/[Token]/node_info';
427
}
428
429
class CreateTemplate extends Roa
430
{
431
    /** @var string */
432
    public $pathPattern = '/templates';
433
434
    /** @var string */
435
    public $method = 'PUT';
436
}
437
438
class UpdateSubUserResouces extends Roa
439
{
440
    /** @var string */
441
    public $pathPattern = '/ram/resources';
442
443
    /** @var string */
444
    public $method = 'POST';
445
}
446
447
/**
448
 * @method string getClusterId()
449
 * @method $this withClusterId($value)
450
 */
451
class DescribeClusterTokens extends Roa
452
{
453
    /** @var string */
454
    public $pathPattern = '/clusters/[ClusterId]/tokens';
455
}
456
457
/**
458
 * @method string getClusterId()
459
 * @method $this withClusterId($value)
460
 */
461
class DescribeClusterHosts extends Roa
462
{
463
    /** @var string */
464
    public $pathPattern = '/clusters/[ClusterId]/hosts';
465
}
466
467
/**
468
 * @method string getClusterId()
469
 * @method $this withClusterId($value)
470
 * @method string getProjectId()
471
 * @method $this withProjectId($value)
472
 */
473
class GetProjectEvents extends Roa
474
{
475
    /** @var string */
476
    public $pathPattern = '/clusters/[ClusterId]/projects/[ProjectId]/events';
477
}
478
479
class ModifyClusterName extends Roa
480
{
481
    /** @var string */
482
    public $pathPattern = '/clusters/[ClusterId]/name/[ClusterName]';
483
484
    /** @var string */
485
    public $method = 'POST';
486
}
487
488
/**
489
 * @method string getReqOnce()
490
 * @method $this withReqOnce($value)
491
 * @method string getToken()
492
 * @method $this withToken($value)
493
 */
494
class CallbackClusterToken extends Roa
495
{
496
    /** @var string */
497
    public $pathPattern = '/token/[Token]/req_once/[ReqOnce]/callback';
498
499
    /** @var string */
500
    public $method = 'POST';
501
}
502
503
/**
504
 * @method string getReqOnce()
505
 * @method $this withReqOnce($value)
506
 * @method string getToken()
507
 * @method $this withToken($value)
508
 */
509
class CallBackAgilityCluster extends Roa
510
{
511
    /** @var string */
512
    public $pathPattern = '/agility/token/[Token]/req_once/[ReqOnce]/callback';
513
514
    /** @var string */
515
    public $method = 'POST';
516
}
517
518
/**
519
 * @method string getComponentId()
520
 * @method $this withComponentId($value)
521
 * @method string getClusterId()
522
 * @method $this withClusterId($value)
523
 */
524
class UpgradeClusterComponents extends Roa
525
{
526
    /** @var string */
527
    public $pathPattern = '/clusters/[ClusterId]/components/[ComponentId]/upgrade';
528
529
    /** @var string */
530
    public $method = 'POST';
531
}
532
533
/**
534
 * @method string getClusterId()
535
 * @method $this withClusterId($value)
536
 */
537
class DescribeClusterDetail extends Roa
538
{
539
    /** @var string */
540
    public $pathPattern = '/clusters/[ClusterId]';
541
}
542
543
/**
544
 * @method string getImageName()
545
 * @method string getDockerVersion()
546
 */
547
class DescribeImages extends Roa
548
{
549
    /** @var string */
550
    public $pathPattern = '/images';
551
552
    /**
553
     * @param string $value
554
     *
555
     * @return $this
556
     */
557
    public function withImageName($value)
558
    {
559
        $this->data['ImageName'] = $value;
560
        $this->options['query']['ImageName'] = $value;
561
562
        return $this;
563
    }
564
565
    /**
566
     * @param string $value
567
     *
568
     * @return $this
569
     */
570
    public function withDockerVersion($value)
571
    {
572
        $this->data['DockerVersion'] = $value;
573
        $this->options['query']['DockerVersion'] = $value;
574
575
        return $this;
576
    }
577
}
578
579
/**
580
 * @method string getInstanceId()
581
 * @method $this withInstanceId($value)
582
 * @method string getToken()
583
 * @method $this withToken($value)
584
 */
585
class DescribeClusterNodeInfoWithInstance extends Roa
586
{
587
    /** @var string */
588
    public $pathPattern = '/token/[Token]/instance/[InstanceId]/node_info';
589
}
590
591
class DescribeApiVersion extends Roa
592
{
593
    /** @var string */
594
    public $pathPattern = '/version';
595
}
596
597
/**
598
 * @method string getToken()
599
 * @method $this withToken($value)
600
 */
601
class GatherLogsToken extends Roa
602
{
603
    /** @var string */
604
    public $pathPattern = '/token/[Token]/gather_logs';
605
606
    /** @var string */
607
    public $method = 'POST';
608
}
609
610
/**
611
 * @method string getClusterId()
612
 * @method $this withClusterId($value)
613
 */
614
class DescribeClusterCerts extends Roa
615
{
616
    /** @var string */
617
    public $pathPattern = '/clusters/[ClusterId]/certs';
618
}
619
620
/**
621
 * @method string getClusterId()
622
 * @method $this withClusterId($value)
623
 */
624
class GetClusterProjects extends Roa
625
{
626
    /** @var string */
627
    public $pathPattern = '/clusters/[ClusterId]/projects';
628
}
629
630
/**
631
 * @method string getPageSize()
632
 * @method string getClusterId()
633
 * @method $this withClusterId($value)
634
 * @method string getPageNumber()
635
 */
636
class DescribeClusterNodes extends Roa
637
{
638
    /** @var string */
639
    public $pathPattern = '/clusters/[ClusterId]/nodes';
640
641
    /**
642
     * @param string $value
643
     *
644
     * @return $this
645
     */
646
    public function withPageSize($value)
647
    {
648
        $this->data['PageSize'] = $value;
649
        $this->options['query']['pageSize'] = $value;
650
651
        return $this;
652
    }
653
654
    /**
655
     * @param string $value
656
     *
657
     * @return $this
658
     */
659
    public function withPageNumber($value)
660
    {
661
        $this->data['PageNumber'] = $value;
662
        $this->options['query']['pageNumber'] = $value;
663
664
        return $this;
665
    }
666
}
667
668
/**
669
 * @method string getClusterId()
670
 * @method $this withClusterId($value)
671
 */
672
class AttachInstances extends Roa
673
{
674
    /** @var string */
675
    public $pathPattern = '/clusters/[ClusterId]/attach';
676
677
    /** @var string */
678
    public $method = 'POST';
679
}
680
681
/**
682
 * @method string getClusterId()
683
 * @method $this withClusterId($value)
684
 */
685
class CreateClusterToken extends Roa
686
{
687
    /** @var string */
688
    public $pathPattern = '/clusters/[ClusterId]/token';
689
690
    /** @var string */
691
    public $method = 'POST';
692
}
693