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 ( 958bde...c9d54b )
by
unknown
10:48
created

ListServiceUsages   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 8
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A withFilter() 0 13 4
1
<?php
2
3
namespace AlibabaCloud\ComputeNestSupplier\V20210521;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateArtifact createArtifact(array $options = [])
9
 * @method DeleteArtifact deleteArtifact(array $options = [])
10
 * @method GetArtifact getArtifact(array $options = [])
11
 * @method GetArtifactRepositoryCredentials getArtifactRepositoryCredentials(array $options = [])
12
 * @method GetServiceInstance getServiceInstance(array $options = [])
13
 * @method ListArtifacts listArtifacts(array $options = [])
14
 * @method ListArtifactVersions listArtifactVersions(array $options = [])
15
 * @method ListServiceInstances listServiceInstances(array $options = [])
16
 * @method ListServiceUsages listServiceUsages(array $options = [])
17
 * @method ReleaseArtifact releaseArtifact(array $options = [])
18
 * @method UpdateArtifact updateArtifact(array $options = [])
19
 */
20
class ComputeNestSupplierApiResolver extends ApiResolver
21
{
22
}
23
24
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
25
{
26
    /** @var string */
27
    public $product = 'ComputeNestSupplier';
28
29
    /** @var string */
30
    public $version = '2021-05-21';
31
32
    /** @var string */
33
    public $method = 'POST';
34
}
35
36
/**
37
 * @method string getDescription()
38
 * @method $this withDescription($value)
39
 * @method array getSupportRegionIds()
40
 * @method string getArtifactType()
41
 * @method $this withArtifactType($value)
42
 * @method string getName()
43
 * @method $this withName($value)
44
 * @method string getArtifactId()
45
 * @method $this withArtifactId($value)
46
 * @method string getArtifactProperty()
47
 * @method $this withArtifactProperty($value)
48
 * @method string getVersionName()
49
 * @method $this withVersionName($value)
50
 */
51
class CreateArtifact extends Rpc
52
{
53
54
    /**
55
     * @param array $supportRegionIds
56
     *
57
     * @return $this
58
     */
59
	public function withSupportRegionIds(array $supportRegionIds)
60
	{
61
	    $this->data['SupportRegionIds'] = $supportRegionIds;
62
		foreach ($supportRegionIds as $i => $iValue) {
63
			$this->options['query']['SupportRegionIds.' . ($i + 1)] = $iValue;
64
		}
65
66
		return $this;
67
    }
68
}
69
70
/**
71
 * @method string getArtifactVersion()
72
 * @method $this withArtifactVersion($value)
73
 * @method string getArtifactId()
74
 * @method $this withArtifactId($value)
75
 */
76
class DeleteArtifact extends Rpc
77
{
78
}
79
80
/**
81
 * @method string getArtifactVersion()
82
 * @method $this withArtifactVersion($value)
83
 * @method string getArtifactId()
84
 * @method $this withArtifactId($value)
85
 */
86
class GetArtifact extends Rpc
87
{
88
}
89
90
/**
91
 * @method string getDeployRegionId()
92
 * @method $this withDeployRegionId($value)
93
 * @method string getArtifactType()
94
 * @method $this withArtifactType($value)
95
 */
96
class GetArtifactRepositoryCredentials extends Rpc
97
{
98
}
99
100
/**
101
 * @method string getServiceInstanceId()
102
 * @method $this withServiceInstanceId($value)
103
 */
104
class GetServiceInstance extends Rpc
105
{
106
}
107
108
/**
109
 * @method string getNextToken()
110
 * @method $this withNextToken($value)
111
 * @method array getFilter()
112
 * @method string getMaxResults()
113
 * @method $this withMaxResults($value)
114
 */
115
class ListArtifacts extends Rpc
116
{
117
118
    /**
119
     * @param array $filter
120
     *
121
     * @return $this
122
     */
123
	public function withFilter(array $filter)
124
	{
125
	    $this->data['Filter'] = $filter;
126
		foreach ($filter as $depth1 => $depth1Value) {
127
			foreach ($depth1Value['Values'] as $i => $iValue) {
128
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Values.' . ($i + 1)] = $iValue;
129
			}
130
			if(isset($depth1Value['Name'])){
131
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
132
			}
133
		}
134
135
		return $this;
136
    }
137
}
138
139
/**
140
 * @method string getNextToken()
141
 * @method $this withNextToken($value)
142
 * @method string getMaxResult()
143
 * @method $this withMaxResult($value)
144
 * @method string getArtifactId()
145
 * @method $this withArtifactId($value)
146
 */
147
class ListArtifactVersions extends Rpc
148
{
149
}
150
151
/**
152
 * @method string getNextToken()
153
 * @method $this withNextToken($value)
154
 * @method array getTag()
155
 * @method array getFilter()
156
 * @method string getMaxResults()
157
 * @method $this withMaxResults($value)
158
 */
159
class ListServiceInstances extends Rpc
160
{
161
162
    /**
163
     * @param array $tag
164
     *
165
     * @return $this
166
     */
167
	public function withTag(array $tag)
168
	{
169
	    $this->data['Tag'] = $tag;
170
		foreach ($tag as $depth1 => $depth1Value) {
171
			if(isset($depth1Value['Value'])){
172
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
173
			}
174
			if(isset($depth1Value['Key'])){
175
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
176
			}
177
		}
178
179
		return $this;
180
    }
181
182
    /**
183
     * @param array $filter
184
     *
185
     * @return $this
186
     */
187
	public function withFilter(array $filter)
188
	{
189
	    $this->data['Filter'] = $filter;
190
		foreach ($filter as $depth1 => $depth1Value) {
191
			if(isset($depth1Value['Name'])){
192
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
193
			}
194
			foreach ($depth1Value['Value'] as $i => $iValue) {
195
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
196
			}
197
		}
198
199
		return $this;
200
    }
201
}
202
203
/**
204
 * @method string getNextToken()
205
 * @method $this withNextToken($value)
206
 * @method array getFilter()
207
 * @method string getMaxResults()
208
 * @method $this withMaxResults($value)
209
 */
210
class ListServiceUsages extends Rpc
211
{
212
213
    /**
214
     * @param array $filter
215
     *
216
     * @return $this
217
     */
218
	public function withFilter(array $filter)
219
	{
220
	    $this->data['Filter'] = $filter;
221
		foreach ($filter as $depth1 => $depth1Value) {
222
			if(isset($depth1Value['Name'])){
223
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
224
			}
225
			foreach ($depth1Value['Value'] as $i => $iValue) {
226
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
227
			}
228
		}
229
230
		return $this;
231
    }
232
}
233
234
/**
235
 * @method string getArtifactId()
236
 * @method $this withArtifactId($value)
237
 */
238
class ReleaseArtifact extends Rpc
239
{
240
}
241
242
/**
243
 * @method string getDescription()
244
 * @method $this withDescription($value)
245
 * @method array getSupportRegionIds()
246
 * @method string getArtifactId()
247
 * @method $this withArtifactId($value)
248
 * @method string getArtifactProperty()
249
 * @method $this withArtifactProperty($value)
250
 * @method string getVersionName()
251
 * @method $this withVersionName($value)
252
 */
253
class UpdateArtifact extends Rpc
254
{
255
256
    /**
257
     * @param array $supportRegionIds
258
     *
259
     * @return $this
260
     */
261
	public function withSupportRegionIds(array $supportRegionIds)
262
	{
263
	    $this->data['SupportRegionIds'] = $supportRegionIds;
264
		foreach ($supportRegionIds as $i => $iValue) {
265
			$this->options['query']['SupportRegionIds.' . ($i + 1)] = $iValue;
266
		}
267
268
		return $this;
269
    }
270
}
271