1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Grace\V20220606; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method AnalyzeFile analyzeFile(array $options = []) |
9
|
|
|
* @method GetFile getFile(array $options = []) |
10
|
|
|
* @method UploadFileByOSS uploadFileByOSS(array $options = []) |
11
|
|
|
* @method UploadFileByURL uploadFileByURL(array $options = []) |
12
|
|
|
*/ |
13
|
|
|
class GraceApiResolver extends ApiResolver |
14
|
|
|
{ |
15
|
|
|
} |
16
|
|
|
|
17
|
|
|
class Roa extends \AlibabaCloud\Client\Resolver\Roa |
18
|
|
|
{ |
19
|
|
|
/** @var string */ |
20
|
|
|
public $product = 'grace'; |
21
|
|
|
|
22
|
|
|
/** @var string */ |
23
|
|
|
public $version = '2022-06-06'; |
24
|
|
|
|
25
|
|
|
/** @var string */ |
26
|
|
|
public $method = 'POST'; |
27
|
|
|
|
28
|
|
|
/** @var string */ |
29
|
|
|
public $serviceCode = 'grace'; |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @method string getKeepUnreachableObjects() |
34
|
|
|
* @method string getToken() |
35
|
|
|
* @method string getName() |
36
|
|
|
*/ |
37
|
|
|
class AnalyzeFile extends Roa |
38
|
|
|
{ |
39
|
|
|
/** @var string */ |
40
|
|
|
public $pathPattern = '/AnalyzeFile'; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @param string $value |
44
|
|
|
* |
45
|
|
|
* @return $this |
46
|
|
|
*/ |
47
|
|
|
public function withKeepUnreachableObjects($value) |
48
|
|
|
{ |
49
|
|
|
$this->data['KeepUnreachableObjects'] = $value; |
50
|
|
|
$this->options['query']['keepUnreachableObjects'] = $value; |
51
|
|
|
|
52
|
|
|
return $this; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @param string $value |
57
|
|
|
* |
58
|
|
|
* @return $this |
59
|
|
|
*/ |
60
|
|
|
public function withToken($value) |
61
|
|
|
{ |
62
|
|
|
$this->data['Token'] = $value; |
63
|
|
|
$this->options['query']['token'] = $value; |
64
|
|
|
|
65
|
|
|
return $this; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @param string $value |
70
|
|
|
* |
71
|
|
|
* @return $this |
72
|
|
|
*/ |
73
|
|
|
public function withName($value) |
74
|
|
|
{ |
75
|
|
|
$this->data['Name'] = $value; |
76
|
|
|
$this->options['query']['name'] = $value; |
77
|
|
|
|
78
|
|
|
return $this; |
79
|
|
|
} |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @method string getToken() |
84
|
|
|
* @method string getName() |
85
|
|
|
*/ |
86
|
|
|
class GetFile extends Roa |
87
|
|
|
{ |
88
|
|
|
/** @var string */ |
89
|
|
|
public $pathPattern = '/GetFile'; |
90
|
|
|
|
91
|
|
|
/** @var string */ |
92
|
|
|
public $method = 'GET'; |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @param string $value |
96
|
|
|
* |
97
|
|
|
* @return $this |
98
|
|
|
*/ |
99
|
|
|
public function withToken($value) |
100
|
|
|
{ |
101
|
|
|
$this->data['Token'] = $value; |
102
|
|
|
$this->options['query']['token'] = $value; |
103
|
|
|
|
104
|
|
|
return $this; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @param string $value |
109
|
|
|
* |
110
|
|
|
* @return $this |
111
|
|
|
*/ |
112
|
|
|
public function withName($value) |
113
|
|
|
{ |
114
|
|
|
$this->data['Name'] = $value; |
115
|
|
|
$this->options['query']['name'] = $value; |
116
|
|
|
|
117
|
|
|
return $this; |
118
|
|
|
} |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @method string getObjectName() |
123
|
|
|
* @method string getType() |
124
|
|
|
* @method string getEndpoint() |
125
|
|
|
* @method string getBucketName() |
126
|
|
|
* @method string getDisplayName() |
127
|
|
|
*/ |
128
|
|
|
class UploadFileByOSS extends Roa |
129
|
|
|
{ |
130
|
|
|
/** @var string */ |
131
|
|
|
public $pathPattern = '/UploadFileByOSS'; |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @param string $value |
135
|
|
|
* |
136
|
|
|
* @return $this |
137
|
|
|
*/ |
138
|
|
|
public function withObjectName($value) |
139
|
|
|
{ |
140
|
|
|
$this->data['ObjectName'] = $value; |
141
|
|
|
$this->options['query']['objectName'] = $value; |
142
|
|
|
|
143
|
|
|
return $this; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param string $value |
148
|
|
|
* |
149
|
|
|
* @return $this |
150
|
|
|
*/ |
151
|
|
|
public function withType($value) |
152
|
|
|
{ |
153
|
|
|
$this->data['Type'] = $value; |
154
|
|
|
$this->options['query']['type'] = $value; |
155
|
|
|
|
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @param string $value |
161
|
|
|
* |
162
|
|
|
* @return $this |
163
|
|
|
*/ |
164
|
|
|
public function withEndpoint($value) |
165
|
|
|
{ |
166
|
|
|
$this->data['Endpoint'] = $value; |
167
|
|
|
$this->options['query']['endpoint'] = $value; |
168
|
|
|
|
169
|
|
|
return $this; |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* @param string $value |
174
|
|
|
* |
175
|
|
|
* @return $this |
176
|
|
|
*/ |
177
|
|
|
public function withBucketName($value) |
178
|
|
|
{ |
179
|
|
|
$this->data['BucketName'] = $value; |
180
|
|
|
$this->options['query']['bucketName'] = $value; |
181
|
|
|
|
182
|
|
|
return $this; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @param string $value |
187
|
|
|
* |
188
|
|
|
* @return $this |
189
|
|
|
*/ |
190
|
|
|
public function withDisplayName($value) |
191
|
|
|
{ |
192
|
|
|
$this->data['DisplayName'] = $value; |
193
|
|
|
$this->options['query']['displayName'] = $value; |
194
|
|
|
|
195
|
|
|
return $this; |
196
|
|
|
} |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* @method string getType() |
201
|
|
|
* @method string getUrl() |
202
|
|
|
* @method string getDisplayName() |
203
|
|
|
*/ |
204
|
|
|
class UploadFileByURL extends Roa |
205
|
|
|
{ |
206
|
|
|
/** @var string */ |
207
|
|
|
public $pathPattern = '/UploadFileByURL'; |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @param string $value |
211
|
|
|
* |
212
|
|
|
* @return $this |
213
|
|
|
*/ |
214
|
|
|
public function withType($value) |
215
|
|
|
{ |
216
|
|
|
$this->data['Type'] = $value; |
217
|
|
|
$this->options['query']['type'] = $value; |
218
|
|
|
|
219
|
|
|
return $this; |
220
|
|
|
} |
221
|
|
|
|
222
|
|
|
/** |
223
|
|
|
* @param string $value |
224
|
|
|
* |
225
|
|
|
* @return $this |
226
|
|
|
*/ |
227
|
|
|
public function withUrl($value) |
228
|
|
|
{ |
229
|
|
|
$this->data['Url'] = $value; |
230
|
|
|
$this->options['query']['url'] = $value; |
231
|
|
|
|
232
|
|
|
return $this; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* @param string $value |
237
|
|
|
* |
238
|
|
|
* @return $this |
239
|
|
|
*/ |
240
|
|
|
public function withDisplayName($value) |
241
|
|
|
{ |
242
|
|
|
$this->data['DisplayName'] = $value; |
243
|
|
|
$this->options['query']['displayName'] = $value; |
244
|
|
|
|
245
|
|
|
return $this; |
246
|
|
|
} |
247
|
|
|
} |
248
|
|
|
|