@@ -8,7 +8,7 @@ class Api extends AbstractApi
8
8
{
9
9
public function __construct ()
10
10
{
11
- $ this ->params = new Params () ;
11
+ $ this ->params = new Params ;
12
12
}
13
13
14
14
public function getAccount ()
@@ -17,13 +17,13 @@ public function getAccount()
17
17
'method ' => 'GET ' ,
18
18
'path ' => '' ,
19
19
'params ' => [
20
- 'format ' => $ this ->params ->format ,
20
+ 'format ' => $ this ->params ->format () ,
21
21
'limit ' => $ this ->params ->limit (),
22
22
'marker ' => $ this ->params ->marker (),
23
- 'endMarker ' => $ this ->params ->endMarker ,
24
- 'prefix ' => $ this ->params ->prefix ,
25
- 'delimiter ' => $ this ->params ->delimiter ,
26
- 'newest ' => $ this ->params ->newest ,
23
+ 'endMarker ' => $ this ->params ->endMarker () ,
24
+ 'prefix ' => $ this ->params ->prefix () ,
25
+ 'delimiter ' => $ this ->params ->delimiter () ,
26
+ 'newest ' => $ this ->params ->newest () ,
27
27
],
28
28
];
29
29
}
@@ -57,15 +57,15 @@ public function getContainer()
57
57
'method ' => 'GET ' ,
58
58
'path ' => '{name} ' ,
59
59
'params ' => [
60
- 'name ' => $ this ->params ->containerName ,
61
- 'format ' => $ this ->params ->format ,
60
+ 'name ' => $ this ->params ->containerName () ,
61
+ 'format ' => $ this ->params ->format () ,
62
62
'limit ' => $ this ->params ->limit (),
63
63
'marker ' => $ this ->params ->marker (),
64
- 'endMarker ' => $ this ->params ->endMarker ,
65
- 'prefix ' => $ this ->params ->prefix ,
66
- 'path ' => $ this ->params ->path ,
67
- 'delimiter ' => $ this ->params ->delimiter ,
68
- 'newest ' => $ this ->params ->newest ,
64
+ 'endMarker ' => $ this ->params ->endMarker () ,
65
+ 'prefix ' => $ this ->params ->prefix () ,
66
+ 'path ' => $ this ->params ->path () ,
67
+ 'delimiter ' => $ this ->params ->delimiter () ,
68
+ 'newest ' => $ this ->params ->newest () ,
69
69
],
70
70
];
71
71
}
@@ -76,17 +76,17 @@ public function putContainer()
76
76
'method ' => 'PUT ' ,
77
77
'path ' => '{name} ' ,
78
78
'params ' => [
79
- 'name ' => $ this ->params ->containerName ,
79
+ 'name ' => $ this ->params ->containerName () ,
80
80
'readAccess ' => $ this ->params ->readAccess ('container ' ),
81
81
'writeAccess ' => $ this ->params ->writeAccess ('container ' ),
82
82
'metadata ' => $ this ->params ->metadata ('container ' ),
83
83
'syncTo ' => $ this ->params ->syncTo (),
84
84
'syncKey ' => $ this ->params ->syncKey (),
85
- 'versionsLocation ' => $ this ->params ->versionsLocation ,
86
- 'bytesQuota ' => $ this ->params ->bytesQuota ,
87
- 'countQuota ' => $ this ->params ->countQuota ,
88
- 'webDirectoryType ' => $ this ->params ->webDirType ,
89
- 'detectContentType ' => $ this ->params ->detectContentType ,
85
+ 'versionsLocation ' => $ this ->params ->versionsLocation () ,
86
+ 'bytesQuota ' => $ this ->params ->bytesQuota () ,
87
+ 'countQuota ' => $ this ->params ->countQuota () ,
88
+ 'webDirectoryType ' => $ this ->params ->webDirType () ,
89
+ 'detectContentType ' => $ this ->params ->detectContentType () ,
90
90
],
91
91
];
92
92
}
@@ -97,7 +97,7 @@ public function deleteContainer()
97
97
'method ' => 'DELETE ' ,
98
98
'path ' => '{name} ' ,
99
99
'params ' => [
100
- 'name ' => $ this ->params ->containerName ,
100
+ 'name ' => $ this ->params ->containerName () ,
101
101
],
102
102
];
103
103
}
@@ -108,19 +108,19 @@ public function postContainer()
108
108
'method ' => 'POST ' ,
109
109
'path ' => '{name} ' ,
110
110
'params ' => [
111
- 'name ' => $ this ->params ->containerName ,
111
+ 'name ' => $ this ->params ->containerName () ,
112
112
'readAccess ' => $ this ->params ->readAccess ('container ' ),
113
113
'writeAccess ' => $ this ->params ->writeAccess ('container ' ),
114
114
'metadata ' => $ this ->params ->metadata ('container ' ),
115
115
'removeMetadata ' => $ this ->params ->metadata ('container ' , true ),
116
116
'syncTo ' => $ this ->params ->syncTo (),
117
117
'syncKey ' => $ this ->params ->syncKey (),
118
- 'versionsLocation ' => $ this ->params ->versionsLocation ,
119
- 'removeVersionsLocation ' => $ this ->params ->removeVersionsLocation ,
120
- 'bytesQuota ' => $ this ->params ->bytesQuota ,
121
- 'countQuota ' => $ this ->params ->countQuota ,
122
- 'webDirectoryType ' => $ this ->params ->webDirType ,
123
- 'detectContentType ' => $ this ->params ->detectContentType ,
118
+ 'versionsLocation ' => $ this ->params ->versionsLocation () ,
119
+ 'removeVersionsLocation ' => $ this ->params ->removeVersionsLocation () ,
120
+ 'bytesQuota ' => $ this ->params ->bytesQuota () ,
121
+ 'countQuota ' => $ this ->params ->countQuota () ,
122
+ 'webDirectoryType ' => $ this ->params ->webDirType () ,
123
+ 'detectContentType ' => $ this ->params ->detectContentType () ,
124
124
],
125
125
];
126
126
}
@@ -130,23 +130,23 @@ public function headContainer()
130
130
return [
131
131
'method ' => 'HEAD ' ,
132
132
'path ' => '{name} ' ,
133
- 'params ' => ['name ' => $ this ->params ->containerName ],
133
+ 'params ' => ['name ' => $ this ->params ->containerName () ],
134
134
];
135
135
}
136
136
137
137
public function getObject ()
138
138
{
139
139
return [
140
140
'method ' => 'GET ' ,
141
- 'path ' => '{containerName}/{name} ' ,
141
+ 'path ' => '{containerName}/{+ name} ' ,
142
142
'params ' => [
143
- 'containerName ' => $ this ->params ->containerName ,
144
- 'name ' => $ this ->params ->objectName ,
145
- 'range ' => $ this ->params ->range ,
146
- 'ifMatch ' => $ this ->params ->ifMatch ,
147
- 'ifNoneMatch ' => $ this ->params ->ifNoneMatch ,
148
- 'ifModifiedSince ' => $ this ->params ->ifModifiedSince ,
149
- 'ifUnmodifiedSince ' => $ this ->params ->ifUnmodifiedSince ,
143
+ 'containerName ' => $ this ->params ->containerName () ,
144
+ 'name ' => $ this ->params ->objectName () ,
145
+ 'range ' => $ this ->params ->range () ,
146
+ 'ifMatch ' => $ this ->params ->ifMatch () ,
147
+ 'ifNoneMatch ' => $ this ->params ->ifNoneMatch () ,
148
+ 'ifModifiedSince ' => $ this ->params ->ifModifiedSince () ,
149
+ 'ifUnmodifiedSince ' => $ this ->params ->ifUnmodifiedSince () ,
150
150
],
151
151
];
152
152
}
@@ -155,21 +155,23 @@ public function putObject()
155
155
{
156
156
return [
157
157
'method ' => 'PUT ' ,
158
- 'path ' => '{containerName}/{name} ' ,
158
+ 'path ' => '{containerName}/{+ name} ' ,
159
159
'params ' => [
160
- 'containerName ' => $ this ->params ->containerName ,
161
- 'name ' => $ this ->params ->objectName ,
162
- 'content ' => $ this ->params ->content ,
163
- 'contentType ' => $ this ->params ->contentType ,
164
- 'detectContentType ' => $ this ->params ->detectContentType ,
165
- 'copyFrom ' => $ this ->params ->copyFrom ,
166
- 'ETag ' => $ this ->params ->etag ,
167
- 'contentDisposition ' => $ this ->params ->contentDisposition ,
168
- 'contentEncoding ' => $ this ->params ->contentEncoding ,
169
- 'deleteAt ' => $ this ->params ->deleteAt ,
170
- 'deleteAfter ' => $ this ->params ->deleteAfter ,
160
+ 'containerName ' => $ this ->params ->containerName (),
161
+ 'name ' => $ this ->params ->objectName (),
162
+ 'content ' => $ this ->params ->content (),
163
+ 'stream ' => $ this ->params ->stream (),
164
+ 'contentType ' => $ this ->params ->contentType (),
165
+ 'detectContentType ' => $ this ->params ->detectContentType (),
166
+ 'copyFrom ' => $ this ->params ->copyFrom (),
167
+ 'ETag ' => $ this ->params ->etag (),
168
+ 'contentDisposition ' => $ this ->params ->contentDisposition (),
169
+ 'contentEncoding ' => $ this ->params ->contentEncoding (),
170
+ 'deleteAt ' => $ this ->params ->deleteAt (),
171
+ 'deleteAfter ' => $ this ->params ->deleteAfter (),
171
172
'metadata ' => $ this ->params ->metadata ('object ' ),
172
- 'ifNoneMatch ' => $ this ->params ->ifNoneMatch ,
173
+ 'ifNoneMatch ' => $ this ->params ->ifNoneMatch (),
174
+ 'objectManifest ' => $ this ->params ->objectManifest (),
173
175
],
174
176
];
175
177
}
@@ -178,16 +180,16 @@ public function copyObject()
178
180
{
179
181
return [
180
182
'method ' => 'COPY ' ,
181
- 'path ' => '{containerName}/{name} ' ,
183
+ 'path ' => '{containerName}/{+ name} ' ,
182
184
'params ' => [
183
- 'containerName ' => $ this ->params ->containerName ,
184
- 'name ' => $ this ->params ->objectName ,
185
- 'destination ' => $ this ->params ->destination ,
186
- 'contentType ' => $ this ->params ->contentType ,
187
- 'contentDisposition ' => $ this ->params ->contentDisposition ,
188
- 'contentEncoding ' => $ this ->params ->contentEncoding ,
185
+ 'containerName ' => $ this ->params ->containerName () ,
186
+ 'name ' => $ this ->params ->objectName () ,
187
+ 'destination ' => $ this ->params ->destination () ,
188
+ 'contentType ' => $ this ->params ->contentType () ,
189
+ 'contentDisposition ' => $ this ->params ->contentDisposition () ,
190
+ 'contentEncoding ' => $ this ->params ->contentEncoding () ,
189
191
'metadata ' => $ this ->params ->metadata ('object ' ),
190
- 'freshMetadata ' => $ this ->params ->freshMetadata ,
192
+ 'freshMetadata ' => $ this ->params ->freshMetadata () ,
191
193
],
192
194
];
193
195
}
@@ -196,10 +198,10 @@ public function deleteObject()
196
198
{
197
199
return [
198
200
'method ' => 'DELETE ' ,
199
- 'path ' => '{containerName}/{name} ' ,
201
+ 'path ' => '{containerName}/{+ name} ' ,
200
202
'params ' => [
201
- 'containerName ' => $ this ->params ->containerName ,
202
- 'name ' => $ this ->params ->objectName ,
203
+ 'containerName ' => $ this ->params ->containerName () ,
204
+ 'name ' => $ this ->params ->objectName () ,
203
205
],
204
206
];
205
207
}
@@ -208,10 +210,10 @@ public function headObject()
208
210
{
209
211
return [
210
212
'method ' => 'HEAD ' ,
211
- 'path ' => '{containerName}/{name} ' ,
213
+ 'path ' => '{containerName}/{+ name} ' ,
212
214
'params ' => [
213
- 'containerName ' => $ this ->params ->containerName ,
214
- 'name ' => $ this ->params ->objectName ,
215
+ 'containerName ' => $ this ->params ->containerName () ,
216
+ 'name ' => $ this ->params ->objectName () ,
215
217
],
216
218
];
217
219
}
@@ -220,18 +222,18 @@ public function postObject()
220
222
{
221
223
return [
222
224
'method ' => 'POST ' ,
223
- 'path ' => '{containerName}/{name} ' ,
225
+ 'path ' => '{containerName}/{+ name} ' ,
224
226
'params ' => [
225
- 'containerName ' => $ this ->params ->containerName ,
226
- 'name ' => $ this ->params ->objectName ,
227
+ 'containerName ' => $ this ->params ->containerName () ,
228
+ 'name ' => $ this ->params ->objectName () ,
227
229
'metadata ' => $ this ->params ->metadata ('object ' ),
228
230
'removeMetadata ' => $ this ->params ->metadata ('object ' , true ),
229
- 'deleteAt ' => $ this ->params ->deleteAt ,
230
- 'deleteAfter ' => $ this ->params ->deleteAfter ,
231
- 'contentDisposition ' => $ this ->params ->contentDisposition ,
232
- 'contentEncoding ' => $ this ->params ->contentEncoding ,
233
- 'contentType ' => $ this ->params ->contentType ,
234
- 'detectContentType ' => $ this ->params ->detectContentType ,
231
+ 'deleteAt ' => $ this ->params ->deleteAt () ,
232
+ 'deleteAfter ' => $ this ->params ->deleteAfter () ,
233
+ 'contentDisposition ' => $ this ->params ->contentDisposition () ,
234
+ 'contentEncoding ' => $ this ->params ->contentEncoding () ,
235
+ 'contentType ' => $ this ->params ->contentType () ,
236
+ 'detectContentType ' => $ this ->params ->detectContentType () ,
235
237
],
236
238
];
237
239
}
0 commit comments