@@ -1308,6 +1308,145 @@ public static function getService() {
13081308 )
13091309 )
13101310 ),
1311+ // 追加对象
1312+ 'AppendObject ' => array (
1313+ 'httpMethod ' => 'POST ' ,
1314+ 'uri ' => '/{Bucket}{/Key*}?append ' ,
1315+ 'class ' => 'Qcloud \\Cos \\Command ' ,
1316+ 'responseClass ' => 'AppendObjectOutput ' ,
1317+ 'responseType ' => 'model ' ,
1318+ 'data ' => array (
1319+ 'xmlRoot ' => array (
1320+ 'name ' => 'AppendObjectRequest '
1321+ )
1322+ ),
1323+ 'parameters ' => array (
1324+ 'Position ' => array (
1325+ 'type ' => 'integer ' ,
1326+ 'required ' => true ,
1327+ 'location ' => 'query ' ,
1328+ 'sentAs ' => 'position '
1329+ ),
1330+ 'ACL ' => array (
1331+ 'type ' => 'string ' ,
1332+ 'location ' => 'header ' ,
1333+ 'sentAs ' => 'x-cos-acl '
1334+ ),
1335+ 'Body ' => array (
1336+ 'required ' => true ,
1337+ 'type ' => array (
1338+ 'any '
1339+ ),
1340+ 'location ' => 'body '
1341+ ),
1342+ 'Bucket ' => array (
1343+ 'required ' => true ,
1344+ 'type ' => 'string ' ,
1345+ 'location ' => 'uri '
1346+ ),
1347+ 'CacheControl ' => array (
1348+ 'type ' => 'string ' ,
1349+ 'location ' => 'header ' ,
1350+ 'sentAs ' => 'Cache-Control '
1351+ ),
1352+ 'ContentDisposition ' => array (
1353+ 'type ' => 'string ' ,
1354+ 'location ' => 'header ' ,
1355+ 'sentAs ' => 'Content-Disposition '
1356+ ),
1357+ 'ContentEncoding ' => array (
1358+ 'type ' => 'string ' ,
1359+ 'location ' => 'header ' ,
1360+ 'sentAs ' => 'Content-Encoding '
1361+ ),
1362+ 'ContentLanguage ' => array (
1363+ 'type ' => 'string ' ,
1364+ 'location ' => 'header ' ,
1365+ 'sentAs ' => 'Content-Language '
1366+ ),
1367+ 'ContentLength ' => array (
1368+ 'type ' => 'numeric ' ,
1369+ 'minimum ' => 0 ,
1370+ 'location ' => 'header ' ,
1371+ 'sentAs ' => 'Content-Length '
1372+ ),
1373+ 'ContentMD5 ' => array (
1374+ 'type ' => array (
1375+ 'boolean '
1376+ ),
1377+ 'location ' => 'header ' ,
1378+ 'sentAs ' => 'Content-MD5 '
1379+ ),
1380+ 'ContentType ' => array (
1381+ 'type ' => 'string ' ,
1382+ 'location ' => 'header ' ,
1383+ 'sentAs ' => 'Content-Type '
1384+ ),
1385+ 'Key ' => array (
1386+ 'required ' => true ,
1387+ 'type ' => 'string ' ,
1388+ 'location ' => 'uri ' ,
1389+ 'minLength ' => 1 ,
1390+ 'filters ' => array (
1391+ 'Qcloud \\Cos \\Client::explodeKey '
1392+ )
1393+ ),
1394+ 'ServerSideEncryption ' => array (
1395+ 'type ' => 'string ' ,
1396+ 'location ' => 'header ' ,
1397+ 'sentAs ' => 'x-cos-server-side-encryption ' ,
1398+ ),
1399+ 'StorageClass ' => array (
1400+ 'type ' => 'string ' ,
1401+ 'location ' => 'header ' ,
1402+ 'sentAs ' => 'x-cos-storage-class ' ,
1403+ ),
1404+ 'WebsiteRedirectLocation ' => array (
1405+ 'type ' => 'string ' ,
1406+ 'location ' => 'header ' ,
1407+ 'sentAs ' => 'x-cos-website-redirect-location ' ,
1408+ ),
1409+ 'SSECustomerAlgorithm ' => array (
1410+ 'type ' => 'string ' ,
1411+ 'location ' => 'header ' ,
1412+ 'sentAs ' => 'x-cos-server-side-encryption-customer-algorithm ' ,
1413+ ),
1414+ 'SSECustomerKey ' => array (
1415+ 'type ' => 'string ' ,
1416+ 'location ' => 'header ' ,
1417+ 'sentAs ' => 'x-cos-server-side-encryption-customer-key ' ,
1418+ ),
1419+ 'SSECustomerKeyMD5 ' => array (
1420+ 'type ' => 'string ' ,
1421+ 'location ' => 'header ' ,
1422+ 'sentAs ' => 'x-cos-server-side-encryption-customer-key-MD5 ' ,
1423+ ),
1424+ 'SSEKMSKeyId ' => array (
1425+ 'type ' => 'string ' ,
1426+ 'location ' => 'header ' ,
1427+ 'sentAs ' => 'x-cos-server-side-encryption-cos-kms-key-id ' ,
1428+ ),
1429+ 'RequestPayer ' => array (
1430+ 'type ' => 'string ' ,
1431+ 'location ' => 'header ' ,
1432+ 'sentAs ' => 'x-cos-request-payer ' ,
1433+ ),
1434+ 'ACP ' => array (
1435+ 'type ' => 'object ' ,
1436+ 'additionalProperties ' => true ,
1437+ ),
1438+ 'PicOperations ' => array (
1439+ 'type ' => 'string ' ,
1440+ 'location ' => 'header ' ,
1441+ 'sentAs ' => 'Pic-Operations ' ,
1442+ ),
1443+ 'TrafficLimit ' => array (
1444+ 'type ' => 'integer ' ,
1445+ 'location ' => 'header ' ,
1446+ 'sentAs ' => 'x-cos-traffic-limit ' ,
1447+ )
1448+ )
1449+ ),
13111450 // 设置 COS 对象的访问权限信息(Access Control List, ACL)的方法.
13121451 'PutObjectAcl ' => array (
13131452 'httpMethod ' => 'PUT ' ,
@@ -4660,6 +4799,25 @@ public static function getService() {
46604799 ),
46614800 ),
46624801 ),
4802+ 'AppendObjectOutput ' => array (
4803+ 'type ' => 'object ' ,
4804+ 'additionalProperties ' => true ,
4805+ 'properties ' => array (
4806+ 'ETag ' => array (
4807+ 'type ' => 'string ' ,
4808+ 'location ' => 'header ' ,
4809+ ),
4810+ 'Position ' => array (
4811+ 'type ' => 'integer ' ,
4812+ 'location ' => 'header ' ,
4813+ 'sentAs ' => 'x-cos-next-append-position ' ,
4814+ ),
4815+ 'RequestId ' => array (
4816+ 'location ' => 'header ' ,
4817+ 'sentAs ' => 'x-cos-request-id ' ,
4818+ )
4819+ ),
4820+ ),
46634821 'PutObjectAclOutput ' => array (
46644822 'type ' => 'object ' ,
46654823 'additionalProperties ' => true ,
0 commit comments