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
Pull Request — master (#104)
by Yong
05:37
created

StartBaselineSecurityCheck::withAssets()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace AlibabaCloud\Sas\V20181203;
4
5
use AlibabaCloud\ApiResolverTrait;
6
use AlibabaCloud\Rpc;
7
8
/**
9
 * Resolve Api based on the method name.
10
 *
11
 * @method ModifyPushAllTask modifyPushAllTask(array $options = [])
12
 * @method DescribeCheckWarningDetail describeCheckWarningDetail(array $options = [])
13
 * @method DescribeWarningMachines describeWarningMachines(array $options = [])
14
 * @method DescribeCheckWarningSummary describeCheckWarningSummary(array $options = [])
15
 * @method DescribeStrategyExecDetail describeStrategyExecDetail(array $options = [])
16
 * @method DescribeCheckWarnings describeCheckWarnings(array $options = [])
17
 * @method DescribeStratety describeStratety(array $options = [])
18
 * @method ModifyCreateVulWhitelist modifyCreateVulWhitelist(array $options = [])
19
 * @method DescribeAutoDelConfig describeAutoDelConfig(array $options = [])
20
 * @method ModifyAutoDelConfig modifyAutoDelConfig(array $options = [])
21
 * @method ModifyConcernNecessity modifyConcernNecessity(array $options = [])
22
 * @method DescribeConcernNecessity describeConcernNecessity(array $options = [])
23
 * @method DescribeVulWhitelist describeVulWhitelist(array $options = [])
24
 * @method DescribeGroupedVul describeGroupedVul(array $options = [])
25
 * @method DescribeVulDetails describeVulDetails(array $options = [])
26
 * @method DescribeEmgVulGroup describeEmgVulGroup(array $options = [])
27
 * @method DescribeVulList describeVulList(array $options = [])
28
 * @method ModifyOperateVul modifyOperateVul(array $options = [])
29
 * @method ModifyEmgVulSubmit modifyEmgVulSubmit(array $options = [])
30
 * @method ModifyDeleteVulWhitelist modifyDeleteVulWhitelist(array $options = [])
31
 * @method DescribeUserBaselineAuthorization describeUserBaselineAuthorization(array $options = [])
32
 * @method DescribeRiskItemType describeRiskItemType(array $options = [])
33
 * @method ModifyRiskCheckStatus modifyRiskCheckStatus(array $options = [])
34
 * @method ModifyRiskSingleResultStatus modifyRiskSingleResultStatus(array $options = [])
35
 * @method DescribeRiskCheckSummary describeRiskCheckSummary(array $options = [])
36
 * @method DescribeSecurityCheckScheduleConfig describeSecurityCheckScheduleConfig(array $options = [])
37
 * @method StartBaselineSecurityCheck startBaselineSecurityCheck(array $options = [])
38
 * @method DescribeRiskCheckResult describeRiskCheckResult(array $options = [])
39
 * @method ModifySecurityCheckScheduleConfig modifySecurityCheckScheduleConfig(array $options = [])
40
 * @method DescribeSuspEvents describeSuspEvents(array $options = [])
41
 * @method DescribeSuspEventDetail describeSuspEventDetail(array $options = [])
42
 * @method DescribeAlarmEventDetail describeAlarmEventDetail(array $options = [])
43
 * @method DescribeAlarmEventList describeAlarmEventList(array $options = [])
44
 */
45
class SasApiResolver
46
{
47
    use ApiResolverTrait;
48
}
49
50
class V20181203Rpc extends Rpc
51
{
52
    /** @var string */
53
    public $product = 'Sas';
54
55
    /** @var string */
56
    public $version = '2018-12-03';
57
58
    /** @var string */
59
    public $method = 'POST';
60
61
    /** @var string */
62
    public $serviceCode = 'sas';
63
}
64
65
/**
66
 * @method string getSourceIp()
67
 * @method $this withSourceIp($value)
68
 * @method string getTasks()
69
 * @method $this withTasks($value)
70
 * @method string getUuids()
71
 * @method $this withUuids($value)
72
 */
73
class ModifyPushAllTask extends V20181203Rpc
74
{
75
}
76
77
/**
78
 * @method string getSourceIp()
79
 * @method $this withSourceIp($value)
80
 * @method string getLang()
81
 * @method $this withLang($value)
82
 * @method string getCheckWarningId()
83
 * @method $this withCheckWarningId($value)
84
 */
85
class DescribeCheckWarningDetail extends V20181203Rpc
86
{
87
}
88
89
/**
90
 * @method string getSourceIp()
91
 * @method $this withSourceIp($value)
92
 * @method string getPageSize()
93
 * @method $this withPageSize($value)
94
 * @method string getMachineName()
95
 * @method $this withMachineName($value)
96
 * @method string getStrategyId()
97
 * @method $this withStrategyId($value)
98
 * @method string getCurrentPage()
99
 * @method $this withCurrentPage($value)
100
 * @method string getLang()
101
 * @method $this withLang($value)
102
 * @method string getRiskId()
103
 * @method $this withRiskId($value)
104
 * @method string getUuids()
105
 * @method $this withUuids($value)
106
 */
107
class DescribeWarningMachines extends V20181203Rpc
108
{
109
}
110
111
/**
112
 * @method string getRiskName()
113
 * @method $this withRiskName($value)
114
 * @method string getSourceIp()
115
 * @method $this withSourceIp($value)
116
 * @method string getRiskStatus()
117
 * @method $this withRiskStatus($value)
118
 * @method string getPageSize()
119
 * @method $this withPageSize($value)
120
 * @method string getStrategyId()
121
 * @method $this withStrategyId($value)
122
 * @method string getCurrentPage()
123
 * @method $this withCurrentPage($value)
124
 * @method string getLang()
125
 * @method $this withLang($value)
126
 * @method string getTypeName()
127
 * @method $this withTypeName($value)
128
 * @method string getStatus()
129
 * @method $this withStatus($value)
130
 * @method string getUuids()
131
 * @method $this withUuids($value)
132
 */
133
class DescribeCheckWarningSummary extends V20181203Rpc
134
{
135
}
136
137
/**
138
 * @method string getSourceIp()
139
 * @method $this withSourceIp($value)
140
 * @method string getStrategyId()
141
 * @method $this withStrategyId($value)
142
 */
143
class DescribeStrategyExecDetail extends V20181203Rpc
144
{
145
}
146
147
/**
148
 * @method string getSourceIp()
149
 * @method $this withSourceIp($value)
150
 * @method string getPageSize()
151
 * @method $this withPageSize($value)
152
 * @method string getCurrentPage()
153
 * @method $this withCurrentPage($value)
154
 * @method string getLang()
155
 * @method $this withLang($value)
156
 * @method string getRiskId()
157
 * @method $this withRiskId($value)
158
 * @method string getUuid()
159
 * @method $this withUuid($value)
160
 */
161
class DescribeCheckWarnings extends V20181203Rpc
162
{
163
}
164
165
/**
166
 * @method string getSourceIp()
167
 * @method $this withSourceIp($value)
168
 * @method string getStrategyIds()
169
 * @method $this withStrategyIds($value)
170
 * @method string getLang()
171
 * @method $this withLang($value)
172
 */
173
class DescribeStratety extends V20181203Rpc
174
{
175
}
176
177
/**
178
 * @method string getReason()
179
 * @method $this withReason($value)
180
 * @method string getSourceIp()
181
 * @method $this withSourceIp($value)
182
 * @method string getWhitelist()
183
 * @method $this withWhitelist($value)
184
 */
185
class ModifyCreateVulWhitelist extends V20181203Rpc
186
{
187
}
188
189
/**
190
 * @method string getSourceIp()
191
 * @method $this withSourceIp($value)
192
 */
193
class DescribeAutoDelConfig extends V20181203Rpc
194
{
195
}
196
197
/**
198
 * @method string getSourceIp()
199
 * @method $this withSourceIp($value)
200
 * @method string getDays()
201
 * @method $this withDays($value)
202
 */
203
class ModifyAutoDelConfig extends V20181203Rpc
204
{
205
}
206
207
/**
208
 * @method string getSourceIp()
209
 * @method $this withSourceIp($value)
210
 * @method string getLang()
211
 * @method $this withLang($value)
212
 * @method string getConcernNecessity()
213
 * @method $this withConcernNecessity($value)
214
 */
215
class ModifyConcernNecessity extends V20181203Rpc
216
{
217
}
218
219
/**
220
 * @method string getSourceIp()
221
 * @method $this withSourceIp($value)
222
 * @method string getLang()
223
 * @method $this withLang($value)
224
 */
225
class DescribeConcernNecessity extends V20181203Rpc
226
{
227
}
228
229
/**
230
 * @method string getSourceIp()
231
 * @method $this withSourceIp($value)
232
 * @method string getPageSize()
233
 * @method $this withPageSize($value)
234
 * @method string getCurrentPage()
235
 * @method $this withCurrentPage($value)
236
 */
237
class DescribeVulWhitelist extends V20181203Rpc
238
{
239
}
240
241
/**
242
 * @method string getAliasName()
243
 * @method $this withAliasName($value)
244
 * @method string getSourceIp()
245
 * @method $this withSourceIp($value)
246
 * @method string getPageSize()
247
 * @method $this withPageSize($value)
248
 * @method string getDealed()
249
 * @method $this withDealed($value)
250
 * @method string getCurrentPage()
251
 * @method $this withCurrentPage($value)
252
 * @method string getLang()
253
 * @method $this withLang($value)
254
 * @method string getType()
255
 * @method $this withType($value)
256
 * @method string getNecessity()
257
 * @method $this withNecessity($value)
258
 * @method string getUuids()
259
 * @method $this withUuids($value)
260
 */
261
class DescribeGroupedVul extends V20181203Rpc
262
{
263
}
264
265
/**
266
 * @method string getAliasName()
267
 * @method $this withAliasName($value)
268
 * @method string getSourceIp()
269
 * @method $this withSourceIp($value)
270
 * @method string getName()
271
 * @method $this withName($value)
272
 * @method string getLang()
273
 * @method $this withLang($value)
274
 * @method string getType()
275
 * @method $this withType($value)
276
 */
277
class DescribeVulDetails extends V20181203Rpc
278
{
279
}
280
281
/**
282
 * @method string getSourceIp()
283
 * @method $this withSourceIp($value)
284
 * @method string getLang()
285
 * @method $this withLang($value)
286
 */
287
class DescribeEmgVulGroup extends V20181203Rpc
288
{
289
}
290
291
/**
292
 * @method string getAliasName()
293
 * @method $this withAliasName($value)
294
 * @method string getSourceIp()
295
 * @method $this withSourceIp($value)
296
 * @method string getPageSize()
297
 * @method $this withPageSize($value)
298
 * @method string getRemark()
299
 * @method $this withRemark($value)
300
 * @method string getDealed()
301
 * @method $this withDealed($value)
302
 * @method string getCurrentPage()
303
 * @method $this withCurrentPage($value)
304
 * @method string getLang()
305
 * @method $this withLang($value)
306
 * @method string getType()
307
 * @method $this withType($value)
308
 * @method string getNecessity()
309
 * @method $this withNecessity($value)
310
 * @method string getUuids()
311
 * @method $this withUuids($value)
312
 */
313
class DescribeVulList extends V20181203Rpc
314
{
315
}
316
317
/**
318
 * @method string getReason()
319
 * @method $this withReason($value)
320
 * @method string getSourceIp()
321
 * @method $this withSourceIp($value)
322
 * @method string getOperateType()
323
 * @method $this withOperateType($value)
324
 * @method string getType()
325
 * @method $this withType($value)
326
 * @method string getInfo()
327
 * @method $this withInfo($value)
328
 */
329
class ModifyOperateVul extends V20181203Rpc
330
{
331
}
332
333
/**
334
 * @method string getSourceIp()
335
 * @method $this withSourceIp($value)
336
 * @method string getName()
337
 * @method $this withName($value)
338
 * @method string getUserAgreement()
339
 * @method $this withUserAgreement($value)
340
 * @method string getLang()
341
 * @method $this withLang($value)
342
 */
343
class ModifyEmgVulSubmit extends V20181203Rpc
344
{
345
}
346
347
/**
348
 * @method string getSourceIp()
349
 * @method $this withSourceIp($value)
350
 * @method string getWhitelist()
351
 * @method $this withWhitelist($value)
352
 */
353
class ModifyDeleteVulWhitelist extends V20181203Rpc
354
{
355
}
356
357
/**
358
 * @method string getResourceOwnerId()
359
 * @method $this withResourceOwnerId($value)
360
 * @method string getSourceIp()
361
 * @method $this withSourceIp($value)
362
 * @method string getLang()
363
 * @method $this withLang($value)
364
 */
365
class DescribeUserBaselineAuthorization extends V20181203Rpc
366
{
367
}
368
369
/**
370
 * @method string getResourceOwnerId()
371
 * @method $this withResourceOwnerId($value)
372
 * @method string getSourceIp()
373
 * @method $this withSourceIp($value)
374
 * @method string getLang()
375
 * @method $this withLang($value)
376
 */
377
class DescribeRiskItemType extends V20181203Rpc
378
{
379
}
380
381
/**
382
 * @method string getItemId()
383
 * @method $this withItemId($value)
384
 * @method string getResourceOwnerId()
385
 * @method $this withResourceOwnerId($value)
386
 * @method string getSourceIp()
387
 * @method $this withSourceIp($value)
388
 * @method string getLang()
389
 * @method $this withLang($value)
390
 * @method string getTaskId()
391
 * @method $this withTaskId($value)
392
 * @method string getStatus()
393
 * @method $this withStatus($value)
394
 */
395
class ModifyRiskCheckStatus extends V20181203Rpc
396
{
397
}
398
399
/**
400
 * @method string getResourceOwnerId()
401
 * @method $this withResourceOwnerId($value)
402
 * @method string getSourceIp()
403
 * @method $this withSourceIp($value)
404
 * @method array getIds()
405
 * @method string getLang()
406
 * @method $this withLang($value)
407
 * @method string getTaskId()
408
 * @method $this withTaskId($value)
409
 * @method string getStatus()
410
 * @method $this withStatus($value)
411
 */
412
class ModifyRiskSingleResultStatus extends V20181203Rpc
413
{
414
415
    /**
416
     * @param array $ids
417
     *
418
     * @return $this
419
     */
420
    public function withIds(array $ids)
421
    {
422
        $this->data['Ids'] = $ids;
423
        foreach ($ids as $i => $iValue) {
424
            $this->options['query']['Ids.' . ($i + 1)] = $iValue;
425
        }
426
427
        return $this;
428
    }
429
}
430
431
/**
432
 * @method string getResourceOwnerId()
433
 * @method $this withResourceOwnerId($value)
434
 * @method string getSourceIp()
435
 * @method $this withSourceIp($value)
436
 * @method string getLang()
437
 * @method $this withLang($value)
438
 */
439
class DescribeRiskCheckSummary extends V20181203Rpc
440
{
441
}
442
443
/**
444
 * @method string getResourceOwnerId()
445
 * @method $this withResourceOwnerId($value)
446
 * @method string getSourceIp()
447
 * @method $this withSourceIp($value)
448
 * @method string getLang()
449
 * @method $this withLang($value)
450
 */
451
class DescribeSecurityCheckScheduleConfig extends V20181203Rpc
452
{
453
}
454
455
/**
456
 * @method string getResourceOwnerId()
457
 * @method $this withResourceOwnerId($value)
458
 * @method array getAssets()
459
 * @method string getSourceIp()
460
 * @method $this withSourceIp($value)
461
 * @method array getItemIds()
462
 * @method string getLang()
463
 * @method $this withLang($value)
464
 * @method string getType()
465
 * @method $this withType($value)
466
 */
467
class StartBaselineSecurityCheck extends V20181203Rpc
468
{
469
470
    /**
471
     * @param array $assets
472
     *
473
     * @return $this
474
     */
475
    public function withAssets(array $assets)
476
    {
477
        $this->data['Assets'] = $assets;
478
        foreach ($assets as $i => $iValue) {
479
            $this->options['query']['Assets.' . ($i + 1)] = $iValue;
480
        }
481
482
        return $this;
483
    }
484
485
    /**
486
     * @param array $itemIds
487
     *
488
     * @return $this
489
     */
490
    public function withItemIds(array $itemIds)
491
    {
492
        $this->data['ItemIds'] = $itemIds;
493
        foreach ($itemIds as $i => $iValue) {
494
            $this->options['query']['ItemIds.' . ($i + 1)] = $iValue;
495
        }
496
497
        return $this;
498
    }
499
}
500
501
/**
502
 * @method string getResourceOwnerId()
503
 * @method $this withResourceOwnerId($value)
504
 * @method string getSourceIp()
505
 * @method $this withSourceIp($value)
506
 * @method string getGroupId()
507
 * @method $this withGroupId($value)
508
 * @method string getName()
509
 * @method $this withName($value)
510
 * @method string getPageSize()
511
 * @method $this withPageSize($value)
512
 * @method string getCurrentPage()
513
 * @method $this withCurrentPage($value)
514
 * @method string getLang()
515
 * @method $this withLang($value)
516
 * @method string getRiskLevel()
517
 * @method $this withRiskLevel($value)
518
 */
519
class DescribeRiskCheckResult extends V20181203Rpc
520
{
521
}
522
523
/**
524
 * @method string getResourceOwnerId()
525
 * @method $this withResourceOwnerId($value)
526
 * @method string getSourceIp()
527
 * @method $this withSourceIp($value)
528
 * @method string getDaysOfWeek()
529
 * @method $this withDaysOfWeek($value)
530
 * @method string getEndTime()
531
 * @method $this withEndTime($value)
532
 * @method string getStartTime()
533
 * @method $this withStartTime($value)
534
 * @method string getLang()
535
 * @method $this withLang($value)
536
 */
537
class ModifySecurityCheckScheduleConfig extends V20181203Rpc
538
{
539
}
540
541
/**
542
 * @method string getAlarmUniqueInfo()
543
 * @method $this withAlarmUniqueInfo($value)
544
 * @method string getSourceIp()
545
 * @method $this withSourceIp($value)
546
 * @method string getName()
547
 * @method $this withName($value)
548
 * @method string getPageSize()
549
 * @method $this withPageSize($value)
550
 * @method string getDealed()
551
 * @method $this withDealed($value)
552
 * @method string getRemark()
553
 * @method $this withRemark($value)
554
 * @method string getCurrentPage()
555
 * @method $this withCurrentPage($value)
556
 * @method string getFrom()
557
 * @method $this withFrom($value)
558
 * @method string getLang()
559
 * @method $this withLang($value)
560
 * @method string getLevels()
561
 * @method $this withLevels($value)
562
 * @method string getParentEventTypes()
563
 * @method $this withParentEventTypes($value)
564
 */
565
class DescribeSuspEvents extends V20181203Rpc
566
{
567
}
568
569
/**
570
 * @method string getSuspiciousEventId()
571
 * @method $this withSuspiciousEventId($value)
572
 * @method string getSourceIp()
573
 * @method $this withSourceIp($value)
574
 * @method string getFrom()
575
 * @method $this withFrom($value)
576
 * @method string getLang()
577
 * @method $this withLang($value)
578
 */
579
class DescribeSuspEventDetail extends V20181203Rpc
580
{
581
}
582
583
/**
584
 * @method string getAlarmUniqueInfo()
585
 * @method $this withAlarmUniqueInfo($value)
586
 * @method string getSourceIp()
587
 * @method $this withSourceIp($value)
588
 * @method string getFrom()
589
 * @method $this withFrom($value)
590
 * @method string getLang()
591
 * @method $this withLang($value)
592
 */
593
class DescribeAlarmEventDetail extends V20181203Rpc
594
{
595
}
596
597
/**
598
 * @method string getAlarmEventName()
599
 * @method $this withAlarmEventName($value)
600
 * @method string getSourceIp()
601
 * @method $this withSourceIp($value)
602
 * @method string getPageSize()
603
 * @method $this withPageSize($value)
604
 * @method string getAlarmEventType()
605
 * @method $this withAlarmEventType($value)
606
 * @method string getDealed()
607
 * @method $this withDealed($value)
608
 * @method string getFrom()
609
 * @method $this withFrom($value)
610
 * @method string getRemark()
611
 * @method $this withRemark($value)
612
 * @method string getCurrentPage()
613
 * @method $this withCurrentPage($value)
614
 * @method string getLang()
615
 * @method $this withLang($value)
616
 * @method string getLevels()
617
 * @method $this withLevels($value)
618
 */
619
class DescribeAlarmEventList extends V20181203Rpc
620
{
621
}
622