OBSRequestResource.php 190 KB

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