1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\ProductCatalog\V20180918; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Roa; |
6
|
|
|
|
7
|
|
|
class V20180918Roa extends Roa |
8
|
|
|
{ |
9
|
|
|
/** @var string */ |
10
|
|
|
public $product = 'ProductCatalog'; |
11
|
|
|
|
12
|
|
|
/** @var string */ |
13
|
|
|
public $version = '2018-09-18'; |
14
|
|
|
} |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @method string getProductId() |
18
|
|
|
* @method $this withProductId($value) |
19
|
|
|
* @method string getLanguage() |
20
|
|
|
*/ |
21
|
|
|
class GetProduct extends V20180918Roa |
22
|
|
|
{ |
23
|
|
|
/** @var string */ |
24
|
|
|
public $pathPattern = '/products/v1/public/[ProductId]/'; |
25
|
|
|
|
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @param string $value |
29
|
|
|
* |
30
|
|
|
* @return $this |
31
|
|
|
*/ |
32
|
|
|
public function withLanguage($value) |
33
|
|
|
{ |
34
|
|
|
$this->data['Language'] = $value; |
35
|
|
|
$this->options['query']['Language'] = $value; |
36
|
|
|
|
37
|
|
|
return $this; |
38
|
|
|
} |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @method string getLimit() |
43
|
|
|
* @method string getLanguage() |
44
|
|
|
* @method string getPage() |
45
|
|
|
*/ |
46
|
|
|
class ListProducts extends V20180918Roa |
47
|
|
|
{ |
48
|
|
|
/** @var string */ |
49
|
|
|
public $pathPattern = '/products/v1/public/'; |
50
|
|
|
|
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @param string $value |
54
|
|
|
* |
55
|
|
|
* @return $this |
56
|
|
|
*/ |
57
|
|
|
public function withLimit($value) |
58
|
|
|
{ |
59
|
|
|
$this->data['Limit'] = $value; |
60
|
|
|
$this->options['query']['Limit'] = $value; |
61
|
|
|
|
62
|
|
|
return $this; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @param string $value |
67
|
|
|
* |
68
|
|
|
* @return $this |
69
|
|
|
*/ |
70
|
|
|
public function withLanguage($value) |
71
|
|
|
{ |
72
|
|
|
$this->data['Language'] = $value; |
73
|
|
|
$this->options['query']['Language'] = $value; |
74
|
|
|
|
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @param string $value |
80
|
|
|
* |
81
|
|
|
* @return $this |
82
|
|
|
*/ |
83
|
|
|
public function withPage($value) |
84
|
|
|
{ |
85
|
|
|
$this->data['Page'] = $value; |
86
|
|
|
$this->options['query']['Page'] = $value; |
87
|
|
|
|
88
|
|
|
return $this; |
89
|
|
|
} |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @method string getVersionId() |
94
|
|
|
* @method $this withVersionId($value) |
95
|
|
|
* @method string getProductId() |
96
|
|
|
* @method $this withProductId($value) |
97
|
|
|
* @method string getLimit() |
98
|
|
|
* @method string getLanguage() |
99
|
|
|
* @method string getPage() |
100
|
|
|
*/ |
101
|
|
|
class ListApis extends V20180918Roa |
102
|
|
|
{ |
103
|
|
|
/** @var string */ |
104
|
|
|
public $pathPattern = '/products/v1/public/[ProductId]/versions/[VersionId]/apis/'; |
105
|
|
|
|
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @param string $value |
109
|
|
|
* |
110
|
|
|
* @return $this |
111
|
|
|
*/ |
112
|
|
|
public function withLimit($value) |
113
|
|
|
{ |
114
|
|
|
$this->data['Limit'] = $value; |
115
|
|
|
$this->options['query']['Limit'] = $value; |
116
|
|
|
|
117
|
|
|
return $this; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @param string $value |
122
|
|
|
* |
123
|
|
|
* @return $this |
124
|
|
|
*/ |
125
|
|
|
public function withLanguage($value) |
126
|
|
|
{ |
127
|
|
|
$this->data['Language'] = $value; |
128
|
|
|
$this->options['query']['Language'] = $value; |
129
|
|
|
|
130
|
|
|
return $this; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @param string $value |
135
|
|
|
* |
136
|
|
|
* @return $this |
137
|
|
|
*/ |
138
|
|
|
public function withPage($value) |
139
|
|
|
{ |
140
|
|
|
$this->data['Page'] = $value; |
141
|
|
|
$this->options['query']['Page'] = $value; |
142
|
|
|
|
143
|
|
|
return $this; |
144
|
|
|
} |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* @method string getVersionId() |
149
|
|
|
* @method $this withVersionId($value) |
150
|
|
|
* @method string getProductId() |
151
|
|
|
* @method $this withProductId($value) |
152
|
|
|
* @method string getReader() |
153
|
|
|
* @method string getLanguage() |
154
|
|
|
* @method string getApiId() |
155
|
|
|
* @method $this withApiId($value) |
156
|
|
|
*/ |
157
|
|
|
class GetApi extends V20180918Roa |
158
|
|
|
{ |
159
|
|
|
/** @var string */ |
160
|
|
|
public $pathPattern = '/products/v1/public/[ProductId]/versions/[VersionId]/apis/[ApiId]'; |
161
|
|
|
|
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* @param string $value |
165
|
|
|
* |
166
|
|
|
* @return $this |
167
|
|
|
*/ |
168
|
|
|
public function withReader($value) |
169
|
|
|
{ |
170
|
|
|
$this->data['Reader'] = $value; |
171
|
|
|
$this->options['query']['Reader'] = $value; |
172
|
|
|
|
173
|
|
|
return $this; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @param string $value |
178
|
|
|
* |
179
|
|
|
* @return $this |
180
|
|
|
*/ |
181
|
|
|
public function withLanguage($value) |
182
|
|
|
{ |
183
|
|
|
$this->data['Language'] = $value; |
184
|
|
|
$this->options['query']['Language'] = $value; |
185
|
|
|
|
186
|
|
|
return $this; |
187
|
|
|
} |
188
|
|
|
} |
189
|
|
|
|