V2RequestResource.php 250 KB

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