@@ -13,7 +13,7 @@ public static function getService() {
13
13
'operations ' => array (
14
14
'ListBuckets ' => array (
15
15
'httpMethod ' => 'GET ' ,
16
- 'uri ' => '/ ' ,
16
+ 'uri ' => '/ASDWQdsawqefdQWESDFFSDFSADCXSVSDQWERTREGERTYTHDF ' ,
17
17
'class ' => 'Qcloud \\Cos \\Command ' ,
18
18
'responseClass ' => 'ListBucketsOutput ' ,
19
19
'responseType ' => 'model ' ,
@@ -370,6 +370,167 @@ public static function getService() {
370
370
'sentAs ' => 'x-cos-meta- ' ,
371
371
'additionalProperties ' => array (
372
372
'type ' => 'string ' )))),
373
+ 'PutObjectAcl ' => array (
374
+ 'httpMethod ' => 'PUT ' ,
375
+ 'uri ' => '/{Bucket}{/Key*}?acl ' ,
376
+ 'class ' => 'Qcloud \\Cos \\Command ' ,
377
+ 'responseClass ' => 'PutObjectAclOutput ' ,
378
+ 'responseType ' => 'model ' ,
379
+ 'data ' => array (
380
+ 'xmlRoot ' => array (
381
+ 'name ' => 'AccessControlPolicy ' ,
382
+ ),
383
+ ),
384
+ 'parameters ' => array (
385
+ 'ACL ' => array (
386
+ 'type ' => 'string ' ,
387
+ 'location ' => 'header ' ,
388
+ 'sentAs ' => 'x-cos-acl ' ,
389
+ ),
390
+ 'Grants ' => array (
391
+ 'type ' => 'array ' ,
392
+ 'location ' => 'xml ' ,
393
+ 'sentAs ' => 'AccessControlList ' ,
394
+ 'items ' => array (
395
+ 'name ' => 'Grant ' ,
396
+ 'type ' => 'object ' ,
397
+ 'properties ' => array (
398
+ 'Grantee ' => array (
399
+ 'type ' => 'object ' ,
400
+ 'properties ' => array (
401
+ 'DisplayName ' => array (
402
+ 'type ' => 'string ' ),
403
+ /*
404
+ 'EmailAddress' => array(
405
+ 'type' => 'string'),
406
+ */
407
+ 'ID ' => array (
408
+ 'type ' => 'string ' ),
409
+ /*
410
+ 'Type' => array(
411
+ 'type' => 'string',
412
+ 'sentAs' => 'xsi:type',
413
+ 'data' => array(
414
+ 'xmlAttribute' => true,
415
+ 'xmlNamespace' => 'http://www.w3.org/2001/XMLSchema-instance')),
416
+ */
417
+ /*'URI' => array(
418
+ 'type' => 'string') */ )),
419
+ 'Permission ' => array (
420
+ 'type ' => 'string ' ,
421
+ ),
422
+ ),
423
+ ),
424
+ ),
425
+ 'Owner ' => array (
426
+ 'type ' => 'object ' ,
427
+ 'location ' => 'xml ' ,
428
+ 'properties ' => array (
429
+ 'DisplayName ' => array (
430
+ 'type ' => 'string ' ,
431
+ ),
432
+ 'ID ' => array (
433
+ 'type ' => 'string ' ,
434
+ ),
435
+ ),
436
+ ),
437
+ 'Bucket ' => array (
438
+ 'required ' => true ,
439
+ 'type ' => 'string ' ,
440
+ 'location ' => 'uri ' ,
441
+ ),
442
+ 'GrantFullControl ' => array (
443
+ 'type ' => 'string ' ,
444
+ 'location ' => 'header ' ,
445
+ 'sentAs ' => 'x-cos-grant-full-control ' ,
446
+ ),
447
+ 'GrantRead ' => array (
448
+ 'type ' => 'string ' ,
449
+ 'location ' => 'header ' ,
450
+ 'sentAs ' => 'x-cos-grant-read ' ,
451
+ ),
452
+ 'GrantReadACP ' => array (
453
+ 'type ' => 'string ' ,
454
+ 'location ' => 'header ' ,
455
+ 'sentAs ' => 'x-cos-grant-read-acp ' ,
456
+ ),
457
+ 'GrantWrite ' => array (
458
+ 'type ' => 'string ' ,
459
+ 'location ' => 'header ' ,
460
+ 'sentAs ' => 'x-cos-grant-write ' ,
461
+ ),
462
+ 'GrantWriteACP ' => array (
463
+ 'type ' => 'string ' ,
464
+ 'location ' => 'header ' ,
465
+ 'sentAs ' => 'x-cos-grant-write-acp ' ,
466
+ ),
467
+ 'Key ' => array (
468
+ 'required ' => true ,
469
+ 'type ' => 'string ' ,
470
+ 'location ' => 'uri ' ,
471
+ 'minLength ' => 1 ,
472
+ #!!!!!!!!!!!!!
473
+ // 'filters' => array(
474
+ // 'Aws\\S3\\S3Client::explodeKey',
475
+ // ),
476
+ ),
477
+ 'RequestPayer ' => array (
478
+ 'type ' => 'string ' ,
479
+ 'location ' => 'header ' ,
480
+ 'sentAs ' => 'x-cos-request-payer ' ,
481
+ ),
482
+ 'ACP ' => array (
483
+ 'type ' => 'object ' ,
484
+ 'additionalProperties ' => true ,
485
+ ),
486
+ ),
487
+ 'errorResponses ' => array (
488
+ array (
489
+ 'reason ' => 'The specified key does not exist. ' ,
490
+ 'class ' => 'NoSuchKeyException ' ,
491
+ ),
492
+ ),
493
+ ),
494
+ 'GetObjectAcl ' => array (
495
+ 'httpMethod ' => 'GET ' ,
496
+ 'uri ' => '/{Bucket}{/Key*}?acl ' ,
497
+ 'class ' => 'Qcloud \\Cos \\Command ' ,
498
+ 'responseClass ' => 'GetObjectAclOutput ' ,
499
+ 'responseType ' => 'model ' ,
500
+ 'parameters ' => array (
501
+ 'Bucket ' => array (
502
+ 'required ' => true ,
503
+ 'type ' => 'string ' ,
504
+ 'location ' => 'uri ' ,
505
+ ),
506
+ 'Key ' => array (
507
+ 'required ' => true ,
508
+ 'type ' => 'string ' ,
509
+ 'location ' => 'uri ' ,
510
+ 'minLength ' => 1 ,
511
+ ),
512
+ 'VersionId ' => array (
513
+ 'type ' => 'string ' ,
514
+ 'location ' => 'query ' ,
515
+ 'sentAs ' => 'versionId ' ,
516
+ ),
517
+ 'RequestPayer ' => array (
518
+ 'type ' => 'string ' ,
519
+ 'location ' => 'header ' ,
520
+ 'sentAs ' => 'x-amz-request-payer ' ,
521
+ ),
522
+ 'command.expects ' => array (
523
+ 'static ' => true ,
524
+ 'default ' => 'application/xml ' ,
525
+ ),
526
+ ),
527
+ 'errorResponses ' => array (
528
+ array (
529
+ 'reason ' => 'The specified key does not exist. ' ,
530
+ 'class ' => 'NoSuchKeyException ' ,
531
+ ),
532
+ ),
533
+ ),
373
534
'CreateMultipartUpload ' => array (
374
535
'httpMethod ' => 'POST ' ,
375
536
'uri ' => '/{Bucket}{/Key*}?uploads ' ,
@@ -742,6 +903,69 @@ public static function getService() {
742
903
'RequestId ' => array (
743
904
'location ' => 'header ' ,
744
905
'sentAs ' => 'x-cos-request-id ' ))),
906
+ 'GetObjectAclOutput ' => array (
907
+ 'type ' => 'object ' ,
908
+ 'additionalProperties ' => true ,
909
+ 'properties ' => array (
910
+ 'Owner ' => array (
911
+ 'type ' => 'object ' ,
912
+ 'location ' => 'xml ' ,
913
+ 'properties ' => array (
914
+ 'DisplayName ' => array (
915
+ 'type ' => 'string ' ,
916
+ ),
917
+ 'ID ' => array (
918
+ 'type ' => 'string ' ,
919
+ ),
920
+ ),
921
+ ),
922
+ 'Grants ' => array (
923
+ 'type ' => 'array ' ,
924
+ 'location ' => 'xml ' ,
925
+ 'sentAs ' => 'AccessControlList ' ,
926
+ 'items ' => array (
927
+ 'name ' => 'Grant ' ,
928
+ 'type ' => 'object ' ,
929
+ 'sentAs ' => 'Grant ' ,
930
+ 'properties ' => array (
931
+ 'Grantee ' => array (
932
+ 'type ' => 'object ' ,
933
+ 'properties ' => array (
934
+ 'DisplayName ' => array (
935
+ 'type ' => 'string ' ),
936
+ /*
937
+ 'EmailAddress' => array(
938
+ 'type' => 'string'),
939
+ */
940
+ 'ID ' => array (
941
+ 'type ' => 'string ' ),
942
+ /*
943
+ 'Type' => array(
944
+ 'type' => 'string',
945
+ 'sentAs' => 'xsi:type',
946
+ 'data' => array(
947
+ 'xmlAttribute' => true,
948
+ 'xmlNamespace' => 'http://www.w3.org/2001/XMLSchema-instance')),
949
+ */
950
+ /*'URI' => array(
951
+ 'type' => 'string') */ )),
952
+ 'Permission ' => array (
953
+ 'type ' => 'string ' ,
954
+ ),
955
+ ),
956
+ ),
957
+ ),
958
+ 'RequestCharged ' => array (
959
+ 'type ' => 'string ' ,
960
+ 'location ' => 'header ' ,
961
+ 'sentAs ' => 'x-cos-request-charged ' ,
962
+ ),
963
+ 'RequestId ' => array (
964
+ 'location ' => 'header ' ,
965
+ 'sentAs ' => 'x-cos-request-id ' ,
966
+ ),
967
+ ),
968
+ ),
745
969
'UploadPartOutput ' => array (
746
970
'type ' => 'object ' ,
747
971
'additionalProperties ' => true ,
@@ -771,6 +995,21 @@ public static function getService() {
771
995
'sentAs ' => 'x-cos-request-id ' ),
772
996
'ObjectURL ' => array (
773
997
))),
998
+ 'PutObjectAclOutput ' => array (
999
+ 'type ' => 'object ' ,
1000
+ 'additionalProperties ' => true ,
1001
+ 'properties ' => array (
1002
+ 'RequestCharged ' => array (
1003
+ 'type ' => 'string ' ,
1004
+ 'location ' => 'header ' ,
1005
+ 'sentAs ' => 'x-cos-request-charged ' ,
1006
+ ),
1007
+ 'RequestId ' => array (
1008
+ 'location ' => 'header ' ,
1009
+ 'sentAs ' => 'x-cos-request-id ' ,
1010
+ ),
1011
+ ),
1012
+ ),
774
1013
'ListPartsOutput ' => array (
775
1014
'type ' => 'object ' ,
776
1015
'additionalProperties ' => true ,
@@ -905,6 +1144,45 @@ public static function getService() {
905
1144
'RequestId ' => array (
906
1145
'location ' => 'header ' ,
907
1146
'sentAs ' => 'x-cos-request-id ' ))),
1147
+ 'ListBucketsOutput ' => array (
1148
+ 'type ' => 'object ' ,
1149
+ 'additionalProperties ' => true ,
1150
+ 'properties ' => array (
1151
+ 'Buckets ' => array (
1152
+ 'type ' => 'array ' ,
1153
+ 'location ' => 'xml ' ,
1154
+ 'items ' => array (
1155
+ 'name ' => 'Bucket ' ,
1156
+ 'type ' => 'object ' ,
1157
+ 'sentAs ' => 'Bucket ' ,
1158
+ 'properties ' => array (
1159
+ 'Name ' => array (
1160
+ 'type ' => 'string ' ,
1161
+ ),
1162
+ 'CreationDate ' => array (
1163
+ 'type ' => 'string ' ,
1164
+ ),
1165
+ ),
1166
+ ),
1167
+ ),
1168
+ 'Owner ' => array (
1169
+ 'type ' => 'object ' ,
1170
+ 'location ' => 'xml ' ,
1171
+ 'properties ' => array (
1172
+ 'DisplayName ' => array (
1173
+ 'type ' => 'string ' ,
1174
+ ),
1175
+ 'ID ' => array (
1176
+ 'type ' => 'string ' ,
1177
+ ),
1178
+ ),
1179
+ ),
1180
+ 'RequestId ' => array (
1181
+ 'location ' => 'header ' ,
1182
+ 'sentAs ' => 'x-cos-request-id ' ,
1183
+ ),
1184
+ ),
1185
+ ),
908
1186
'HeadObjectOutput ' => array (
909
1187
'type ' => 'object ' ,
910
1188
'additionalProperties ' => true ,
0 commit comments