Service.php 224 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843
  1. <?php
  2. namespace Qcloud\Cos;
  3. // http://guzzle3.readthedocs.io/webservice-client/guzzle-service-descriptions.html
  4. class Service {
  5. public static function getService() {
  6. return array(
  7. 'name' => 'Cos Service',
  8. 'apiVersion' => 'V5',
  9. 'description' => 'Cos V5 API Service',
  10. 'operations' => array(
  11. // 舍弃一个分块上传且删除已上传的分片块的方法.
  12. 'AbortMultipartUpload' => array(
  13. 'httpMethod' => 'DELETE',
  14. 'uri' => '/{Bucket}{/Key*}',
  15. 'class' => 'Qcloud\\Cos\\Command',
  16. 'responseClass' => 'AbortMultipartUploadOutput',
  17. 'responseType' => 'model',
  18. 'parameters' => array(
  19. 'Bucket' => array(
  20. 'required' => true,
  21. 'type' => 'string',
  22. 'location' => 'uri'),
  23. 'Key' => array(
  24. 'required' => true,
  25. 'type' => 'string',
  26. 'location' => 'uri',
  27. 'minLength' => 1,
  28. 'filters' => array(
  29. 'Qcloud\\Cos\\Client::explodeKey')),
  30. 'UploadId' => array(
  31. 'required' => true,
  32. 'type' => 'string',
  33. 'location' => 'query',
  34. 'sentAs' => 'uploadId'
  35. )
  36. )
  37. ),
  38. // 创建存储桶(Bucket)的方法.
  39. 'CreateBucket' => array(
  40. 'httpMethod' => 'PUT',
  41. 'uri' => '/{Bucket}',
  42. 'class' => 'Qcloud\\Cos\\Command',
  43. 'responseClass' => 'CreateBucketOutput',
  44. 'responseType' => 'model',
  45. 'data' => array(
  46. 'xmlRoot' => array(
  47. 'name' => 'CreateBucketConfiguration')),
  48. 'parameters' => array(
  49. 'ACL' => array(
  50. 'type' => 'string',
  51. 'location' => 'header',
  52. 'sentAs' => 'x-cos-acl'),
  53. 'Bucket' => array(
  54. 'required' => true,
  55. 'type' => 'string',
  56. 'location' => 'uri'
  57. )
  58. )
  59. ),
  60. // 完成整个分块上传的方法.
  61. 'CompleteMultipartUpload' => array(
  62. 'httpMethod' => 'POST',
  63. 'uri' => '/{Bucket}{/Key*}',
  64. 'class' => 'Qcloud\\Cos\\Command',
  65. 'responseClass' => 'CompleteMultipartUploadOutput',
  66. 'responseType' => 'model',
  67. 'data' => array(
  68. 'xmlRoot' => array(
  69. 'name' => 'CompleteMultipartUpload'
  70. )
  71. ),
  72. 'parameters' => array(
  73. 'Bucket' => array(
  74. 'required' => true,
  75. 'type' => 'string',
  76. 'location' => 'uri'),
  77. 'Key' => array(
  78. 'required' => true,
  79. 'type' => 'string',
  80. 'location' => 'uri',
  81. 'minLength' => 1,
  82. 'filters' => array(
  83. 'Qcloud\\Cos\\Client::explodeKey'
  84. )
  85. ),
  86. 'Parts' => array(
  87. 'type' => 'array',
  88. 'location' => 'xml',
  89. 'data' => array(
  90. 'xmlFlattened' => true),
  91. 'items' => array(
  92. 'name' => 'CompletedPart',
  93. 'type' => 'object',
  94. 'sentAs' => 'Part',
  95. 'properties' => array(
  96. 'ETag' => array(
  97. 'type' => 'string'
  98. ),
  99. 'PartNumber' => array(
  100. 'type' => 'numeric'
  101. )
  102. )
  103. )
  104. ),
  105. 'UploadId' => array(
  106. 'required' => true,
  107. 'type' => 'string',
  108. 'location' => 'query',
  109. 'sentAs' => 'uploadId',
  110. ),
  111. 'PicOperations' => array(
  112. 'type' => 'string',
  113. 'location' => 'header',
  114. 'sentAs' => 'Pic-Operations',
  115. )
  116. )
  117. ),
  118. // 初始化分块上传的方法.
  119. 'CreateMultipartUpload' => array(
  120. 'httpMethod' => 'POST',
  121. 'uri' => '/{Bucket}{/Key*}?uploads',
  122. 'class' => 'Qcloud\\Cos\\Command',
  123. 'responseClass' => 'CreateMultipartUploadOutput',
  124. 'responseType' => 'model',
  125. 'data' => array(
  126. 'xmlRoot' => array(
  127. 'name' => 'CreateMultipartUploadRequest'
  128. )
  129. ),
  130. 'parameters' => array(
  131. 'ACL' => array(
  132. 'type' => 'string',
  133. 'location' => 'header',
  134. 'sentAs' => 'x-cos-acl',
  135. ),
  136. 'Bucket' => array(
  137. 'required' => true,
  138. 'type' => 'string',
  139. 'location' => 'uri',
  140. ),
  141. 'CacheControl' => array(
  142. 'type' => 'string',
  143. 'location' => 'header',
  144. 'sentAs' => 'Cache-Control',
  145. ),
  146. 'ContentDisposition' => array(
  147. 'type' => 'string',
  148. 'location' => 'header',
  149. 'sentAs' => 'Content-Disposition',
  150. ),
  151. 'ContentEncoding' => array(
  152. 'type' => 'string',
  153. 'location' => 'header',
  154. 'sentAs' => 'Content-Encoding',
  155. ),
  156. 'ContentLanguage' => array(
  157. 'type' => 'string',
  158. 'location' => 'header',
  159. 'sentAs' => 'Content-Language',
  160. ),
  161. 'ContentType' => array(
  162. 'type' => 'string',
  163. 'location' => 'header',
  164. 'sentAs' => 'Content-Type',
  165. ),
  166. 'Expires' => array(
  167. 'type' => array(
  168. 'object',
  169. 'string',
  170. 'integer',
  171. ),
  172. 'format' => 'date-time-http',
  173. 'location' => 'header',
  174. ),
  175. 'GrantFullControl' => array(
  176. 'type' => 'string',
  177. 'location' => 'header',
  178. 'sentAs' => 'x-cos-grant-full-control',
  179. ),
  180. 'GrantRead' => array(
  181. 'type' => 'string',
  182. 'location' => 'header',
  183. 'sentAs' => 'x-cos-grant-read',
  184. ),
  185. 'GrantReadACP' => array(
  186. 'type' => 'string',
  187. 'location' => 'header',
  188. 'sentAs' => 'x-cos-grant-read-acp',
  189. ),
  190. 'GrantWriteACP' => array(
  191. 'type' => 'string',
  192. 'location' => 'header',
  193. 'sentAs' => 'x-cos-grant-write-acp',
  194. ),
  195. 'Key' => array(
  196. 'required' => true,
  197. 'type' => 'string',
  198. 'location' => 'uri',
  199. 'minLength' => 1,
  200. 'filters' => array(
  201. 'Qcloud\\Cos\\Client::explodeKey'
  202. )
  203. ),
  204. 'ServerSideEncryption' => array(
  205. 'type' => 'string',
  206. 'location' => 'header',
  207. 'sentAs' => 'x-cos-server-side-encryption',
  208. ),
  209. 'StorageClass' => array(
  210. 'type' => 'string',
  211. 'location' => 'header',
  212. 'sentAs' => 'x-cos-storage-class',
  213. ),
  214. 'WebsiteRedirectLocation' => array(
  215. 'type' => 'string',
  216. 'location' => 'header',
  217. 'sentAs' => 'x-cos-website-redirect-location',
  218. ),
  219. 'SSECustomerAlgorithm' => array(
  220. 'type' => 'string',
  221. 'location' => 'header',
  222. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  223. ),
  224. 'SSECustomerKey' => array(
  225. 'type' => 'string',
  226. 'location' => 'header',
  227. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  228. ),
  229. 'SSECustomerKeyMD5' => array(
  230. 'type' => 'string',
  231. 'location' => 'header',
  232. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  233. ),
  234. 'SSEKMSKeyId' => array(
  235. 'type' => 'string',
  236. 'location' => 'header',
  237. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  238. ),
  239. 'RequestPayer' => array(
  240. 'type' => 'string',
  241. 'location' => 'header',
  242. 'sentAs' => 'x-cos-request-payer',
  243. ),
  244. 'ACP' => array(
  245. 'type' => 'object',
  246. 'additionalProperties' => true,
  247. ),
  248. 'PicOperations' => array(
  249. 'type' => 'string',
  250. 'location' => 'header',
  251. 'sentAs' => 'Pic-Operations',
  252. )
  253. )
  254. ),
  255. // 复制对象的方法.
  256. 'CopyObject' => array(
  257. 'httpMethod' => 'PUT',
  258. 'uri' => '/{Bucket}{/Key*}',
  259. 'class' => 'Qcloud\\Cos\\Command',
  260. 'responseClass' => 'CopyObjectOutput',
  261. 'responseType' => 'model',
  262. 'data' => array(
  263. 'xmlRoot' => array(
  264. 'name' => 'CopyObjectRequest',
  265. ),
  266. ),
  267. 'parameters' => array(
  268. 'ACL' => array(
  269. 'type' => 'string',
  270. 'location' => 'header',
  271. 'sentAs' => 'x-cos-acl',
  272. ),
  273. 'Bucket' => array(
  274. 'required' => true,
  275. 'type' => 'string',
  276. 'location' => 'uri',
  277. ),
  278. 'CacheControl' => array(
  279. 'type' => 'string',
  280. 'location' => 'header',
  281. 'sentAs' => 'Cache-Control',
  282. ),
  283. 'ContentDisposition' => array(
  284. 'type' => 'string',
  285. 'location' => 'header',
  286. 'sentAs' => 'Content-Disposition',
  287. ),
  288. 'ContentEncoding' => array(
  289. 'type' => 'string',
  290. 'location' => 'header',
  291. 'sentAs' => 'Content-Encoding',
  292. ),
  293. 'ContentLanguage' => array(
  294. 'type' => 'string',
  295. 'location' => 'header',
  296. 'sentAs' => 'Content-Language',
  297. ),
  298. 'ContentType' => array(
  299. 'type' => 'string',
  300. 'location' => 'header',
  301. 'sentAs' => 'Content-Type',
  302. ),
  303. 'CopySource' => array(
  304. 'required' => true,
  305. 'type' => 'string',
  306. 'location' => 'header',
  307. 'sentAs' => 'x-cos-copy-source',
  308. ),
  309. 'CopySourceIfMatch' => array(
  310. 'type' => 'string',
  311. 'location' => 'header',
  312. 'sentAs' => 'x-cos-copy-source-if-match',
  313. ),
  314. 'CopySourceIfModifiedSince' => array(
  315. 'type' => array(
  316. 'object',
  317. 'string',
  318. 'integer',
  319. ),
  320. 'format' => 'date-time-http',
  321. 'location' => 'header',
  322. 'sentAs' => 'x-cos-copy-source-if-modified-since',
  323. ),
  324. 'CopySourceIfNoneMatch' => array(
  325. 'type' => 'string',
  326. 'location' => 'header',
  327. 'sentAs' => 'x-cos-copy-source-if-none-match',
  328. ),
  329. 'CopySourceIfUnmodifiedSince' => array(
  330. 'type' => array(
  331. 'object',
  332. 'string',
  333. 'integer',
  334. ),
  335. 'format' => 'date-time-http',
  336. 'location' => 'header',
  337. 'sentAs' => 'x-cos-copy-source-if-unmodified-since',
  338. ),
  339. 'Expires' => array(
  340. 'type' => array(
  341. 'object',
  342. 'string',
  343. 'integer',
  344. ),
  345. 'format' => 'date-time-http',
  346. 'location' => 'header',
  347. ),
  348. 'GrantFullControl' => array(
  349. 'type' => 'string',
  350. 'location' => 'header',
  351. 'sentAs' => 'x-cos-grant-full-control',
  352. ),
  353. 'GrantRead' => array(
  354. 'type' => 'string',
  355. 'location' => 'header',
  356. 'sentAs' => 'x-cos-grant-read',
  357. ),
  358. 'GrantReadACP' => array(
  359. 'type' => 'string',
  360. 'location' => 'header',
  361. 'sentAs' => 'x-cos-grant-read-acp',
  362. ),
  363. 'GrantWriteACP' => array(
  364. 'type' => 'string',
  365. 'location' => 'header',
  366. 'sentAs' => 'x-cos-grant-write-acp',
  367. ),
  368. 'Key' => array(
  369. 'required' => true,
  370. 'type' => 'string',
  371. 'location' => 'uri',
  372. 'minLength' => 1,
  373. 'filters' => array(
  374. 'Qcloud\\Cos\\Client::explodeKey')
  375. ),
  376. 'MetadataDirective' => array(
  377. 'type' => 'string',
  378. 'location' => 'header',
  379. 'sentAs' => 'x-cos-metadata-directive',
  380. ),
  381. 'ServerSideEncryption' => array(
  382. 'type' => 'string',
  383. 'location' => 'header',
  384. 'sentAs' => 'x-cos-server-side-encryption',
  385. ),
  386. 'StorageClass' => array(
  387. 'type' => 'string',
  388. 'location' => 'header',
  389. 'sentAs' => 'x-cos-storage-class',
  390. ),
  391. 'WebsiteRedirectLocation' => array(
  392. 'type' => 'string',
  393. 'location' => 'header',
  394. 'sentAs' => 'x-cos-website-redirect-location',
  395. ),
  396. 'SSECustomerAlgorithm' => array(
  397. 'type' => 'string',
  398. 'location' => 'header',
  399. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  400. ),
  401. 'SSECustomerKey' => array(
  402. 'type' => 'string',
  403. 'location' => 'header',
  404. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  405. ),
  406. 'CopySourceSSECustomerAlgorithm' => array(
  407. 'type' => 'string',
  408. 'location' => 'header',
  409. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-algorithm',
  410. ),
  411. 'CopySourceSSECustomerKey' => array(
  412. 'type' => 'string',
  413. 'location' => 'header',
  414. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-key',
  415. ),
  416. 'CopySourceSSECustomerKeyMD5' => array(
  417. 'type' => 'string',
  418. 'location' => 'header',
  419. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-key-MD5',
  420. ),
  421. 'RequestPayer' => array(
  422. 'type' => 'string',
  423. 'location' => 'header',
  424. 'sentAs' => 'x-cos-request-payer',
  425. ),
  426. 'ACP' => array(
  427. 'type' => 'object',
  428. 'additionalProperties' => true,
  429. )
  430. ),
  431. ),
  432. // 删除存储桶 (Bucket)的方法.
  433. 'DeleteBucket' => array(
  434. 'httpMethod' => 'DELETE',
  435. 'uri' => '/{Bucket}',
  436. 'class' => 'Qcloud\\Cos\\Command',
  437. 'responseClass' => 'DeleteBucketOutput',
  438. 'responseType' => 'model',
  439. 'parameters' => array(
  440. 'Bucket' => array(
  441. 'required' => true,
  442. 'type' => 'string',
  443. 'location' => 'uri'
  444. )
  445. )
  446. ),
  447. // 删除跨域访问配置信息的方法
  448. 'DeleteBucketCors' => array(
  449. 'httpMethod' => 'DELETE',
  450. 'uri' => '/{Bucket}?cors',
  451. 'class' => 'Qcloud\\Cos\\Command',
  452. 'responseClass' => 'DeleteBucketCorsOutput',
  453. 'responseType' => 'model',
  454. 'parameters' => array(
  455. 'Bucket' => array(
  456. 'required' => true,
  457. 'type' => 'string',
  458. 'location' => 'uri',
  459. ),
  460. ),
  461. ),
  462. // 删除存储桶标签信息的方法
  463. 'DeleteBucketTagging' => array(
  464. 'httpMethod' => 'DELETE',
  465. 'uri' => '/{Bucket}?tagging',
  466. 'class' => 'Qcloud\\Cos\\Command',
  467. 'responseClass' => 'DeleteBucketTaggingOutput',
  468. 'responseType' => 'model',
  469. 'parameters' => array(
  470. 'Bucket' => array(
  471. 'required' => true,
  472. 'type' => 'string',
  473. 'location' => 'uri',
  474. ),
  475. ),
  476. ),
  477. // 删除存储桶标清单任务的方法
  478. 'DeleteBucketInventory' => array(
  479. 'httpMethod' => 'Delete',
  480. 'uri' => '/{Bucket}?inventory',
  481. 'class' => 'Qcloud\\Cos\\Command',
  482. 'responseClass' => 'DeleteBucketInventoryOutput',
  483. 'responseType' => 'model',
  484. 'parameters' => array(
  485. 'Bucket' => array(
  486. 'required' => true,
  487. 'type' => 'string',
  488. 'location' => 'uri',
  489. ),
  490. 'Id' => array(
  491. 'required' => true,
  492. 'type' => 'string',
  493. 'location' => 'query',
  494. 'sentAs' => 'id',
  495. )
  496. ),
  497. ),
  498. // 删除 COS 上单个对象的方法.
  499. 'DeleteObject' => array(
  500. 'httpMethod' => 'DELETE',
  501. 'uri' => '/{Bucket}{/Key*}',
  502. 'class' => 'Qcloud\\Cos\\Command',
  503. 'responseClass' => 'DeleteObjectOutput',
  504. 'responseType' => 'model',
  505. 'parameters' => array(
  506. 'Bucket' => array(
  507. 'required' => true,
  508. 'type' => 'string',
  509. 'location' => 'uri'
  510. ),
  511. 'Key' => array(
  512. 'required' => true,
  513. 'type' => 'string',
  514. 'location' => 'uri',
  515. 'minLength' => 1,
  516. 'filters' => array(
  517. 'Qcloud\\Cos\\Client::explodeKey'
  518. )
  519. ),
  520. 'MFA' => array(
  521. 'type' => 'string',
  522. 'location' => 'header',
  523. 'sentAs' => 'x-cos-mfa',
  524. ),
  525. 'VersionId' => array(
  526. 'type' => 'string',
  527. 'location' => 'query',
  528. 'sentAs' => 'versionId',
  529. ),
  530. 'RequestPayer' => array(
  531. 'type' => 'string',
  532. 'location' => 'header',
  533. 'sentAs' => 'x-cos-request-payer',
  534. )
  535. )
  536. ),
  537. // 批量删除 COS 对象的方法.
  538. 'DeleteObjects' => array(
  539. 'httpMethod' => 'POST',
  540. 'uri' => '/{Bucket}?delete',
  541. 'class' => 'Qcloud\\Cos\\Command',
  542. 'responseClass' => 'DeleteObjectsOutput',
  543. 'responseType' => 'model',
  544. 'data' => array(
  545. 'xmlRoot' => array(
  546. 'name' => 'Delete',
  547. ),
  548. 'contentMd5' => true,
  549. ),
  550. 'parameters' => array(
  551. 'Bucket' => array(
  552. 'required' => true,
  553. 'type' => 'string',
  554. 'location' => 'uri',
  555. ),
  556. 'Objects' => array(
  557. 'required' => true,
  558. 'type' => 'array',
  559. 'location' => 'xml',
  560. 'data' => array(
  561. 'xmlFlattened' => true,
  562. ),
  563. 'items' => array(
  564. 'type' => 'object',
  565. 'sentAs' => 'Object',
  566. 'properties' => array(
  567. 'Key' => array(
  568. 'required' => true,
  569. 'type' => 'string',
  570. 'minLength' => 1,
  571. ),
  572. 'VersionId' => array(
  573. 'type' => 'string',
  574. ),
  575. ),
  576. ),
  577. ),
  578. 'Quiet' => array(
  579. 'type' => 'boolean',
  580. 'format' => 'boolean-string',
  581. 'location' => 'xml',
  582. ),
  583. 'MFA' => array(
  584. 'type' => 'string',
  585. 'location' => 'header',
  586. 'sentAs' => 'x-cos-mfa',
  587. ),
  588. 'RequestPayer' => array(
  589. 'type' => 'string',
  590. 'location' => 'header',
  591. 'sentAs' => 'x-cos-request-payer',
  592. )
  593. ),
  594. ),
  595. // 删除存储桶(Bucket) 的website的方法.
  596. 'DeleteBucketWebsite' => array(
  597. 'httpMethod' => 'DELETE',
  598. 'uri' => '/{Bucket}?website',
  599. 'class' => 'Qcloud\\Cos\\Command',
  600. 'responseClass' => 'DeleteBucketWebsiteOutput',
  601. 'responseType' => 'model',
  602. 'parameters' => array(
  603. 'Bucket' => array(
  604. 'required' => true,
  605. 'type' => 'string',
  606. 'location' => 'uri',
  607. ),
  608. ),
  609. ),
  610. // 删除存储桶(Bucket) 的生命周期配置的方法.
  611. 'DeleteBucketLifecycle' => array(
  612. 'httpMethod' => 'DELETE',
  613. 'uri' => '/{Bucket}?lifecycle',
  614. 'class' => 'Qcloud\\Cos\\Command',
  615. 'responseClass' => 'DeleteBucketLifecycleOutput',
  616. 'responseType' => 'model',
  617. 'parameters' => array(
  618. 'Bucket' => array(
  619. 'required' => true,
  620. 'type' => 'string',
  621. 'location' => 'uri',
  622. ),
  623. ),
  624. ),
  625. // 删除跨区域复制配置的方法.
  626. 'DeleteBucketReplication' => array(
  627. 'httpMethod' => 'DELETE',
  628. 'uri' => '/{Bucket}?replication',
  629. 'class' => 'Qcloud\\Cos\\Command',
  630. 'responseClass' => 'DeleteBucketReplicationOutput',
  631. 'responseType' => 'model',
  632. 'parameters' => array(
  633. 'Bucket' => array(
  634. 'required' => true,
  635. 'type' => 'string',
  636. 'location' => 'uri',
  637. ),
  638. ),
  639. ),
  640. // 下载对象的方法.
  641. 'GetObject' => array(
  642. 'httpMethod' => 'GET',
  643. 'uri' => '/{Bucket}{/Key*}',
  644. 'class' => 'Qcloud\\Cos\\Command',
  645. 'responseClass' => 'GetObjectOutput',
  646. 'responseType' => 'model',
  647. 'parameters' => array(
  648. 'Bucket' => array(
  649. 'required' => true,
  650. 'type' => 'string',
  651. 'location' => 'uri'
  652. ),
  653. 'IfMatch' => array(
  654. 'type' => 'string',
  655. 'location' => 'header',
  656. 'sentAs' => 'If-Match'
  657. ),
  658. 'IfModifiedSince' => array(
  659. 'type' => array(
  660. 'object',
  661. 'string',
  662. 'integer'
  663. ),
  664. 'format' => 'date-time-http',
  665. 'location' => 'header',
  666. 'sentAs' => 'If-Modified-Since'
  667. ),
  668. 'IfNoneMatch' => array(
  669. 'type' => 'string',
  670. 'location' => 'header',
  671. 'sentAs' => 'If-None-Match'
  672. ),
  673. 'IfUnmodifiedSince' => array(
  674. 'type' => array(
  675. 'object',
  676. 'string',
  677. 'integer'
  678. ),
  679. 'format' => 'date-time-http',
  680. 'location' => 'header',
  681. 'sentAs' => 'If-Unmodified-Since'
  682. ),
  683. 'Key' => array(
  684. 'required' => true,
  685. 'type' => 'string',
  686. 'location' => 'uri',
  687. 'minLength' => 1,
  688. 'filters' => array(
  689. 'Qcloud\\Cos\\Client::explodeKey'
  690. )
  691. ),
  692. 'Range' => array(
  693. 'type' => 'string',
  694. 'location' => 'header'),
  695. 'ResponseCacheControl' => array(
  696. 'type' => 'string',
  697. 'location' => 'query',
  698. 'sentAs' => 'response-cache-control'
  699. ),
  700. 'ResponseContentDisposition' => array(
  701. 'type' => 'string',
  702. 'location' => 'query',
  703. 'sentAs' => 'response-content-disposition'
  704. ),
  705. 'ResponseContentEncoding' => array(
  706. 'type' => 'string',
  707. 'location' => 'query',
  708. 'sentAs' => 'response-content-encoding'
  709. ),
  710. 'ResponseContentLanguage' => array(
  711. 'type' => 'string',
  712. 'location' => 'query',
  713. 'sentAs' => 'response-content-language'
  714. ),
  715. 'ResponseContentType' => array(
  716. 'type' => 'string',
  717. 'location' => 'query',
  718. 'sentAs' => 'response-content-type'
  719. ),
  720. 'ResponseExpires' => array(
  721. 'type' => array(
  722. 'object',
  723. 'string',
  724. 'integer'
  725. ),
  726. 'format' => 'date-time-http',
  727. 'location' => 'query',
  728. 'sentAs' => 'response-expires'
  729. ),
  730. 'VersionId' => array(
  731. 'type' => 'string',
  732. 'location' => 'query',
  733. 'sentAs' => 'versionId',
  734. ),
  735. 'SSECustomerAlgorithm' => array(
  736. 'type' => 'string',
  737. 'location' => 'header',
  738. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  739. ),
  740. 'SSECustomerKey' => array(
  741. 'type' => 'string',
  742. 'location' => 'header',
  743. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  744. ),
  745. 'SSECustomerKeyMD5' => array(
  746. 'type' => 'string',
  747. 'location' => 'header',
  748. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  749. ),
  750. 'TrafficLimit' => array(
  751. 'type' => 'integer',
  752. 'location' => 'header',
  753. 'sentAs' => 'x-cos-traffic-limit',
  754. )
  755. )
  756. ),
  757. // 获取 COS 对象的访问权限信息(Access Control List, ACL)的方法.
  758. 'GetObjectAcl' => array(
  759. 'httpMethod' => 'GET',
  760. 'uri' => '/{Bucket}{/Key*}?acl',
  761. 'class' => 'Qcloud\\Cos\\Command',
  762. 'responseClass' => 'GetObjectAclOutput',
  763. 'responseType' => 'model',
  764. 'parameters' => array(
  765. 'Bucket' => array(
  766. 'required' => true,
  767. 'type' => 'string',
  768. 'location' => 'uri',
  769. ),
  770. 'Key' => array(
  771. 'required' => true,
  772. 'type' => 'string',
  773. 'location' => 'uri',
  774. 'minLength' => 1,
  775. 'filters' => array(
  776. 'Qcloud\\Cos\\Client::explodeKey')
  777. ),
  778. 'VersionId' => array(
  779. 'type' => 'string',
  780. 'location' => 'query',
  781. 'sentAs' => 'versionId',
  782. ),
  783. 'RequestPayer' => array(
  784. 'type' => 'string',
  785. 'location' => 'header',
  786. 'sentAs' => 'x-cos-request-payer',
  787. )
  788. )
  789. ),
  790. // 获取存储桶(Bucket) 的访问权限信息(Access Control List, ACL)的方法.
  791. 'GetBucketAcl' => array(
  792. 'httpMethod' => 'GET',
  793. 'uri' => '/{Bucket}?acl',
  794. 'class' => 'Qcloud\\Cos\\Command',
  795. 'responseClass' => 'GetBucketAclOutput',
  796. 'responseType' => 'model',
  797. 'parameters' => array(
  798. 'Bucket' => array(
  799. 'required' => true,
  800. 'type' => 'string',
  801. 'location' => 'uri'
  802. )
  803. )
  804. ),
  805. // 查询存储桶(Bucket) 跨域访问配置信息的方法.
  806. 'GetBucketCors' => array(
  807. 'httpMethod' => 'GET',
  808. 'uri' => '/{Bucket}?cors',
  809. 'class' => 'Qcloud\\Cos\\Command',
  810. 'responseClass' => 'GetBucketCorsOutput',
  811. 'responseType' => 'model',
  812. 'parameters' => array(
  813. 'Bucket' => array(
  814. 'required' => true,
  815. 'type' => 'string',
  816. 'location' => 'uri',
  817. )
  818. ),
  819. ),
  820. // 查询存储桶(Bucket) Domain配置信息的方法.
  821. 'GetBucketDomain' => array(
  822. 'httpMethod' => 'GET',
  823. 'uri' => '/{Bucket}?domain',
  824. 'class' => 'Qcloud\\Cos\\Command',
  825. 'responseClass' => 'GetBucketDomainOutput',
  826. 'responseType' => 'model',
  827. 'parameters' => array(
  828. 'Bucket' => array(
  829. 'required' => true,
  830. 'type' => 'string',
  831. 'location' => 'uri',
  832. )
  833. ),
  834. ),
  835. // 查询存储桶(Bucket) Accelerate配置信息的方法.
  836. 'GetBucketAccelerate' => array(
  837. 'httpMethod' => 'GET',
  838. 'uri' => '/{Bucket}?accelerate',
  839. 'class' => 'Qcloud\\Cos\\Command',
  840. 'responseClass' => 'GetBucketAccelerateOutput',
  841. 'responseType' => 'model',
  842. 'parameters' => array(
  843. 'Bucket' => array(
  844. 'required' => true,
  845. 'type' => 'string',
  846. 'location' => 'uri',
  847. )
  848. ),
  849. ),
  850. // 查询存储桶(Bucket) Website配置信息的方法.
  851. 'GetBucketWebsite' => array(
  852. 'httpMethod' => 'GET',
  853. 'uri' => '/{Bucket}?website',
  854. 'class' => 'Qcloud\\Cos\\Command',
  855. 'responseClass' => 'GetBucketWebsiteOutput',
  856. 'responseType' => 'model',
  857. 'parameters' => array(
  858. 'Bucket' => array(
  859. 'required' => true,
  860. 'type' => 'string',
  861. 'location' => 'uri',
  862. )
  863. ),
  864. ),
  865. // 查询存储桶(Bucket) 的生命周期配置的方法.
  866. 'GetBucketLifecycle' => array(
  867. 'httpMethod' => 'GET',
  868. 'uri' => '/{Bucket}?lifecycle',
  869. 'class' => 'Qcloud\\Cos\\Command',
  870. 'responseClass' => 'GetBucketLifecycleOutput',
  871. 'responseType' => 'model',
  872. 'parameters' => array(
  873. 'Bucket' => array(
  874. 'required' => true,
  875. 'type' => 'string',
  876. 'location' => 'uri',
  877. )
  878. ),
  879. ),
  880. // 获取存储桶(Bucket)版本控制信息的方法.
  881. 'GetBucketVersioning' => array(
  882. 'httpMethod' => 'GET',
  883. 'uri' => '/{Bucket}?versioning',
  884. 'class' => 'Qcloud\\Cos\\Command',
  885. 'responseClass' => 'GetBucketVersioningOutput',
  886. 'responseType' => 'model',
  887. 'parameters' => array(
  888. 'Bucket' => array(
  889. 'required' => true,
  890. 'type' => 'string',
  891. 'location' => 'uri',
  892. )
  893. ),
  894. ),
  895. // 获取存储桶(Bucket) 跨区域复制配置信息的方法.
  896. 'GetBucketReplication' => array(
  897. 'httpMethod' => 'GET',
  898. 'uri' => '/{Bucket}?replication',
  899. 'class' => 'Qcloud\\Cos\\Command',
  900. 'responseClass' => 'GetBucketReplicationOutput',
  901. 'responseType' => 'model',
  902. 'parameters' => array(
  903. 'Bucket' => array(
  904. 'required' => true,
  905. 'type' => 'string',
  906. 'location' => 'uri',
  907. )
  908. ),
  909. ),
  910. // 获取存储桶(Bucket) 所在的地域信息的方法.
  911. 'GetBucketLocation' => array(
  912. 'httpMethod' => 'GET',
  913. 'uri' => '/{Bucket}?location',
  914. 'class' => 'Qcloud\\Cos\\Command',
  915. 'responseClass' => 'GetBucketLocationOutput',
  916. 'responseType' => 'model',
  917. 'parameters' => array(
  918. 'Bucket' => array(
  919. 'required' => true,
  920. 'type' => 'string',
  921. 'location' => 'uri',
  922. ),
  923. ),
  924. ),
  925. // 获取存储桶(Bucket) Notification信息的方法.
  926. 'GetBucketNotification' => array(
  927. 'httpMethod' => 'GET',
  928. 'uri' => '/{Bucket}?notification',
  929. 'class' => 'Qcloud\\Cos\\Command',
  930. 'responseClass' => 'GetBucketNotificationOutput',
  931. 'responseType' => 'model',
  932. 'parameters' => array(
  933. 'Bucket' => array(
  934. 'required' => true,
  935. 'type' => 'string',
  936. 'location' => 'uri',
  937. )
  938. ),
  939. ),
  940. // 获取存储桶(Bucket) 日志信息的方法.
  941. 'GetBucketLogging' => array(
  942. 'httpMethod' => 'GET',
  943. 'uri' => '/{Bucket}?logging',
  944. 'class' => 'Qcloud\\Cos\\Command',
  945. 'responseClass' => 'GetBucketLoggingOutput',
  946. 'responseType' => 'model',
  947. 'parameters' => array(
  948. 'Bucket' => array(
  949. 'required' => true,
  950. 'type' => 'string',
  951. 'location' => 'uri',
  952. )
  953. ),
  954. ),
  955. // 获取存储桶(Bucket) 清单信息的方法.
  956. 'GetBucketInventory' => array(
  957. 'httpMethod' => 'GET',
  958. 'uri' => '/{Bucket}?inventory',
  959. 'class' => 'Qcloud\\Cos\\Command',
  960. 'responseClass' => 'GetBucketInventoryOutput',
  961. 'responseType' => 'model',
  962. 'parameters' => array(
  963. 'Bucket' => array(
  964. 'required' => true,
  965. 'type' => 'string',
  966. 'location' => 'uri',
  967. ),
  968. 'Id' => array(
  969. 'required' => true,
  970. 'type' => 'string',
  971. 'location' => 'query',
  972. 'sentAs' => 'id',
  973. )
  974. ),
  975. ),
  976. // 获取存储桶(Bucket) 标签信息的方法.
  977. 'GetBucketTagging' => array(
  978. 'httpMethod' => 'GET',
  979. 'uri' => '/{Bucket}?tagging',
  980. 'class' => 'Qcloud\\Cos\\Command',
  981. 'responseClass' => 'GetBucketTaggingOutput',
  982. 'responseType' => 'model',
  983. 'parameters' => array(
  984. 'Bucket' => array(
  985. 'required' => true,
  986. 'type' => 'string',
  987. 'location' => 'uri',
  988. )
  989. ),
  990. ),
  991. // 分块上传的方法.
  992. 'UploadPart' => array(
  993. 'httpMethod' => 'PUT',
  994. 'uri' => '/{Bucket}{/Key*}',
  995. 'class' => 'Qcloud\\Cos\\Command',
  996. 'responseClass' => 'UploadPartOutput',
  997. 'responseType' => 'model',
  998. 'data' => array(
  999. 'xmlRoot' => array(
  1000. 'name' => 'UploadPartRequest'
  1001. )
  1002. ),
  1003. 'parameters' => array(
  1004. 'Body' => array(
  1005. 'type' => array(
  1006. 'any'),
  1007. 'location' => 'body'
  1008. ),
  1009. 'Bucket' => array(
  1010. 'required' => true,
  1011. 'type' => 'string',
  1012. 'location' => 'uri'
  1013. ),
  1014. 'ContentLength' => array(
  1015. 'type' => 'numeric',
  1016. 'minimum'=> 0,
  1017. 'location' => 'header',
  1018. 'sentAs' => 'Content-Length'
  1019. ),
  1020. 'ContentMD5' => array(
  1021. 'type' => array(
  1022. 'string',
  1023. 'boolean'
  1024. ),
  1025. 'location' => 'header',
  1026. 'sentAs' => 'Content-MD5'
  1027. ),
  1028. 'Key' => array(
  1029. 'required' => true,
  1030. 'type' => 'string',
  1031. 'location' => 'uri',
  1032. 'minLength' => 1,
  1033. 'filters' => array(
  1034. 'Qcloud\\Cos\\Client::explodeKey'
  1035. )
  1036. ),
  1037. 'PartNumber' => array(
  1038. 'required' => true,
  1039. 'type' => 'numeric',
  1040. 'location' => 'query',
  1041. 'sentAs' => 'partNumber'),
  1042. 'UploadId' => array(
  1043. 'required' => true,
  1044. 'type' => 'string',
  1045. 'location' => 'query',
  1046. 'sentAs' => 'uploadId'),
  1047. 'ServerSideEncryption' => array(
  1048. 'type' => 'string',
  1049. 'location' => 'header',
  1050. 'sentAs' => 'x-cos-server-side-encryption',
  1051. ),
  1052. 'SSECustomerAlgorithm' => array(
  1053. 'type' => 'string',
  1054. 'location' => 'header',
  1055. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  1056. ),
  1057. 'SSECustomerKey' => array(
  1058. 'type' => 'string',
  1059. 'location' => 'header',
  1060. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  1061. ),
  1062. 'SSECustomerKeyMD5' => array(
  1063. 'type' => 'string',
  1064. 'location' => 'header',
  1065. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  1066. ),
  1067. 'RequestPayer' => array(
  1068. 'type' => 'string',
  1069. 'location' => 'header',
  1070. 'sentAs' => 'x-cos-request-payer',
  1071. ),
  1072. 'TrafficLimit' => array(
  1073. 'type' => 'integer',
  1074. 'location' => 'header',
  1075. 'sentAs' => 'x-cos-traffic-limit',
  1076. )
  1077. )
  1078. ),
  1079. // 上传对象的方法.
  1080. 'PutObject' => array(
  1081. 'httpMethod' => 'PUT',
  1082. 'uri' => '/{Bucket}{/Key*}',
  1083. 'class' => 'Qcloud\\Cos\\Command',
  1084. 'responseClass' => 'PutObjectOutput',
  1085. 'responseType' => 'model',
  1086. 'data' => array(
  1087. 'xmlRoot' => array(
  1088. 'name' => 'PutObjectRequest'
  1089. )
  1090. ),
  1091. 'parameters' => array(
  1092. 'ACL' => array(
  1093. 'type' => 'string',
  1094. 'location' => 'header',
  1095. 'sentAs' => 'x-cos-acl'
  1096. ),
  1097. 'Body' => array(
  1098. 'required' => true,
  1099. 'type' => array(
  1100. 'any'
  1101. ),
  1102. 'location' => 'body'
  1103. ),
  1104. 'Bucket' => array(
  1105. 'required' => true,
  1106. 'type' => 'string',
  1107. 'location' => 'uri'
  1108. ),
  1109. 'CacheControl' => array(
  1110. 'type' => 'string',
  1111. 'location' => 'header',
  1112. 'sentAs' => 'Cache-Control'
  1113. ),
  1114. 'ContentDisposition' => array(
  1115. 'type' => 'string',
  1116. 'location' => 'header',
  1117. 'sentAs' => 'Content-Disposition'
  1118. ),
  1119. 'ContentEncoding' => array(
  1120. 'type' => 'string',
  1121. 'location' => 'header',
  1122. 'sentAs' => 'Content-Encoding'
  1123. ),
  1124. 'ContentLanguage' => array(
  1125. 'type' => 'string',
  1126. 'location' => 'header',
  1127. 'sentAs' => 'Content-Language'
  1128. ),
  1129. 'ContentLength' => array(
  1130. 'type' => 'numeric',
  1131. 'minimum'=> 0,
  1132. 'location' => 'header',
  1133. 'sentAs' => 'Content-Length'
  1134. ),
  1135. 'ContentMD5' => array(
  1136. 'type' => array(
  1137. 'string',
  1138. 'boolean'
  1139. ),
  1140. 'location' => 'header',
  1141. 'sentAs' => 'Content-MD5'
  1142. ),
  1143. 'ContentType' => array(
  1144. 'type' => 'string',
  1145. 'location' => 'header',
  1146. 'sentAs' => 'Content-Type'
  1147. ),
  1148. 'Key' => array(
  1149. 'required' => true,
  1150. 'type' => 'string',
  1151. 'location' => 'uri',
  1152. 'minLength' => 1,
  1153. 'filters' => array(
  1154. 'Qcloud\\Cos\\Client::explodeKey'
  1155. )
  1156. ),
  1157. 'ServerSideEncryption' => array(
  1158. 'type' => 'string',
  1159. 'location' => 'header',
  1160. 'sentAs' => 'x-cos-server-side-encryption',
  1161. ),
  1162. 'StorageClass' => array(
  1163. 'type' => 'string',
  1164. 'location' => 'header',
  1165. 'sentAs' => 'x-cos-storage-class',
  1166. ),
  1167. 'WebsiteRedirectLocation' => array(
  1168. 'type' => 'string',
  1169. 'location' => 'header',
  1170. 'sentAs' => 'x-cos-website-redirect-location',
  1171. ),
  1172. 'SSECustomerAlgorithm' => array(
  1173. 'type' => 'string',
  1174. 'location' => 'header',
  1175. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  1176. ),
  1177. 'SSECustomerKey' => array(
  1178. 'type' => 'string',
  1179. 'location' => 'header',
  1180. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  1181. ),
  1182. 'SSECustomerKeyMD5' => array(
  1183. 'type' => 'string',
  1184. 'location' => 'header',
  1185. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  1186. ),
  1187. 'SSEKMSKeyId' => array(
  1188. 'type' => 'string',
  1189. 'location' => 'header',
  1190. 'sentAs' => 'x-cos-server-side-encryption-cos-kms-key-id',
  1191. ),
  1192. 'RequestPayer' => array(
  1193. 'type' => 'string',
  1194. 'location' => 'header',
  1195. 'sentAs' => 'x-cos-request-payer',
  1196. ),
  1197. 'ACP' => array(
  1198. 'type' => 'object',
  1199. 'additionalProperties' => true,
  1200. ),
  1201. 'PicOperations' => array(
  1202. 'type' => 'string',
  1203. 'location' => 'header',
  1204. 'sentAs' => 'Pic-Operations',
  1205. ),
  1206. 'TrafficLimit' => array(
  1207. 'type' => 'integer',
  1208. 'location' => 'header',
  1209. 'sentAs' => 'x-cos-traffic-limit',
  1210. )
  1211. )
  1212. ),
  1213. // 设置 COS 对象的访问权限信息(Access Control List, ACL)的方法.
  1214. 'PutObjectAcl' => array(
  1215. 'httpMethod' => 'PUT',
  1216. 'uri' => '/{Bucket}{/Key*}?acl',
  1217. 'class' => 'Qcloud\\Cos\\Command',
  1218. 'responseClass' => 'PutObjectAclOutput',
  1219. 'responseType' => 'model',
  1220. 'data' => array(
  1221. 'xmlRoot' => array(
  1222. 'name' => 'AccessControlPolicy',
  1223. ),
  1224. ),
  1225. 'parameters' => array(
  1226. 'ACL' => array(
  1227. 'type' => 'string',
  1228. 'location' => 'header',
  1229. 'sentAs' => 'x-cos-acl',
  1230. ),
  1231. 'Grants' => array(
  1232. 'type' => 'array',
  1233. 'location' => 'xml',
  1234. 'sentAs' => 'AccessControlList',
  1235. 'items' => array(
  1236. 'name' => 'Grant',
  1237. 'type' => 'object',
  1238. 'properties' => array(
  1239. 'Grantee' => array(
  1240. 'type' => 'object',
  1241. 'properties' => array(
  1242. 'DisplayName' => array(
  1243. 'type' => 'string'),
  1244. 'ID' => array(
  1245. 'type' => 'string'),
  1246. 'Type' => array(
  1247. 'type' => 'string',
  1248. 'sentAs' => 'xsi:type',
  1249. 'data' => array(
  1250. 'xmlAttribute' => true,
  1251. 'xmlNamespace' => 'http://www.w3.org/2001/XMLSchema-instance')),
  1252. 'URI' => array(
  1253. 'type' => 'string') )),
  1254. 'Permission' => array(
  1255. 'type' => 'string',
  1256. ),
  1257. ),
  1258. ),
  1259. ),
  1260. 'Owner' => array(
  1261. 'type' => 'object',
  1262. 'location' => 'xml',
  1263. 'properties' => array(
  1264. 'DisplayName' => array(
  1265. 'type' => 'string',
  1266. ),
  1267. 'ID' => array(
  1268. 'type' => 'string',
  1269. ),
  1270. ),
  1271. ),
  1272. 'Bucket' => array(
  1273. 'required' => true,
  1274. 'type' => 'string',
  1275. 'location' => 'uri',
  1276. ),
  1277. 'GrantFullControl' => array(
  1278. 'type' => 'string',
  1279. 'location' => 'header',
  1280. 'sentAs' => 'x-cos-grant-full-control',
  1281. ),
  1282. 'GrantRead' => array(
  1283. 'type' => 'string',
  1284. 'location' => 'header',
  1285. 'sentAs' => 'x-cos-grant-read',
  1286. ),
  1287. 'GrantReadACP' => array(
  1288. 'type' => 'string',
  1289. 'location' => 'header',
  1290. 'sentAs' => 'x-cos-grant-read-acp',
  1291. ),
  1292. 'GrantWrite' => array(
  1293. 'type' => 'string',
  1294. 'location' => 'header',
  1295. 'sentAs' => 'x-cos-grant-write',
  1296. ),
  1297. 'GrantWriteACP' => array(
  1298. 'type' => 'string',
  1299. 'location' => 'header',
  1300. 'sentAs' => 'x-cos-grant-write-acp',
  1301. ),
  1302. 'Key' => array(
  1303. 'required' => true,
  1304. 'type' => 'string',
  1305. 'location' => 'uri',
  1306. 'minLength' => 1,
  1307. 'filters' => array(
  1308. 'Qcloud\\Cos\\Client::explodeKey')
  1309. ),
  1310. 'RequestPayer' => array(
  1311. 'type' => 'string',
  1312. 'location' => 'header',
  1313. 'sentAs' => 'x-cos-request-payer',
  1314. ),
  1315. 'ACP' => array(
  1316. 'type' => 'object',
  1317. 'additionalProperties' => true,
  1318. ),
  1319. )
  1320. ),
  1321. // 设置存储桶(Bucket) 的访问权限(Access Control List, ACL)的方法.
  1322. 'PutBucketAcl' => array(
  1323. 'httpMethod' => 'PUT',
  1324. 'uri' => '/{Bucket}?acl',
  1325. 'class' => 'Qcloud\\Cos\\Command',
  1326. 'responseClass' => 'PutBucketAclOutput',
  1327. 'responseType' => 'model',
  1328. 'data' => array(
  1329. 'xmlRoot' => array(
  1330. 'name' => 'AccessControlPolicy',
  1331. ),
  1332. ),
  1333. 'parameters' => array(
  1334. 'ACL' => array(
  1335. 'type' => 'string',
  1336. 'location' => 'header',
  1337. 'sentAs' => 'x-cos-acl',
  1338. ),
  1339. 'Grants' => array(
  1340. 'type' => 'array',
  1341. 'location' => 'xml',
  1342. 'sentAs' => 'AccessControlList',
  1343. 'items' => array(
  1344. 'name' => 'Grant',
  1345. 'type' => 'object',
  1346. 'properties' => array(
  1347. 'Grantee' => array(
  1348. 'type' => 'object',
  1349. 'properties' => array(
  1350. 'DisplayName' => array(
  1351. 'type' => 'string',
  1352. ),
  1353. 'EmailAddress' => array(
  1354. 'type' => 'string',
  1355. ),
  1356. 'ID' => array(
  1357. 'type' => 'string',
  1358. ),
  1359. 'Type' => array(
  1360. 'required' => true,
  1361. 'type' => 'string',
  1362. 'sentAs' => 'xsi:type',
  1363. 'data' => array(
  1364. 'xmlAttribute' => true,
  1365. 'xmlNamespace' => 'http://www.w3.org/2001/XMLSchema-instance',
  1366. ),
  1367. ),
  1368. 'URI' => array(
  1369. 'type' => 'string',
  1370. ),
  1371. ),
  1372. ),
  1373. 'Permission' => array(
  1374. 'type' => 'string',
  1375. ),
  1376. ),
  1377. ),
  1378. ),
  1379. 'Owner' => array(
  1380. 'type' => 'object',
  1381. 'location' => 'xml',
  1382. 'properties' => array(
  1383. 'DisplayName' => array(
  1384. 'type' => 'string',
  1385. ),
  1386. 'ID' => array(
  1387. 'type' => 'string',
  1388. ),
  1389. ),
  1390. ),
  1391. 'Bucket' => array(
  1392. 'required' => true,
  1393. 'type' => 'string',
  1394. 'location' => 'uri',
  1395. ),
  1396. 'GrantFullControl' => array(
  1397. 'type' => 'string',
  1398. 'location' => 'header',
  1399. 'sentAs' => 'x-cos-grant-full-control',
  1400. ),
  1401. 'GrantRead' => array(
  1402. 'type' => 'string',
  1403. 'location' => 'header',
  1404. 'sentAs' => 'x-cos-grant-read',
  1405. ),
  1406. 'GrantReadACP' => array(
  1407. 'type' => 'string',
  1408. 'location' => 'header',
  1409. 'sentAs' => 'x-cos-grant-read-acp',
  1410. ),
  1411. 'GrantWrite' => array(
  1412. 'type' => 'string',
  1413. 'location' => 'header',
  1414. 'sentAs' => 'x-cos-grant-write',
  1415. ),
  1416. 'GrantWriteACP' => array(
  1417. 'type' => 'string',
  1418. 'location' => 'header',
  1419. 'sentAs' => 'x-cos-grant-write-acp',
  1420. ),
  1421. 'ACP' => array(
  1422. 'type' => 'object',
  1423. 'additionalProperties' => true,
  1424. ),
  1425. ),
  1426. ),
  1427. // 设置存储桶(Bucket) 的跨域配置信息的方法.
  1428. 'PutBucketCors' => array(
  1429. 'httpMethod' => 'PUT',
  1430. 'uri' => '/{Bucket}?cors',
  1431. 'class' => 'Qcloud\\Cos\\Command',
  1432. 'responseClass' => 'PutBucketCorsOutput',
  1433. 'responseType' => 'model',
  1434. 'data' => array(
  1435. 'xmlRoot' => array(
  1436. 'name' => 'CORSConfiguration',
  1437. ),
  1438. 'contentMd5' => true,
  1439. ),
  1440. 'parameters' => array(
  1441. 'Bucket' => array(
  1442. 'required' => true,
  1443. 'type' => 'string',
  1444. 'location' => 'uri',
  1445. ),
  1446. 'CORSRules' => array(
  1447. 'required' => true,
  1448. 'type' => 'array',
  1449. 'location' => 'xml',
  1450. 'data' => array(
  1451. 'xmlFlattened' => true,
  1452. ),
  1453. 'items' => array(
  1454. 'name' => 'CORSRule',
  1455. 'type' => 'object',
  1456. 'sentAs' => 'CORSRule',
  1457. 'properties' => array(
  1458. 'ID' => array(
  1459. 'type' => 'string',
  1460. ),
  1461. 'AllowedHeaders' => array(
  1462. 'type' => 'array',
  1463. 'data' => array(
  1464. 'xmlFlattened' => true,
  1465. ),
  1466. 'items' => array(
  1467. 'name' => 'AllowedHeader',
  1468. 'type' => 'string',
  1469. 'sentAs' => 'AllowedHeader',
  1470. ),
  1471. ),
  1472. 'AllowedMethods' => array(
  1473. 'required' => true,
  1474. 'type' => 'array',
  1475. 'data' => array(
  1476. 'xmlFlattened' => true,
  1477. ),
  1478. 'items' => array(
  1479. 'name' => 'AllowedMethod',
  1480. 'type' => 'string',
  1481. 'sentAs' => 'AllowedMethod',
  1482. ),
  1483. ),
  1484. 'AllowedOrigins' => array(
  1485. 'required' => true,
  1486. 'type' => 'array',
  1487. 'data' => array(
  1488. 'xmlFlattened' => true,
  1489. ),
  1490. 'items' => array(
  1491. 'name' => 'AllowedOrigin',
  1492. 'type' => 'string',
  1493. 'sentAs' => 'AllowedOrigin',
  1494. ),
  1495. ),
  1496. 'ExposeHeaders' => array(
  1497. 'type' => 'array',
  1498. 'data' => array(
  1499. 'xmlFlattened' => true,
  1500. ),
  1501. 'items' => array(
  1502. 'name' => 'ExposeHeader',
  1503. 'type' => 'string',
  1504. 'sentAs' => 'ExposeHeader',
  1505. ),
  1506. ),
  1507. 'MaxAgeSeconds' => array(
  1508. 'type' => 'numeric',
  1509. ),
  1510. ),
  1511. ),
  1512. ),
  1513. ),
  1514. ),
  1515. // 设置存储桶(Bucket) 的Domain信息的方法.
  1516. 'PutBucketDomain' => array(
  1517. 'httpMethod' => 'PUT',
  1518. 'uri' => '/{Bucket}?domain',
  1519. 'class' => 'Qcloud\\Cos\\Command',
  1520. 'responseClass' => 'PutBucketDomainOutput',
  1521. 'responseType' => 'model',
  1522. 'data' => array(
  1523. 'xmlRoot' => array(
  1524. 'name' => 'DomainConfiguration',
  1525. ),
  1526. 'contentMd5' => true,
  1527. ),
  1528. 'parameters' => array(
  1529. 'Bucket' => array(
  1530. 'required' => true,
  1531. 'type' => 'string',
  1532. 'location' => 'uri',
  1533. ),
  1534. 'DomainRules' => array(
  1535. 'required' => true,
  1536. 'type' => 'array',
  1537. 'location' => 'xml',
  1538. 'data' => array(
  1539. 'xmlFlattened' => true,
  1540. ),
  1541. 'items' => array(
  1542. 'name' => 'DomainRule',
  1543. 'type' => 'object',
  1544. 'sentAs' => 'DomainRule',
  1545. 'properties' => array(
  1546. 'Status' => array(
  1547. 'required' => true,
  1548. 'type' => 'string',
  1549. ),
  1550. 'Name' => array(
  1551. 'required' => true,
  1552. 'type' => 'string',
  1553. ),
  1554. 'Type' => array(
  1555. 'required' => true,
  1556. 'type' => 'string',
  1557. ),
  1558. 'ForcedReplacement' => array(
  1559. 'type' => 'string',
  1560. ),
  1561. ),
  1562. ),
  1563. ),
  1564. ),
  1565. ),
  1566. // 设置存储桶(Bucket) 生命周期配置的方法.
  1567. 'PutBucketLifecycle' => array(
  1568. 'httpMethod' => 'PUT',
  1569. 'uri' => '/{Bucket}?lifecycle',
  1570. 'class' => 'Qcloud\\Cos\\Command',
  1571. 'responseClass' => 'PutBucketLifecycleOutput',
  1572. 'responseType' => 'model',
  1573. 'data' => array(
  1574. 'xmlRoot' => array(
  1575. 'name' => 'LifecycleConfiguration',
  1576. ),
  1577. 'contentMd5' => true,
  1578. ),
  1579. 'parameters' => array(
  1580. 'Bucket' => array(
  1581. 'required' => true,
  1582. 'type' => 'string',
  1583. 'location' => 'uri',
  1584. ),
  1585. 'Rules' => array(
  1586. 'required' => true,
  1587. 'type' => 'array',
  1588. 'location' => 'xml',
  1589. 'data' => array(
  1590. 'xmlFlattened' => true,
  1591. ),
  1592. 'items' => array(
  1593. 'name' => 'Rule',
  1594. 'type' => 'object',
  1595. 'sentAs' => 'Rule',
  1596. 'properties' => array(
  1597. 'Expiration' => array(
  1598. 'type' => 'object',
  1599. 'properties' => array(
  1600. 'Date' => array(
  1601. 'type' => array(
  1602. 'object',
  1603. 'string',
  1604. 'integer',
  1605. ),
  1606. 'format' => 'date-time',
  1607. ),
  1608. 'Days' => array(
  1609. 'type' => 'numeric',
  1610. ),
  1611. ),
  1612. ),
  1613. 'ID' => array(
  1614. 'type' => 'string',
  1615. ),
  1616. 'Filter' => array(
  1617. 'type' => 'object',
  1618. 'require' => true,
  1619. 'properties' => array(
  1620. 'Prefix' => array(
  1621. 'type' => 'string',
  1622. 'require' => true,
  1623. ),
  1624. 'Tag' => array(
  1625. 'type' => 'object',
  1626. 'require' => true,
  1627. 'properties' => array(
  1628. 'Key' => array(
  1629. 'type' => 'string'
  1630. ),
  1631. 'filters' => array(
  1632. 'Qcloud\\Cos\\Client::explodeKey'),
  1633. 'Value' => array(
  1634. 'type' => 'string'
  1635. ),
  1636. )
  1637. )
  1638. ),
  1639. ),
  1640. 'Status' => array(
  1641. 'required' => true,
  1642. 'type' => 'string',
  1643. ),
  1644. 'Transitions' => array(
  1645. 'type' => 'array',
  1646. 'location' => 'xml',
  1647. 'data' => array(
  1648. 'xmlFlattened' => true,
  1649. ),
  1650. 'items' => array(
  1651. 'name' => 'Transition',
  1652. 'type' => 'object',
  1653. 'sentAs' => 'Transition',
  1654. 'properties' => array(
  1655. 'Date' => array(
  1656. 'type' => array(
  1657. 'object',
  1658. 'string',
  1659. 'integer',
  1660. ),
  1661. 'format' => 'date-time',
  1662. ),
  1663. 'Days' => array(
  1664. 'type' => 'numeric',
  1665. ),
  1666. 'StorageClass' => array(
  1667. 'type' => 'string',
  1668. )))),
  1669. 'NoncurrentVersionTransition' => array(
  1670. 'type' => 'object',
  1671. 'properties' => array(
  1672. 'NoncurrentDays' => array(
  1673. 'type' => 'numeric',
  1674. ),
  1675. 'StorageClass' => array(
  1676. 'type' => 'string',
  1677. ),
  1678. ),
  1679. ),
  1680. 'NoncurrentVersionExpiration' => array(
  1681. 'type' => 'object',
  1682. 'properties' => array(
  1683. 'NoncurrentDays' => array(
  1684. 'type' => 'numeric',
  1685. ),
  1686. ),
  1687. ),
  1688. ),
  1689. ),
  1690. ),
  1691. ),
  1692. ),
  1693. // 存储桶(Bucket)版本控制的方法.
  1694. 'PutBucketVersioning' => array(
  1695. 'httpMethod' => 'PUT',
  1696. 'uri' => '/{Bucket}?versioning',
  1697. 'class' => 'Qcloud\\Cos\\Command',
  1698. 'responseClass' => 'PutBucketVersioningOutput',
  1699. 'responseType' => 'model',
  1700. 'data' => array(
  1701. 'xmlRoot' => array(
  1702. 'name' => 'VersioningConfiguration',
  1703. ),
  1704. ),
  1705. 'parameters' => array(
  1706. 'Bucket' => array(
  1707. 'required' => true,
  1708. 'type' => 'string',
  1709. 'location' => 'uri',
  1710. ),
  1711. 'MFA' => array(
  1712. 'type' => 'string',
  1713. 'location' => 'header',
  1714. 'sentAs' => 'x-cos-mfa',
  1715. ),
  1716. 'MFADelete' => array(
  1717. 'type' => 'string',
  1718. 'location' => 'xml',
  1719. 'sentAs' => 'MfaDelete',
  1720. ),
  1721. 'Status' => array(
  1722. 'type' => 'string',
  1723. 'location' => 'xml',
  1724. ),
  1725. ),
  1726. ),
  1727. // 配置存储桶(Bucket) Accelerate的方法.
  1728. 'PutBucketAccelerate' => array(
  1729. 'httpMethod' => 'PUT',
  1730. 'uri' => '/{Bucket}?accelerate',
  1731. 'class' => 'Qcloud\\Cos\\Command',
  1732. 'responseClass' => 'PutBucketAccelerateOutput',
  1733. 'responseType' => 'model',
  1734. 'data' => array(
  1735. 'xmlRoot' => array(
  1736. 'name' => 'AccelerateConfiguration',
  1737. ),
  1738. 'xmlAllowEmpty' => true,
  1739. ),
  1740. 'parameters' => array(
  1741. 'Bucket' => array(
  1742. 'required' => true,
  1743. 'type' => 'string',
  1744. 'location' => 'uri',
  1745. ),
  1746. 'Status' => array(
  1747. 'required' => true,
  1748. 'type' => 'string',
  1749. 'location' => 'xml',
  1750. ),
  1751. 'Type' => array(
  1752. 'required' => true,
  1753. 'type' => 'string',
  1754. 'location' => 'xml',
  1755. ),
  1756. ),
  1757. ),
  1758. // 配置存储桶(Bucket) website的方法.
  1759. 'PutBucketWebsite' => array(
  1760. 'httpMethod' => 'PUT',
  1761. 'uri' => '/{Bucket}?website',
  1762. 'class' => 'Qcloud\\Cos\\Command',
  1763. 'responseClass' => 'PutBucketWebsiteOutput',
  1764. 'responseType' => 'model',
  1765. 'data' => array(
  1766. 'xmlRoot' => array(
  1767. 'name' => 'WebsiteConfiguration',
  1768. ),
  1769. 'xmlAllowEmpty' => true,
  1770. ),
  1771. 'parameters' => array(
  1772. 'Bucket' => array(
  1773. 'required' => true,
  1774. 'type' => 'string',
  1775. 'location' => 'uri',
  1776. ),
  1777. 'ErrorDocument' => array(
  1778. 'type' => 'object',
  1779. 'location' => 'xml',
  1780. 'properties' => array(
  1781. 'Key' => array(
  1782. 'type' => 'string',
  1783. 'minLength' => 1,
  1784. ),
  1785. ),
  1786. ),
  1787. 'IndexDocument' => array(
  1788. 'required' => true,
  1789. 'type' => 'object',
  1790. 'location' => 'xml',
  1791. 'properties' => array(
  1792. 'Suffix' => array(
  1793. 'required' => true,
  1794. 'type' => 'string',
  1795. ),
  1796. ),
  1797. ),
  1798. 'RedirectAllRequestsTo' => array(
  1799. 'type' => 'object',
  1800. 'location' => 'xml',
  1801. 'properties' => array(
  1802. 'HostName' => array(
  1803. 'type' => 'string',
  1804. ),
  1805. 'Protocol' => array(
  1806. 'type' => 'string',
  1807. ),
  1808. ),
  1809. ),
  1810. 'RoutingRules' => array(
  1811. 'type' => 'array',
  1812. 'location' => 'xml',
  1813. 'items' => array(
  1814. 'name' => 'RoutingRule',
  1815. 'type' => 'object',
  1816. 'properties' => array(
  1817. 'Condition' => array(
  1818. 'type' => 'object',
  1819. 'properties' => array(
  1820. 'HttpErrorCodeReturnedEquals' => array(
  1821. 'type' => 'string',
  1822. ),
  1823. 'KeyPrefixEquals' => array(
  1824. 'type' => 'string',
  1825. ),
  1826. ),
  1827. ),
  1828. 'Redirect' => array(
  1829. 'type' => 'object',
  1830. 'properties' => array(
  1831. 'HostName' => array(
  1832. 'type' => 'string',
  1833. ),
  1834. 'HttpRedirectCode' => array(
  1835. 'type' => 'string',
  1836. ),
  1837. 'Protocol' => array(
  1838. 'type' => 'string',
  1839. ),
  1840. 'ReplaceKeyPrefixWith' => array(
  1841. 'type' => 'string',
  1842. ),
  1843. 'ReplaceKeyWith' => array(
  1844. 'type' => 'string',
  1845. ),
  1846. ),
  1847. ),
  1848. ),
  1849. ),
  1850. ),
  1851. ),
  1852. ),
  1853. // 配置存储桶(Bucket) 跨区域复制的方法.
  1854. 'PutBucketReplication' => array(
  1855. 'httpMethod' => 'PUT',
  1856. 'uri' => '/{Bucket}?replication',
  1857. 'class' => 'Qcloud\\Cos\\Command',
  1858. 'responseClass' => 'PutBucketReplicationOutput',
  1859. 'responseType' => 'model',
  1860. 'data' => array(
  1861. 'xmlRoot' => array(
  1862. 'name' => 'ReplicationConfiguration',
  1863. ),
  1864. 'contentMd5' => true,
  1865. ),
  1866. 'parameters' => array(
  1867. 'Bucket' => array(
  1868. 'required' => true,
  1869. 'type' => 'string',
  1870. 'location' => 'uri',
  1871. ),
  1872. 'Role' => array(
  1873. 'required' => true,
  1874. 'type' => 'string',
  1875. 'location' => 'xml',
  1876. ),
  1877. 'Rules' => array(
  1878. 'required' => true,
  1879. 'type' => 'array',
  1880. 'location' => 'xml',
  1881. 'data' => array(
  1882. 'xmlFlattened' => true,
  1883. ),
  1884. 'items' => array(
  1885. 'name' => 'ReplicationRule',
  1886. 'type' => 'object',
  1887. 'sentAs' => 'Rule',
  1888. 'properties' => array(
  1889. 'ID' => array(
  1890. 'type' => 'string',
  1891. ),
  1892. 'Prefix' => array(
  1893. 'required' => true,
  1894. 'type' => 'string',
  1895. ),
  1896. 'Status' => array(
  1897. 'required' => true,
  1898. 'type' => 'string',
  1899. ),
  1900. 'Destination' => array(
  1901. 'required' => true,
  1902. 'type' => 'object',
  1903. 'properties' => array(
  1904. 'Bucket' => array(
  1905. 'required' => true,
  1906. 'type' => 'string',
  1907. ),
  1908. 'StorageClass' => array(
  1909. 'type' => 'string',
  1910. ),
  1911. ),
  1912. ),
  1913. ),
  1914. ),
  1915. ),
  1916. ),
  1917. ),
  1918. // 设置存储桶(Bucket) 的回调设置的方法.
  1919. 'PutBucketNotification' => array(
  1920. 'httpMethod' => 'PUT',
  1921. 'uri' => '/{Bucket}?notification',
  1922. 'class' => 'Qcloud\\Cos\\Command',
  1923. 'responseClass' => 'PutBucketNotificationOutput',
  1924. 'responseType' => 'model',
  1925. 'data' => array(
  1926. 'xmlRoot' => array(
  1927. 'name' => 'NotificationConfiguration',
  1928. ),
  1929. ),
  1930. 'parameters' => array(
  1931. 'Bucket' => array(
  1932. 'required' => true,
  1933. 'type' => 'string',
  1934. 'location' => 'uri',
  1935. ),
  1936. 'CloudFunctionConfigurations' => array(
  1937. 'type' => 'array',
  1938. 'location' => 'xml',
  1939. 'data' => array(
  1940. 'xmlFlattened' => true,
  1941. ),
  1942. 'items' => array(
  1943. 'name' => 'CloudFunctionConfiguration',
  1944. 'type' => 'object',
  1945. 'sentAs' => 'CloudFunctionConfiguration',
  1946. 'properties' => array(
  1947. 'Id' => array(
  1948. 'type' => 'string',
  1949. ),
  1950. 'CloudFunction' => array(
  1951. 'required' => true,
  1952. 'type' => 'string',
  1953. 'sentAs' => 'CloudFunction',
  1954. ),
  1955. 'Events' => array(
  1956. 'required' => true,
  1957. 'type' => 'array',
  1958. 'data' => array(
  1959. 'xmlFlattened' => true,
  1960. ),
  1961. 'items' => array(
  1962. 'name' => 'Event',
  1963. 'type' => 'string',
  1964. 'sentAs' => 'Event',
  1965. ),
  1966. ),
  1967. 'Filter' => array(
  1968. 'type' => 'object',
  1969. 'properties' => array(
  1970. 'Key' => array(
  1971. 'type' => 'object',
  1972. 'sentAs' => 'Key',
  1973. 'properties' => array(
  1974. 'FilterRules' => array(
  1975. 'type' => 'array',
  1976. 'data' => array(
  1977. 'xmlFlattened' => true,
  1978. ),
  1979. 'items' => array(
  1980. 'name' => 'FilterRule',
  1981. 'type' => 'object',
  1982. 'sentAs' => 'FilterRule',
  1983. 'properties' => array(
  1984. 'Name' => array(
  1985. 'type' => 'string',
  1986. ),
  1987. 'Value' => array(
  1988. 'type' => 'string',
  1989. ),
  1990. ),
  1991. ),
  1992. ),
  1993. ),
  1994. ),
  1995. 'filters' => array(
  1996. 'Qcloud\\Cos\\Client::explodeKey')
  1997. ),
  1998. ),
  1999. ),
  2000. ),
  2001. ),
  2002. ),
  2003. ),
  2004. // 配置存储桶(Bucket) 标签的方法.
  2005. 'PutBucketTagging' => array(
  2006. 'httpMethod' => 'PUT',
  2007. 'uri' => '/{Bucket}?tagging',
  2008. 'class' => 'Qcloud\\Cos\\Command',
  2009. 'responseClass' => 'PutBucketTaggingOutput',
  2010. 'responseType' => 'model',
  2011. 'data' => array(
  2012. 'xmlRoot' => array(
  2013. 'name' => 'Tagging',
  2014. ),
  2015. 'contentMd5' => true,
  2016. ),
  2017. 'parameters' => array(
  2018. 'Bucket' => array(
  2019. 'required' => true,
  2020. 'type' => 'string',
  2021. 'location' => 'uri',
  2022. ),
  2023. 'TagSet' => array(
  2024. 'required' => true,
  2025. 'type' => 'array',
  2026. 'location' => 'xml',
  2027. 'items' => array(
  2028. 'name' => 'TagRule',
  2029. 'type' => 'object',
  2030. 'sentAs' => 'Tag',
  2031. 'properties' => array(
  2032. 'Key' => array(
  2033. 'required' => true,
  2034. 'type' => 'string',
  2035. ),
  2036. 'Value' => array(
  2037. 'required' => true,
  2038. 'type' => 'string',
  2039. ),
  2040. ),
  2041. ),
  2042. ),
  2043. ),
  2044. ),
  2045. //开启存储桶(Bucket) 日志服务的方法.
  2046. 'PutBucketLogging' => array(
  2047. 'httpMethod' => 'PUT',
  2048. 'uri' => '/{Bucket}?logging',
  2049. 'class' => 'Qcloud\\Cos\\Command',
  2050. 'responseClass' => 'PutBucketLoggingOutput',
  2051. 'responseType' => 'model',
  2052. 'data' => array(
  2053. 'xmlRoot' => array(
  2054. 'name' => 'BucketLoggingStatus',
  2055. ),
  2056. 'contentMd5' => true,
  2057. ),
  2058. 'parameters' => array(
  2059. 'Bucket' => array(
  2060. 'required' => true,
  2061. 'type' => 'string',
  2062. 'location' => 'uri',
  2063. ),
  2064. 'LoggingEnabled' => array(
  2065. 'location' => 'xml',
  2066. 'type' => 'object',
  2067. 'properties' => array(
  2068. 'TargetBucket' => array(
  2069. 'type' => 'string',
  2070. 'location' => 'xml',
  2071. ),
  2072. 'TargetPrefix' => array(
  2073. 'type' => 'string',
  2074. 'location' => 'xml',
  2075. ),
  2076. )
  2077. ),
  2078. ),
  2079. ),
  2080. // 配置存储桶(Bucket) 清单的方法.
  2081. 'PutBucketInventory' => array(
  2082. 'httpMethod' => 'PUT',
  2083. 'uri' => '/{Bucket}?inventory',
  2084. 'class' => 'Qcloud\\Cos\\Command',
  2085. 'responseClass' => 'PutBucketInventoryOutput',
  2086. 'responseType' => 'model',
  2087. 'data' => array(
  2088. 'xmlRoot' => array(
  2089. 'name' => 'InventoryConfiguration',
  2090. ),
  2091. 'contentMd5' => true,
  2092. ),
  2093. 'parameters' => array(
  2094. 'Bucket' => array(
  2095. 'required' => true,
  2096. 'type' => 'string',
  2097. 'location' => 'uri',
  2098. ),
  2099. 'Id' => array(
  2100. 'required' => true,
  2101. 'type' => 'string',
  2102. 'location' => 'xml',
  2103. ),
  2104. 'IsEnabled' => array(
  2105. 'required' => true,
  2106. 'type' => 'string',
  2107. 'location' => 'xml',
  2108. ),
  2109. 'Destination' => array(
  2110. 'type' => 'object',
  2111. 'location' => 'xml',
  2112. 'properties' => array(
  2113. 'COSBucketDestination'=> array(
  2114. 'type' => 'object',
  2115. 'properties' => array(
  2116. 'Format' => array(
  2117. 'type' => 'string',
  2118. 'require' => true,
  2119. ),
  2120. 'AccountId' => array(
  2121. 'type' => 'string',
  2122. 'require' => true,
  2123. ),
  2124. 'Bucket' => array(
  2125. 'type' => 'string',
  2126. 'require' => true,
  2127. ),
  2128. 'Prefix' => array(
  2129. 'type' => 'string',
  2130. ),
  2131. 'Encryption' => array(
  2132. 'type' => 'object',
  2133. 'properties' => array(
  2134. 'SSE-COS' => array(
  2135. 'type' => 'string',
  2136. ),
  2137. ),
  2138. ),
  2139. ),
  2140. ),
  2141. ),
  2142. ),
  2143. 'Schedule' => array(
  2144. 'required' => true,
  2145. 'type' => 'object',
  2146. 'location' => 'xml',
  2147. 'properties' => array(
  2148. 'Frequency' => array(
  2149. 'type' => 'string',
  2150. 'require' => true,
  2151. ),
  2152. )
  2153. ),
  2154. 'Filter' => array(
  2155. 'type' => 'object',
  2156. 'location' => 'xml',
  2157. 'properties' => array(
  2158. 'Prefix' => array(
  2159. 'type' => 'string',
  2160. ),
  2161. )
  2162. ),
  2163. 'IncludedObjectVersions' => array(
  2164. 'required' => true,
  2165. 'type' => 'string',
  2166. 'location' => 'xml',
  2167. ),
  2168. 'OptionalFields' => array(
  2169. 'type' => 'array',
  2170. 'location' => 'xml',
  2171. 'items' => array(
  2172. 'name' => 'Fields',
  2173. 'type' => 'string',
  2174. 'sentAs' => 'Field',
  2175. ),
  2176. ),
  2177. ),
  2178. ),
  2179. // 回热归档对象的方法.
  2180. 'RestoreObject' => array(
  2181. 'httpMethod' => 'POST',
  2182. 'uri' => '/{Bucket}{/Key*}?restore',
  2183. 'class' => 'Qcloud\\Cos\\Command',
  2184. 'responseClass' => 'RestoreObjectOutput',
  2185. 'responseType' => 'model',
  2186. 'data' => array(
  2187. 'xmlRoot' => array(
  2188. 'name' => 'RestoreRequest',
  2189. ),
  2190. ),
  2191. 'parameters' => array(
  2192. 'Bucket' => array(
  2193. 'required' => true,
  2194. 'type' => 'string',
  2195. 'location' => 'uri',
  2196. ),
  2197. 'Key' => array(
  2198. 'required' => true,
  2199. 'type' => 'string',
  2200. 'location' => 'uri',
  2201. 'minLength' => 1,
  2202. 'filters' => array(
  2203. 'Qcloud\\Cos\\Client::explodeKey')
  2204. ),
  2205. 'VersionId' => array(
  2206. 'type' => 'string',
  2207. 'location' => 'query',
  2208. 'sentAs' => 'versionId',
  2209. ),
  2210. 'Days' => array(
  2211. 'required' => true,
  2212. 'type' => 'numeric',
  2213. 'location' => 'xml',
  2214. ),
  2215. 'CASJobParameters' => array(
  2216. 'type' => 'object',
  2217. 'location' => 'xml',
  2218. 'properties' => array(
  2219. 'Tier' => array(
  2220. 'type' => 'string',
  2221. 'required' => true,
  2222. ),
  2223. ),
  2224. ),
  2225. 'RequestPayer' => array(
  2226. 'type' => 'string',
  2227. 'location' => 'header',
  2228. 'sentAs' => 'x-cos-request-payer',
  2229. ),
  2230. ),
  2231. ),
  2232. // 查询存储桶(Bucket)中正在进行中的分块上传对象的方法.
  2233. 'ListParts' => array(
  2234. 'httpMethod' => 'GET',
  2235. 'uri' => '/{Bucket}{/Key*}',
  2236. 'class' => 'Qcloud\\Cos\\Command',
  2237. 'responseClass' => 'ListPartsOutput',
  2238. 'responseType' => 'model',
  2239. 'parameters' => array(
  2240. 'Bucket' => array(
  2241. 'required' => true,
  2242. 'type' => 'string',
  2243. 'location' => 'uri'
  2244. ),
  2245. 'Key' => array(
  2246. 'required' => true,
  2247. 'type' => 'string',
  2248. 'location' => 'uri',
  2249. 'minLength' => 1,
  2250. 'filters' => array(
  2251. 'Qcloud\\Cos\\Client::explodeKey'
  2252. )
  2253. ),
  2254. 'MaxParts' => array(
  2255. 'type' => 'numeric',
  2256. 'location' => 'query',
  2257. 'sentAs' => 'max-parts'),
  2258. 'PartNumberMarker' => array(
  2259. 'type' => 'numeric',
  2260. 'location' => 'query',
  2261. 'sentAs' => 'part-number-marker'
  2262. ),
  2263. 'UploadId' => array(
  2264. 'required' => true,
  2265. 'type' => 'string',
  2266. 'location' => 'query',
  2267. 'sentAs' => 'uploadId'
  2268. )
  2269. )
  2270. ),
  2271. // 查询存储桶(Bucket) 下的部分或者全部对象的方法.
  2272. 'ListObjects' => array(
  2273. 'httpMethod' => 'GET',
  2274. 'uri' => '/{Bucket}',
  2275. 'class' => 'Qcloud\\Cos\\Command',
  2276. 'responseClass' => 'ListObjectsOutput',
  2277. 'responseType' => 'model',
  2278. 'parameters' => array(
  2279. 'Bucket' => array(
  2280. 'required' => true,
  2281. 'type' => 'string',
  2282. 'location' => 'uri'
  2283. ),
  2284. 'Delimiter' => array(
  2285. 'type' => 'string',
  2286. 'location' => 'query',
  2287. 'sentAs' => 'delimiter'
  2288. ),
  2289. 'EncodingType' => array(
  2290. 'type' => 'string',
  2291. 'location' => 'query',
  2292. 'sentAs' => 'encoding-type'
  2293. ),
  2294. 'Marker' => array(
  2295. 'type' => 'string',
  2296. 'location' => 'query',
  2297. 'sentAs' => 'marker'
  2298. ),
  2299. 'MaxKeys' => array(
  2300. 'type' => 'numeric',
  2301. 'location' => 'query',
  2302. 'sentAs' => 'max-keys'
  2303. ),
  2304. 'Prefix' => array(
  2305. 'type' => 'string',
  2306. 'location' => 'query',
  2307. 'sentAs' => 'prefix'
  2308. )
  2309. )
  2310. ),
  2311. // 获取所属账户的所有存储空间列表的方法.
  2312. 'ListBuckets' => array(
  2313. 'httpMethod' => 'GET',
  2314. 'uri' => '/',
  2315. 'class' => 'Qcloud\\Cos\\Command',
  2316. 'responseClass' => 'ListBucketsOutput',
  2317. 'responseType' => 'model',
  2318. 'parameters' => array(
  2319. ),
  2320. ),
  2321. // 获取多版本对象的方法.
  2322. 'ListObjectVersions' => array(
  2323. 'httpMethod' => 'GET',
  2324. 'uri' => '/{Bucket}?versions',
  2325. 'class' => 'Qcloud\\Cos\\Command',
  2326. 'responseClass' => 'ListObjectVersionsOutput',
  2327. 'responseType' => 'model',
  2328. 'parameters' => array(
  2329. 'Bucket' => array(
  2330. 'required' => true,
  2331. 'type' => 'string',
  2332. 'location' => 'uri',
  2333. ),
  2334. 'Delimiter' => array(
  2335. 'type' => 'string',
  2336. 'location' => 'query',
  2337. 'sentAs' => 'delimiter',
  2338. ),
  2339. 'EncodingType' => array(
  2340. 'type' => 'string',
  2341. 'location' => 'query',
  2342. 'sentAs' => 'encoding-type',
  2343. ),
  2344. 'KeyMarker' => array(
  2345. 'type' => 'string',
  2346. 'location' => 'query',
  2347. 'sentAs' => 'key-marker',
  2348. ),
  2349. 'MaxKeys' => array(
  2350. 'type' => 'numeric',
  2351. 'location' => 'query',
  2352. 'sentAs' => 'max-keys',
  2353. ),
  2354. 'Prefix' => array(
  2355. 'type' => 'string',
  2356. 'location' => 'query',
  2357. 'sentAs' => 'prefix',
  2358. ),
  2359. 'VersionIdMarker' => array(
  2360. 'type' => 'string',
  2361. 'location' => 'query',
  2362. 'sentAs' => 'version-id-marker',
  2363. )
  2364. ),
  2365. ),
  2366. // 获取已上传分块列表的方法
  2367. 'ListMultipartUploads' => array(
  2368. 'httpMethod' => 'GET',
  2369. 'uri' => '/{Bucket}?uploads',
  2370. 'class' => 'Qcloud\\Cos\\Command',
  2371. 'responseClass' => 'ListMultipartUploadsOutput',
  2372. 'responseType' => 'model',
  2373. 'parameters' => array(
  2374. 'Bucket' => array(
  2375. 'required' => true,
  2376. 'type' => 'string',
  2377. 'location' => 'uri',
  2378. ),
  2379. 'Delimiter' => array(
  2380. 'type' => 'string',
  2381. 'location' => 'query',
  2382. 'sentAs' => 'delimiter',
  2383. ),
  2384. 'EncodingType' => array(
  2385. 'type' => 'string',
  2386. 'location' => 'query',
  2387. 'sentAs' => 'encoding-type',
  2388. ),
  2389. 'KeyMarker' => array(
  2390. 'type' => 'string',
  2391. 'location' => 'query',
  2392. 'sentAs' => 'key-marker',
  2393. ),
  2394. 'MaxUploads' => array(
  2395. 'type' => 'numeric',
  2396. 'location' => 'query',
  2397. 'sentAs' => 'max-uploads',
  2398. ),
  2399. 'Prefix' => array(
  2400. 'type' => 'string',
  2401. 'location' => 'query',
  2402. 'sentAs' => 'prefix',
  2403. ),
  2404. 'UploadIdMarker' => array(
  2405. 'type' => 'string',
  2406. 'location' => 'query',
  2407. 'sentAs' => 'upload-id-marker',
  2408. )
  2409. ),
  2410. ),
  2411. // 获取清单列表的方法.
  2412. 'ListBucketInventoryConfigurations' => array(
  2413. 'httpMethod' => 'GET',
  2414. 'uri' => '/{Bucket}?inventory',
  2415. 'class' => 'Qcloud\\Cos\\Command',
  2416. 'responseClass' => 'ListBucketInventoryConfigurationsOutput',
  2417. 'responseType' => 'model',
  2418. 'parameters' => array(
  2419. 'Bucket' => array(
  2420. 'required' => true,
  2421. 'type' => 'string',
  2422. 'location' => 'uri'
  2423. ),
  2424. 'ContinuationToken' => array(
  2425. 'type' => 'string',
  2426. 'location' => 'query',
  2427. 'sentAs' => 'continuation-token',
  2428. ),
  2429. ),
  2430. ),
  2431. // 获取对象的meta信息的方法
  2432. 'HeadObject' => array(
  2433. 'httpMethod' => 'HEAD',
  2434. 'uri' => '/{Bucket}{/Key*}',
  2435. 'class' => 'Qcloud\\Cos\\Command',
  2436. 'responseClass' => 'HeadObjectOutput',
  2437. 'responseType' => 'model',
  2438. 'parameters' => array(
  2439. 'Bucket' => array(
  2440. 'required' => true,
  2441. 'type' => 'string',
  2442. 'location' => 'uri',
  2443. ),
  2444. 'IfMatch' => array(
  2445. 'type' => 'string',
  2446. 'location' => 'header',
  2447. 'sentAs' => 'If-Match',
  2448. ),
  2449. 'IfModifiedSince' => array(
  2450. 'type' => array(
  2451. 'object',
  2452. 'string',
  2453. 'integer',
  2454. ),
  2455. 'format' => 'date-time-http',
  2456. 'location' => 'header',
  2457. 'sentAs' => 'If-Modified-Since',
  2458. ),
  2459. 'IfNoneMatch' => array(
  2460. 'type' => 'string',
  2461. 'location' => 'header',
  2462. 'sentAs' => 'If-None-Match',
  2463. ),
  2464. 'IfUnmodifiedSince' => array(
  2465. 'type' => array(
  2466. 'object',
  2467. 'string',
  2468. 'integer',
  2469. ),
  2470. 'format' => 'date-time-http',
  2471. 'location' => 'header',
  2472. 'sentAs' => 'If-Unmodified-Since',
  2473. ),
  2474. 'Key' => array(
  2475. 'required' => true,
  2476. 'type' => 'string',
  2477. 'location' => 'uri',
  2478. 'minLength' => 1,
  2479. 'filters' => array(
  2480. 'Qcloud\\Cos\\Client::explodeKey')
  2481. ),
  2482. 'Range' => array(
  2483. 'type' => 'string',
  2484. 'location' => 'header',
  2485. ),
  2486. 'VersionId' => array(
  2487. 'type' => 'string',
  2488. 'location' => 'query',
  2489. 'sentAs' => 'versionId',
  2490. ),
  2491. 'SSECustomerAlgorithm' => array(
  2492. 'type' => 'string',
  2493. 'location' => 'header',
  2494. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  2495. ),
  2496. 'SSECustomerKey' => array(
  2497. 'type' => 'string',
  2498. 'location' => 'header',
  2499. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  2500. ),
  2501. 'SSECustomerKeyMD5' => array(
  2502. 'type' => 'string',
  2503. 'location' => 'header',
  2504. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  2505. ),
  2506. 'RequestPayer' => array(
  2507. 'type' => 'string',
  2508. 'location' => 'header',
  2509. 'sentAs' => 'x-cos-request-payer',
  2510. ),
  2511. )
  2512. ),
  2513. // 存储桶(Bucket) 是否存在的方法.
  2514. 'HeadBucket' => array(
  2515. 'httpMethod' => 'HEAD',
  2516. 'uri' => '/{Bucket}',
  2517. 'class' => 'Qcloud\\Cos\\Command',
  2518. 'responseClass' => 'HeadBucketOutput',
  2519. 'responseType' => 'model',
  2520. 'parameters' => array(
  2521. 'Bucket' => array(
  2522. 'required' => true,
  2523. 'type' => 'string',
  2524. 'location' => 'uri',
  2525. ),
  2526. )
  2527. ),
  2528. // 分块copy的方法.
  2529. 'UploadPartCopy' => array(
  2530. 'httpMethod' => 'PUT',
  2531. 'uri' => '/{Bucket}{/Key*}',
  2532. 'class' => 'Qcloud\\Cos\\Command',
  2533. 'responseClass' => 'UploadPartCopyOutput',
  2534. 'responseType' => 'model',
  2535. 'data' => array(
  2536. 'xmlRoot' => array(
  2537. 'name' => 'UploadPartCopyRequest',
  2538. ),
  2539. ),
  2540. 'parameters' => array(
  2541. 'Bucket' => array(
  2542. 'required' => true,
  2543. 'type' => 'string',
  2544. 'location' => 'uri',
  2545. ),
  2546. 'CopySource' => array(
  2547. 'required' => true,
  2548. 'type' => 'string',
  2549. 'location' => 'header',
  2550. 'sentAs' => 'x-cos-copy-source',
  2551. ),
  2552. 'CopySourceIfMatch' => array(
  2553. 'type' => 'string',
  2554. 'location' => 'header',
  2555. 'sentAs' => 'x-cos-copy-source-if-match',
  2556. ),
  2557. 'CopySourceIfModifiedSince' => array(
  2558. 'type' => array(
  2559. 'object',
  2560. 'string',
  2561. 'integer',
  2562. ),
  2563. 'format' => 'date-time-http',
  2564. 'location' => 'header',
  2565. 'sentAs' => 'x-cos-copy-source-if-modified-since',
  2566. ),
  2567. 'CopySourceIfNoneMatch' => array(
  2568. 'type' => 'string',
  2569. 'location' => 'header',
  2570. 'sentAs' => 'x-cos-copy-source-if-none-match',
  2571. ),
  2572. 'CopySourceIfUnmodifiedSince' => array(
  2573. 'type' => array(
  2574. 'object',
  2575. 'string',
  2576. 'integer',
  2577. ),
  2578. 'format' => 'date-time-http',
  2579. 'location' => 'header',
  2580. 'sentAs' => 'x-cos-copy-source-if-unmodified-since',
  2581. ),
  2582. 'CopySourceRange' => array(
  2583. 'type' => 'string',
  2584. 'location' => 'header',
  2585. 'sentAs' => 'x-cos-copy-source-range',
  2586. ),
  2587. 'Key' => array(
  2588. 'required' => true,
  2589. 'type' => 'string',
  2590. 'location' => 'uri',
  2591. 'minLength' => 1,
  2592. 'filters' => array(
  2593. 'Qcloud\\Cos\\Client::explodeKey')
  2594. ),
  2595. 'PartNumber' => array(
  2596. 'required' => true,
  2597. 'type' => 'numeric',
  2598. 'location' => 'query',
  2599. 'sentAs' => 'partNumber',
  2600. ),
  2601. 'UploadId' => array(
  2602. 'required' => true,
  2603. 'type' => 'string',
  2604. 'location' => 'query',
  2605. 'sentAs' => 'uploadId',
  2606. ),
  2607. 'SSECustomerAlgorithm' => array(
  2608. 'type' => 'string',
  2609. 'location' => 'header',
  2610. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  2611. ),
  2612. 'SSECustomerKey' => array(
  2613. 'type' => 'string',
  2614. 'location' => 'header',
  2615. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  2616. ),
  2617. 'SSECustomerKeyMD5' => array(
  2618. 'type' => 'string',
  2619. 'location' => 'header',
  2620. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  2621. ),
  2622. 'CopySourceSSECustomerAlgorithm' => array(
  2623. 'type' => 'string',
  2624. 'location' => 'header',
  2625. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-algorithm',
  2626. ),
  2627. 'CopySourceSSECustomerKey' => array(
  2628. 'type' => 'string',
  2629. 'location' => 'header',
  2630. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-key',
  2631. ),
  2632. 'CopySourceSSECustomerKeyMD5' => array(
  2633. 'type' => 'string',
  2634. 'location' => 'header',
  2635. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-key-MD5',
  2636. ),
  2637. 'RequestPayer' => array(
  2638. 'type' => 'string',
  2639. 'location' => 'header',
  2640. 'sentAs' => 'x-cos-request-payer',
  2641. )
  2642. ),
  2643. ),
  2644. 'SelectObjectContent' => array(
  2645. 'httpMethod' => 'Post',
  2646. 'uri' => '/{/Key*}?select&select-type=2',
  2647. 'class' => 'Qcloud\\Cos\\Command',
  2648. 'responseClass' => 'SelectObjectContentOutput',
  2649. 'responseType' => 'model',
  2650. 'data' => array(
  2651. 'xmlRoot' => array(
  2652. 'name' => 'SelectRequest',
  2653. ),
  2654. 'contentMd5' => true,
  2655. ),
  2656. 'parameters' => array(
  2657. 'Bucket' => array(
  2658. 'required' => true,
  2659. 'type' => 'string',
  2660. 'location' => 'uri',
  2661. ),
  2662. 'Key' => array(
  2663. 'required' => true,
  2664. 'type' => 'string',
  2665. 'location' => 'uri',
  2666. 'minLength' => 1,
  2667. 'filters' => array(
  2668. 'Qcloud\\Cos\\Client::explodeKey')
  2669. ),
  2670. 'Expression' => array(
  2671. 'type' => 'string',
  2672. 'location' => 'xml'
  2673. ),
  2674. 'ExpressionType' => array(
  2675. 'type' => 'string',
  2676. 'location' => 'xml'
  2677. ),
  2678. 'InputSerialization' => array(
  2679. 'location' => 'xml',
  2680. 'type' => 'object',
  2681. 'properties' => array(
  2682. 'CompressionType' => array(
  2683. 'type' => 'string',
  2684. 'location' => 'xml',
  2685. ),
  2686. 'CSV' => array(
  2687. 'type' => 'object',
  2688. 'location' => 'xml',
  2689. 'properties' => array(
  2690. 'FileHeaderInfo' => array(
  2691. 'type' => 'string',
  2692. 'location' => 'xml',
  2693. ),
  2694. 'RecordDelimiter' => array(
  2695. 'type' => 'string',
  2696. 'location' => 'xml',
  2697. ),
  2698. 'FieldDelimiter' => array(
  2699. 'type' => 'string',
  2700. 'location' => 'xml',
  2701. ),
  2702. 'QuoteCharacter' => array(
  2703. 'type' => 'string',
  2704. 'location' => 'xml',
  2705. ),
  2706. 'QuoteEscapeCharacter' => array(
  2707. 'type' => 'string',
  2708. 'location' => 'xml',
  2709. ),
  2710. 'Comments' => array(
  2711. 'type' => 'string',
  2712. 'location' => 'xml',
  2713. ),
  2714. 'AllowQuotedRecordDelimiter' => array(
  2715. 'type' => 'string',
  2716. 'location' => 'xml',
  2717. ),
  2718. )
  2719. ),
  2720. 'JSON' => array(
  2721. 'type' => 'string',
  2722. 'location' => 'object',
  2723. 'properties' => array(
  2724. 'Type' => array(
  2725. 'type' => 'string',
  2726. 'location' => 'xml',
  2727. )
  2728. )
  2729. ),
  2730. )
  2731. ),
  2732. 'OutputSerialization' => array(
  2733. 'location' => 'xml',
  2734. 'type' => 'object',
  2735. 'properties' => array(
  2736. 'CompressionType' => array(
  2737. 'type' => 'string',
  2738. 'location' => 'xml',
  2739. ),
  2740. 'CSV' => array(
  2741. 'type' => 'object',
  2742. 'location' => 'xml',
  2743. 'properties' => array(
  2744. 'QuoteFields' => array(
  2745. 'type' => 'string',
  2746. 'location' => 'xml',
  2747. ),
  2748. 'RecordDelimiter' => array(
  2749. 'type' => 'string',
  2750. 'location' => 'xml',
  2751. ),
  2752. 'FieldDelimiter' => array(
  2753. 'type' => 'string',
  2754. 'location' => 'xml',
  2755. ),
  2756. 'QuoteCharacter' => array(
  2757. 'type' => 'string',
  2758. 'location' => 'xml',
  2759. ),
  2760. 'QuoteEscapeCharacter' => array(
  2761. 'type' => 'string',
  2762. 'location' => 'xml',
  2763. ),
  2764. )
  2765. ),
  2766. 'JSON' => array(
  2767. 'type' => 'string',
  2768. 'location' => 'object',
  2769. 'properties' => array(
  2770. 'RecordDelimiter' => array(
  2771. 'type' => 'string',
  2772. 'location' => 'xml',
  2773. )
  2774. )
  2775. ),
  2776. )
  2777. ),
  2778. 'RequestProgress' => array(
  2779. 'location' => 'xml',
  2780. 'type' => 'object',
  2781. 'properties' => array(
  2782. 'Enabled' => array(
  2783. 'type' => 'string',
  2784. 'location' => 'xml',
  2785. ),
  2786. )
  2787. ),
  2788. ),
  2789. ),
  2790. ),
  2791. 'models' => array(
  2792. 'AbortMultipartUploadOutput' => array(
  2793. 'type' => 'object',
  2794. 'additionalProperties' => true,
  2795. 'properties' => array(
  2796. 'RequestId' => array(
  2797. 'location' => 'header',
  2798. 'sentAs' => 'x-cos-request-id'
  2799. )
  2800. )
  2801. ),
  2802. 'CreateBucketOutput' => array(
  2803. 'type' => 'object',
  2804. 'additionalProperties' => true,
  2805. 'properties' => array(
  2806. 'Location' => array(
  2807. 'type' => 'string',
  2808. 'location' => 'header'
  2809. ),
  2810. 'RequestId' => array(
  2811. 'location' => 'header',
  2812. 'sentAs' => 'x-cos-request-id'
  2813. )
  2814. )
  2815. ),
  2816. 'CompleteMultipartUploadOutput' => array(
  2817. 'type' => 'object',
  2818. 'additionalProperties' => true,
  2819. 'properties' => array(
  2820. 'Location' => array(
  2821. 'type' => 'string',
  2822. 'location' => 'xml',
  2823. ),
  2824. 'Bucket' => array(
  2825. 'type' => 'string',
  2826. 'location' => 'xml',
  2827. ),
  2828. 'Key' => array(
  2829. 'type' => 'string',
  2830. 'location' => 'xml'
  2831. ),
  2832. 'Expiration' => array(
  2833. 'type' => 'string',
  2834. 'location' => 'header',
  2835. 'sentAs' => 'x-cos-expiration',
  2836. ),
  2837. 'ETag' => array(
  2838. 'type' => 'string',
  2839. 'location' => 'xml',
  2840. ),
  2841. 'ServerSideEncryption' => array(
  2842. 'type' => 'string',
  2843. 'location' => 'header',
  2844. 'sentAs' => 'x-cos-server-side-encryption',
  2845. ),
  2846. 'VersionId' => array(
  2847. 'type' => 'string',
  2848. 'location' => 'header',
  2849. 'sentAs' => 'x-cos-version-id',
  2850. ),
  2851. 'SSEKMSKeyId' => array(
  2852. 'type' => 'string',
  2853. 'location' => 'header',
  2854. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  2855. ),
  2856. 'RequestCharged' => array(
  2857. 'type' => 'string',
  2858. 'location' => 'header',
  2859. 'sentAs' => 'x-cos-request-charged',
  2860. ),
  2861. 'RequestId' => array(
  2862. 'location' => 'header',
  2863. 'sentAs' => 'x-cos-request-id',
  2864. ),
  2865. ),
  2866. ),
  2867. 'CreateMultipartUploadOutput' => array(
  2868. 'type' => 'object',
  2869. 'additionalProperties' => true,
  2870. 'properties' => array(
  2871. 'Bucket' => array(
  2872. 'type' => 'string',
  2873. 'location' => 'xml',
  2874. 'sentAs' => 'Bucket'
  2875. ),
  2876. 'Key' => array(
  2877. 'type' => 'string',
  2878. 'location' => 'xml'
  2879. ),
  2880. 'UploadId' => array(
  2881. 'type' => 'string',
  2882. 'location' => 'xml'
  2883. ),
  2884. 'ServerSideEncryption' => array(
  2885. 'type' => 'string',
  2886. 'location' => 'header',
  2887. 'sentAs' => 'x-cos-server-side-encryption',
  2888. ),
  2889. 'SSECustomerAlgorithm' => array(
  2890. 'type' => 'string',
  2891. 'location' => 'header',
  2892. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  2893. ),
  2894. 'SSECustomerKeyMD5' => array(
  2895. 'type' => 'string',
  2896. 'location' => 'header',
  2897. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  2898. ),
  2899. 'SSEKMSKeyId' => array(
  2900. 'type' => 'string',
  2901. 'location' => 'header',
  2902. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  2903. ),
  2904. 'RequestCharged' => array(
  2905. 'type' => 'string',
  2906. 'location' => 'header',
  2907. 'sentAs' => 'x-cos-request-charged',
  2908. ),
  2909. 'RequestId' => array(
  2910. 'location' => 'header',
  2911. 'sentAs' => 'x-cos-request-id',
  2912. )
  2913. )
  2914. ),
  2915. 'CopyObjectOutput' => array(
  2916. 'type' => 'object',
  2917. 'additionalProperties' => true,
  2918. 'properties' => array(
  2919. 'ETag' => array(
  2920. 'type' => 'string',
  2921. 'location' => 'xml',
  2922. ),
  2923. 'LastModified' => array(
  2924. 'type' => 'string',
  2925. 'location' => 'xml',
  2926. ),
  2927. 'Expiration' => array(
  2928. 'type' => 'string',
  2929. 'location' => 'header',
  2930. 'sentAs' => 'x-cos-expiration',
  2931. ),
  2932. 'CopySourceVersionId' => array(
  2933. 'type' => 'string',
  2934. 'location' => 'header',
  2935. 'sentAs' => 'x-cos-copy-source-version-id',
  2936. ),
  2937. 'VersionId' => array(
  2938. 'type' => 'string',
  2939. 'location' => 'header',
  2940. 'sentAs' => 'x-cos-version-id',
  2941. ),
  2942. 'ServerSideEncryption' => array(
  2943. 'type' => 'string',
  2944. 'location' => 'header',
  2945. 'sentAs' => 'x-cos-server-side-encryption',
  2946. ),
  2947. 'SSECustomerAlgorithm' => array(
  2948. 'type' => 'string',
  2949. 'location' => 'header',
  2950. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  2951. ),
  2952. 'RequestCharged' => array(
  2953. 'type' => 'string',
  2954. 'location' => 'header',
  2955. 'sentAs' => 'x-cos-request-charged',
  2956. ),
  2957. 'RequestId' => array(
  2958. 'location' => 'header',
  2959. 'sentAs' => 'x-cos-request-id',
  2960. ),
  2961. ),
  2962. ),
  2963. 'DeleteBucketOutput' => array(
  2964. 'type' => 'object',
  2965. 'additionalProperties' => true,
  2966. 'properties' => array(
  2967. 'RequestId' => array(
  2968. 'location' => 'header',
  2969. 'sentAs' => 'x-cos-request-id'
  2970. )
  2971. )
  2972. ),
  2973. 'DeleteBucketCorsOutput' => array(
  2974. 'type' => 'object',
  2975. 'additionalProperties' => true,
  2976. 'properties' => array(
  2977. 'RequestId' => array(
  2978. 'location' => 'header',
  2979. 'sentAs' => 'x-cos-request-id',
  2980. ),
  2981. ),
  2982. ),
  2983. 'DeleteBucketTaggingOutput' => array(
  2984. 'type' => 'object',
  2985. 'additionalProperties' => true,
  2986. 'properties' => array(
  2987. 'RequestId' => array(
  2988. 'location' => 'header',
  2989. 'sentAs' => 'x-cos-request-id',
  2990. ),
  2991. ),
  2992. ),
  2993. 'DeleteBucketInventoryOutput' => array(
  2994. 'type' => 'object',
  2995. 'additionalProperties' => true,
  2996. 'properties' => array(
  2997. 'RequestId' => array(
  2998. 'location' => 'header',
  2999. 'sentAs' => 'x-cos-request-id',
  3000. ),
  3001. ),
  3002. ),
  3003. 'DeleteObjectOutput' => array(
  3004. 'type' => 'object',
  3005. 'additionalProperties' => true,
  3006. 'properties' => array(
  3007. 'DeleteMarker' => array(
  3008. 'type' => 'boolean',
  3009. 'location' => 'header',
  3010. 'sentAs' => 'x-cos-delete-marker',
  3011. ),
  3012. 'VersionId' => array(
  3013. 'type' => 'string',
  3014. 'location' => 'header',
  3015. 'sentAs' => 'x-cos-version-id',
  3016. ),
  3017. 'RequestCharged' => array(
  3018. 'type' => 'string',
  3019. 'location' => 'header',
  3020. 'sentAs' => 'x-cos-request-charged',
  3021. ),
  3022. 'RequestId' => array(
  3023. 'location' => 'header',
  3024. 'sentAs' => 'x-cos-request-id',
  3025. ),
  3026. ),
  3027. ),
  3028. 'DeleteObjectsOutput' => array(
  3029. 'type' => 'object',
  3030. 'additionalProperties' => true,
  3031. 'properties' => array(
  3032. 'Deleted' => array(
  3033. 'type' => 'array',
  3034. 'location' => 'xml',
  3035. 'sentAs' => 'Deleted',
  3036. 'data' => array(
  3037. 'xmlFlattened' => true,
  3038. ),
  3039. 'items' => array(
  3040. 'type' => 'object',
  3041. 'properties' => array(
  3042. 'Key' => array(
  3043. 'type' => 'string',
  3044. ),
  3045. 'VersionId' => array(
  3046. 'type' => 'string',
  3047. ),
  3048. 'DeleteMarker' => array(
  3049. 'type' => 'boolean',
  3050. ),
  3051. 'DeleteMarkerVersionId' => array(
  3052. 'type' => 'string',
  3053. ),
  3054. ),
  3055. ),
  3056. ),
  3057. 'RequestCharged' => array(
  3058. 'type' => 'string',
  3059. 'location' => 'header',
  3060. 'sentAs' => 'x-cos-request-charged',
  3061. ),
  3062. 'Errors' => array(
  3063. 'type' => 'array',
  3064. 'location' => 'xml',
  3065. 'sentAs' => 'Error',
  3066. 'data' => array(
  3067. 'xmlFlattened' => true,
  3068. ),
  3069. 'items' => array(
  3070. 'type' => 'object',
  3071. 'properties' => array(
  3072. 'Key' => array(
  3073. 'type' => 'string',
  3074. ),
  3075. 'VersionId' => array(
  3076. 'type' => 'string',
  3077. ),
  3078. 'Code' => array(
  3079. 'type' => 'string',
  3080. ),
  3081. 'Message' => array(
  3082. 'type' => 'string',
  3083. ),
  3084. ),
  3085. ),
  3086. ),
  3087. 'RequestId' => array(
  3088. 'location' => 'header',
  3089. 'sentAs' => 'x-cos-request-id',
  3090. ),
  3091. ),
  3092. ),
  3093. 'DeleteBucketLifecycleOutput' => array(
  3094. 'type' => 'object',
  3095. 'additionalProperties' => true,
  3096. 'properties' => array(
  3097. 'RequestId' => array(
  3098. 'location' => 'header',
  3099. 'sentAs' => 'x-cos-request-id',
  3100. ),
  3101. ),
  3102. ),
  3103. 'DeleteBucketReplicationOutput' => array(
  3104. 'type' => 'object',
  3105. 'additionalProperties' => true,
  3106. 'properties' => array(
  3107. 'RequestId' => array(
  3108. 'location' => 'header',
  3109. 'sentAs' => 'x-cos-request-id',
  3110. ),
  3111. ),
  3112. ),
  3113. 'DeleteBucketWebsiteOutput' => array(
  3114. 'type' => 'object',
  3115. 'additionalProperties' => true,
  3116. 'properties' => array(
  3117. 'RequestId' => array(
  3118. 'location' => 'header',
  3119. 'sentAs' => 'x-cos-request-id',
  3120. ),
  3121. ),
  3122. ),
  3123. 'GetObjectOutput' => array(
  3124. 'type' => 'object',
  3125. 'additionalProperties' => true,
  3126. 'properties' => array(
  3127. 'Body' => array(
  3128. 'type' => 'string',
  3129. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  3130. 'location' => 'body',
  3131. ),
  3132. 'DeleteMarker' => array(
  3133. 'type' => 'boolean',
  3134. 'location' => 'header',
  3135. 'sentAs' => 'x-cos-delete-marker',
  3136. ),
  3137. 'AcceptRanges' => array(
  3138. 'type' => 'string',
  3139. 'location' => 'header',
  3140. 'sentAs' => 'accept-ranges',
  3141. ),
  3142. 'Expiration' => array(
  3143. 'type' => 'string',
  3144. 'location' => 'header',
  3145. 'sentAs' => 'x-cos-expiration',
  3146. ),
  3147. 'Restore' => array(
  3148. 'type' => 'string',
  3149. 'location' => 'header',
  3150. 'sentAs' => 'x-cos-restore',
  3151. ),
  3152. 'LastModified' => array(
  3153. 'type' => 'string',
  3154. 'location' => 'header',
  3155. 'sentAs' => 'Last-Modified',
  3156. ),
  3157. 'ContentLength' => array(
  3158. 'type' => 'numeric',
  3159. 'minimum'=> 0,
  3160. 'location' => 'header',
  3161. 'sentAs' => 'Content-Length',
  3162. ),
  3163. 'ETag' => array(
  3164. 'type' => 'string',
  3165. 'location' => 'header',
  3166. ),
  3167. 'MissingMeta' => array(
  3168. 'type' => 'numeric',
  3169. 'location' => 'header',
  3170. 'sentAs' => 'x-cos-missing-meta',
  3171. ),
  3172. 'VersionId' => array(
  3173. 'type' => 'string',
  3174. 'location' => 'header',
  3175. 'sentAs' => 'x-cos-version-id',
  3176. ),
  3177. 'CacheControl' => array(
  3178. 'type' => 'string',
  3179. 'location' => 'header',
  3180. 'sentAs' => 'Cache-Control',
  3181. ),
  3182. 'ContentDisposition' => array(
  3183. 'type' => 'string',
  3184. 'location' => 'header',
  3185. 'sentAs' => 'Content-Disposition',
  3186. ),
  3187. 'ContentEncoding' => array(
  3188. 'type' => 'string',
  3189. 'location' => 'header',
  3190. 'sentAs' => 'Content-Encoding',
  3191. ),
  3192. 'ContentLanguage' => array(
  3193. 'type' => 'string',
  3194. 'location' => 'header',
  3195. 'sentAs' => 'Content-Language',
  3196. ),
  3197. 'ContentRange' => array(
  3198. 'type' => 'string',
  3199. 'location' => 'header',
  3200. 'sentAs' => 'Content-Range',
  3201. ),
  3202. 'ContentType' => array(
  3203. 'type' => 'string',
  3204. 'location' => 'header',
  3205. 'sentAs' => 'Content-Type',
  3206. ),
  3207. 'Expires' => array(
  3208. 'type' => 'string',
  3209. 'location' => 'header',
  3210. ),
  3211. 'WebsiteRedirectLocation' => array(
  3212. 'type' => 'string',
  3213. 'location' => 'header',
  3214. 'sentAs' => 'x-cos-website-redirect-location',
  3215. ),
  3216. 'ServerSideEncryption' => array(
  3217. 'type' => 'string',
  3218. 'location' => 'header',
  3219. 'sentAs' => 'x-cos-server-side-encryption',
  3220. ),
  3221. 'SSECustomerAlgorithm' => array(
  3222. 'type' => 'string',
  3223. 'location' => 'header',
  3224. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  3225. ),
  3226. 'SSECustomerKeyMD5' => array(
  3227. 'type' => 'string',
  3228. 'location' => 'header',
  3229. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  3230. ),
  3231. 'SSEKMSKeyId' => array(
  3232. 'type' => 'string',
  3233. 'location' => 'header',
  3234. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  3235. ),
  3236. 'StorageClass' => array(
  3237. 'type' => 'string',
  3238. 'location' => 'header',
  3239. 'sentAs' => 'x-cos-storage-class',
  3240. ),
  3241. 'RequestCharged' => array(
  3242. 'type' => 'string',
  3243. 'location' => 'header',
  3244. 'sentAs' => 'x-cos-request-charged',
  3245. ),
  3246. 'ReplicationStatus' => array(
  3247. 'type' => 'string',
  3248. 'location' => 'header',
  3249. 'sentAs' => 'x-cos-replication-status',
  3250. ),
  3251. 'RequestId' => array(
  3252. 'location' => 'header',
  3253. 'sentAs' => 'x-cos-request-id',
  3254. ),
  3255. ),
  3256. ),
  3257. 'GetObjectAclOutput' => array(
  3258. 'type' => 'object',
  3259. 'additionalProperties' => true,
  3260. 'properties' => array(
  3261. 'Owner' => array(
  3262. 'type' => 'object',
  3263. 'location' => 'xml',
  3264. 'properties' => array(
  3265. 'DisplayName' => array(
  3266. 'type' => 'string',
  3267. ),
  3268. 'ID' => array(
  3269. 'type' => 'string',
  3270. ),
  3271. ),
  3272. ),
  3273. 'Grants' => array(
  3274. 'type' => 'array',
  3275. 'location' => 'xml',
  3276. 'sentAs' => 'AccessControlList',
  3277. 'items' => array(
  3278. 'type' => 'object',
  3279. 'properties' => array(
  3280. 'Grantee' => array(
  3281. 'type' => 'object',
  3282. 'properties' => array(
  3283. 'DisplayName' => array(
  3284. 'type' => 'string'),
  3285. 'ID' => array(
  3286. 'type' => 'string'))),
  3287. 'Permission' => array(
  3288. 'type' => 'string',
  3289. ),
  3290. ),
  3291. ),
  3292. ),
  3293. 'RequestCharged' => array(
  3294. 'type' => 'string',
  3295. 'location' => 'header',
  3296. 'sentAs' => 'x-cos-request-charged',
  3297. ),
  3298. 'RequestId' => array(
  3299. 'location' => 'header',
  3300. 'sentAs' => 'x-cos-request-id',
  3301. ),
  3302. ),
  3303. ),
  3304. 'GetBucketAclOutput' => array(
  3305. 'type' => 'object',
  3306. 'additionalProperties' => true,
  3307. 'properties' => array(
  3308. 'Owner' => array(
  3309. 'type' => 'object',
  3310. 'location' => 'xml',
  3311. 'properties' => array(
  3312. 'DisplayName' => array(
  3313. 'type' => 'string'
  3314. ),
  3315. 'ID' => array(
  3316. 'type' => 'string'
  3317. )
  3318. )
  3319. ),
  3320. 'Grants' => array(
  3321. 'type' => 'array',
  3322. 'location' => 'xml',
  3323. 'sentAs' => 'AccessControlList',
  3324. 'items' => array(
  3325. 'type' => 'object',
  3326. 'properties' => array(
  3327. 'Grantee' => array(
  3328. 'type' => 'object',
  3329. 'properties' => array(
  3330. 'DisplayName' => array(
  3331. 'type' => 'string'
  3332. ),
  3333. 'ID' => array(
  3334. 'type' => 'string'
  3335. )
  3336. )
  3337. ),
  3338. 'Permission' => array(
  3339. 'type' => 'string'
  3340. )
  3341. )
  3342. )
  3343. ),
  3344. 'RequestId' => array(
  3345. 'location' => 'header',
  3346. 'sentAs' => 'x-cos-request-id'
  3347. )
  3348. )
  3349. ),
  3350. 'GetBucketCorsOutput' => array(
  3351. 'type' => 'object',
  3352. 'additionalProperties' => true,
  3353. 'properties' => array(
  3354. 'CORSRules' => array(
  3355. 'type' => 'array',
  3356. 'location' => 'xml',
  3357. 'sentAs' => 'CORSRule',
  3358. 'data' => array(
  3359. 'xmlFlattened' => true,
  3360. ),
  3361. 'items' => array(
  3362. 'type' => 'object',
  3363. 'properties' => array(
  3364. 'ID' => array(
  3365. 'type' => 'string'),
  3366. 'AllowedHeaders' => array(
  3367. 'type' => 'array',
  3368. 'sentAs' => 'AllowedHeader',
  3369. 'data' => array(
  3370. 'xmlFlattened' => true,
  3371. ),
  3372. 'items' => [
  3373. 'type' => 'string',
  3374. ]
  3375. ),
  3376. 'AllowedMethods' => array(
  3377. 'type' => 'array',
  3378. 'sentAs' => 'AllowedMethod',
  3379. 'data' => array(
  3380. 'xmlFlattened' => true,
  3381. ),
  3382. 'items' => array(
  3383. 'type' => 'string',
  3384. ),
  3385. ),
  3386. 'AllowedOrigins' => array(
  3387. 'type' => 'array',
  3388. 'sentAs' => 'AllowedOrigin',
  3389. 'data' => array(
  3390. 'xmlFlattened' => true,
  3391. ),
  3392. 'items' => array(
  3393. 'type' => 'string',
  3394. ),
  3395. ),
  3396. 'ExposeHeaders' => array(
  3397. 'type' => 'array',
  3398. 'sentAs' => 'ExposeHeader',
  3399. 'data' => array(
  3400. 'xmlFlattened' => true,
  3401. ),
  3402. 'items' => array(
  3403. 'type' => 'string',
  3404. ),
  3405. ),
  3406. 'MaxAgeSeconds' => array(
  3407. 'type' => 'numeric',
  3408. ),
  3409. ),
  3410. ),
  3411. ),
  3412. 'RequestId' => array(
  3413. 'location' => 'header',
  3414. 'sentAs' => 'x-cos-request-id',
  3415. ),
  3416. ),
  3417. ),
  3418. 'GetBucketDomainOutput' => array(
  3419. 'type' => 'object',
  3420. 'additionalProperties' => true,
  3421. 'properties' => array(
  3422. 'DomainRules' => array(
  3423. 'type' => 'array',
  3424. 'location' => 'xml',
  3425. 'sentAs' => 'DomainRule',
  3426. 'data' => array(
  3427. 'xmlFlattened' => true,
  3428. ),
  3429. 'items' => array(
  3430. 'type' => 'object',
  3431. 'properties' => array(
  3432. 'Status' => array(
  3433. 'type' => 'string'
  3434. ),
  3435. 'Name' => array(
  3436. 'type' => 'string'
  3437. ),
  3438. 'Type' => array(
  3439. 'type' => 'string'
  3440. ),
  3441. 'ForcedReplacement' => array(
  3442. 'type' => 'string'
  3443. ),
  3444. ),
  3445. ),
  3446. ),
  3447. 'DomainTxtVerification' => array(
  3448. 'location' => 'header',
  3449. 'sentAs' => 'x-cos-domain-txt-verification',
  3450. ),
  3451. 'RequestId' => array(
  3452. 'location' => 'header',
  3453. 'sentAs' => 'x-cos-request-id',
  3454. ),
  3455. ),
  3456. ),
  3457. 'GetBucketLifecycleOutput' => array(
  3458. 'type' => 'object',
  3459. 'additionalProperties' => true,
  3460. 'properties' => array(
  3461. 'Rules' => array(
  3462. 'type' => 'array',
  3463. 'location' => 'xml',
  3464. 'sentAs' => 'Rule',
  3465. 'data' => array(
  3466. 'xmlFlattened' => true,
  3467. ),
  3468. 'items' => array(
  3469. 'type' => 'object',
  3470. 'properties' => array(
  3471. 'Expiration' => array(
  3472. 'type' => 'object',
  3473. 'properties' => array(
  3474. 'Date' => array(
  3475. 'type' => 'string',
  3476. ),
  3477. 'Days' => array(
  3478. 'type' => 'numeric',
  3479. ),
  3480. ),
  3481. ),
  3482. 'ID' => array(
  3483. 'type' => 'string',
  3484. ),
  3485. 'Filter' => array(
  3486. 'type' => 'object',
  3487. 'properties' => array(
  3488. 'Prefix' => array(
  3489. 'type' => 'string',
  3490. ),
  3491. 'Tag' => array(
  3492. 'type' => 'object',
  3493. 'properties' => array(
  3494. 'Key' => array(
  3495. 'type' => 'string'
  3496. ),
  3497. 'Value' => array(
  3498. 'type' => 'string'
  3499. ),
  3500. )
  3501. )
  3502. ),
  3503. ),
  3504. 'Status' => array(
  3505. 'type' => 'string',
  3506. ),
  3507. 'Transition' => array(
  3508. 'type' => 'object',
  3509. 'properties' => array(
  3510. 'Date' => array(
  3511. 'type' => 'string',
  3512. ),
  3513. 'Days' => array(
  3514. 'type' => 'numeric',
  3515. ),
  3516. 'StorageClass' => array(
  3517. 'type' => 'string',
  3518. ),
  3519. ),
  3520. ),
  3521. 'NoncurrentVersionTransition' => array(
  3522. 'type' => 'object',
  3523. 'properties' => array(
  3524. 'NoncurrentDays' => array(
  3525. 'type' => 'numeric',
  3526. ),
  3527. 'StorageClass' => array(
  3528. 'type' => 'string',
  3529. ),
  3530. ),
  3531. ),
  3532. 'NoncurrentVersionExpiration' => array(
  3533. 'type' => 'object',
  3534. 'properties' => array(
  3535. 'NoncurrentDays' => array(
  3536. 'type' => 'numeric',
  3537. ),
  3538. ),
  3539. ),
  3540. ),
  3541. ),
  3542. ),
  3543. 'RequestId' => array(
  3544. 'location' => 'header',
  3545. 'sentAs' => 'x-cos-request-id',
  3546. ),
  3547. ),
  3548. ),
  3549. 'GetBucketVersioningOutput' => array(
  3550. 'type' => 'object',
  3551. 'additionalProperties' => true,
  3552. 'properties' => array(
  3553. 'Status' => array(
  3554. 'type' => 'string',
  3555. 'location' => 'xml',
  3556. ),
  3557. 'MFADelete' => array(
  3558. 'type' => 'string',
  3559. 'location' => 'xml',
  3560. 'sentAs' => 'MfaDelete',
  3561. ),
  3562. 'RequestId' => array(
  3563. 'location' => 'header',
  3564. 'sentAs' => 'x-cos-request-id',
  3565. ),
  3566. ),
  3567. ),
  3568. 'GetBucketReplicationOutput' => array(
  3569. 'type' => 'object',
  3570. 'additionalProperties' => true,
  3571. 'properties' => array(
  3572. 'Role' => array(
  3573. 'type' => 'string',
  3574. 'location' => 'xml',
  3575. ),
  3576. 'Rules' => array(
  3577. 'type' => 'array',
  3578. 'location' => 'xml',
  3579. 'sentAs' => 'Rule',
  3580. 'data' => array(
  3581. 'xmlFlattened' => true,
  3582. ),
  3583. 'items' => array(
  3584. 'type' => 'object',
  3585. 'properties' => array(
  3586. 'ID' => array(
  3587. 'type' => 'string',
  3588. ),
  3589. 'Prefix' => array(
  3590. 'type' => 'string',
  3591. ),
  3592. 'Status' => array(
  3593. 'type' => 'string',
  3594. ),
  3595. 'Destination' => array(
  3596. 'type' => 'object',
  3597. 'properties' => array(
  3598. 'Bucket' => array(
  3599. 'type' => 'string',
  3600. ),
  3601. 'StorageClass' => array(
  3602. 'type' => 'string',
  3603. ),
  3604. ),
  3605. ),
  3606. ),
  3607. ),
  3608. ),
  3609. 'RequestId' => array(
  3610. 'location' => 'header',
  3611. 'sentAs' => 'x-cos-request-id',
  3612. ),
  3613. ),
  3614. ),
  3615. 'GetBucketLocationOutput' => array(
  3616. 'type' => 'object',
  3617. 'additionalProperties' => true,
  3618. 'properties' => array(
  3619. 'Location' => array(
  3620. 'type' => 'string',
  3621. 'location' => 'body',
  3622. 'filters' => array(
  3623. 'strval',
  3624. 'strip_tags',
  3625. 'trim',
  3626. ),
  3627. ),
  3628. ),
  3629. ),
  3630. 'GetBucketAccelerateOutput' => array(
  3631. 'type' => 'object',
  3632. 'additionalProperties' => true,
  3633. 'properties' => array(
  3634. 'Status' => array(
  3635. 'type' => 'string',
  3636. 'location' => 'xml',
  3637. ),
  3638. 'Type' => array(
  3639. 'type' => 'string',
  3640. 'location' => 'xml',
  3641. ),
  3642. 'RequestId' => array(
  3643. 'location' => 'header',
  3644. 'sentAs' => 'x-cos-request-id',
  3645. ),
  3646. ),
  3647. ),
  3648. 'GetBucketWebsiteOutput' => array(
  3649. 'type' => 'object',
  3650. 'additionalProperties' => true,
  3651. 'properties' => array(
  3652. 'RedirectAllRequestsTo' => array(
  3653. 'type' => 'object',
  3654. 'location' => 'xml',
  3655. 'properties' => array(
  3656. 'HostName' => array(
  3657. 'type' => 'string',
  3658. ),
  3659. 'Protocol' => array(
  3660. 'type' => 'string',
  3661. ),
  3662. ),
  3663. ),
  3664. 'IndexDocument' => array(
  3665. 'type' => 'object',
  3666. 'location' => 'xml',
  3667. 'properties' => array(
  3668. 'Suffix' => array(
  3669. 'type' => 'string',
  3670. ),
  3671. ),
  3672. ),
  3673. 'ErrorDocument' => array(
  3674. 'type' => 'object',
  3675. 'location' => 'xml',
  3676. 'properties' => array(
  3677. 'Key' => array(
  3678. 'type' => 'string',
  3679. ),
  3680. ),
  3681. ),
  3682. 'RoutingRules' => array(
  3683. 'type' => 'array',
  3684. 'location' => 'xml',
  3685. 'items' => array(
  3686. 'name' => 'RoutingRule',
  3687. 'type' => 'object',
  3688. 'sentAs' => 'RoutingRule',
  3689. 'properties' => array(
  3690. 'Condition' => array(
  3691. 'type' => 'object',
  3692. 'properties' => array(
  3693. 'HttpErrorCodeReturnedEquals' => array(
  3694. 'type' => 'string',
  3695. ),
  3696. 'KeyPrefixEquals' => array(
  3697. 'type' => 'string',
  3698. ),
  3699. ),
  3700. ),
  3701. 'Redirect' => array(
  3702. 'type' => 'object',
  3703. 'properties' => array(
  3704. 'HostName' => array(
  3705. 'type' => 'string',
  3706. ),
  3707. 'HttpRedirectCode' => array(
  3708. 'type' => 'string',
  3709. ),
  3710. 'Protocol' => array(
  3711. 'type' => 'string',
  3712. ),
  3713. 'ReplaceKeyPrefixWith' => array(
  3714. 'type' => 'string',
  3715. ),
  3716. 'ReplaceKeyWith' => array(
  3717. 'type' => 'string',
  3718. ),
  3719. ),
  3720. ),
  3721. ),
  3722. ),
  3723. ),
  3724. 'RequestId' => array(
  3725. 'location' => 'header',
  3726. 'sentAs' => 'x-cos-request-id',
  3727. ),
  3728. ),
  3729. ),
  3730. 'GetBucketInventoryOutput' => array(
  3731. 'type' => 'object',
  3732. 'additionalProperties' => true,
  3733. 'properties' => array(
  3734. 'Destination' => array(
  3735. 'type' => 'object',
  3736. 'location' => 'xml',
  3737. 'properties' => array(
  3738. 'COSBucketDestination' => array(
  3739. 'type' => 'object',
  3740. 'properties' => array(
  3741. 'Format' => array(
  3742. 'type' => 'string',
  3743. ),
  3744. 'AccountId' => array(
  3745. 'type' => 'string',
  3746. ),
  3747. 'Bucket' => array(
  3748. 'type' => 'string',
  3749. ),
  3750. 'Prefix' => array(
  3751. 'type' => 'string',
  3752. ),
  3753. 'Encryption' => array(
  3754. 'type' => 'object',
  3755. 'properties' => array(
  3756. 'SSE-COS' => array(
  3757. 'type' => 'string',
  3758. )
  3759. )
  3760. ),
  3761. ),
  3762. ),
  3763. ),
  3764. ),
  3765. 'Schedule' => array(
  3766. 'type' => 'object',
  3767. 'location' => 'xml',
  3768. 'properties' => array(
  3769. 'Frequency' => array(
  3770. 'type' => 'string',
  3771. ),
  3772. ),
  3773. ),
  3774. 'OptionalFields' => array(
  3775. 'type' => 'array',
  3776. 'location' => 'xml',
  3777. 'properties' => array(
  3778. 'Key' => array(
  3779. 'type' => 'string',
  3780. ),
  3781. ),
  3782. ),
  3783. 'OptionalFields' => array(
  3784. 'type' => 'array',
  3785. 'location' => 'xml',
  3786. 'items' => array(
  3787. 'name' => 'Field',
  3788. 'type' => 'string',
  3789. 'sentAs' => 'Field',
  3790. ),
  3791. ),
  3792. 'IsEnabled' => array(
  3793. 'type' => 'string',
  3794. 'location' => 'xml',
  3795. ),
  3796. 'Id' => array(
  3797. 'type' => 'string',
  3798. 'location' => 'xml',
  3799. ),
  3800. 'IncludedObjectVersions' => array(
  3801. 'type' => 'string',
  3802. 'location' => 'xml',
  3803. ),
  3804. 'RequestId' => array(
  3805. 'location' => 'header',
  3806. 'sentAs' => 'x-cos-request-id',
  3807. ),
  3808. ),
  3809. ),
  3810. 'GetBucketTaggingOutput' => array(
  3811. 'type' => 'object',
  3812. 'additionalProperties' => true,
  3813. 'properties' => array(
  3814. 'TagSet' => array(
  3815. 'type' => 'array',
  3816. 'location' => 'xml',
  3817. 'items' => array(
  3818. 'sentAs' => 'Tag',
  3819. 'type' => 'object',
  3820. 'properties' => array(
  3821. 'Key' => array(
  3822. 'type' => 'string',
  3823. ),
  3824. 'Value' => array(
  3825. 'type' => 'string',
  3826. ),
  3827. ),
  3828. ),
  3829. ),
  3830. 'RequestId' => array(
  3831. 'location' => 'header',
  3832. 'sentAs' => 'x-cos-request-id',
  3833. ),
  3834. ),
  3835. ),
  3836. 'GetBucketNotificationOutput' => array(
  3837. 'type' => 'object',
  3838. 'additionalProperties' => true,
  3839. 'properties' => array(
  3840. 'CloudFunctionConfigurations' => array(
  3841. 'type' => 'array',
  3842. 'location' => 'xml',
  3843. 'sentAs' => 'CloudFunctionConfiguration',
  3844. 'data' => array(
  3845. 'xmlFlattened' => true,
  3846. ),
  3847. 'items' => array(
  3848. 'type' => 'object',
  3849. 'properties' => array(
  3850. 'Id' => array(
  3851. 'type' => 'string',
  3852. ),
  3853. 'CloudFunction' => array(
  3854. 'type' => 'string',
  3855. 'sentAs' => 'CloudFunction',
  3856. ),
  3857. 'Events' => array(
  3858. 'type' => 'array',
  3859. 'sentAs' => 'Event',
  3860. 'data' => array(
  3861. 'xmlFlattened' => true,
  3862. ),
  3863. 'items' => array(
  3864. 'type' => 'string',
  3865. ),
  3866. ),
  3867. 'Filter' => array(
  3868. 'type' => 'object',
  3869. 'properties' => array(
  3870. 'Key' => array(
  3871. 'type' => 'object',
  3872. 'sentAs' => 'Key',
  3873. 'properties' => array(
  3874. 'FilterRules' => array(
  3875. 'type' => 'array',
  3876. 'sentAs' => 'FilterRule',
  3877. 'data' => array(
  3878. 'xmlFlattened' => true,
  3879. ),
  3880. 'items' => array(
  3881. 'type' => 'object',
  3882. 'properties' => array(
  3883. 'Name' => array(
  3884. 'type' => 'string',
  3885. ),
  3886. 'Value' => array(
  3887. 'type' => 'string',
  3888. ),
  3889. ),
  3890. ),
  3891. ),
  3892. ),
  3893. ),
  3894. ),
  3895. ),
  3896. ),
  3897. ),
  3898. ),
  3899. 'RequestId' => array(
  3900. 'location' => 'header',
  3901. 'sentAs' => 'x-cos-request-id',
  3902. ),
  3903. ),
  3904. ),
  3905. 'GetBucketLoggingOutput' => array(
  3906. 'type' => 'object',
  3907. 'additionalProperties' => true,
  3908. 'properties' => array(
  3909. 'LoggingEnabled' => array(
  3910. 'location' => 'xml',
  3911. 'type' => 'object',
  3912. 'properties' => array(
  3913. 'TargetBucket' => array(
  3914. 'type' => 'string',
  3915. 'location' => 'xml',
  3916. ),
  3917. 'TargetPrefix' => array(
  3918. 'type' => 'string',
  3919. ),
  3920. ),
  3921. ),
  3922. 'RequestId' => array(
  3923. 'location' => 'header',
  3924. 'sentAs' => 'x-cos-request-id',
  3925. ),
  3926. ),
  3927. ),
  3928. 'UploadPartOutput' => array(
  3929. 'type' => 'object',
  3930. 'additionalProperties' => true,
  3931. 'properties' => array(
  3932. 'ServerSideEncryption' => array(
  3933. 'type' => 'string',
  3934. 'location' => 'header',
  3935. 'sentAs' => 'x-cos-server-side-encryption',
  3936. ),
  3937. 'ETag' => array(
  3938. 'type' => 'string',
  3939. 'location' => 'header',
  3940. ),
  3941. 'SSECustomerAlgorithm' => array(
  3942. 'type' => 'string',
  3943. 'location' => 'header',
  3944. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  3945. ),
  3946. 'SSECustomerKeyMD5' => array(
  3947. 'type' => 'string',
  3948. 'location' => 'header',
  3949. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  3950. ),
  3951. 'SSEKMSKeyId' => array(
  3952. 'type' => 'string',
  3953. 'location' => 'header',
  3954. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  3955. ),
  3956. 'RequestCharged' => array(
  3957. 'type' => 'string',
  3958. 'location' => 'header',
  3959. 'sentAs' => 'x-cos-request-charged',
  3960. ),
  3961. 'RequestId' => array(
  3962. 'location' => 'header',
  3963. 'sentAs' => 'x-cos-request-id',
  3964. ),
  3965. ),
  3966. ),
  3967. 'UploadPartCopyOutput' => array(
  3968. 'type' => 'object',
  3969. 'additionalProperties' => true,
  3970. 'properties' => array(
  3971. 'CopySourceVersionId' => array(
  3972. 'type' => 'string',
  3973. 'location' => 'header',
  3974. 'sentAs' => 'x-cos-copy-source-version-id',
  3975. ),
  3976. 'ETag' => array(
  3977. 'type' => 'string',
  3978. 'location' => 'xml',
  3979. ),
  3980. 'LastModified' => array(
  3981. 'type' => 'string',
  3982. 'location' => 'xml',
  3983. ),
  3984. 'ServerSideEncryption' => array(
  3985. 'type' => 'string',
  3986. 'location' => 'header',
  3987. 'sentAs' => 'x-cos-server-side-encryption',
  3988. ),
  3989. 'SSECustomerAlgorithm' => array(
  3990. 'type' => 'string',
  3991. 'location' => 'header',
  3992. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  3993. ),
  3994. 'SSECustomerKeyMD5' => array(
  3995. 'type' => 'string',
  3996. 'location' => 'header',
  3997. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  3998. ),
  3999. 'SSEKMSKeyId' => array(
  4000. 'type' => 'string',
  4001. 'location' => 'header',
  4002. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  4003. ),
  4004. 'RequestCharged' => array(
  4005. 'type' => 'string',
  4006. 'location' => 'header',
  4007. 'sentAs' => 'x-cos-request-charged',
  4008. ),
  4009. 'RequestId' => array(
  4010. 'location' => 'header',
  4011. 'sentAs' => 'x-cos-request-id',
  4012. ),
  4013. ),
  4014. ),
  4015. 'PutBucketAclOutput' => array(
  4016. 'type' => 'object',
  4017. 'additionalProperties' => true,
  4018. 'properties' => array(
  4019. 'RequestId' => array(
  4020. 'location' => 'header',
  4021. 'sentAs' => 'x-cos-request-id'
  4022. )
  4023. )
  4024. ),
  4025. 'PutObjectOutput' => array(
  4026. 'type' => 'object',
  4027. 'additionalProperties' => true,
  4028. 'properties' => array(
  4029. 'Expiration' => array(
  4030. 'type' => 'string',
  4031. 'location' => 'header',
  4032. 'sentAs' => 'x-cos-expiration',
  4033. ),
  4034. 'ETag' => array(
  4035. 'type' => 'string',
  4036. 'location' => 'header',
  4037. ),
  4038. 'ServerSideEncryption' => array(
  4039. 'type' => 'string',
  4040. 'location' => 'header',
  4041. 'sentAs' => 'x-cos-server-side-encryption',
  4042. ),
  4043. 'VersionId' => array(
  4044. 'type' => 'string',
  4045. 'location' => 'header',
  4046. 'sentAs' => 'x-cos-version-id',
  4047. ),
  4048. 'SSECustomerAlgorithm' => array(
  4049. 'type' => 'string',
  4050. 'location' => 'header',
  4051. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  4052. ),
  4053. 'SSECustomerKeyMD5' => array(
  4054. 'type' => 'string',
  4055. 'location' => 'header',
  4056. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  4057. ),
  4058. 'SSEKMSKeyId' => array(
  4059. 'type' => 'string',
  4060. 'location' => 'header',
  4061. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  4062. ),
  4063. 'RequestCharged' => array(
  4064. 'type' => 'string',
  4065. 'location' => 'header',
  4066. 'sentAs' => 'x-cos-request-charged',
  4067. ),
  4068. 'RequestId' => array(
  4069. 'location' => 'header',
  4070. 'sentAs' => 'x-cos-request-id',
  4071. ),
  4072. ),
  4073. ),
  4074. 'PutObjectAclOutput' => array(
  4075. 'type' => 'object',
  4076. 'additionalProperties' => true,
  4077. 'properties' => array(
  4078. 'RequestCharged' => array(
  4079. 'type' => 'string',
  4080. 'location' => 'header',
  4081. 'sentAs' => 'x-cos-request-charged',
  4082. ),
  4083. 'RequestId' => array(
  4084. 'location' => 'header',
  4085. 'sentAs' => 'x-cos-request-id',
  4086. ),
  4087. ),
  4088. ),
  4089. 'PutBucketCorsOutput' => array(
  4090. 'type' => 'object',
  4091. 'additionalProperties' => true,
  4092. 'properties' => array(
  4093. 'RequestId' => array(
  4094. 'location' => 'header',
  4095. 'sentAs' => 'x-cos-request-id',
  4096. ),
  4097. ),
  4098. ),
  4099. 'PutBucketDomainOutput' => array(
  4100. 'type' => 'object',
  4101. 'additionalProperties' => true,
  4102. 'properties' => array(
  4103. 'RequestId' => array(
  4104. 'location' => 'header',
  4105. 'sentAs' => 'x-cos-request-id',
  4106. ),
  4107. ),
  4108. ),
  4109. 'PutBucketLifecycleOutput' => array(
  4110. 'type' => 'object',
  4111. 'additionalProperties' => true,
  4112. 'properties' => array(
  4113. 'RequestId' => array(
  4114. 'location' => 'header',
  4115. 'sentAs' => 'x-cos-request-id',
  4116. ),
  4117. ),
  4118. ),
  4119. 'PutBucketVersioningOutput' => array(
  4120. 'type' => 'object',
  4121. 'additionalProperties' => true,
  4122. 'properties' => array(
  4123. 'RequestId' => array(
  4124. 'location' => 'header',
  4125. 'sentAs' => 'x-cos-request-id',
  4126. ),
  4127. ),
  4128. ),
  4129. 'PutBucketReplicationOutput' => array(
  4130. 'type' => 'object',
  4131. 'additionalProperties' => true,
  4132. 'properties' => array(
  4133. 'RequestId' => array(
  4134. 'location' => 'header',
  4135. 'sentAs' => 'x-cos-request-id',
  4136. ),
  4137. ),
  4138. ),
  4139. 'PutBucketNotificationOutput' => array(
  4140. 'type' => 'object',
  4141. 'additionalProperties' => true,
  4142. 'properties' => array(
  4143. 'RequestId' => array(
  4144. 'location' => 'header',
  4145. 'sentAs' => 'x-cos-request-id',
  4146. ),
  4147. ),
  4148. ),
  4149. 'PutBucketWebsiteOutput' => array(
  4150. 'type' => 'object',
  4151. 'additionalProperties' => true,
  4152. 'properties' => array(
  4153. 'RequestId' => array(
  4154. 'location' => 'header',
  4155. 'sentAs' => 'x-cos-request-id',
  4156. ),
  4157. ),
  4158. ),
  4159. 'PutBucketAccelerateOutput' => array(
  4160. 'type' => 'object',
  4161. 'additionalProperties' => true,
  4162. 'properties' => array(
  4163. 'RequestId' => array(
  4164. 'location' => 'header',
  4165. 'sentAs' => 'x-cos-request-id',
  4166. ),
  4167. ),
  4168. ),
  4169. 'PutBucketLoggingOutput' => array(
  4170. 'type' => 'object',
  4171. 'additionalProperties' => true,
  4172. 'properties' => array(
  4173. 'RequestId' => array(
  4174. 'location' => 'header',
  4175. 'sentAs' => 'x-cos-request-id',
  4176. ),
  4177. ),
  4178. ),
  4179. 'PutBucketInventoryOutput' => array(
  4180. 'type' => 'object',
  4181. 'additionalProperties' => true,
  4182. 'properties' => array(
  4183. 'RequestId' => array(
  4184. 'location' => 'header',
  4185. 'sentAs' => 'x-cos-request-id',
  4186. ),
  4187. ),
  4188. ),
  4189. 'PutBucketTaggingOutput' => array(
  4190. 'type' => 'object',
  4191. 'additionalProperties' => true,
  4192. 'properties' => array(
  4193. 'RequestId' => array(
  4194. 'location' => 'header',
  4195. 'sentAs' => 'x-cos-request-id',
  4196. ),
  4197. ),
  4198. ),
  4199. 'RestoreObjectOutput' => array(
  4200. 'type' => 'object',
  4201. 'additionalProperties' => true,
  4202. 'properties' => array(
  4203. 'RequestCharged' => array(
  4204. 'type' => 'string',
  4205. 'location' => 'header',
  4206. 'sentAs' => 'x-cos-request-charged',
  4207. ),
  4208. 'RequestId' => array(
  4209. 'location' => 'header',
  4210. 'sentAs' => 'x-cos-request-id',
  4211. ),
  4212. ),
  4213. ),
  4214. 'ListPartsOutput' => array(
  4215. 'type' => 'object',
  4216. 'additionalProperties' => true,
  4217. 'properties' => array(
  4218. 'Bucket' => array(
  4219. 'type' => 'string',
  4220. 'location' => 'xml'
  4221. ),
  4222. 'Key' => array(
  4223. 'type' => 'string',
  4224. 'location' => 'xml'
  4225. ),
  4226. 'UploadId' => array(
  4227. 'type' => 'string',
  4228. 'location' => 'xml'
  4229. ),
  4230. 'PartNumberMarker' => array(
  4231. 'type' => 'numeric',
  4232. 'location' => 'xml'
  4233. ),
  4234. 'NextPartNumberMarker' => array(
  4235. 'type' => 'numeric',
  4236. 'location' => 'xml'
  4237. ),
  4238. 'MaxParts' => array(
  4239. 'type' => 'numeric',
  4240. 'location' => 'xml'
  4241. ),
  4242. 'IsTruncated' => array(
  4243. 'type' => 'boolean',
  4244. 'location' => 'xml'
  4245. ),
  4246. 'Parts' => array(
  4247. 'type' => 'array',
  4248. 'location' => 'xml',
  4249. 'sentAs' => 'Part',
  4250. 'data' => array(
  4251. 'xmlFlattened' => true
  4252. ),
  4253. 'items' => array(
  4254. 'type' => 'object',
  4255. 'properties' => array(
  4256. 'PartNumber' => array(
  4257. 'type' => 'numeric'
  4258. ),
  4259. 'LastModified' => array(
  4260. 'type' => 'string'
  4261. ),
  4262. 'ETag' => array(
  4263. 'type' => 'string'
  4264. ),
  4265. 'Size' => array(
  4266. 'type' => 'numeric'
  4267. )
  4268. )
  4269. )
  4270. ),
  4271. 'Initiator' => array(
  4272. 'type' => 'object',
  4273. 'location' => 'xml',
  4274. 'properties' => array(
  4275. 'ID' => array(
  4276. 'type' => 'string'
  4277. ),
  4278. 'DisplayName' => array(
  4279. 'type' => 'string'
  4280. )
  4281. )
  4282. ),
  4283. 'Owner' => array(
  4284. 'type' => 'object',
  4285. 'location' => 'xml',
  4286. 'properties' => array(
  4287. 'DisplayName' => array(
  4288. 'type' => 'string'
  4289. ),
  4290. 'ID' => array(
  4291. 'type' => 'string'
  4292. )
  4293. )
  4294. ),
  4295. 'StorageClass' => array(
  4296. 'type' => 'string',
  4297. 'location' => 'xml'
  4298. ),
  4299. 'RequestId' => array(
  4300. 'location' => 'header',
  4301. 'sentAs' => 'x-cos-request-id'
  4302. )
  4303. )
  4304. ),
  4305. 'ListObjectsOutput' => array(
  4306. 'type' => 'object',
  4307. 'additionalProperties' => true,
  4308. 'properties' => array(
  4309. 'IsTruncated' => array(
  4310. 'type' => 'boolean',
  4311. 'location' => 'xml'
  4312. ),
  4313. 'Marker' => array(
  4314. 'type' => 'string',
  4315. 'location' => 'xml'
  4316. ),
  4317. 'NextMarker' => array(
  4318. 'type' => 'string',
  4319. 'location' => 'xml'
  4320. ),
  4321. 'Contents' => array(
  4322. 'type' => 'array',
  4323. 'location' => 'xml',
  4324. 'data' => array(
  4325. 'xmlFlattened' => true
  4326. ),
  4327. 'items' => array(
  4328. 'type' => 'object',
  4329. 'properties' => array(
  4330. 'Key' => array(
  4331. 'type' => 'string'
  4332. ),
  4333. 'LastModified' => array(
  4334. 'type' => 'string'
  4335. ),
  4336. 'ETag' => array(
  4337. 'type' => 'string'
  4338. ),
  4339. 'Size' => array(
  4340. 'type' => 'numeric'
  4341. ),
  4342. 'StorageClass' => array(
  4343. 'type' => 'string'
  4344. ),
  4345. 'Owner' => array(
  4346. 'type' => 'object',
  4347. 'properties' => array(
  4348. 'DisplayName' => array(
  4349. 'type' => 'string'
  4350. ),
  4351. 'ID' => array(
  4352. 'type' => 'string'
  4353. )
  4354. )
  4355. )
  4356. )
  4357. )
  4358. ),
  4359. 'Name' => array(
  4360. 'type' => 'string',
  4361. 'location' => 'xml'
  4362. ),
  4363. 'Prefix' => array(
  4364. 'type' => 'string',
  4365. 'location' => 'xml'
  4366. ),
  4367. 'Delimiter' => array(
  4368. 'type' => 'string',
  4369. 'location' => 'xml'
  4370. ),
  4371. 'MaxKeys' => array(
  4372. 'type' => 'numeric',
  4373. 'location' => 'xml'
  4374. ),
  4375. 'CommonPrefixes' => array(
  4376. 'type' => 'array',
  4377. 'location' => 'xml',
  4378. 'data' => array(
  4379. 'xmlFlattened' => true
  4380. ),
  4381. 'items' => array(
  4382. 'type' => 'object',
  4383. 'properties' => array(
  4384. 'Prefix' => array(
  4385. 'type' => 'string'
  4386. )
  4387. )
  4388. )
  4389. ),
  4390. 'EncodingType' => array(
  4391. 'type' => 'string',
  4392. 'location' => 'xml'),
  4393. 'RequestId' => array(
  4394. 'location' => 'header',
  4395. 'sentAs' => 'x-cos-request-id'
  4396. )
  4397. )
  4398. ),
  4399. 'ListBucketsOutput' => array(
  4400. 'type' => 'object',
  4401. 'additionalProperties' => true,
  4402. 'properties' => array(
  4403. 'Buckets' => array(
  4404. 'type' => 'array',
  4405. 'location' => 'xml',
  4406. 'items' => array(
  4407. 'type' => 'object',
  4408. 'properties' => array(
  4409. 'Name' => array(
  4410. 'type' => 'string',
  4411. ),
  4412. 'CreationDate' => array(
  4413. 'type' => 'string',
  4414. ),
  4415. ),
  4416. ),
  4417. ),
  4418. 'Owner' => array(
  4419. 'type' => 'object',
  4420. 'location' => 'xml',
  4421. 'properties' => array(
  4422. 'DisplayName' => array(
  4423. 'type' => 'string',
  4424. ),
  4425. 'ID' => array(
  4426. 'type' => 'string',
  4427. ),
  4428. ),
  4429. ),
  4430. 'RequestId' => array(
  4431. 'location' => 'header',
  4432. 'sentAs' => 'x-cos-request-id',
  4433. ),
  4434. ),
  4435. ),
  4436. 'ListObjectVersionsOutput' => array(
  4437. 'type' => 'object',
  4438. 'additionalProperties' => true,
  4439. 'properties' => array(
  4440. 'IsTruncated' => array(
  4441. 'type' => 'boolean',
  4442. 'location' => 'xml',
  4443. ),
  4444. 'KeyMarker' => array(
  4445. 'type' => 'string',
  4446. 'location' => 'xml',
  4447. ),
  4448. 'VersionIdMarker' => array(
  4449. 'type' => 'string',
  4450. 'location' => 'xml',
  4451. ),
  4452. 'NextKeyMarker' => array(
  4453. 'type' => 'string',
  4454. 'location' => 'xml',
  4455. ),
  4456. 'NextVersionIdMarker' => array(
  4457. 'type' => 'string',
  4458. 'location' => 'xml',
  4459. ),
  4460. 'Version' => array(
  4461. 'type' => 'array',
  4462. 'location' => 'xml',
  4463. 'data' => array(
  4464. 'xmlFlattened' => true,
  4465. ),
  4466. 'items' => array(
  4467. 'type' => 'object',
  4468. 'properties' => array(
  4469. 'ETag' => array(
  4470. 'type' => 'string',
  4471. ),
  4472. 'Size' => array(
  4473. 'type' => 'numeric',
  4474. ),
  4475. 'StorageClass' => array(
  4476. 'type' => 'string',
  4477. ),
  4478. 'Key' => array(
  4479. 'type' => 'string',
  4480. ),
  4481. 'VersionId' => array(
  4482. 'type' => 'string',
  4483. ),
  4484. 'IsLatest' => array(
  4485. 'type' => 'boolean',
  4486. ),
  4487. 'LastModified' => array(
  4488. 'type' => 'string',
  4489. ),
  4490. 'Owner' => array(
  4491. 'type' => 'object',
  4492. 'properties' => array(
  4493. 'DisplayName' => array(
  4494. 'type' => 'string',
  4495. ),
  4496. 'ID' => array(
  4497. 'type' => 'string',
  4498. ),
  4499. ),
  4500. ),
  4501. ),
  4502. ),
  4503. ),
  4504. 'DeleteMarkers' => array(
  4505. 'type' => 'array',
  4506. 'location' => 'xml',
  4507. 'sentAs' => 'DeleteMarker',
  4508. 'data' => array(
  4509. 'xmlFlattened' => true,
  4510. ),
  4511. 'items' => array(
  4512. 'type' => 'object',
  4513. 'properties' => array(
  4514. 'Owner' => array(
  4515. 'type' => 'object',
  4516. 'properties' => array(
  4517. 'DisplayName' => array(
  4518. 'type' => 'string',
  4519. ),
  4520. 'ID' => array(
  4521. 'type' => 'string',
  4522. ),
  4523. ),
  4524. ),
  4525. 'Key' => array(
  4526. 'type' => 'string',
  4527. ),
  4528. 'VersionId' => array(
  4529. 'type' => 'string',
  4530. ),
  4531. 'IsLatest' => array(
  4532. 'type' => 'boolean',
  4533. ),
  4534. 'LastModified' => array(
  4535. 'type' => 'string',
  4536. ),
  4537. ),
  4538. ),
  4539. ),
  4540. 'Name' => array(
  4541. 'type' => 'string',
  4542. 'location' => 'xml',
  4543. ),
  4544. 'Prefix' => array(
  4545. 'type' => 'string',
  4546. 'location' => 'xml',
  4547. ),
  4548. 'Delimiter' => array(
  4549. 'type' => 'string',
  4550. 'location' => 'xml',
  4551. ),
  4552. 'MaxKeys' => array(
  4553. 'type' => 'numeric',
  4554. 'location' => 'xml',
  4555. ),
  4556. 'CommonPrefixes' => array(
  4557. 'type' => 'array',
  4558. 'location' => 'xml',
  4559. 'data' => array(
  4560. 'xmlFlattened' => true,
  4561. ),
  4562. 'items' => array(
  4563. 'type' => 'object',
  4564. 'properties' => array(
  4565. 'Prefix' => array(
  4566. 'type' => 'string',
  4567. ),
  4568. ),
  4569. ),
  4570. ),
  4571. 'EncodingType' => array(
  4572. 'type' => 'string',
  4573. 'location' => 'xml',
  4574. ),
  4575. 'RequestId' => array(
  4576. 'location' => 'header',
  4577. 'sentAs' => 'x-cos-request-id',
  4578. ),
  4579. ),
  4580. ),
  4581. 'ListMultipartUploadsOutput' => array(
  4582. 'type' => 'object',
  4583. 'additionalProperties' => true,
  4584. 'properties' => array(
  4585. 'Bucket' => array(
  4586. 'type' => 'string',
  4587. 'location' => 'xml',
  4588. ),
  4589. 'KeyMarker' => array(
  4590. 'type' => 'string',
  4591. 'location' => 'xml',
  4592. ),
  4593. 'UploadIdMarker' => array(
  4594. 'type' => 'string',
  4595. 'location' => 'xml',
  4596. ),
  4597. 'NextKeyMarker' => array(
  4598. 'type' => 'string',
  4599. 'location' => 'xml',
  4600. ),
  4601. 'Prefix' => array(
  4602. 'type' => 'string',
  4603. 'location' => 'xml',
  4604. ),
  4605. 'Delimiter' => array(
  4606. 'type' => 'string',
  4607. 'location' => 'xml',
  4608. ),
  4609. 'NextUploadIdMarker' => array(
  4610. 'type' => 'string',
  4611. 'location' => 'xml',
  4612. ),
  4613. 'MaxUploads' => array(
  4614. 'type' => 'numeric',
  4615. 'location' => 'xml',
  4616. ),
  4617. 'IsTruncated' => array(
  4618. 'type' => 'boolean',
  4619. 'location' => 'xml',
  4620. ),
  4621. 'Uploads' => array(
  4622. 'type' => 'array',
  4623. 'location' => 'xml',
  4624. 'sentAs' => 'Upload',
  4625. 'data' => array(
  4626. 'xmlFlattened' => true,
  4627. ),
  4628. 'items' => array(
  4629. 'type' => 'object',
  4630. 'properties' => array(
  4631. 'UploadId' => array(
  4632. 'type' => 'string',
  4633. ),
  4634. 'Key' => array(
  4635. 'type' => 'string',
  4636. ),
  4637. 'Initiated' => array(
  4638. 'type' => 'string',
  4639. ),
  4640. 'StorageClass' => array(
  4641. 'type' => 'string',
  4642. ),
  4643. 'Owner' => array(
  4644. 'type' => 'object',
  4645. 'properties' => array(
  4646. 'DisplayName' => array(
  4647. 'type' => 'string',
  4648. ),
  4649. 'ID' => array(
  4650. 'type' => 'string',
  4651. ),
  4652. ),
  4653. ),
  4654. 'Initiator' => array(
  4655. 'type' => 'object',
  4656. 'properties' => array(
  4657. 'ID' => array(
  4658. 'type' => 'string',
  4659. ),
  4660. 'DisplayName' => array(
  4661. 'type' => 'string',
  4662. ),
  4663. ),
  4664. ),
  4665. ),
  4666. ),
  4667. ),
  4668. 'CommonPrefixes' => array(
  4669. 'type' => 'array',
  4670. 'location' => 'xml',
  4671. 'data' => array(
  4672. 'xmlFlattened' => true,
  4673. ),
  4674. 'items' => array(
  4675. 'type' => 'object',
  4676. 'properties' => array(
  4677. 'Prefix' => array(
  4678. 'type' => 'string',
  4679. ),
  4680. ),
  4681. ),
  4682. ),
  4683. 'EncodingType' => array(
  4684. 'type' => 'string',
  4685. 'location' => 'xml',
  4686. ),
  4687. 'RequestId' => array(
  4688. 'location' => 'header',
  4689. 'sentAs' => 'x-cos-request-id',
  4690. ),
  4691. ),
  4692. ),
  4693. 'HeadObjectOutput' => array(
  4694. 'type' => 'object',
  4695. 'additionalProperties' => true,
  4696. 'properties' => array(
  4697. 'DeleteMarker' => array(
  4698. 'type' => 'boolean',
  4699. 'location' => 'header',
  4700. 'sentAs' => 'x-cos-delete-marker',
  4701. ),
  4702. 'AcceptRanges' => array(
  4703. 'type' => 'string',
  4704. 'location' => 'header',
  4705. 'sentAs' => 'accept-ranges',
  4706. ),
  4707. 'Expiration' => array(
  4708. 'type' => 'string',
  4709. 'location' => 'header',
  4710. 'sentAs' => 'x-cos-expiration',
  4711. ),
  4712. 'Restore' => array(
  4713. 'type' => 'string',
  4714. 'location' => 'header',
  4715. 'sentAs' => 'x-cos-restore',
  4716. ),
  4717. 'LastModified' => array(
  4718. 'type' => 'string',
  4719. 'location' => 'header',
  4720. 'sentAs' => 'Last-Modified',
  4721. ),
  4722. 'ContentLength' => array(
  4723. 'type' => 'numeric',
  4724. 'minimum'=> 0,
  4725. 'location' => 'header',
  4726. 'sentAs' => 'Content-Length',
  4727. ),
  4728. 'ETag' => array(
  4729. 'type' => 'string',
  4730. 'location' => 'header',
  4731. ),
  4732. 'MissingMeta' => array(
  4733. 'type' => 'numeric',
  4734. 'location' => 'header',
  4735. 'sentAs' => 'x-cos-missing-meta',
  4736. ),
  4737. 'VersionId' => array(
  4738. 'type' => 'string',
  4739. 'location' => 'header',
  4740. 'sentAs' => 'x-cos-version-id',
  4741. ),
  4742. 'CacheControl' => array(
  4743. 'type' => 'string',
  4744. 'location' => 'header',
  4745. 'sentAs' => 'Cache-Control',
  4746. ),
  4747. 'ContentDisposition' => array(
  4748. 'type' => 'string',
  4749. 'location' => 'header',
  4750. 'sentAs' => 'Content-Disposition',
  4751. ),
  4752. 'ContentEncoding' => array(
  4753. 'type' => 'string',
  4754. 'location' => 'header',
  4755. 'sentAs' => 'Content-Encoding',
  4756. ),
  4757. 'ContentLanguage' => array(
  4758. 'type' => 'string',
  4759. 'location' => 'header',
  4760. 'sentAs' => 'Content-Language',
  4761. ),
  4762. 'ContentType' => array(
  4763. 'type' => 'string',
  4764. 'location' => 'header',
  4765. 'sentAs' => 'Content-Type',
  4766. ),
  4767. 'Expires' => array(
  4768. 'type' => 'string',
  4769. 'location' => 'header',
  4770. ),
  4771. 'WebsiteRedirectLocation' => array(
  4772. 'type' => 'string',
  4773. 'location' => 'header',
  4774. 'sentAs' => 'x-cos-website-redirect-location',
  4775. ),
  4776. 'ServerSideEncryption' => array(
  4777. 'type' => 'string',
  4778. 'location' => 'header',
  4779. 'sentAs' => 'x-cos-server-side-encryption',
  4780. ),
  4781. 'SSECustomerAlgorithm' => array(
  4782. 'type' => 'string',
  4783. 'location' => 'header',
  4784. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  4785. ),
  4786. 'SSECustomerKeyMD5' => array(
  4787. 'type' => 'string',
  4788. 'location' => 'header',
  4789. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  4790. ),
  4791. 'SSEKMSKeyId' => array(
  4792. 'type' => 'string',
  4793. 'location' => 'header',
  4794. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  4795. ),
  4796. 'StorageClass' => array(
  4797. 'type' => 'string',
  4798. 'location' => 'header',
  4799. 'sentAs' => 'x-cos-storage-class',
  4800. ),
  4801. 'RequestCharged' => array(
  4802. 'type' => 'string',
  4803. 'location' => 'header',
  4804. 'sentAs' => 'x-cos-request-charged',
  4805. ),
  4806. 'ReplicationStatus' => array(
  4807. 'type' => 'string',
  4808. 'location' => 'header',
  4809. 'sentAs' => 'x-cos-replication-status',
  4810. ),
  4811. 'RequestId' => array(
  4812. 'location' => 'header',
  4813. 'sentAs' => 'x-cos-request-id',
  4814. )
  4815. )
  4816. ),
  4817. 'HeadBucketOutput' => array(
  4818. 'type' => 'object',
  4819. 'additionalProperties' => true,
  4820. 'properties' => array(
  4821. 'RequestId' => array(
  4822. 'location' => 'header',
  4823. 'sentAs' => 'x-cos-request-id',
  4824. ),
  4825. ),
  4826. ),
  4827. 'SelectObjectContentOutput' => array(
  4828. 'type' => 'object',
  4829. 'additionalProperties' => true,
  4830. 'properties' => array(
  4831. 'RawData' => array(
  4832. 'type' => 'string',
  4833. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  4834. 'location' => 'body',
  4835. ),
  4836. ),
  4837. ),
  4838. )
  4839. );
  4840. }
  4841. }