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