|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AlibabaCloud\SmartHosting\V20200801; |
|
4
|
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* @method ListManagedHosts listManagedHosts(array $options = []) |
|
9
|
|
|
* @method ListManagedPrivateSpaces listManagedPrivateSpaces(array $options = []) |
|
10
|
|
|
* @method ListManagedRacks listManagedRacks(array $options = []) |
|
11
|
|
|
* @method UpdateManagedHostAttributes updateManagedHostAttributes(array $options = []) |
|
12
|
|
|
*/ |
|
13
|
|
|
class SmartHostingApiResolver extends ApiResolver |
|
14
|
|
|
{ |
|
15
|
|
|
} |
|
16
|
|
|
|
|
17
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
|
18
|
|
|
{ |
|
19
|
|
|
/** @var string */ |
|
20
|
|
|
public $product = 'SmartHosting'; |
|
21
|
|
|
|
|
22
|
|
|
/** @var string */ |
|
23
|
|
|
public $version = '2020-08-01'; |
|
24
|
|
|
|
|
25
|
|
|
/** @var string */ |
|
26
|
|
|
public $method = 'POST'; |
|
27
|
|
|
|
|
28
|
|
|
/** @var string */ |
|
29
|
|
|
public $serviceCode = 'SmartHosting'; |
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* @method string getResourceOwnerId() |
|
34
|
|
|
* @method $this withResourceOwnerId($value) |
|
35
|
|
|
* @method string getHostType() |
|
36
|
|
|
* @method $this withHostType($value) |
|
37
|
|
|
* @method string getMode() |
|
38
|
|
|
* @method $this withMode($value) |
|
39
|
|
|
* @method string getResourceGroupId() |
|
40
|
|
|
* @method $this withResourceGroupId($value) |
|
41
|
|
|
* @method string getNextToken() |
|
42
|
|
|
* @method $this withNextToken($value) |
|
43
|
|
|
* @method array getTag() |
|
44
|
|
|
* @method string getResourceOwnerAccount() |
|
45
|
|
|
* @method $this withResourceOwnerAccount($value) |
|
46
|
|
|
* @method string getOwnerAccount() |
|
47
|
|
|
* @method $this withOwnerAccount($value) |
|
48
|
|
|
* @method array getManagedHostId() |
|
49
|
|
|
* @method string getOwnerId() |
|
50
|
|
|
* @method $this withOwnerId($value) |
|
51
|
|
|
* @method string getManagedPrivateSpaceId() |
|
52
|
|
|
* @method $this withManagedPrivateSpaceId($value) |
|
53
|
|
|
* @method string getZoneId() |
|
54
|
|
|
* @method $this withZoneId($value) |
|
55
|
|
|
* @method string getMaxResults() |
|
56
|
|
|
* @method $this withMaxResults($value) |
|
57
|
|
|
* @method string getManagedHostName() |
|
58
|
|
|
* @method $this withManagedHostName($value) |
|
59
|
|
|
* @method string getStatus() |
|
60
|
|
|
* @method $this withStatus($value) |
|
61
|
|
|
*/ |
|
62
|
|
|
class ListManagedHosts extends Rpc |
|
63
|
|
|
{ |
|
64
|
|
|
|
|
65
|
|
|
/** |
|
66
|
|
|
* @param array $tag |
|
67
|
|
|
* |
|
68
|
|
|
* @return $this |
|
69
|
|
|
*/ |
|
70
|
|
|
public function withTag(array $tag) |
|
71
|
|
|
{ |
|
72
|
|
|
$this->data['Tag'] = $tag; |
|
73
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
|
74
|
|
|
if(isset($depth1Value['Key'])){ |
|
75
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
|
76
|
|
|
} |
|
77
|
|
|
if(isset($depth1Value['Value'])){ |
|
78
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
|
79
|
|
|
} |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
return $this; |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
/** |
|
86
|
|
|
* @param array $managedHostId |
|
87
|
|
|
* |
|
88
|
|
|
* @return $this |
|
89
|
|
|
*/ |
|
90
|
|
|
public function withManagedHostId(array $managedHostId) |
|
91
|
|
|
{ |
|
92
|
|
|
$this->data['ManagedHostId'] = $managedHostId; |
|
93
|
|
|
foreach ($managedHostId as $i => $iValue) { |
|
94
|
|
|
$this->options['query']['ManagedHostId.' . ($i + 1)] = $iValue; |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
return $this; |
|
98
|
|
|
} |
|
99
|
|
|
} |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* @method string getResourceOwnerId() |
|
103
|
|
|
* @method $this withResourceOwnerId($value) |
|
104
|
|
|
* @method string getManagedPrivateSpaceName() |
|
105
|
|
|
* @method $this withManagedPrivateSpaceName($value) |
|
106
|
|
|
* @method string getResourceGroupId() |
|
107
|
|
|
* @method $this withResourceGroupId($value) |
|
108
|
|
|
* @method string getNextToken() |
|
109
|
|
|
* @method $this withNextToken($value) |
|
110
|
|
|
* @method array getTag() |
|
111
|
|
|
* @method string getResourceOwnerAccount() |
|
112
|
|
|
* @method $this withResourceOwnerAccount($value) |
|
113
|
|
|
* @method string getOwnerAccount() |
|
114
|
|
|
* @method $this withOwnerAccount($value) |
|
115
|
|
|
* @method string getOwnerId() |
|
116
|
|
|
* @method $this withOwnerId($value) |
|
117
|
|
|
* @method array getManagedPrivateSpaceId() |
|
118
|
|
|
* @method string getZoneId() |
|
119
|
|
|
* @method $this withZoneId($value) |
|
120
|
|
|
* @method string getMaxResults() |
|
121
|
|
|
* @method $this withMaxResults($value) |
|
122
|
|
|
*/ |
|
123
|
|
|
class ListManagedPrivateSpaces extends Rpc |
|
124
|
|
|
{ |
|
125
|
|
|
|
|
126
|
|
|
/** |
|
127
|
|
|
* @param array $tag |
|
128
|
|
|
* |
|
129
|
|
|
* @return $this |
|
130
|
|
|
*/ |
|
131
|
|
|
public function withTag(array $tag) |
|
132
|
|
|
{ |
|
133
|
|
|
$this->data['Tag'] = $tag; |
|
134
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
|
135
|
|
|
if(isset($depth1Value['Key'])){ |
|
136
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
|
137
|
|
|
} |
|
138
|
|
|
if(isset($depth1Value['Value'])){ |
|
139
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
|
140
|
|
|
} |
|
141
|
|
|
} |
|
142
|
|
|
|
|
143
|
|
|
return $this; |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
/** |
|
147
|
|
|
* @param array $managedPrivateSpaceId |
|
148
|
|
|
* |
|
149
|
|
|
* @return $this |
|
150
|
|
|
*/ |
|
151
|
|
|
public function withManagedPrivateSpaceId(array $managedPrivateSpaceId) |
|
152
|
|
|
{ |
|
153
|
|
|
$this->data['ManagedPrivateSpaceId'] = $managedPrivateSpaceId; |
|
154
|
|
|
foreach ($managedPrivateSpaceId as $i => $iValue) { |
|
155
|
|
|
$this->options['query']['ManagedPrivateSpaceId.' . ($i + 1)] = $iValue; |
|
156
|
|
|
} |
|
157
|
|
|
|
|
158
|
|
|
return $this; |
|
159
|
|
|
} |
|
160
|
|
|
} |
|
161
|
|
|
|
|
162
|
|
|
/** |
|
163
|
|
|
* @method string getResourceOwnerId() |
|
164
|
|
|
* @method $this withResourceOwnerId($value) |
|
165
|
|
|
* @method string getHostType() |
|
166
|
|
|
* @method $this withHostType($value) |
|
167
|
|
|
* @method string getNextToken() |
|
168
|
|
|
* @method $this withNextToken($value) |
|
169
|
|
|
* @method array getManagedRackId() |
|
170
|
|
|
* @method string getResourceOwnerAccount() |
|
171
|
|
|
* @method $this withResourceOwnerAccount($value) |
|
172
|
|
|
* @method string getOwnerAccount() |
|
173
|
|
|
* @method $this withOwnerAccount($value) |
|
174
|
|
|
* @method string getOwnerId() |
|
175
|
|
|
* @method $this withOwnerId($value) |
|
176
|
|
|
* @method string getManagedPrivateSpaceId() |
|
177
|
|
|
* @method $this withManagedPrivateSpaceId($value) |
|
178
|
|
|
* @method string getZoneId() |
|
179
|
|
|
* @method $this withZoneId($value) |
|
180
|
|
|
* @method string getMaxResults() |
|
181
|
|
|
* @method $this withMaxResults($value) |
|
182
|
|
|
*/ |
|
183
|
|
|
class ListManagedRacks extends Rpc |
|
184
|
|
|
{ |
|
185
|
|
|
|
|
186
|
|
|
/** |
|
187
|
|
|
* @param array $managedRackId |
|
188
|
|
|
* |
|
189
|
|
|
* @return $this |
|
190
|
|
|
*/ |
|
191
|
|
|
public function withManagedRackId(array $managedRackId) |
|
192
|
|
|
{ |
|
193
|
|
|
$this->data['ManagedRackId'] = $managedRackId; |
|
194
|
|
|
foreach ($managedRackId as $i => $iValue) { |
|
195
|
|
|
$this->options['query']['ManagedRackId.' . ($i + 1)] = $iValue; |
|
196
|
|
|
} |
|
197
|
|
|
|
|
198
|
|
|
return $this; |
|
199
|
|
|
} |
|
200
|
|
|
} |
|
201
|
|
|
|
|
202
|
|
|
/** |
|
203
|
|
|
* @method string getResourceOwnerId() |
|
204
|
|
|
* @method $this withResourceOwnerId($value) |
|
205
|
|
|
* @method string getMode() |
|
206
|
|
|
* @method $this withMode($value) |
|
207
|
|
|
* @method string getResourceOwnerAccount() |
|
208
|
|
|
* @method $this withResourceOwnerAccount($value) |
|
209
|
|
|
* @method string getOwnerAccount() |
|
210
|
|
|
* @method $this withOwnerAccount($value) |
|
211
|
|
|
* @method string getManagedHostId() |
|
212
|
|
|
* @method $this withManagedHostId($value) |
|
213
|
|
|
* @method string getOwnerId() |
|
214
|
|
|
* @method $this withOwnerId($value) |
|
215
|
|
|
* @method string getManagedHostName() |
|
216
|
|
|
* @method $this withManagedHostName($value) |
|
217
|
|
|
*/ |
|
218
|
|
|
class UpdateManagedHostAttributes extends Rpc |
|
219
|
|
|
{ |
|
220
|
|
|
} |
|
221
|
|
|
|