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 ( 1e9b9c...59ab27 )
by
unknown
07:19
created

ContinueDeployServiceInstance   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A withOption() 0 8 2
1
<?php
2
3
namespace AlibabaCloud\ComputeNest\V20210601;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ContinueDeployServiceInstance continueDeployServiceInstance(array $options = [])
9
 * @method CreateServiceInstance createServiceInstance(array $options = [])
10
 * @method DeleteServiceInstances deleteServiceInstances(array $options = [])
11
 * @method GetServiceInstance getServiceInstance(array $options = [])
12
 * @method ListServiceInstanceLogs listServiceInstanceLogs(array $options = [])
13
 * @method ListServiceInstanceResources listServiceInstanceResources(array $options = [])
14
 * @method ListServiceInstances listServiceInstances(array $options = [])
15
 */
16
class ComputeNestApiResolver extends ApiResolver
17
{
18
}
19
20
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
21
{
22
    /** @var string */
23
    public $product = 'ComputeNest';
24
25
    /** @var string */
26
    public $version = '2021-06-01';
27
28
    /** @var string */
29
    public $method = 'POST';
30
31
    /** @var string */
32
    public $serviceCode = 'computenest';
33
}
34
35
/**
36
 * @method string getClientToken()
37
 * @method $this withClientToken($value)
38
 * @method string getServiceInstanceId()
39
 * @method $this withServiceInstanceId($value)
40
 * @method string getDryRun()
41
 * @method $this withDryRun($value)
42
 * @method string getParameters()
43
 * @method $this withParameters($value)
44
 * @method array getOption()
45
 */
46
class ContinueDeployServiceInstance extends Rpc
47
{
48
49
    /**
50
     * @param array $option
51
     *
52
     * @return $this
53
     */
54
	public function withOption(array $option)
55
	{
56
	    $this->data['Option'] = $option;
57
		foreach ($option as $i => $iValue) {
58
			$this->options['query']['Option.' . ($i + 1)] = $iValue;
59
		}
60
61
		return $this;
62
    }
63
}
64
65
/**
66
 * @method string getCommodity()
67
 * @method $this withCommodity($value)
68
 * @method string getContactGroup()
69
 * @method $this withContactGroup($value)
70
 * @method string getClientToken()
71
 * @method $this withClientToken($value)
72
 * @method string getSpecificationCode()
73
 * @method $this withSpecificationCode($value)
74
 * @method string getResourceGroupId()
75
 * @method $this withResourceGroupId($value)
76
 * @method string getEnableInstanceOps()
77
 * @method $this withEnableInstanceOps($value)
78
 * @method string getTemplateName()
79
 * @method $this withTemplateName($value)
80
 * @method array getTag()
81
 * @method string getDryRun()
82
 * @method $this withDryRun($value)
83
 * @method string getEnableUserPrometheus()
84
 * @method $this withEnableUserPrometheus($value)
85
 * @method string getSpecificationName()
86
 * @method $this withSpecificationName($value)
87
 * @method string getTrialType()
88
 * @method $this withTrialType($value)
89
 * @method string getName()
90
 * @method $this withName($value)
91
 * @method string getServiceVersion()
92
 * @method $this withServiceVersion($value)
93
 * @method string getServiceId()
94
 * @method $this withServiceId($value)
95
 * @method string getParameters()
96
 * @method $this withParameters($value)
97
 * @method string getPayType()
98
 * @method $this withPayType($value)
99
 * @method string getOperationMetadata()
100
 * @method $this withOperationMetadata($value)
101
 */
102
class CreateServiceInstance extends Rpc
103
{
104
105
    /**
106
     * @param array $tag
107
     *
108
     * @return $this
109
     */
110
	public function withTag(array $tag)
111
	{
112
	    $this->data['Tag'] = $tag;
113
		foreach ($tag as $depth1 => $depth1Value) {
114
			if(isset($depth1Value['Value'])){
115
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
116
			}
117
			if(isset($depth1Value['Key'])){
118
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
119
			}
120
		}
121
122
		return $this;
123
    }
124
}
125
126
/**
127
 * @method string getClientToken()
128
 * @method $this withClientToken($value)
129
 * @method array getServiceInstanceId()
130
 */
131
class DeleteServiceInstances extends Rpc
132
{
133
134
    /**
135
     * @param array $serviceInstanceId
136
     *
137
     * @return $this
138
     */
139
	public function withServiceInstanceId(array $serviceInstanceId)
140
	{
141
	    $this->data['ServiceInstanceId'] = $serviceInstanceId;
142
		foreach ($serviceInstanceId as $i => $iValue) {
143
			$this->options['query']['ServiceInstanceId.' . ($i + 1)] = $iValue;
144
		}
145
146
		return $this;
147
    }
148
}
149
150
/**
151
 * @method string getServiceInstanceId()
152
 * @method $this withServiceInstanceId($value)
153
 * @method string getMarketInstanceId()
154
 * @method $this withMarketInstanceId($value)
155
 */
156
class GetServiceInstance extends Rpc
157
{
158
}
159
160
/**
161
 * @method string getNextToken()
162
 * @method $this withNextToken($value)
163
 * @method string getServiceInstanceId()
164
 * @method $this withServiceInstanceId($value)
165
 * @method string getMaxResults()
166
 * @method $this withMaxResults($value)
167
 */
168
class ListServiceInstanceLogs extends Rpc
169
{
170
}
171
172
/**
173
 * @method string getExpireTimeEnd()
174
 * @method $this withExpireTimeEnd($value)
175
 * @method string getNextToken()
176
 * @method $this withNextToken($value)
177
 * @method array getResourceARN()
178
 * @method array getTag()
179
 * @method string getServiceInstanceId()
180
 * @method $this withServiceInstanceId($value)
181
 * @method string getExpireTimeStart()
182
 * @method $this withExpireTimeStart($value)
183
 * @method string getMaxResults()
184
 * @method $this withMaxResults($value)
185
 * @method string getPayType()
186
 * @method $this withPayType($value)
187
 */
188
class ListServiceInstanceResources extends Rpc
189
{
190
191
    /**
192
     * @param array $resourceARN
193
     *
194
     * @return $this
195
     */
196
	public function withResourceARN(array $resourceARN)
197
	{
198
	    $this->data['ResourceARN'] = $resourceARN;
199
		foreach ($resourceARN as $i => $iValue) {
200
			$this->options['query']['ResourceARN.' . ($i + 1)] = $iValue;
201
		}
202
203
		return $this;
204
    }
205
206
    /**
207
     * @param array $tag
208
     *
209
     * @return $this
210
     */
211
	public function withTag(array $tag)
212
	{
213
	    $this->data['Tag'] = $tag;
214
		foreach ($tag as $depth1 => $depth1Value) {
215
			if(isset($depth1Value['Value'])){
216
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
217
			}
218
			if(isset($depth1Value['Key'])){
219
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
220
			}
221
		}
222
223
		return $this;
224
    }
225
}
226
227
/**
228
 * @method string getResourceGroupId()
229
 * @method $this withResourceGroupId($value)
230
 * @method string getNextToken()
231
 * @method $this withNextToken($value)
232
 * @method array getTag()
233
 * @method array getFilter()
234
 * @method string getMaxResults()
235
 * @method $this withMaxResults($value)
236
 */
237
class ListServiceInstances extends Rpc
238
{
239
240
    /**
241
     * @param array $tag
242
     *
243
     * @return $this
244
     */
245
	public function withTag(array $tag)
246
	{
247
	    $this->data['Tag'] = $tag;
248
		foreach ($tag as $depth1 => $depth1Value) {
249
			if(isset($depth1Value['Value'])){
250
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
251
			}
252
			if(isset($depth1Value['Key'])){
253
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
254
			}
255
		}
256
257
		return $this;
258
    }
259
260
    /**
261
     * @param array $filter
262
     *
263
     * @return $this
264
     */
265
	public function withFilter(array $filter)
266
	{
267
	    $this->data['Filter'] = $filter;
268
		foreach ($filter as $depth1 => $depth1Value) {
269
			if(isset($depth1Value['Name'])){
270
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
271
			}
272
			foreach ($depth1Value['Value'] as $i => $iValue) {
273
				$this->options['query']['Filter.' . ($depth1 + 1) . '.Value.' . ($i + 1)] = $iValue;
274
			}
275
		}
276
277
		return $this;
278
    }
279
}
280