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 ( aee213...52bfd6 )
by
unknown
06:59
created

SaveLabelDataSet::withDatasetLabelList()   B

Complexity

Conditions 8
Paths 65

Size

Total Lines 25
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
c 1
b 0
f 0
dl 0
loc 25
rs 8.4444
cc 8
nc 65
nop 1
1
<?php
2
3
namespace AlibabaCloud\RetailadvqaPublic\V20200515;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CheckAudienceExportStatus checkAudienceExportStatus(array $options = [])
9
 * @method CheckResourcepackSlr checkResourcepackSlr(array $options = [])
10
 * @method ConsumeMediaResourcePackage consumeMediaResourcePackage(array $options = [])
11
 * @method CreateDataset createDataset(array $options = [])
12
 * @method CreateDataSource createDataSource(array $options = [])
13
 * @method CreateExportTask createExportTask(array $options = [])
14
 * @method GetInstanceInstance getInstanceInstance(array $options = [])
15
 * @method GetInstanceInstanceInstance getInstanceInstanceInstance(array $options = [])
16
 * @method GetMediaResourcePackage getMediaResourcePackage(array $options = [])
17
 * @method ListAccount listAccount(array $options = [])
18
 * @method ListAudience listAudience(array $options = [])
19
 * @method ListDataset listDataset(array $options = [])
20
 * @method ListMenu listMenu(array $options = [])
21
 * @method ListTable listTable(array $options = [])
22
 * @method ListWorkspace listWorkspace(array $options = [])
23
 * @method LoadDataToExternalAudience loadDataToExternalAudience(array $options = [])
24
 * @method LoadDataToLabelDataSet loadDataToLabelDataSet(array $options = [])
25
 * @method QueryMediaResourcePackage queryMediaResourcePackage(array $options = [])
26
 * @method RecreateTable recreateTable(array $options = [])
27
 * @method SaveExternalAudience saveExternalAudience(array $options = [])
28
 * @method SaveLabelDataSet saveLabelDataSet(array $options = [])
29
 * @method UpdateDataset updateDataset(array $options = [])
30
 */
31
class RetailadvqaPublicApiResolver extends ApiResolver
32
{
33
}
34
35
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
36
{
37
    /** @var string */
38
    public $product = 'retailadvqa-public';
39
40
    /** @var string */
41
    public $version = '2020-05-15';
42
43
    /** @var string */
44
    public $method = 'POST';
45
}
46
47
/**
48
 * @method string getAccessId()
49
 * @method $this withAccessId($value)
50
 * @method string getTenantId()
51
 * @method $this withTenantId($value)
52
 * @method string getAudienceId()
53
 * @method $this withAudienceId($value)
54
 */
55
class CheckAudienceExportStatus extends Rpc
56
{
57
58
    /** @var string */
59
    public $scheme = 'https';
60
61
    /** @var string */
62
    public $method = 'GET';
63
}
64
65
/**
66
 * @method string getAccessId()
67
 * @method $this withAccessId($value)
68
 */
69
class CheckResourcepackSlr extends Rpc
70
{
71
}
72
73
/**
74
 * @method string getConsumeType()
75
 * @method $this withConsumeType($value)
76
 * @method string getProductId()
77
 * @method $this withProductId($value)
78
 * @method string getConsumeInfos()
79
 * @method $this withConsumeInfos($value)
80
 * @method string getConsumeTime()
81
 * @method $this withConsumeTime($value)
82
 */
83
class ConsumeMediaResourcePackage extends Rpc
84
{
85
}
86
87
/**
88
 * @method string getAccessId()
89
 * @method string getTenantId()
90
 * @method string getDataSetName()
91
 * @method string getType()
92
 * @method string getDataSet()
93
 * @method string getWorkspaceId()
94
 */
95
class CreateDataset extends Rpc
96
{
97
98
    /**
99
     * @param string $value
100
     *
101
     * @return $this
102
     */
103
    public function withAccessId($value)
104
    {
105
        $this->data['AccessId'] = $value;
106
        $this->options['form_params']['AccessId'] = $value;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @param string $value
113
     *
114
     * @return $this
115
     */
116
    public function withTenantId($value)
117
    {
118
        $this->data['TenantId'] = $value;
119
        $this->options['form_params']['TenantId'] = $value;
120
121
        return $this;
122
    }
123
124
    /**
125
     * @param string $value
126
     *
127
     * @return $this
128
     */
129
    public function withDataSetName($value)
130
    {
131
        $this->data['DataSetName'] = $value;
132
        $this->options['form_params']['DataSetName'] = $value;
133
134
        return $this;
135
    }
136
137
    /**
138
     * @param string $value
139
     *
140
     * @return $this
141
     */
142
    public function withType($value)
143
    {
144
        $this->data['Type'] = $value;
145
        $this->options['form_params']['Type'] = $value;
146
147
        return $this;
148
    }
149
150
    /**
151
     * @param string $value
152
     *
153
     * @return $this
154
     */
155
    public function withDataSet($value)
156
    {
157
        $this->data['DataSet'] = $value;
158
        $this->options['form_params']['DataSet'] = $value;
159
160
        return $this;
161
    }
162
163
    /**
164
     * @param string $value
165
     *
166
     * @return $this
167
     */
168
    public function withWorkspaceId($value)
169
    {
170
        $this->data['WorkspaceId'] = $value;
171
        $this->options['form_params']['WorkspaceId'] = $value;
172
173
        return $this;
174
    }
175
}
176
177
/**
178
 * @method string getDatabaseAddress()
179
 * @method $this withDatabaseAddress($value)
180
 * @method string getDataSourceType()
181
 * @method $this withDataSourceType($value)
182
 * @method string getRegionCode()
183
 * @method $this withRegionCode($value)
184
 * @method string getDatabaseUserName()
185
 * @method $this withDatabaseUserName($value)
186
 * @method string getDatabasePassword()
187
 * @method $this withDatabasePassword($value)
188
 * @method string getDatabasePort()
189
 * @method $this withDatabasePort($value)
190
 * @method string getAccessId()
191
 * @method $this withAccessId($value)
192
 * @method string getDisplayName()
193
 * @method $this withDisplayName($value)
194
 * @method string getDatabaseName()
195
 * @method $this withDatabaseName($value)
196
 * @method string getDataSourceId()
197
 * @method $this withDataSourceId($value)
198
 * @method string getCreateType()
199
 * @method $this withCreateType($value)
200
 * @method string getWorkspaceId()
201
 * @method $this withWorkspaceId($value)
202
 */
203
class CreateDataSource extends Rpc
204
{
205
}
206
207
/**
208
 * @method string getAccessId()
209
 * @method $this withAccessId($value)
210
 * @method string getTenantId()
211
 * @method $this withTenantId($value)
212
 * @method string getAudienceId()
213
 * @method $this withAudienceId($value)
214
 */
215
class CreateExportTask extends Rpc
216
{
217
218
    /** @var string */
219
    public $scheme = 'https';
220
}
221
222
/**
223
 * @method string getAccessId()
224
 * @method $this withAccessId($value)
225
 * @method string getAccountId()
226
 * @method $this withAccountId($value)
227
 * @method string getAccountName()
228
 * @method $this withAccountName($value)
229
 */
230
class GetInstanceInstance extends Rpc
231
{
232
233
    /** @var string */
234
    public $scheme = 'https';
235
}
236
237
/**
238
 * @method string getAccessId()
239
 * @method $this withAccessId($value)
240
 * @method string getAccountId()
241
 * @method $this withAccountId($value)
242
 * @method string getAccountName()
243
 * @method $this withAccountName($value)
244
 */
245
class GetInstanceInstanceInstance extends Rpc
246
{
247
248
    /** @var string */
249
    public $scheme = 'https';
250
}
251
252
/**
253
 * @method string getAccessId()
254
 * @method $this withAccessId($value)
255
 * @method string getTemplate()
256
 * @method $this withTemplate($value)
257
 * @method string getPageSize()
258
 * @method $this withPageSize($value)
259
 * @method string getPageIndex()
260
 * @method $this withPageIndex($value)
261
 * @method string getResourceType()
262
 * @method $this withResourceType($value)
263
 * @method string getStatus()
264
 * @method $this withStatus($value)
265
 */
266
class GetMediaResourcePackage extends Rpc
267
{
268
}
269
270
/**
271
 * @method string getAccessId()
272
 * @method $this withAccessId($value)
273
 * @method string getTenantId()
274
 * @method $this withTenantId($value)
275
 * @method string getWorkspaceId()
276
 * @method $this withWorkspaceId($value)
277
 */
278
class ListAccount extends Rpc
279
{
280
}
281
282
/**
283
 * @method string getAccessId()
284
 * @method $this withAccessId($value)
285
 * @method string getName()
286
 * @method $this withName($value)
287
 * @method string getPageSize()
288
 * @method $this withPageSize($value)
289
 * @method string getTenantId()
290
 * @method $this withTenantId($value)
291
 * @method string getPageNum()
292
 * @method $this withPageNum($value)
293
 * @method string getColumnName()
294
 * @method $this withColumnName($value)
295
 * @method string getOrder()
296
 * @method $this withOrder($value)
297
 * @method string getWorkspaceId()
298
 * @method $this withWorkspaceId($value)
299
 */
300
class ListAudience extends Rpc
301
{
302
303
    /** @var string */
304
    public $method = 'GET';
305
}
306
307
/**
308
 * @method string getAccessId()
309
 * @method $this withAccessId($value)
310
 * @method string getTenantId()
311
 * @method $this withTenantId($value)
312
 * @method string getType()
313
 * @method $this withType($value)
314
 * @method string getWorkspaceId()
315
 * @method $this withWorkspaceId($value)
316
 */
317
class ListDataset extends Rpc
318
{
319
320
    /** @var string */
321
    public $method = 'GET';
322
}
323
324
/**
325
 * @method string getAccessId()
326
 * @method $this withAccessId($value)
327
 * @method string getTenantId()
328
 * @method $this withTenantId($value)
329
 * @method string getRoleSign()
330
 * @method $this withRoleSign($value)
331
 * @method string getWorkspaceId()
332
 * @method $this withWorkspaceId($value)
333
 */
334
class ListMenu extends Rpc
335
{
336
}
337
338
/**
339
 * @method string getAccessId()
340
 * @method $this withAccessId($value)
341
 * @method string getTenantId()
342
 * @method $this withTenantId($value)
343
 */
344
class ListTable extends Rpc
345
{
346
}
347
348
/**
349
 * @method string getAccessId()
350
 * @method $this withAccessId($value)
351
 * @method string getTenantId()
352
 * @method $this withTenantId($value)
353
 */
354
class ListWorkspace extends Rpc
355
{
356
357
    /** @var string */
358
    public $method = 'GET';
359
}
360
361
/**
362
 * @method string getAccessId()
363
 * @method $this withAccessId($value)
364
 * @method string getAudienceId()
365
 * @method $this withAudienceId($value)
366
 * @method string getOssPath()
367
 * @method $this withOssPath($value)
368
 */
369
class LoadDataToExternalAudience extends Rpc
370
{
371
}
372
373
/**
374
 * @method string getAccessId()
375
 * @method $this withAccessId($value)
376
 * @method string getSeparator()
377
 * @method $this withSeparator($value)
378
 * @method string getOssPath()
379
 * @method $this withOssPath($value)
380
 * @method string getCubeId()
381
 * @method $this withCubeId($value)
382
 * @method array getColNameList()
383
 */
384
class LoadDataToLabelDataSet extends Rpc
385
{
386
387
    /**
388
     * @param array $colNameList
389
     *
390
     * @return $this
391
     */
392
	public function withColNameList(array $colNameList)
393
	{
394
	    $this->data['ColNameList'] = $colNameList;
395
		foreach ($colNameList as $i => $iValue) {
396
			$this->options['query']['ColNameList.' . ($i + 1)] = $iValue;
397
		}
398
399
		return $this;
400
    }
401
}
402
403
/**
404
 * @method string getAccessId()
405
 * @method $this withAccessId($value)
406
 * @method string getTemplate()
407
 * @method $this withTemplate($value)
408
 * @method string getPageSize()
409
 * @method $this withPageSize($value)
410
 * @method string getPageIndex()
411
 * @method $this withPageIndex($value)
412
 * @method string getResourceType()
413
 * @method $this withResourceType($value)
414
 * @method string getStatus()
415
 * @method $this withStatus($value)
416
 */
417
class QueryMediaResourcePackage extends Rpc
418
{
419
}
420
421
/**
422
 * @method string getAccessId()
423
 * @method string getTableSchema()
424
 * @method string getTenantId()
425
 * @method string getTableName()
426
 * @method string getOssPath()
427
 */
428
class RecreateTable extends Rpc
429
{
430
431
    /**
432
     * @param string $value
433
     *
434
     * @return $this
435
     */
436
    public function withAccessId($value)
437
    {
438
        $this->data['AccessId'] = $value;
439
        $this->options['form_params']['AccessId'] = $value;
440
441
        return $this;
442
    }
443
444
    /**
445
     * @param string $value
446
     *
447
     * @return $this
448
     */
449
    public function withTableSchema($value)
450
    {
451
        $this->data['TableSchema'] = $value;
452
        $this->options['form_params']['TableSchema'] = $value;
453
454
        return $this;
455
    }
456
457
    /**
458
     * @param string $value
459
     *
460
     * @return $this
461
     */
462
    public function withTenantId($value)
463
    {
464
        $this->data['TenantId'] = $value;
465
        $this->options['form_params']['TenantId'] = $value;
466
467
        return $this;
468
    }
469
470
    /**
471
     * @param string $value
472
     *
473
     * @return $this
474
     */
475
    public function withTableName($value)
476
    {
477
        $this->data['TableName'] = $value;
478
        $this->options['form_params']['TableName'] = $value;
479
480
        return $this;
481
    }
482
483
    /**
484
     * @param string $value
485
     *
486
     * @return $this
487
     */
488
    public function withOssPath($value)
489
    {
490
        $this->data['OssPath'] = $value;
491
        $this->options['form_params']['OssPath'] = $value;
492
493
        return $this;
494
    }
495
}
496
497
/**
498
 * @method string getAccessId()
499
 * @method $this withAccessId($value)
500
 * @method string getAudienceName()
501
 * @method $this withAudienceName($value)
502
 * @method string getMappingType()
503
 * @method $this withMappingType($value)
504
 * @method string getDataSourceId()
505
 * @method $this withDataSourceId($value)
506
 * @method string getAudienceId()
507
 * @method $this withAudienceId($value)
508
 * @method string getWorkspaceId()
509
 * @method $this withWorkspaceId($value)
510
 */
511
class SaveExternalAudience extends Rpc
512
{
513
}
514
515
/**
516
 * @method string getAccessId()
517
 * @method $this withAccessId($value)
518
 * @method string getDsId()
519
 * @method $this withDsId($value)
520
 * @method array getDatasetLabelList()
521
 * @method string getCubeName()
522
 * @method $this withCubeName($value)
523
 * @method string getTableName()
524
 * @method $this withTableName($value)
525
 * @method string getCubeId()
526
 * @method $this withCubeId($value)
527
 * @method string getWorkspaceId()
528
 * @method $this withWorkspaceId($value)
529
 */
530
class SaveLabelDataSet extends Rpc
531
{
532
533
    /**
534
     * @param array $datasetLabelList
535
     *
536
     * @return $this
537
     */
538
	public function withDatasetLabelList(array $datasetLabelList)
539
	{
540
	    $this->data['DatasetLabelList'] = $datasetLabelList;
541
		foreach ($datasetLabelList as $depth1 => $depth1Value) {
542
			if(isset($depth1Value['ColumnComment'])){
543
				$this->options['query']['DatasetLabelList.' . ($depth1 + 1) . '.ColumnComment'] = $depth1Value['ColumnComment'];
544
			}
545
			if(isset($depth1Value['MappingType'])){
546
				$this->options['query']['DatasetLabelList.' . ($depth1 + 1) . '.MappingType'] = $depth1Value['MappingType'];
547
			}
548
			if(isset($depth1Value['UniqueIdentification'])){
549
				$this->options['query']['DatasetLabelList.' . ($depth1 + 1) . '.UniqueIdentification'] = $depth1Value['UniqueIdentification'];
550
			}
551
			if(isset($depth1Value['Remark'])){
552
				$this->options['query']['DatasetLabelList.' . ($depth1 + 1) . '.Remark'] = $depth1Value['Remark'];
553
			}
554
			if(isset($depth1Value['ColumnName'])){
555
				$this->options['query']['DatasetLabelList.' . ($depth1 + 1) . '.ColumnName'] = $depth1Value['ColumnName'];
556
			}
557
			if(isset($depth1Value['ColumnType'])){
558
				$this->options['query']['DatasetLabelList.' . ($depth1 + 1) . '.ColumnType'] = $depth1Value['ColumnType'];
559
			}
560
		}
561
562
		return $this;
563
    }
564
}
565
566
/**
567
 * @method string getAccessId()
568
 * @method string getTenantId()
569
 * @method string getDataSetName()
570
 * @method string getDataSetId()
571
 * @method string getType()
572
 * @method string getDataSet()
573
 * @method string getWorkspaceId()
574
 */
575
class UpdateDataset extends Rpc
576
{
577
578
    /**
579
     * @param string $value
580
     *
581
     * @return $this
582
     */
583
    public function withAccessId($value)
584
    {
585
        $this->data['AccessId'] = $value;
586
        $this->options['form_params']['AccessId'] = $value;
587
588
        return $this;
589
    }
590
591
    /**
592
     * @param string $value
593
     *
594
     * @return $this
595
     */
596
    public function withTenantId($value)
597
    {
598
        $this->data['TenantId'] = $value;
599
        $this->options['form_params']['TenantId'] = $value;
600
601
        return $this;
602
    }
603
604
    /**
605
     * @param string $value
606
     *
607
     * @return $this
608
     */
609
    public function withDataSetName($value)
610
    {
611
        $this->data['DataSetName'] = $value;
612
        $this->options['form_params']['DataSetName'] = $value;
613
614
        return $this;
615
    }
616
617
    /**
618
     * @param string $value
619
     *
620
     * @return $this
621
     */
622
    public function withDataSetId($value)
623
    {
624
        $this->data['DataSetId'] = $value;
625
        $this->options['form_params']['DataSetId'] = $value;
626
627
        return $this;
628
    }
629
630
    /**
631
     * @param string $value
632
     *
633
     * @return $this
634
     */
635
    public function withType($value)
636
    {
637
        $this->data['Type'] = $value;
638
        $this->options['form_params']['Type'] = $value;
639
640
        return $this;
641
    }
642
643
    /**
644
     * @param string $value
645
     *
646
     * @return $this
647
     */
648
    public function withDataSet($value)
649
    {
650
        $this->data['DataSet'] = $value;
651
        $this->options['form_params']['DataSet'] = $value;
652
653
        return $this;
654
    }
655
656
    /**
657
     * @param string $value
658
     *
659
     * @return $this
660
     */
661
    public function withWorkspaceId($value)
662
    {
663
        $this->data['WorkspaceId'] = $value;
664
        $this->options['form_params']['WorkspaceId'] = $value;
665
666
        return $this;
667
    }
668
}
669