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 ( d1e94d...8dfaba )
by
unknown
06:01
created

GetResourceCounts::withFilter()   A

Complexity

Conditions 5
Paths 9

Size

Total Lines 16
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 16
rs 9.6111
cc 5
nc 9
nop 1
1
<?php
2
3
namespace AlibabaCloud\ResourceCenter\V20221201;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method DisableMultiAccountResourceCenter disableMultiAccountResourceCenter(array $options = [])
9
 * @method DisableResourceCenter disableResourceCenter(array $options = [])
10
 * @method EnableMultiAccountResourceCenter enableMultiAccountResourceCenter(array $options = [])
11
 * @method EnableResourceCenter enableResourceCenter(array $options = [])
12
 * @method GetMultiAccountResourceCenterServiceStatus getMultiAccountResourceCenterServiceStatus(array $options = [])
13
 * @method GetMultiAccountResourceConfiguration getMultiAccountResourceConfiguration(array $options = [])
14
 * @method GetResourceCenterServiceStatus getResourceCenterServiceStatus(array $options = [])
15
 * @method GetResourceConfiguration getResourceConfiguration(array $options = [])
16
 * @method GetResourceCounts getResourceCounts(array $options = [])
17
 * @method ListMultiAccountResourceGroups listMultiAccountResourceGroups(array $options = [])
18
 * @method ListMultiAccountTagKeys listMultiAccountTagKeys(array $options = [])
19
 * @method ListMultiAccountTagValues listMultiAccountTagValues(array $options = [])
20
 * @method ListResourceTypes listResourceTypes(array $options = [])
21
 * @method ListTagKeys listTagKeys(array $options = [])
22
 * @method ListTagValues listTagValues(array $options = [])
23
 * @method SearchMultiAccountResources searchMultiAccountResources(array $options = [])
24
 * @method SearchResources searchResources(array $options = [])
25
 */
26
class ResourceCenterApiResolver extends ApiResolver
27
{
28
}
29
30
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
31
{
32
    /** @var string */
33
    public $product = 'ResourceCenter';
34
35
    /** @var string */
36
    public $version = '2022-12-01';
37
38
    /** @var string */
39
    public $method = 'POST';
40
}
41
42
class DisableMultiAccountResourceCenter extends Rpc
43
{
44
}
45
46
class DisableResourceCenter extends Rpc
47
{
48
}
49
50
/**
51
 * @method string getChannel()
52
 * @method $this withChannel($value)
53
 */
54
class EnableMultiAccountResourceCenter extends Rpc
55
{
56
}
57
58
/**
59
 * @method string getChannel()
60
 * @method $this withChannel($value)
61
 */
62
class EnableResourceCenter extends Rpc
63
{
64
}
65
66
class GetMultiAccountResourceCenterServiceStatus extends Rpc
67
{
68
}
69
70
/**
71
 * @method string getResourceId()
72
 * @method $this withResourceId($value)
73
 * @method string getResourceType()
74
 * @method $this withResourceType($value)
75
 * @method string getAccountId()
76
 * @method $this withAccountId($value)
77
 * @method string getResourceRegionId()
78
 * @method $this withResourceRegionId($value)
79
 */
80
class GetMultiAccountResourceConfiguration extends Rpc
81
{
82
}
83
84
class GetResourceCenterServiceStatus extends Rpc
85
{
86
}
87
88
/**
89
 * @method string getResourceId()
90
 * @method $this withResourceId($value)
91
 * @method string getResourceType()
92
 * @method $this withResourceType($value)
93
 * @method string getResourceRegionId()
94
 * @method $this withResourceRegionId($value)
95
 */
96
class GetResourceConfiguration extends Rpc
97
{
98
}
99
100
/**
101
 * @method array getFilter()
102
 * @method string getGroupByKey()
103
 * @method $this withGroupByKey($value)
104
 */
105
class GetResourceCounts extends Rpc
106
{
107
108
    /**
109
     * @param array $filter
110
     *
111
     * @return $this
112
     */
113
	public function withFilter(array $filter)
114
	{
115
	    $this->data['Filter'] = $filter;
116
		foreach ($filter as $depth1 => $depth1Value) {
117
			if(isset($depth1Value['MatchType'])){
118
				$this->options['query']['Filter.' . ($depth1 + 1) . '.MatchType'] = $depth1Value['MatchType'];
119
			}
120
			foreach ($depth1Value['Value'] as $i => $iValue) {
121
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
122
			}
123
			if(isset($depth1Value['Key'])){
124
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
125
			}
126
		}
127
128
		return $this;
129
    }
130
}
131
132
/**
133
 * @method string getAccountId()
134
 * @method $this withAccountId($value)
135
 * @method array getResourceGroupIds()
136
 * @method string getNextToken()
137
 * @method $this withNextToken($value)
138
 * @method string getMaxResults()
139
 * @method $this withMaxResults($value)
140
 */
141
class ListMultiAccountResourceGroups extends Rpc
142
{
143
144
    /**
145
     * @param array $resourceGroupIds
146
     *
147
     * @return $this
148
     */
149
	public function withResourceGroupIds(array $resourceGroupIds)
150
	{
151
	    $this->data['ResourceGroupIds'] = $resourceGroupIds;
152
		foreach ($resourceGroupIds as $i => $iValue) {
153
			$this->options['query']['ResourceGroupIds.' . ($i + 1)] = $iValue;
154
		}
155
156
		return $this;
157
    }
158
}
159
160
/**
161
 * @method string getNextToken()
162
 * @method $this withNextToken($value)
163
 * @method string getScope()
164
 * @method $this withScope($value)
165
 * @method string getMatchType()
166
 * @method $this withMatchType($value)
167
 * @method string getMaxResults()
168
 * @method $this withMaxResults($value)
169
 * @method string getTagKey()
170
 * @method $this withTagKey($value)
171
 */
172
class ListMultiAccountTagKeys extends Rpc
173
{
174
}
175
176
/**
177
 * @method string getNextToken()
178
 * @method $this withNextToken($value)
179
 * @method string getScope()
180
 * @method $this withScope($value)
181
 * @method string getMatchType()
182
 * @method $this withMatchType($value)
183
 * @method string getTagValue()
184
 * @method $this withTagValue($value)
185
 * @method string getMaxResults()
186
 * @method $this withMaxResults($value)
187
 * @method string getTagKey()
188
 * @method $this withTagKey($value)
189
 */
190
class ListMultiAccountTagValues extends Rpc
191
{
192
}
193
194
/**
195
 * @method array getQuery()
196
 * @method string getResourceType()
197
 * @method $this withResourceType($value)
198
 * @method string getScene()
199
 * @method $this withScene($value)
200
 * @method string getAcceptLanguage()
201
 * @method $this withAcceptLanguage($value)
202
 */
203
class ListResourceTypes extends Rpc
204
{
205
206
    /**
207
     * @param array $query
208
     *
209
     * @return $this
210
     */
211
	public function withQuery(array $query)
212
	{
213
	    $this->data['Query'] = $query;
214
		foreach ($query as $i => $iValue) {
215
			$this->options['query']['Query.' . ($i + 1)] = $iValue;
216
		}
217
218
		return $this;
219
    }
220
}
221
222
/**
223
 * @method string getNextToken()
224
 * @method $this withNextToken($value)
225
 * @method string getMatchType()
226
 * @method $this withMatchType($value)
227
 * @method string getMaxResults()
228
 * @method $this withMaxResults($value)
229
 * @method string getTagKey()
230
 * @method $this withTagKey($value)
231
 */
232
class ListTagKeys extends Rpc
233
{
234
}
235
236
/**
237
 * @method string getNextToken()
238
 * @method $this withNextToken($value)
239
 * @method string getMatchType()
240
 * @method $this withMatchType($value)
241
 * @method string getTagValue()
242
 * @method $this withTagValue($value)
243
 * @method string getMaxResults()
244
 * @method $this withMaxResults($value)
245
 * @method string getTagKey()
246
 * @method $this withTagKey($value)
247
 */
248
class ListTagValues extends Rpc
249
{
250
}
251
252
/**
253
 * @method string getNextToken()
254
 * @method $this withNextToken($value)
255
 * @method string getScope()
256
 * @method $this withScope($value)
257
 * @method string getSortCriterion()
258
 * @method $this withSortCriterion($value)
259
 * @method array getFilter()
260
 * @method string getMaxResults()
261
 * @method $this withMaxResults($value)
262
 */
263
class SearchMultiAccountResources extends Rpc
264
{
265
266
    /**
267
     * @param array $filter
268
     *
269
     * @return $this
270
     */
271
	public function withFilter(array $filter)
272
	{
273
	    $this->data['Filter'] = $filter;
274
		foreach ($filter as $depth1 => $depth1Value) {
275
			if(isset($depth1Value['MatchType'])){
276
				$this->options['query']['Filter.' . ($depth1 + 1) . '.MatchType'] = $depth1Value['MatchType'];
277
			}
278
			foreach ($depth1Value['Value'] as $i => $iValue) {
279
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
280
			}
281
			if(isset($depth1Value['Key'])){
282
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
283
			}
284
		}
285
286
		return $this;
287
    }
288
}
289
290
/**
291
 * @method string getResourceGroupId()
292
 * @method $this withResourceGroupId($value)
293
 * @method string getNextToken()
294
 * @method $this withNextToken($value)
295
 * @method string getSortCriterion()
296
 * @method $this withSortCriterion($value)
297
 * @method array getFilter()
298
 * @method string getMaxResults()
299
 * @method $this withMaxResults($value)
300
 */
301
class SearchResources extends Rpc
302
{
303
304
    /**
305
     * @param array $filter
306
     *
307
     * @return $this
308
     */
309
	public function withFilter(array $filter)
310
	{
311
	    $this->data['Filter'] = $filter;
312
		foreach ($filter as $depth1 => $depth1Value) {
313
			if(isset($depth1Value['MatchType'])){
314
				$this->options['query']['Filter.' . ($depth1 + 1) . '.MatchType'] = $depth1Value['MatchType'];
315
			}
316
			foreach ($depth1Value['Value'] as $i => $iValue) {
317
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
318
			}
319
			if(isset($depth1Value['Key'])){
320
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
321
			}
322
		}
323
324
		return $this;
325
    }
326
}
327