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 ( cf5df2...229a96 )
by
unknown
18:07 queued 09:07
created

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