OBSRequestResource.php 257 KB

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