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