V2RequestResource.php 244 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890
  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. 'setBucketPolicy' => [
  965. 'httpMethod' => 'PUT',
  966. 'specialParam' => 'policy',
  967. 'requestParameters' => [
  968. 'Bucket' => [
  969. 'required' => true,
  970. 'type' => 'string',
  971. 'location' => 'dns'
  972. ],
  973. 'Policy' => [
  974. 'required' => true,
  975. 'type' => 'string',
  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. 'getBucketPolicy' => [
  990. 'httpMethod' => 'GET',
  991. 'specialParam' => 'policy',
  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' => 'string',
  1004. 'location' => 'body'
  1005. ],
  1006. 'RequestId' => [
  1007. 'location' => 'header',
  1008. 'sentAs' => 'x-amz-request-id'
  1009. ]
  1010. ]
  1011. ]
  1012. ],
  1013. 'deleteBucketPolicy' => [
  1014. 'httpMethod' => 'DELETE',
  1015. 'specialParam' => 'policy',
  1016. 'requestParameters' => [
  1017. 'Bucket' => [
  1018. 'required' => true,
  1019. 'type' => 'string',
  1020. 'location' => 'dns'
  1021. ]
  1022. ],
  1023. 'responseParameters' => [
  1024. 'type' => 'object',
  1025. 'properties' => [
  1026. 'RequestId' => [
  1027. 'location' => 'header',
  1028. 'sentAs' => 'x-amz-request-id'
  1029. ]
  1030. ]
  1031. ]
  1032. ],
  1033. 'setBucketLifecycleConfiguration' => [
  1034. 'httpMethod' => 'PUT',
  1035. 'specialParam' => 'lifecycle',
  1036. 'data' => [
  1037. 'xmlRoot' => [
  1038. 'name' => 'LifecycleConfiguration'
  1039. ],
  1040. 'contentMd5' => true
  1041. ],
  1042. 'requestParameters' => [
  1043. 'Bucket' => [
  1044. 'required' => true,
  1045. 'type' => 'string',
  1046. 'location' => 'dns'
  1047. ],
  1048. 'Rules' => [
  1049. 'required' => true,
  1050. 'type' => 'array',
  1051. 'location' => 'xml',
  1052. 'sentAs' => 'Rule',
  1053. 'data' => [
  1054. 'xmlFlattened' => true
  1055. ],
  1056. 'items' => [
  1057. 'name' => 'Rule',
  1058. 'type' => 'object',
  1059. 'sentAs' => 'Rule',
  1060. 'properties' => [
  1061. 'Transitions' => [
  1062. 'type' => 'array',
  1063. 'sentAs' => 'Transition',
  1064. 'data' => [
  1065. 'xmlFlattened' => true
  1066. ],
  1067. 'items' => [
  1068. 'type' => 'object',
  1069. 'sentAs' => 'Transition',
  1070. 'properties' => [
  1071. 'StorageClass' => [
  1072. 'type' => 'string',
  1073. 'transform' => 'storageClass'
  1074. ],
  1075. 'Date' => [
  1076. 'type' => 'string',
  1077. 'format' => 'date-time-middle'
  1078. ],
  1079. 'Days' => [
  1080. 'type' => 'numeric'
  1081. ]
  1082. ]
  1083. ]
  1084. ],
  1085. 'Expiration' => [
  1086. 'type' => 'object',
  1087. 'properties' => [
  1088. 'Date' => [
  1089. 'type' => 'string',
  1090. 'format' => 'date-time-middle'
  1091. ],
  1092. 'Days' => [
  1093. 'type' => 'numeric'
  1094. ]
  1095. ]
  1096. ],
  1097. 'NoncurrentVersionTransitions' => [
  1098. 'type' => 'array',
  1099. 'sentAs' => 'NoncurrentVersionTransition',
  1100. 'data' => [
  1101. 'xmlFlattened' => true
  1102. ],
  1103. 'items' => [
  1104. 'type' => 'object',
  1105. 'sentAs' => 'NoncurrentVersionTransition',
  1106. 'properties' => [
  1107. 'StorageClass' => [
  1108. 'type' => 'string',
  1109. 'transform' => 'storageClass'
  1110. ],
  1111. 'NoncurrentDays' => [
  1112. 'type' => 'numeric'
  1113. ]
  1114. ]
  1115. ]
  1116. ],
  1117. 'NoncurrentVersionExpiration' => [
  1118. 'type' => 'object',
  1119. 'properties' => [
  1120. 'NoncurrentDays' => [
  1121. 'type' => 'numeric'
  1122. ]
  1123. ]
  1124. ],
  1125. 'ID' => [
  1126. 'type' => 'string'
  1127. ],
  1128. 'Prefix' => [
  1129. 'required' => true,
  1130. 'type' => 'string',
  1131. 'canEmpty' => true
  1132. ],
  1133. 'Status' => [
  1134. 'required' => true,
  1135. 'type' => 'string'
  1136. ]
  1137. ]
  1138. ]
  1139. ]
  1140. ],
  1141. 'responseParameters' => [
  1142. 'type' => 'object',
  1143. 'properties' => [
  1144. 'RequestId' => [
  1145. 'location' => 'header',
  1146. 'sentAs' => 'x-amz-request-id'
  1147. ]
  1148. ]
  1149. ]
  1150. ],
  1151. 'getBucketLifecycleConfiguration' => [
  1152. 'httpMethod' => 'GET',
  1153. 'specialParam' => 'lifecycle',
  1154. 'requestParameters' => [
  1155. 'Bucket' => [
  1156. 'required' => true,
  1157. 'type' => 'string',
  1158. 'location' => 'dns'
  1159. ]
  1160. ],
  1161. 'responseParameters' => [
  1162. 'type' => 'object',
  1163. 'properties' => [
  1164. 'RequestId' => [
  1165. 'location' => 'header',
  1166. 'sentAs' => 'x-amz-request-id'
  1167. ],
  1168. 'Rules' => [
  1169. 'type' => 'array',
  1170. 'location' => 'xml',
  1171. 'sentAs' => 'Rule',
  1172. 'data' => [
  1173. 'xmlFlattened' => true
  1174. ],
  1175. 'items' => [
  1176. 'name' => 'Rule',
  1177. 'type' => 'object',
  1178. 'sentAs' => 'Rule',
  1179. 'properties' => [
  1180. 'Transitions' => [
  1181. 'type' => 'array',
  1182. 'sentAs' => 'Transition',
  1183. 'data' => [
  1184. 'xmlFlattened' => true
  1185. ],
  1186. 'items' => [
  1187. 'type' => 'object',
  1188. 'sentAs' => 'Transition',
  1189. 'properties' => [
  1190. 'StorageClass' => [
  1191. 'type' => 'string'
  1192. ],
  1193. 'Date' => [
  1194. 'type' => 'string',
  1195. 'format' => 'date-time-middle'
  1196. ],
  1197. 'Days' => [
  1198. 'type' => 'numeric'
  1199. ]
  1200. ]
  1201. ]
  1202. ],
  1203. 'Expiration' => [
  1204. 'type' => 'object',
  1205. 'properties' => [
  1206. 'Date' => [
  1207. 'type' => 'string'
  1208. ],
  1209. 'Days' => [
  1210. 'type' => 'integer'
  1211. ]
  1212. ]
  1213. ],
  1214. 'NoncurrentVersionTransitions' => [
  1215. 'type' => 'array',
  1216. 'sentAs' => 'NoncurrentVersionTransition',
  1217. 'data' => [
  1218. 'xmlFlattened' => true
  1219. ],
  1220. 'items' => [
  1221. 'type' => 'object',
  1222. 'sentAs' => 'NoncurrentVersionTransition',
  1223. 'properties' => [
  1224. 'StorageClass' => [
  1225. 'type' => 'string'
  1226. ],
  1227. 'NoncurrentDays' => [
  1228. 'type' => 'numeric'
  1229. ]
  1230. ]
  1231. ]
  1232. ],
  1233. 'NoncurrentVersionExpiration' => [
  1234. 'type' => 'object',
  1235. 'properties' => [
  1236. 'NoncurrentDays' => [
  1237. 'type' => 'integer'
  1238. ]
  1239. ]
  1240. ],
  1241. 'ID' => [
  1242. 'type' => 'string'
  1243. ],
  1244. 'Prefix' => [
  1245. 'type' => 'string'
  1246. ],
  1247. 'Status' => [
  1248. 'type' => 'string'
  1249. ]
  1250. ]
  1251. ]
  1252. ]
  1253. ]
  1254. ]
  1255. ],
  1256. 'deleteBucketLifecycleConfiguration' => [
  1257. 'httpMethod' => 'DELETE',
  1258. 'specialParam' => 'lifecycle',
  1259. 'requestParameters' => [
  1260. 'Bucket' => [
  1261. 'required' => true,
  1262. 'type' => 'string',
  1263. 'location' => 'dns'
  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. 'setBucketWebsiteConfiguration' => [
  1277. 'httpMethod' => 'PUT',
  1278. 'specialParam' => 'website',
  1279. 'data' => [
  1280. 'xmlRoot' => [
  1281. 'name' => 'WebsiteConfiguration'
  1282. ]
  1283. ],
  1284. 'requestParameters' => [
  1285. 'Bucket' => [
  1286. 'required' => true,
  1287. 'type' => 'string',
  1288. 'location' => 'dns'
  1289. ],
  1290. 'ErrorDocument' => [
  1291. 'type' => 'object',
  1292. 'location' => 'xml',
  1293. 'properties' => [
  1294. 'Key' => [
  1295. 'required' => true,
  1296. 'type' => 'string'
  1297. ]
  1298. ]
  1299. ],
  1300. 'IndexDocument' => [
  1301. 'type' => 'object',
  1302. 'location' => 'xml',
  1303. 'properties' => [
  1304. 'Suffix' => [
  1305. 'required' => true,
  1306. 'type' => 'string'
  1307. ]
  1308. ]
  1309. ],
  1310. 'RedirectAllRequestsTo' => [
  1311. 'type' => 'object',
  1312. 'location' => 'xml',
  1313. 'properties' => [
  1314. 'HostName' => [
  1315. 'required' => true,
  1316. 'type' => 'string'
  1317. ],
  1318. 'Protocol' => [
  1319. 'type' => 'string'
  1320. ]
  1321. ]
  1322. ],
  1323. 'RoutingRules' => [
  1324. 'type' => 'array',
  1325. 'location' => 'xml',
  1326. 'items' => [
  1327. 'name' => 'RoutingRule',
  1328. 'type' => 'object',
  1329. 'properties' => [
  1330. 'Condition' => [
  1331. 'type' => 'object',
  1332. 'properties' => [
  1333. 'HttpErrorCodeReturnedEquals' => [
  1334. 'type' => 'numeric'
  1335. ],
  1336. 'KeyPrefixEquals' => [
  1337. 'type' => 'string'
  1338. ]
  1339. ]
  1340. ],
  1341. 'Redirect' => [
  1342. 'required' => true,
  1343. 'type' => 'object',
  1344. 'properties' => [
  1345. 'HostName' => [
  1346. 'type' => 'string'
  1347. ],
  1348. 'HttpRedirectCode' => [
  1349. 'type' => 'numeric'
  1350. ],
  1351. 'Protocol' => [
  1352. 'type' => 'string'
  1353. ],
  1354. 'ReplaceKeyPrefixWith' => [
  1355. 'type' => 'string'
  1356. ],
  1357. 'ReplaceKeyWith' => [
  1358. 'type' => 'string'
  1359. ]
  1360. ]
  1361. ]
  1362. ]
  1363. ]
  1364. ]
  1365. ],
  1366. 'responseParameters' => [
  1367. 'type' => 'object',
  1368. 'properties' => [
  1369. 'RequestId' => [
  1370. 'location' => 'header',
  1371. 'sentAs' => 'x-amz-request-id'
  1372. ]
  1373. ]
  1374. ]
  1375. ],
  1376. 'getBucketWebsiteConfiguration' => [
  1377. 'httpMethod' => 'GET',
  1378. 'specialParam' => 'website',
  1379. 'requestParameters' => [
  1380. 'Bucket' => [
  1381. 'required' => true,
  1382. 'type' => 'string',
  1383. 'location' => 'dns'
  1384. ]
  1385. ],
  1386. 'responseParameters' => [
  1387. 'type' => 'object',
  1388. 'properties' => [
  1389. 'RequestId' => [
  1390. 'location' => 'header',
  1391. 'sentAs' => 'x-amz-request-id'
  1392. ],
  1393. 'RedirectAllRequestsTo' => [
  1394. 'type' => 'object',
  1395. 'location' => 'xml',
  1396. 'properties' => [
  1397. 'HostName' => [
  1398. 'type' => 'string'
  1399. ],
  1400. 'Protocol' => [
  1401. 'type' => 'string'
  1402. ]
  1403. ]
  1404. ],
  1405. 'IndexDocument' => [
  1406. 'type' => 'object',
  1407. 'location' => 'xml',
  1408. 'properties' => [
  1409. 'Suffix' => [
  1410. 'type' => 'string'
  1411. ]
  1412. ]
  1413. ],
  1414. 'ErrorDocument' => [
  1415. 'type' => 'object',
  1416. 'location' => 'xml',
  1417. 'properties' => [
  1418. 'Key' => [
  1419. 'type' => 'string'
  1420. ]
  1421. ]
  1422. ],
  1423. 'RoutingRules' => [
  1424. 'type' => 'array',
  1425. 'location' => 'xml',
  1426. 'items' => [
  1427. 'name' => 'RoutingRule',
  1428. 'type' => 'object',
  1429. 'sentAs' => 'RoutingRule',
  1430. 'properties' => [
  1431. 'Condition' => [
  1432. 'type' => 'object',
  1433. 'properties' => [
  1434. 'HttpErrorCodeReturnedEquals' => [
  1435. 'type' => 'integer'
  1436. ],
  1437. 'KeyPrefixEquals' => [
  1438. 'type' => 'string'
  1439. ]
  1440. ]
  1441. ],
  1442. 'Redirect' => [
  1443. 'type' => 'object',
  1444. 'properties' => [
  1445. 'HostName' => [
  1446. 'type' => 'string'
  1447. ],
  1448. 'HttpRedirectCode' => [
  1449. 'type' => 'integer'
  1450. ],
  1451. 'Protocol' => [
  1452. 'type' => 'string'
  1453. ],
  1454. 'ReplaceKeyPrefixWith' => [
  1455. 'type' => 'string'
  1456. ],
  1457. 'ReplaceKeyWith' => [
  1458. 'type' => 'string'
  1459. ]
  1460. ]
  1461. ]
  1462. ]
  1463. ]
  1464. ]
  1465. ]
  1466. ]
  1467. ],
  1468. 'deleteBucketWebsiteConfiguration' => [
  1469. 'httpMethod' => 'DELETE',
  1470. 'specialParam' => 'website',
  1471. 'requestParameters' => [
  1472. 'Bucket' => [
  1473. 'required' => true,
  1474. 'type' => 'string',
  1475. 'location' => 'dns'
  1476. ]
  1477. ],
  1478. 'responseParameters' => [
  1479. 'type' => 'object',
  1480. 'properties' => [
  1481. 'RequestId' => [
  1482. 'location' => 'header',
  1483. 'sentAs' => 'x-amz-request-id'
  1484. ]
  1485. ]
  1486. ]
  1487. ],
  1488. 'setBucketVersioningConfiguration' => [
  1489. 'httpMethod' => 'PUT',
  1490. 'specialParam' => 'versioning',
  1491. 'data' => [
  1492. 'xmlRoot' => [
  1493. 'name' => 'VersioningConfiguration'
  1494. ]
  1495. ],
  1496. 'requestParameters' => [
  1497. 'Bucket' => [
  1498. 'required' => true,
  1499. 'type' => 'string',
  1500. 'location' => 'dns'
  1501. ],
  1502. 'Status' => [
  1503. 'type' => 'string',
  1504. 'location' => 'xml'
  1505. ]
  1506. ],
  1507. 'responseParameters' => [
  1508. 'type' => 'object',
  1509. 'properties' => [
  1510. 'RequestId' => [
  1511. 'location' => 'header',
  1512. 'sentAs' => 'x-amz-request-id'
  1513. ]
  1514. ]
  1515. ]
  1516. ],
  1517. 'getBucketVersioningConfiguration' => [
  1518. 'httpMethod' => 'GET',
  1519. 'specialParam' => 'versioning',
  1520. 'requestParameters' => [
  1521. 'Bucket' => [
  1522. 'required' => true,
  1523. 'type' => 'string',
  1524. 'location' => 'dns'
  1525. ]
  1526. ],
  1527. 'responseParameters' => [
  1528. 'type' => 'object',
  1529. 'properties' => [
  1530. 'RequestId' => [
  1531. 'location' => 'header',
  1532. 'sentAs' => 'x-amz-request-id'
  1533. ],
  1534. 'Status' => [
  1535. 'type' => 'string',
  1536. 'location' => 'xml'
  1537. ]
  1538. ]
  1539. ]
  1540. ],
  1541. 'setBucketCors' => [
  1542. 'httpMethod' => 'PUT',
  1543. 'specialParam' => 'cors',
  1544. 'data' => [
  1545. 'xmlRoot' => [
  1546. 'name' => 'CORSConfiguration'
  1547. ],
  1548. 'contentMd5' => true
  1549. ],
  1550. 'requestParameters' => [
  1551. 'Bucket' => [
  1552. 'required' => true,
  1553. 'type' => 'string',
  1554. 'location' => 'dns'
  1555. ],
  1556. 'CorsRules' => [
  1557. 'required' => true,
  1558. 'type' => 'array',
  1559. 'location' => 'xml',
  1560. 'sentAs' => 'CORSRule',
  1561. 'data' => [
  1562. 'xmlFlattened' => true
  1563. ],
  1564. 'items' => [
  1565. 'type' => 'object',
  1566. 'sentAs' => 'CORSRule',
  1567. 'properties' => [
  1568. 'ID' => [
  1569. 'type' => 'string'
  1570. ],
  1571. 'AllowedMethod' => [
  1572. 'required' => true,
  1573. 'type' => 'array',
  1574. 'data' => [
  1575. 'xmlFlattened' => true
  1576. ],
  1577. 'items' => [
  1578. 'type' => 'string',
  1579. 'sentAs' => 'AllowedMethod'
  1580. ]
  1581. ],
  1582. 'AllowedOrigin' => [
  1583. 'required' => true,
  1584. 'type' => 'array',
  1585. 'data' => [
  1586. 'xmlFlattened' => true
  1587. ],
  1588. 'items' => [
  1589. 'sentAs' => 'AllowedOrigin',
  1590. 'type' => 'string'
  1591. ]
  1592. ],
  1593. 'AllowedHeader' => [
  1594. 'type' => 'array',
  1595. 'data' => [
  1596. 'xmlFlattened' => true
  1597. ],
  1598. 'items' => [
  1599. 'name' => 'AllowedHeader',
  1600. 'type' => 'string'
  1601. ]
  1602. ],
  1603. 'MaxAgeSeconds' => [
  1604. 'type' => 'numeric'
  1605. ],
  1606. 'ExposeHeader' => [
  1607. 'type' => 'array',
  1608. 'data' => [
  1609. 'xmlFlattened' => true
  1610. ],
  1611. 'items' => [
  1612. 'name' => 'ExposeHeader',
  1613. 'type' => 'string'
  1614. ]
  1615. ]
  1616. ]
  1617. ]
  1618. ]
  1619. ],
  1620. 'responseParameters' => [
  1621. 'type' => 'object',
  1622. 'properties' => [
  1623. 'RequestId' => [
  1624. 'location' => 'header',
  1625. 'sentAs' => 'x-amz-request-id'
  1626. ]
  1627. ]
  1628. ]
  1629. ],
  1630. 'getBucketCors' => [
  1631. 'httpMethod' => 'GET',
  1632. 'specialParam' => 'cors',
  1633. 'requestParameters' => [
  1634. 'Bucket' => [
  1635. 'required' => true,
  1636. 'type' => 'string',
  1637. 'location' => 'dns'
  1638. ]
  1639. ],
  1640. 'responseParameters' => [
  1641. 'type' => 'object',
  1642. 'properties' => [
  1643. 'RequestId' => [
  1644. 'location' => 'header',
  1645. 'sentAs' => 'x-amz-request-id'
  1646. ],
  1647. 'CorsRules' => [
  1648. 'type' => 'array',
  1649. 'location' => 'xml',
  1650. 'sentAs' => 'CORSRule',
  1651. 'data' => [
  1652. 'xmlFlattened' => true
  1653. ],
  1654. 'items' => [
  1655. 'type' => 'object',
  1656. 'properties' => [
  1657. 'ID' => [
  1658. 'type' => 'string'
  1659. ],
  1660. 'AllowedMethod' => [
  1661. 'type' => 'array',
  1662. 'data' => [
  1663. 'xmlFlattened' => true
  1664. ],
  1665. 'items' => [
  1666. 'type' => 'string',
  1667. 'sentAs' => 'AllowedMethod'
  1668. ]
  1669. ],
  1670. 'AllowedOrigin' => [
  1671. 'type' => 'array',
  1672. 'data' => [
  1673. 'xmlFlattened' => true
  1674. ],
  1675. 'items' => [
  1676. 'sentAs' => 'AllowedOrigin',
  1677. 'type' => 'string'
  1678. ]
  1679. ],
  1680. 'AllowedHeader' => [
  1681. 'type' => 'array',
  1682. 'data' => [
  1683. 'xmlFlattened' => true
  1684. ],
  1685. 'items' => [
  1686. 'name' => 'AllowedHeader',
  1687. 'type' => 'string'
  1688. ]
  1689. ],
  1690. 'MaxAgeSeconds' => [
  1691. 'type' => 'integer'
  1692. ],
  1693. 'ExposeHeader' => [
  1694. 'type' => 'array',
  1695. 'data' => [
  1696. 'xmlFlattened' => true
  1697. ],
  1698. 'items' => [
  1699. 'name' => 'ExposeHeader',
  1700. 'type' => 'string'
  1701. ]
  1702. ]
  1703. ]
  1704. ]
  1705. ]
  1706. ]
  1707. ]
  1708. ],
  1709. 'deleteBucketCors' => [
  1710. 'httpMethod' => 'DELETE',
  1711. 'specialParam' => 'cors',
  1712. 'requestParameters' => [
  1713. 'Bucket' => [
  1714. 'required' => true,
  1715. 'type' => 'string',
  1716. 'location' => 'dns'
  1717. ]
  1718. ],
  1719. 'responseParameters' => [
  1720. 'type' => 'object',
  1721. 'properties' => [
  1722. 'RequestId' => [
  1723. 'location' => 'header',
  1724. 'sentAs' => 'x-amz-request-id'
  1725. ]
  1726. ]
  1727. ]
  1728. ],
  1729. 'optionsBucket' => [
  1730. 'httpMethod' => 'OPTIONS',
  1731. 'requestParameters' => [
  1732. 'Bucket' => [
  1733. 'required' => true,
  1734. 'type' => 'string',
  1735. 'location' => 'dns'
  1736. ],
  1737. 'Origin' => [
  1738. 'required' => true,
  1739. 'type' => 'string',
  1740. 'location' => 'header'
  1741. ],
  1742. 'AccessControlRequestMethods' => [
  1743. 'required' => true,
  1744. 'type' => 'array',
  1745. 'location' => 'header',
  1746. 'items' => [
  1747. 'sentAs' => 'Access-Control-Request-Method',
  1748. 'type' => 'string'
  1749. ]
  1750. ],
  1751. 'AccessControlRequestHeaders' => [
  1752. 'type' => 'array',
  1753. 'location' => 'header',
  1754. 'items' => [
  1755. 'sentAs' => 'Access-Control-Request-Headers',
  1756. 'type' => 'string'
  1757. ]
  1758. ]
  1759. ],
  1760. 'responseParameters' => [
  1761. 'type' => 'object',
  1762. 'properties' => [
  1763. 'RequestId' => [
  1764. 'location' => 'header',
  1765. 'sentAs' => 'x-amz-request-id'
  1766. ],
  1767. 'AllowOrigin' => [
  1768. 'location' => 'header',
  1769. 'sentAs' => 'access-control-allow-origin'
  1770. ],
  1771. 'AllowHeader' => [
  1772. 'location' => 'header',
  1773. 'sentAs' => 'access-control-allow-headers'
  1774. ],
  1775. 'AllowMethod' => [
  1776. 'location' => 'header',
  1777. 'sentAs' => 'access-control-allow-methods'
  1778. ],
  1779. 'ExposeHeader' => [
  1780. 'location' => 'header',
  1781. 'sentAs' => 'access-control-expose-headers'
  1782. ],
  1783. 'MaxAgeSeconds' => [
  1784. 'location' => 'header',
  1785. 'sentAs' => 'access-control-max-age'
  1786. ]
  1787. ]
  1788. ]
  1789. ],
  1790. 'setBucketTagging' => [
  1791. 'httpMethod' => 'PUT',
  1792. 'specialParam' => 'tagging',
  1793. 'data' => [
  1794. 'xmlRoot' => [
  1795. 'name' => 'Tagging'
  1796. ],
  1797. 'contentMd5' => true
  1798. ],
  1799. 'requestParameters' => [
  1800. 'Bucket' => [
  1801. 'required' => true,
  1802. 'type' => 'string',
  1803. 'location' => 'dns'
  1804. ],
  1805. 'Tags' => [
  1806. 'required' => true,
  1807. 'type' => 'array',
  1808. 'location' => 'xml',
  1809. 'sentAs' => 'TagSet',
  1810. 'items' => [
  1811. 'required' => true,
  1812. 'type' => 'object',
  1813. 'name' => 'Tag',
  1814. 'properties' => [
  1815. 'Key' => [
  1816. 'required' => true,
  1817. 'type' => 'string'
  1818. ],
  1819. 'Value' => [
  1820. 'required' => true,
  1821. 'type' => 'string'
  1822. ]
  1823. ]
  1824. ]
  1825. ]
  1826. ],
  1827. 'responseParameters' => [
  1828. 'type' => 'object',
  1829. 'properties' => [
  1830. 'RequestId' => [
  1831. 'location' => 'header',
  1832. 'sentAs' => 'x-amz-request-id'
  1833. ]
  1834. ]
  1835. ]
  1836. ],
  1837. 'getBucketTagging' => [
  1838. 'httpMethod' => 'GET',
  1839. 'specialParam' => 'tagging',
  1840. 'requestParameters' => [
  1841. 'Bucket' => [
  1842. 'required' => true,
  1843. 'type' => 'string',
  1844. 'location' => 'dns'
  1845. ]
  1846. ],
  1847. 'responseParameters' => [
  1848. 'type' => 'object',
  1849. 'properties' => [
  1850. 'RequestId' => [
  1851. 'location' => 'header',
  1852. 'sentAs' => 'x-amz-request-id'
  1853. ],
  1854. 'Tags' => [
  1855. 'type' => 'array',
  1856. 'location' => 'xml',
  1857. 'sentAs' => 'TagSet',
  1858. 'items' => [
  1859. 'type' => 'object',
  1860. 'name' => 'Tag',
  1861. 'properties' => [
  1862. 'Key' => [
  1863. 'type' => 'string'
  1864. ],
  1865. 'Value' => [
  1866. 'type' => 'string'
  1867. ]
  1868. ]
  1869. ]
  1870. ]
  1871. ]
  1872. ]
  1873. ],
  1874. 'deleteBucketTagging' => [
  1875. 'httpMethod' => 'DELETE',
  1876. 'specialParam' => 'tagging',
  1877. 'requestParameters' => [
  1878. 'Bucket' => [
  1879. 'required' => true,
  1880. 'type' => 'string',
  1881. 'location' => 'dns'
  1882. ]
  1883. ],
  1884. 'responseParameters' => [
  1885. 'type' => 'object',
  1886. 'properties' => [
  1887. 'RequestId' => [
  1888. 'location' => 'header',
  1889. 'sentAs' => 'x-amz-request-id'
  1890. ]
  1891. ]
  1892. ]
  1893. ],
  1894. 'setBucketNotification' => [
  1895. 'httpMethod' => 'PUT',
  1896. 'specialParam' => 'notification',
  1897. 'data' => [
  1898. 'xmlRoot' => [
  1899. 'name' => 'NotificationConfiguration'
  1900. ],
  1901. 'xmlAllowEmpty' => true
  1902. ],
  1903. 'requestParameters' => [
  1904. 'Bucket' => [
  1905. 'required' => true,
  1906. 'type' => 'string',
  1907. 'location' => 'dns'
  1908. ],
  1909. 'TopicConfigurations' => [
  1910. 'type' => 'array',
  1911. 'location' => 'xml',
  1912. 'sentAs' => 'TopicConfiguration',
  1913. 'data' => [
  1914. 'xmlFlattened' => true
  1915. ],
  1916. 'items' => [
  1917. 'type' => 'object',
  1918. 'location' => 'xml',
  1919. 'sentAs' => 'TopicConfiguration',
  1920. 'properties' => [
  1921. 'ID' => [
  1922. 'type' => 'string',
  1923. 'sentAs' => 'Id'
  1924. ],
  1925. 'Filter' => [
  1926. 'type' => 'array',
  1927. 'wrapper' => 'Filter',
  1928. 'sentAs' => 'S3Key',
  1929. 'items' => [
  1930. 'type' => 'object',
  1931. 'sentAs' => 'FilterRule',
  1932. 'properties' => [
  1933. 'Name' => [
  1934. 'type' => 'string'
  1935. ],
  1936. 'Value' => [
  1937. 'type' => 'string'
  1938. ]
  1939. ]
  1940. ]
  1941. ],
  1942. 'Topic' => [
  1943. 'type' => 'string'
  1944. ],
  1945. 'Event' => [
  1946. 'type' => 'array',
  1947. 'data' => [
  1948. 'xmlFlattened' => true
  1949. ],
  1950. 'items' => [
  1951. 'type' => 'string',
  1952. 'sentAs' => 'Event',
  1953. 'transform' => 'event'
  1954. ]
  1955. ],
  1956. ]
  1957. ]
  1958. ]
  1959. ],
  1960. 'responseParameters' => [
  1961. 'type' => 'object',
  1962. 'properties' => [
  1963. 'RequestId' => [
  1964. 'location' => 'header',
  1965. 'sentAs' => 'x-amz-request-id'
  1966. ]
  1967. ]
  1968. ]
  1969. ],
  1970. 'getBucketNotification' => [
  1971. 'httpMethod' => 'GET',
  1972. 'specialParam' => 'notification',
  1973. 'requestParameters' => [
  1974. 'Bucket' => [
  1975. 'required' => true,
  1976. 'type' => 'string',
  1977. 'location' => 'dns'
  1978. ]
  1979. ],
  1980. 'responseParameters' => [
  1981. 'type' => 'object',
  1982. 'properties' => [
  1983. 'RequestId' => [
  1984. 'location' => 'header',
  1985. 'sentAs' => 'x-amz-request-id'
  1986. ],
  1987. 'TopicConfigurations' => [
  1988. 'type' => 'array',
  1989. 'location' => 'xml',
  1990. 'sentAs' => 'TopicConfiguration',
  1991. 'data' => [
  1992. 'xmlFlattened' => true
  1993. ],
  1994. 'items' => [
  1995. 'type' => 'object',
  1996. 'location' => 'xml',
  1997. 'sentAs' => 'TopicConfiguration',
  1998. 'properties' => [
  1999. 'ID' => [
  2000. 'type' => 'string',
  2001. 'sentAs' => 'Id'
  2002. ],
  2003. 'Topic' => [
  2004. 'type' => 'string'
  2005. ],
  2006. 'Event' => [
  2007. 'type' => 'array',
  2008. 'data' => [
  2009. 'xmlFlattened' => true
  2010. ],
  2011. 'items' => [
  2012. 'type' => 'string',
  2013. 'sentAs' => 'Event'
  2014. ]
  2015. ],
  2016. 'Filter' => [
  2017. 'type' => 'array',
  2018. 'wrapper' => 'Filter',
  2019. 'sentAs' => 'S3Key',
  2020. 'items' => [
  2021. 'type' => 'object',
  2022. 'sentAs' => 'FilterRule',
  2023. 'properties' => [
  2024. 'Name' => [
  2025. 'type' => 'string'
  2026. ],
  2027. 'Value' => [
  2028. 'type' => 'string'
  2029. ]
  2030. ]
  2031. ]
  2032. ]
  2033. ]
  2034. ]
  2035. ]
  2036. ]
  2037. ]
  2038. ],
  2039. 'optionsObject' => [
  2040. 'httpMethod' => 'OPTIONS',
  2041. 'requestParameters' => [
  2042. 'Bucket' => [
  2043. 'required' => true,
  2044. 'type' => 'string',
  2045. 'location' => 'dns'
  2046. ],
  2047. 'Key' => [
  2048. 'required' => true,
  2049. 'type' => 'string',
  2050. 'location' => 'uri'
  2051. ],
  2052. 'Origin' => [
  2053. 'required' => true,
  2054. 'type' => 'string',
  2055. 'location' => 'header'
  2056. ],
  2057. 'AccessControlRequestMethods' => [
  2058. 'required' => true,
  2059. 'type' => 'array',
  2060. 'location' => 'header',
  2061. 'items' => [
  2062. 'sentAs' => 'Access-Control-Request-Method',
  2063. 'type' => 'string'
  2064. ]
  2065. ],
  2066. 'AccessControlRequestHeaders' => [
  2067. 'type' => 'array',
  2068. 'location' => 'header',
  2069. 'items' => [
  2070. 'sentAs' => 'Access-Control-Request-Headers',
  2071. 'type' => 'string'
  2072. ]
  2073. ]
  2074. ],
  2075. 'responseParameters' => [
  2076. 'type' => 'object',
  2077. 'properties' => [
  2078. 'RequestId' => [
  2079. 'location' => 'header',
  2080. 'sentAs' => 'x-amz-request-id'
  2081. ],
  2082. 'AllowOrigin' => [
  2083. 'location' => 'header',
  2084. 'sentAs' => 'access-control-allow-origin'
  2085. ],
  2086. 'AllowHeader' => [
  2087. 'location' => 'header',
  2088. 'sentAs' => 'access-control-allow-headers'
  2089. ],
  2090. 'AllowMethod' => [
  2091. 'location' => 'header',
  2092. 'sentAs' => 'access-control-allow-methods'
  2093. ],
  2094. 'ExposeHeader' => [
  2095. 'location' => 'header',
  2096. 'sentAs' => 'access-control-expose-headers'
  2097. ],
  2098. 'MaxAgeSeconds' => [
  2099. 'location' => 'header',
  2100. 'sentAs' => 'access-control-max-age'
  2101. ]
  2102. ]
  2103. ]
  2104. ],
  2105. 'deleteObject' => [
  2106. 'httpMethod' => 'DELETE',
  2107. 'requestParameters' => [
  2108. 'Bucket' => [
  2109. 'required' => true,
  2110. 'type' => 'string',
  2111. 'location' => 'dns'
  2112. ],
  2113. 'Key' => [
  2114. 'required' => true,
  2115. 'type' => 'string',
  2116. 'location' => 'uri'
  2117. ],
  2118. 'VersionId' => [
  2119. 'type' => 'string',
  2120. 'location' => 'query',
  2121. 'sentAs' => 'versionId'
  2122. ]
  2123. ],
  2124. 'responseParameters' => [
  2125. 'type' => 'object',
  2126. 'properties' => [
  2127. 'DeleteMarker' => [
  2128. 'type' => 'boolean',
  2129. 'location' => 'header',
  2130. 'sentAs' => 'x-amz-delete-marker'
  2131. ],
  2132. 'VersionId' => [
  2133. 'type' => 'string',
  2134. 'location' => 'header',
  2135. 'sentAs' => 'x-amz-version-id'
  2136. ],
  2137. 'RequestId' => [
  2138. 'location' => 'header',
  2139. 'sentAs' => 'x-amz-request-id'
  2140. ]
  2141. ]
  2142. ]
  2143. ],
  2144. 'deleteObjects' => [
  2145. 'httpMethod' => 'POST',
  2146. 'specialParam' => 'delete',
  2147. 'data' => [
  2148. 'xmlRoot' => [
  2149. 'name' => 'Delete'
  2150. ],
  2151. 'contentMd5' => true
  2152. ],
  2153. 'requestParameters' => [
  2154. 'Bucket' => [
  2155. 'required' => true,
  2156. 'type' => 'string',
  2157. 'location' => 'dns'
  2158. ],
  2159. 'Quiet' => [
  2160. 'type' => 'boolean',
  2161. 'location' => 'xml'
  2162. ],
  2163. 'Objects' => [
  2164. 'required' => true,
  2165. 'type' => 'array',
  2166. 'location' => 'xml',
  2167. 'data' => [
  2168. 'xmlFlattened' => true
  2169. ],
  2170. 'items' => [
  2171. 'type' => 'object',
  2172. 'sentAs' => 'Object',
  2173. 'properties' => [
  2174. 'Key' => [
  2175. 'required' => true,
  2176. 'type' => 'string'
  2177. ],
  2178. 'VersionId' => [
  2179. 'type' => 'string'
  2180. ]
  2181. ]
  2182. ]
  2183. ]
  2184. ],
  2185. 'responseParameters' => [
  2186. 'type' => 'object',
  2187. 'properties' => [
  2188. 'Deleteds' => [
  2189. 'type' => 'array',
  2190. 'location' => 'xml',
  2191. 'sentAs' => 'Deleted',
  2192. 'data' => [
  2193. 'xmlFlattened' => true
  2194. ],
  2195. 'items' => [
  2196. 'name' => 'DeletedObject',
  2197. 'type' => 'object',
  2198. 'properties' => [
  2199. 'Key' => [
  2200. 'type' => 'string'
  2201. ],
  2202. 'VersionId' => [
  2203. 'type' => 'string'
  2204. ],
  2205. 'DeleteMarker' => [
  2206. 'type' => 'boolean'
  2207. ],
  2208. 'DeleteMarkerVersionId' => [
  2209. 'type' => 'string'
  2210. ]
  2211. ]
  2212. ]
  2213. ],
  2214. 'Errors' => [
  2215. 'type' => 'array',
  2216. 'location' => 'xml',
  2217. 'sentAs' => 'Error',
  2218. 'data' => [
  2219. 'xmlFlattened' => true
  2220. ],
  2221. 'items' => [
  2222. 'name' => 'Error',
  2223. 'type' => 'object',
  2224. 'sentAs' => 'Error',
  2225. 'properties' => [
  2226. 'Key' => [
  2227. 'type' => 'string'
  2228. ],
  2229. 'VersionId' => [
  2230. 'type' => 'string'
  2231. ],
  2232. 'Code' => [
  2233. 'type' => 'string'
  2234. ],
  2235. 'Message' => [
  2236. 'type' => 'string'
  2237. ]
  2238. ]
  2239. ]
  2240. ],
  2241. 'RequestId' => [
  2242. 'location' => 'header',
  2243. 'sentAs' => 'x-amz-request-id'
  2244. ]
  2245. ]
  2246. ]
  2247. ],
  2248. 'setObjectAcl' => [
  2249. 'httpMethod' => 'PUT',
  2250. 'specialParam' => 'acl',
  2251. 'data' => [
  2252. 'xmlRoot' => [
  2253. 'name' => 'AccessControlPolicy'
  2254. ]
  2255. ],
  2256. 'requestParameters' => [
  2257. 'Bucket' => [
  2258. 'required' => true,
  2259. 'type' => 'string',
  2260. 'location' => 'dns'
  2261. ],
  2262. 'Key' => [
  2263. 'required' => true,
  2264. 'type' => 'string',
  2265. 'location' => 'uri'
  2266. ],
  2267. 'VersionId' => [
  2268. 'type' => 'string',
  2269. 'location' => 'query',
  2270. 'sentAs' => 'versionId'
  2271. ],
  2272. 'ACL' => [
  2273. 'type' => 'string',
  2274. 'location' => 'header',
  2275. 'sentAs' => 'x-amz-acl',
  2276. 'transform' => 'aclHeader'
  2277. ],
  2278. 'GrantRead' => [
  2279. 'type' => 'string',
  2280. 'location' => 'header',
  2281. 'sentAs' => 'x-amz-grant-read'
  2282. ],
  2283. 'GrantWrite' => [
  2284. 'type' => 'string',
  2285. 'location' => 'header',
  2286. 'sentAs' => 'x-amz-grant-write'
  2287. ],
  2288. 'GrantReadAcp' => [
  2289. 'type' => 'string',
  2290. 'location' => 'header',
  2291. 'sentAs' => 'x-amz-grant-read-acp'
  2292. ],
  2293. 'GrantWriteAcp' => [
  2294. 'type' => 'string',
  2295. 'location' => 'header',
  2296. 'sentAs' => 'x-amz-grant-write-acp'
  2297. ],
  2298. 'GrantFullControl' => [
  2299. 'type' => 'string',
  2300. 'location' => 'header',
  2301. 'sentAs' => 'x-amz-grant-full-control'
  2302. ],
  2303. 'Owner' => [
  2304. 'type' => 'object',
  2305. 'location' => 'xml',
  2306. 'properties' => [
  2307. 'DisplayName' => [
  2308. 'type' => 'string'
  2309. ],
  2310. 'ID' => [
  2311. 'type' => 'string'
  2312. ]
  2313. ]
  2314. ],
  2315. 'Grants' => [
  2316. 'type' => 'array',
  2317. 'location' => 'xml',
  2318. 'sentAs' => 'AccessControlList',
  2319. 'items' => [
  2320. 'name' => 'Grant',
  2321. 'type' => 'object',
  2322. 'properties' => [
  2323. 'Grantee' => [
  2324. 'type' => 'object',
  2325. 'properties' => [
  2326. 'DisplayName' => [
  2327. 'type' => 'string'
  2328. ],
  2329. 'ID' => [
  2330. 'type' => 'string'
  2331. ],
  2332. 'Type' => [
  2333. 'required' => true,
  2334. 'type' => 'string',
  2335. 'sentAs' => 'xsi:type',
  2336. 'data' => [
  2337. 'xmlAttribute' => true,
  2338. 'xmlNamespace' => 'http://www.w3.org/2001/XMLSchema-instance'
  2339. ]
  2340. ],
  2341. 'URI' => [
  2342. 'type' => 'string',
  2343. 'transform' => 'aclUri'
  2344. ]
  2345. ]
  2346. ],
  2347. 'Permission' => [
  2348. 'type' => 'string'
  2349. ]
  2350. ]
  2351. ]
  2352. ]
  2353. ],
  2354. 'responseParameters' => [
  2355. 'RequestId' => [
  2356. 'location' => 'header',
  2357. 'sentAs' => 'x-amz-request-id'
  2358. ]
  2359. ]
  2360. ],
  2361. 'getObjectAcl' => [
  2362. 'httpMethod' => 'GET',
  2363. 'specialParam' => 'acl',
  2364. 'requestParameters' => [
  2365. 'Bucket' => [
  2366. 'required' => true,
  2367. 'type' => 'string',
  2368. 'location' => 'dns'
  2369. ],
  2370. 'Key' => [
  2371. 'required' => true,
  2372. 'type' => 'string',
  2373. 'location' => 'uri'
  2374. ],
  2375. 'VersionId' => [
  2376. 'type' => 'string',
  2377. 'location' => 'query',
  2378. 'sentAs' => 'versionId'
  2379. ]
  2380. ],
  2381. 'responseParameters' => [
  2382. 'type' => 'object',
  2383. 'properties' => [
  2384. 'Owner' => [
  2385. 'type' => 'object',
  2386. 'location' => 'xml',
  2387. 'properties' => [
  2388. 'DisplayName' => [
  2389. 'type' => 'string'
  2390. ],
  2391. 'ID' => [
  2392. 'type' => 'string'
  2393. ]
  2394. ]
  2395. ],
  2396. 'Grants' => [
  2397. 'type' => 'array',
  2398. 'location' => 'xml',
  2399. 'sentAs' => 'AccessControlList',
  2400. 'items' => [
  2401. 'name' => 'Grant',
  2402. 'type' => 'object',
  2403. 'sentAs' => 'Grant',
  2404. 'properties' => [
  2405. 'Grantee' => [
  2406. 'type' => 'object',
  2407. 'properties' => [
  2408. 'DisplayName' => [
  2409. 'type' => 'string'
  2410. ],
  2411. 'ID' => [
  2412. 'type' => 'string'
  2413. ],
  2414. 'URI' => [
  2415. 'type' => 'string'
  2416. ]
  2417. ]
  2418. ],
  2419. 'Permission' => [
  2420. 'type' => 'string'
  2421. ]
  2422. ]
  2423. ]
  2424. ],
  2425. 'RequestId' => [
  2426. 'location' => 'header',
  2427. 'sentAs' => 'x-amz-request-id'
  2428. ],
  2429. 'VersionId' => [
  2430. 'location' => 'header',
  2431. 'sentAs' => 'x-amz-version-id'
  2432. ]
  2433. ]
  2434. ]
  2435. ],
  2436. 'restoreObject' => [
  2437. 'httpMethod' => 'POST',
  2438. 'specialParam' => 'restore',
  2439. 'data' => [
  2440. 'xmlRoot' => [
  2441. 'name' => 'RestoreRequest'
  2442. ]
  2443. ],
  2444. 'requestParameters' => [
  2445. 'Bucket' => [
  2446. 'required' => true,
  2447. 'type' => 'string',
  2448. 'location' => 'dns'
  2449. ],
  2450. 'Key' => [
  2451. 'required' => true,
  2452. 'type' => 'string',
  2453. 'location' => 'uri'
  2454. ],
  2455. 'VersionId' => [
  2456. 'type' => 'string',
  2457. 'location' => 'query',
  2458. 'sentAs' => 'versionId'
  2459. ],
  2460. 'Days' => [
  2461. 'required' => true,
  2462. 'type' => 'numeric',
  2463. 'location' => 'xml',
  2464. 'sentAs' => 'Days'
  2465. ],
  2466. 'Tier' => [
  2467. 'wrapper' => 'GlacierJobParameters',
  2468. 'type' => 'string',
  2469. 'sentAs' => 'Tier',
  2470. 'location' => 'xml'
  2471. ]
  2472. ],
  2473. 'responseParameters' => [
  2474. 'RequestId' => [
  2475. 'location' => 'header',
  2476. 'sentAs' => 'x-amz-request-id'
  2477. ]
  2478. ]
  2479. ],
  2480. 'putObject' => [
  2481. 'httpMethod' => 'PUT',
  2482. 'requestParameters' => [
  2483. 'ACL' => [
  2484. 'type' => 'string',
  2485. 'location' => 'header',
  2486. 'sentAs' => 'x-amz-acl',
  2487. 'transform' => 'aclHeader'
  2488. ],
  2489. 'StorageClass' => [
  2490. 'type' => 'string',
  2491. 'location' => 'header',
  2492. 'sentAs' => 'x-amz-storage-class',
  2493. 'transform' => 'storageClass'
  2494. ],
  2495. 'Body' => [
  2496. 'type' => 'stream',
  2497. 'location' => 'body'
  2498. ],
  2499. 'Bucket' => [
  2500. 'required' => true,
  2501. 'type' => 'string',
  2502. 'location' => 'dns'
  2503. ],
  2504. 'Key' => [
  2505. 'required' => true,
  2506. 'type' => 'string',
  2507. 'location' => 'uri'
  2508. ],
  2509. 'ContentMD5' => [
  2510. 'type' => 'string',
  2511. 'location' => 'header',
  2512. 'sentAs' => 'Content-MD5'
  2513. ],
  2514. 'ContentType' => [
  2515. 'type' => 'string',
  2516. 'location' => 'header',
  2517. 'sentAs' => 'Content-Type'
  2518. ],
  2519. 'ContentLength' => [
  2520. 'type' => 'numeric',
  2521. 'location' => 'header',
  2522. 'sentAs' => 'Content-Length'
  2523. ],
  2524. 'Metadata' => [
  2525. 'type' => 'object',
  2526. 'location' => 'header',
  2527. 'sentAs' => 'x-amz-meta-'
  2528. ],
  2529. 'SourceFile' => [
  2530. 'type' => 'file',
  2531. 'location' => 'body'
  2532. ],
  2533. 'WebsiteRedirectLocation' => [
  2534. 'type' => 'string',
  2535. 'location' => 'header',
  2536. 'sentAs' => 'x-amz-website-redirect-location'
  2537. ],
  2538. 'SseKms' => [
  2539. 'location' => 'header',
  2540. 'sentAs' => 'x-amz-server-side-encryption'
  2541. ],
  2542. 'SseKmsKey' => [
  2543. 'location' => 'header',
  2544. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  2545. ],
  2546. 'SseC' => [
  2547. 'location' => 'header',
  2548. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  2549. ],
  2550. 'SseCKey' => [
  2551. 'location' => 'header',
  2552. 'sentAs' => 'x-amz-server-side-encryption-customer-key',
  2553. 'type' => 'password'
  2554. ],
  2555. 'Expires' => [
  2556. 'location' => 'header',
  2557. 'type' => 'string',
  2558. 'sentAs' => 'x-obs-expires'
  2559. ]
  2560. ],
  2561. 'responseParameters' => [
  2562. 'type' => 'object',
  2563. 'properties' => [
  2564. 'ETag' => [
  2565. 'type' => 'string',
  2566. 'location' => 'header'
  2567. ],
  2568. 'VersionId' => [
  2569. 'type' => 'string',
  2570. 'location' => 'header',
  2571. 'sentAs' => 'x-amz-version-id'
  2572. ],
  2573. 'RequestId' => [
  2574. 'location' => 'header',
  2575. 'sentAs' => 'x-amz-request-id'
  2576. ],
  2577. 'StorageClass' => [
  2578. 'location' => 'header',
  2579. 'sentAs' => 'x-amz-storage-class'
  2580. ],
  2581. 'SseKms' => [
  2582. 'location' => 'header',
  2583. 'sentAs' => 'x-amz-server-side-encryption'
  2584. ],
  2585. 'SseKmsKey' => [
  2586. 'location' => 'header',
  2587. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  2588. ],
  2589. 'SseC' => [
  2590. 'location' => 'header',
  2591. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  2592. ],
  2593. 'SseCKeyMd5' => [
  2594. 'location' => 'header',
  2595. 'sentAs' => 'x-amz-server-side-encryption-customer-key-MD5'
  2596. ]
  2597. ]
  2598. ]
  2599. ],
  2600. 'getObject' => [
  2601. 'httpMethod' => 'GET',
  2602. 'stream' => true,
  2603. 'requestParameters' => [
  2604. 'Bucket' => [
  2605. 'required' => true,
  2606. 'type' => 'string',
  2607. 'location' => 'dns'
  2608. ],
  2609. 'IfMatch' => [
  2610. 'type' => 'string',
  2611. 'location' => 'header',
  2612. 'sentAs' => 'If-Match'
  2613. ],
  2614. 'IfModifiedSince' => [
  2615. 'type' => 'string',
  2616. 'format' => 'date-time-http',
  2617. 'location' => 'header',
  2618. 'sentAs' => 'If-Modified-Since'
  2619. ],
  2620. 'IfNoneMatch' => [
  2621. 'type' => 'string',
  2622. 'location' => 'header',
  2623. 'sentAs' => 'If-None-Match'
  2624. ],
  2625. 'IfUnmodifiedSince' => [
  2626. 'type' => 'string',
  2627. 'format' => 'date-time-http',
  2628. 'location' => 'header',
  2629. 'sentAs' => 'If-Unmodified-Since'
  2630. ],
  2631. 'Key' => [
  2632. 'required' => true,
  2633. 'type' => 'string',
  2634. 'location' => 'uri'
  2635. ],
  2636. 'Range' => [
  2637. 'type' => 'string',
  2638. 'location' => 'header'
  2639. ],
  2640. 'ImageProcess' => [
  2641. 'type' => 'string',
  2642. 'location' => 'query',
  2643. 'sentAs' => 'x-image-process'
  2644. ],
  2645. 'ResponseCacheControl' => [
  2646. 'type' => 'string',
  2647. 'location' => 'query',
  2648. 'sentAs' => 'response-cache-control'
  2649. ],
  2650. 'ResponseContentDisposition' => [
  2651. 'type' => 'string',
  2652. 'location' => 'query',
  2653. 'sentAs' => 'response-content-disposition'
  2654. ],
  2655. 'ResponseContentEncoding' => [
  2656. 'type' => 'string',
  2657. 'location' => 'query',
  2658. 'sentAs' => 'response-content-encoding'
  2659. ],
  2660. 'ResponseContentLanguage' => [
  2661. 'type' => 'string',
  2662. 'location' => 'query',
  2663. 'sentAs' => 'response-content-language'
  2664. ],
  2665. 'ResponseContentType' => [
  2666. 'type' => 'string',
  2667. 'location' => 'query',
  2668. 'sentAs' => 'response-content-type'
  2669. ],
  2670. 'ResponseExpires' => [
  2671. 'type' => 'string',
  2672. 'format' => 'date-time-http',
  2673. 'location' => 'query',
  2674. 'sentAs' => 'response-expires'
  2675. ],
  2676. 'VersionId' => [
  2677. 'type' => 'string',
  2678. 'location' => 'query',
  2679. 'sentAs' => 'versionId'
  2680. ],
  2681. 'SaveAsFile' => [
  2682. 'type' => 'file',
  2683. 'location' => 'response'
  2684. ],
  2685. 'FilePath' => [
  2686. 'type' => 'file',
  2687. 'location' => 'response'
  2688. ],
  2689. 'Origin' => [
  2690. 'type' => 'string',
  2691. 'location' => 'header',
  2692. 'sentAs' => 'Origin'
  2693. ],
  2694. 'RequestHeader' => [
  2695. 'type' => 'string',
  2696. 'location' => 'header',
  2697. 'sentAs' => 'Access-Control-Request-Headers'
  2698. ],
  2699. 'SseC' => [
  2700. 'location' => 'header',
  2701. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  2702. ],
  2703. 'SseCKey' => [
  2704. 'location' => 'header',
  2705. 'sentAs' => 'x-amz-server-side-encryption-customer-key',
  2706. 'type' => 'password'
  2707. ]
  2708. ],
  2709. 'responseParameters' => [
  2710. 'type' => 'object',
  2711. 'properties' => [
  2712. 'Body' => [
  2713. 'type' => 'stream',
  2714. 'location' => 'body'
  2715. ],
  2716. 'DeleteMarker' => [
  2717. 'type' => 'boolean',
  2718. 'location' => 'header',
  2719. 'sentAs' => 'x-amz-delete-marker'
  2720. ],
  2721. 'Expiration' => [
  2722. 'type' => 'string',
  2723. 'location' => 'header',
  2724. 'sentAs' => 'x-amz-expiration'
  2725. ],
  2726. 'LastModified' => [
  2727. 'type' => 'string',
  2728. 'location' => 'header',
  2729. 'sentAs' => 'last-modified'
  2730. ],
  2731. 'ContentLength' => [
  2732. 'type' => 'integer',
  2733. 'location' => 'header',
  2734. 'sentAs' => 'content-length'
  2735. ],
  2736. 'ETag' => [
  2737. 'type' => 'string',
  2738. 'location' => 'header',
  2739. 'sentAs' => 'etag'
  2740. ],
  2741. 'VersionId' => [
  2742. 'type' => 'string',
  2743. 'location' => 'header',
  2744. 'sentAs' => 'x-amz-version-id'
  2745. ],
  2746. 'CacheControl' => [
  2747. 'type' => 'string',
  2748. 'location' => 'header',
  2749. 'sentAs' => 'cache-control'
  2750. ],
  2751. 'ContentDisposition' => [
  2752. 'type' => 'string',
  2753. 'location' => 'header',
  2754. 'sentAs' => 'content-disposition'
  2755. ],
  2756. 'ContentEncoding' => [
  2757. 'type' => 'string',
  2758. 'location' => 'header',
  2759. 'sentAs' => 'content-encoding'
  2760. ],
  2761. 'ContentLanguage' => [
  2762. 'type' => 'string',
  2763. 'location' => 'header',
  2764. 'sentAs' => 'content-language'
  2765. ],
  2766. 'ContentType' => [
  2767. 'type' => 'string',
  2768. 'location' => 'header',
  2769. 'sentAs' => 'content-type'
  2770. ],
  2771. 'Expires' => [
  2772. 'type' => 'string',
  2773. 'location' => 'header'
  2774. ],
  2775. 'WebsiteRedirectLocation' => [
  2776. 'type' => 'string',
  2777. 'location' => 'header',
  2778. 'sentAs' => 'x-amz-website-redirect-location'
  2779. ],
  2780. 'RequestId' => [
  2781. 'location' => 'header',
  2782. 'sentAs' => 'x-amz-request-id'
  2783. ],
  2784. 'StorageClass' => [
  2785. 'location' => 'header',
  2786. 'sentAs' => 'x-amz-storage-class'
  2787. ],
  2788. 'Restore' => [
  2789. 'location' => 'header',
  2790. 'sentAs' => 'x-amz-restore'
  2791. ],
  2792. 'AllowOrigin' => [
  2793. 'location' => 'header',
  2794. 'sentAs' => 'access-control-allow-origin'
  2795. ],
  2796. 'MaxAgeSeconds' => [
  2797. 'location' => 'header',
  2798. 'sentAs' => 'access-control-max-age'
  2799. ],
  2800. 'ExposeHeader' => [
  2801. 'location' => 'header',
  2802. 'sentAs' => 'access-control-expose-headers'
  2803. ],
  2804. 'AllowMethod' => [
  2805. 'location' => 'header',
  2806. 'sentAs' => 'access-control-allow-methods'
  2807. ],
  2808. 'AllowHeader' => [
  2809. 'location' => 'header',
  2810. 'sentAs' => 'access-control-allow-headers'
  2811. ],
  2812. 'SseKms' => [
  2813. 'location' => 'header',
  2814. 'sentAs' => 'x-amz-server-side-encryption'
  2815. ],
  2816. 'SseKmsKey' => [
  2817. 'location' => 'header',
  2818. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  2819. ],
  2820. 'SseC' => [
  2821. 'location' => 'header',
  2822. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  2823. ],
  2824. 'SseCKeyMd5' => [
  2825. 'location' => 'header',
  2826. 'sentAs' => 'x-amz-server-side-encryption-customer-key-MD5'
  2827. ],
  2828. 'Metadata' => [
  2829. 'location' => 'header',
  2830. 'type' => 'object',
  2831. 'sentAs' => 'x-amz-meta-'
  2832. ]
  2833. ]
  2834. ]
  2835. ],
  2836. 'copyObject' => [
  2837. 'httpMethod' => 'PUT',
  2838. 'requestParameters' => [
  2839. 'ACL' => [
  2840. 'type' => 'string',
  2841. 'location' => 'header',
  2842. 'sentAs' => 'x-amz-acl',
  2843. 'transform' => 'aclHeader'
  2844. ],
  2845. 'StorageClass' => [
  2846. 'type' => 'string',
  2847. 'location' => 'header',
  2848. 'sentAs' => 'x-amz-storage-class',
  2849. 'transform' => 'storageClass'
  2850. ],
  2851. 'Bucket' => [
  2852. 'required' => true,
  2853. 'type' => 'string',
  2854. 'location' => 'dns'
  2855. ],
  2856. 'Key' => [
  2857. 'required' => true,
  2858. 'type' => 'string',
  2859. 'location' => 'uri'
  2860. ],
  2861. 'CopySource' => [
  2862. 'required' => true,
  2863. 'type' => 'string',
  2864. 'location' => 'header',
  2865. 'sentAs' => 'x-amz-copy-source'
  2866. ],
  2867. 'CopySourceIfMatch' => [
  2868. 'type' => 'string',
  2869. 'location' => 'header',
  2870. 'sentAs' => 'x-amz-copy-source-if-match'
  2871. ],
  2872. 'CopySourceIfModifiedSince' => [
  2873. 'type' => 'string',
  2874. 'format' => 'date-time-http',
  2875. 'location' => 'header',
  2876. 'sentAs' => 'x-amz-copy-source-if-modified-since'
  2877. ],
  2878. 'CopySourceIfNoneMatch' => [
  2879. 'type' => 'string',
  2880. 'location' => 'header',
  2881. 'sentAs' => 'x-amz-copy-source-if-none-match'
  2882. ],
  2883. 'CopySourceIfUnmodifiedSince' => [
  2884. 'type' => 'string',
  2885. 'format' => 'date-time-http',
  2886. 'location' => 'header',
  2887. 'sentAs' => 'x-amz-copy-source-if-unmodified-since'
  2888. ],
  2889. 'MetadataDirective' => [
  2890. 'type' => 'string',
  2891. 'location' => 'header',
  2892. 'sentAs' => 'x-amz-metadata-directive'
  2893. ],
  2894. 'ContentType' => [
  2895. 'type' => 'string',
  2896. 'location' => 'header',
  2897. 'sentAs' => 'content-type'
  2898. ],
  2899. 'ContentEncoding' => [
  2900. 'type' => 'string',
  2901. 'location' => 'header',
  2902. 'sentAs' => 'content-encoding'
  2903. ],
  2904. 'ContentLanguage' => [
  2905. 'type' => 'string',
  2906. 'location' => 'header',
  2907. 'sentAs' => 'content-language'
  2908. ],
  2909. 'ContentDisposition' => [
  2910. 'type' => 'string',
  2911. 'location' => 'header',
  2912. 'sentAs' => 'content-disposition'
  2913. ],
  2914. 'CacheControl' => [
  2915. 'type' => 'string',
  2916. 'location' => 'header',
  2917. 'sentAs' => 'cache-control'
  2918. ],
  2919. 'Expires' => [
  2920. 'type' => 'string',
  2921. 'location' => 'header',
  2922. 'sentAs' => 'expires'
  2923. ],
  2924. 'Metadata' => [
  2925. 'type' => 'object',
  2926. 'location' => 'header',
  2927. 'sentAs' => 'x-amz-meta-'
  2928. ],
  2929. 'WebsiteRedirectLocation' => [
  2930. 'type' => 'string',
  2931. 'location' => 'header',
  2932. 'sentAs' => 'x-amz-website-redirect-location'
  2933. ],
  2934. 'SseKms' => [
  2935. 'location' => 'header',
  2936. 'sentAs' => 'x-amz-server-side-encryption'
  2937. ],
  2938. 'SseKmsKey' => [
  2939. 'location' => 'header',
  2940. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  2941. ],
  2942. 'SseC' => [
  2943. 'location' => 'header',
  2944. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  2945. ],
  2946. 'SseCKey' => [
  2947. 'location' => 'header',
  2948. 'sentAs' => 'x-amz-server-side-encryption-customer-key',
  2949. 'type' => 'password'
  2950. ],
  2951. 'CopySourceSseC' => [
  2952. 'location' => 'header',
  2953. 'sentAs' => 'x-amz-copy-source-server-side-encryption-customer-algorithm'
  2954. ],
  2955. 'CopySourceSseCKey' => [
  2956. 'location' => 'header',
  2957. 'sentAs' => 'x-amz-copy-source-server-side-encryption-customer-key',
  2958. 'type' => 'password'
  2959. ]
  2960. ],
  2961. 'responseParameters' => [
  2962. 'type' => 'object',
  2963. 'properties' => [
  2964. 'ETag' => [
  2965. 'type' => 'string',
  2966. 'location' => 'xml'
  2967. ],
  2968. 'LastModified' => [
  2969. 'type' => 'string',
  2970. 'location' => 'xml'
  2971. ],
  2972. 'VersionId' => [
  2973. 'type' => 'string',
  2974. 'location' => 'header',
  2975. 'sentAs' => 'x-amz-version-id'
  2976. ],
  2977. 'CopySourceVersionId' => [
  2978. 'type' => 'string',
  2979. 'location' => 'header',
  2980. 'sentAs' => 'x-amz-copy-source-version-id'
  2981. ],
  2982. 'RequestId' => [
  2983. 'location' => 'header',
  2984. 'sentAs' => 'x-amz-request-id'
  2985. ],
  2986. 'SseKms' => [
  2987. 'location' => 'header',
  2988. 'sentAs' => 'x-amz-server-side-encryption'
  2989. ],
  2990. 'SseKmsKey' => [
  2991. 'location' => 'header',
  2992. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  2993. ],
  2994. 'SseC' => [
  2995. 'location' => 'header',
  2996. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  2997. ],
  2998. 'SseCKeyMd5' => [
  2999. 'location' => 'header',
  3000. 'sentAs' => 'x-amz-server-side-encryption-customer-key-MD5'
  3001. ]
  3002. ]
  3003. ]
  3004. ],
  3005. 'getObjectMetadata' => [
  3006. 'httpMethod' => 'HEAD',
  3007. 'requestParameters' => [
  3008. 'Bucket' => [
  3009. 'required' => true,
  3010. 'type' => 'string',
  3011. 'location' => 'dns'
  3012. ],
  3013. 'Key' => [
  3014. 'required' => true,
  3015. 'type' => 'string',
  3016. 'location' => 'uri'
  3017. ],
  3018. 'VersionId' => [
  3019. 'type' => 'string',
  3020. 'location' => 'query',
  3021. 'sentAs' => 'versionId'
  3022. ],
  3023. 'Origin' => [
  3024. 'type' => 'string',
  3025. 'location' => 'header',
  3026. 'sentAs' => 'Origin'
  3027. ],
  3028. 'RequestHeader' => [
  3029. 'type' => 'string',
  3030. 'location' => 'header',
  3031. 'sentAs' => 'Access-Control-Request-Headers'
  3032. ],
  3033. 'SseC' => [
  3034. 'location' => 'header',
  3035. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3036. ],
  3037. 'SseCKey' => [
  3038. 'location' => 'header',
  3039. 'sentAs' => 'x-amz-server-side-encryption-customer-key',
  3040. 'type' => 'password'
  3041. ]
  3042. ],
  3043. 'responseParameters' => [
  3044. 'type' => 'object',
  3045. 'properties' => [
  3046. 'Expiration' => [
  3047. 'type' => 'string',
  3048. 'location' => 'header',
  3049. 'sentAs' => 'x-amz-expiration'
  3050. ],
  3051. 'LastModified' => [
  3052. 'type' => 'string',
  3053. 'location' => 'header',
  3054. 'sentAs' => 'last-modified'
  3055. ],
  3056. 'ContentLength' => [
  3057. 'type' => 'integer',
  3058. 'location' => 'header',
  3059. 'sentAs' => 'content-length'
  3060. ],
  3061. 'ContentType' => [
  3062. 'type' => 'string',
  3063. 'location' => 'header',
  3064. 'sentAs' => 'content-type'
  3065. ],
  3066. 'ETag' => [
  3067. 'type' => 'string',
  3068. 'location' => 'header'
  3069. ],
  3070. 'VersionId' => [
  3071. 'type' => 'string',
  3072. 'location' => 'header',
  3073. 'sentAs' => 'x-amz-version-id'
  3074. ],
  3075. 'WebsiteRedirectLocation' => [
  3076. 'type' => 'string',
  3077. 'location' => 'header',
  3078. 'sentAs' => 'x-amz-website-redirect-location'
  3079. ],
  3080. 'RequestId' => [
  3081. 'location' => 'header',
  3082. 'sentAs' => 'x-amz-request-id'
  3083. ],
  3084. 'StorageClass' => [
  3085. 'location' => 'header',
  3086. 'sentAs' => 'x-amz-storage-class'
  3087. ],
  3088. 'AllowOrigin' => [
  3089. 'location' => 'header',
  3090. 'sentAs' => 'access-control-allow-origin'
  3091. ],
  3092. 'MaxAgeSeconds' => [
  3093. 'type' => 'integer',
  3094. 'location' => 'header',
  3095. 'sentAs' => 'access-control-max-age'
  3096. ],
  3097. 'ExposeHeader' => [
  3098. 'location' => 'header',
  3099. 'sentAs' => 'access-control-expose-headers'
  3100. ],
  3101. 'AllowMethod' => [
  3102. 'location' => 'header',
  3103. 'sentAs' => 'access-control-allow-methods'
  3104. ],
  3105. 'AllowHeader' => [
  3106. 'location' => 'header',
  3107. 'sentAs' => 'access-control-allow-headers'
  3108. ],
  3109. 'Restore' => [
  3110. 'location' => 'header',
  3111. 'sentAs' => 'x-amz-restore'
  3112. ],
  3113. 'SseKms' => [
  3114. 'location' => 'header',
  3115. 'sentAs' => 'x-amz-server-side-encryption'
  3116. ],
  3117. 'SseKmsKey' => [
  3118. 'location' => 'header',
  3119. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  3120. ],
  3121. 'SseC' => [
  3122. 'location' => 'header',
  3123. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3124. ],
  3125. 'SseCKeyMd5' => [
  3126. 'location' => 'header',
  3127. 'sentAs' => 'x-amz-server-side-encryption-customer-key-MD5'
  3128. ],
  3129. 'Metadata' => [
  3130. 'location' => 'header',
  3131. 'type' => 'object',
  3132. 'sentAs' => 'x-amz-meta-'
  3133. ]
  3134. ]
  3135. ]
  3136. ],
  3137. 'initiateMultipartUpload' => [
  3138. 'httpMethod' => 'POST',
  3139. 'specialParam' => 'uploads',
  3140. 'requestParameters' => [
  3141. 'ACL' => [
  3142. 'type' => 'string',
  3143. 'location' => 'header',
  3144. 'sentAs' => 'x-amz-acl',
  3145. 'transform' => 'aclHeader'
  3146. ],
  3147. 'StorageClass' => [
  3148. 'type' => 'string',
  3149. 'location' => 'header',
  3150. 'sentAs' => 'x-amz-storage-class',
  3151. 'transform' => 'storageClass'
  3152. ],
  3153. 'Bucket' => [
  3154. 'required' => true,
  3155. 'type' => 'string',
  3156. 'location' => 'dns'
  3157. ],
  3158. 'ContentType' => [
  3159. 'type' => 'string',
  3160. 'location' => 'header',
  3161. 'sentAs' => 'Content-Type'
  3162. ],
  3163. 'Key' => [
  3164. 'required' => true,
  3165. 'type' => 'string',
  3166. 'location' => 'uri'
  3167. ],
  3168. 'Metadata' => [
  3169. 'type' => 'object',
  3170. 'location' => 'header',
  3171. 'sentAs' => 'x-amz-meta-'
  3172. ],
  3173. 'WebsiteRedirectLocation' => [
  3174. 'type' => 'string',
  3175. 'location' => 'header',
  3176. 'sentAs' => 'x-amz-website-redirect-location'
  3177. ],
  3178. 'SseKms' => [
  3179. 'location' => 'header',
  3180. 'sentAs' => 'x-amz-server-side-encryption'
  3181. ],
  3182. 'SseKmsKey' => [
  3183. 'location' => 'header',
  3184. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  3185. ],
  3186. 'SseC' => [
  3187. 'location' => 'header',
  3188. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3189. ],
  3190. 'SseCKey' => [
  3191. 'location' => 'header',
  3192. 'sentAs' => 'x-amz-server-side-encryption-customer-key',
  3193. 'type' => 'password'
  3194. ],
  3195. 'Expires' => [
  3196. 'location' => 'header',
  3197. 'type' => 'string',
  3198. 'sentAs' => 'x-obs-expires'
  3199. ]
  3200. ],
  3201. 'responseParameters' => [
  3202. 'type' => 'object',
  3203. 'properties' => [
  3204. 'Bucket' => [
  3205. 'type' => 'string',
  3206. 'location' => 'xml',
  3207. 'sentAs' => 'Bucket'
  3208. ],
  3209. 'Key' => [
  3210. 'type' => 'string',
  3211. 'location' => 'xml'
  3212. ],
  3213. 'UploadId' => [
  3214. 'type' => 'string',
  3215. 'location' => 'xml'
  3216. ],
  3217. 'RequestId' => [
  3218. 'location' => 'header',
  3219. 'sentAs' => 'x-amz-request-id'
  3220. ],
  3221. 'SseKms' => [
  3222. 'location' => 'header',
  3223. 'sentAs' => 'x-amz-server-side-encryption'
  3224. ],
  3225. 'SseKmsKey' => [
  3226. 'location' => 'header',
  3227. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  3228. ],
  3229. 'SseC' => [
  3230. 'location' => 'header',
  3231. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3232. ],
  3233. 'SseCKeyMd5' => [
  3234. 'location' => 'header',
  3235. 'sentAs' => 'x-amz-server-side-encryption-customer-key-MD5'
  3236. ]
  3237. ]
  3238. ]
  3239. ],
  3240. 'listMultipartUploads' => [
  3241. 'httpMethod' => 'GET',
  3242. 'specialParam' => 'uploads',
  3243. 'requestParameters' => [
  3244. 'Bucket' => [
  3245. 'required' => true,
  3246. 'type' => 'string',
  3247. 'location' => 'dns'
  3248. ],
  3249. 'Delimiter' => [
  3250. 'type' => 'string',
  3251. 'location' => 'query',
  3252. 'sentAs' => 'delimiter'
  3253. ],
  3254. 'KeyMarker' => [
  3255. 'type' => 'string',
  3256. 'location' => 'query',
  3257. 'sentAs' => 'key-marker'
  3258. ],
  3259. 'MaxUploads' => [
  3260. 'type' => 'numeric',
  3261. 'location' => 'query',
  3262. 'sentAs' => 'max-uploads'
  3263. ],
  3264. 'Prefix' => [
  3265. 'type' => 'string',
  3266. 'location' => 'query',
  3267. 'sentAs' => 'prefix'
  3268. ],
  3269. 'UploadIdMarker' => [
  3270. 'type' => 'string',
  3271. 'location' => 'query',
  3272. 'sentAs' => 'upload-id-marker'
  3273. ]
  3274. ],
  3275. 'responseParameters' => [
  3276. 'type' => 'object',
  3277. 'properties' => [
  3278. 'Bucket' => [
  3279. 'type' => 'string',
  3280. 'location' => 'xml'
  3281. ],
  3282. 'KeyMarker' => [
  3283. 'type' => 'string',
  3284. 'location' => 'xml'
  3285. ],
  3286. 'UploadIdMarker' => [
  3287. 'type' => 'string',
  3288. 'location' => 'xml'
  3289. ],
  3290. 'NextKeyMarker' => [
  3291. 'type' => 'string',
  3292. 'location' => 'xml'
  3293. ],
  3294. 'Prefix' => [
  3295. 'type' => 'string',
  3296. 'location' => 'xml'
  3297. ],
  3298. 'Delimiter' => [
  3299. 'type' => 'string',
  3300. 'location' => 'xml'
  3301. ],
  3302. 'NextUploadIdMarker' => [
  3303. 'type' => 'string',
  3304. 'location' => 'xml'
  3305. ],
  3306. 'MaxUploads' => [
  3307. 'type' => 'numeric',
  3308. 'location' => 'xml'
  3309. ],
  3310. 'IsTruncated' => [
  3311. 'type' => 'boolean',
  3312. 'location' => 'xml'
  3313. ],
  3314. 'Uploads' => [
  3315. 'type' => 'array',
  3316. 'location' => 'xml',
  3317. 'sentAs' => 'Upload',
  3318. 'data' => [
  3319. 'xmlFlattened' => true
  3320. ],
  3321. 'items' => [
  3322. 'name' => 'MultipartUpload',
  3323. 'type' => 'object',
  3324. 'sentAs' => 'Upload',
  3325. 'properties' => [
  3326. 'UploadId' => [
  3327. 'type' => 'string'
  3328. ],
  3329. 'Key' => [
  3330. 'type' => 'string'
  3331. ],
  3332. 'Initiated' => [
  3333. 'type' => 'string'
  3334. ],
  3335. 'StorageClass' => [
  3336. 'type' => 'string'
  3337. ],
  3338. 'Owner' => [
  3339. 'type' => 'object',
  3340. 'properties' => [
  3341. 'DisplayName' => [
  3342. 'type' => 'string'
  3343. ],
  3344. 'ID' => [
  3345. 'type' => 'string'
  3346. ]
  3347. ]
  3348. ],
  3349. 'Initiator' => [
  3350. 'type' => 'object',
  3351. 'properties' => [
  3352. 'ID' => [
  3353. 'type' => 'string'
  3354. ],
  3355. 'DisplayName' => [
  3356. 'type' => 'string'
  3357. ]
  3358. ]
  3359. ]
  3360. ]
  3361. ]
  3362. ],
  3363. 'CommonPrefixes' => [
  3364. 'type' => 'array',
  3365. 'location' => 'xml',
  3366. 'data' => [
  3367. 'xmlFlattened' => true
  3368. ],
  3369. 'items' => [
  3370. 'name' => 'CommonPrefix',
  3371. 'type' => 'object',
  3372. 'properties' => [
  3373. 'Prefix' => [
  3374. 'type' => 'string'
  3375. ]
  3376. ]
  3377. ]
  3378. ],
  3379. 'RequestId' => [
  3380. 'location' => 'header',
  3381. 'sentAs' => 'x-amz-request-id'
  3382. ]
  3383. ]
  3384. ]
  3385. ],
  3386. 'abortMultipartUpload' => [
  3387. 'httpMethod' => 'DELETE',
  3388. 'requestParameters' => [
  3389. 'Bucket' => [
  3390. 'required' => true,
  3391. 'type' => 'string',
  3392. 'location' => 'dns'
  3393. ],
  3394. 'Key' => [
  3395. 'required' => true,
  3396. 'type' => 'string',
  3397. 'location' => 'uri'
  3398. ],
  3399. 'UploadId' => [
  3400. 'required' => true,
  3401. 'type' => 'string',
  3402. 'location' => 'query',
  3403. 'sentAs' => 'uploadId'
  3404. ]
  3405. ],
  3406. 'responseParameters' => [
  3407. 'type' => 'object',
  3408. 'properties' => [
  3409. 'RequestId' => [
  3410. 'location' => 'header',
  3411. 'sentAs' => 'x-amz-request-id'
  3412. ]
  3413. ]
  3414. ]
  3415. ],
  3416. 'uploadPart' => [
  3417. 'httpMethod' => 'PUT',
  3418. 'requestParameters' => [
  3419. 'Body' => [
  3420. 'type' => 'stream',
  3421. 'location' => 'body'
  3422. ],
  3423. 'SourceFile' => [
  3424. 'type' => 'file',
  3425. 'location' => 'body'
  3426. ],
  3427. 'Bucket' => [
  3428. 'required' => true,
  3429. 'type' => 'string',
  3430. 'location' => 'dns'
  3431. ],
  3432. 'Key' => [
  3433. 'required' => true,
  3434. 'type' => 'string',
  3435. 'location' => 'uri'
  3436. ],
  3437. 'PartNumber' => [
  3438. 'required' => true,
  3439. 'type' => 'numeric',
  3440. 'location' => 'query',
  3441. 'sentAs' => 'partNumber'
  3442. ],
  3443. 'UploadId' => [
  3444. 'required' => true,
  3445. 'type' => 'string',
  3446. 'location' => 'query',
  3447. 'sentAs' => 'uploadId'
  3448. ],
  3449. 'Offset' => [
  3450. 'type' => 'numeric',
  3451. 'location' => 'response'
  3452. ],
  3453. 'PartSize' => [
  3454. 'type' => 'numeric',
  3455. 'location' => 'response'
  3456. ],
  3457. 'ContentMD5' => [
  3458. 'type' => 'string',
  3459. 'location' => 'header',
  3460. 'sentAs' => 'Content-MD5'
  3461. ],
  3462. 'ContentType' => [
  3463. 'type' => 'string',
  3464. 'location' => 'header',
  3465. 'sentAs' => 'Content-Type'
  3466. ],
  3467. 'SseC' => [
  3468. 'location' => 'header',
  3469. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3470. ],
  3471. 'SseCKey' => [
  3472. 'location' => 'header',
  3473. 'sentAs' => 'x-amz-server-side-encryption-customer-key',
  3474. 'type' => 'password'
  3475. ]
  3476. ],
  3477. 'responseParameters' => [
  3478. 'type' => 'object',
  3479. 'properties' => [
  3480. 'ETag' => [
  3481. 'type' => 'string',
  3482. 'location' => 'header'
  3483. ],
  3484. 'RequestId' => [
  3485. 'location' => 'header',
  3486. 'sentAs' => 'x-amz-request-id'
  3487. ],
  3488. 'SseKms' => [
  3489. 'location' => 'header',
  3490. 'sentAs' => 'x-amz-server-side-encryption'
  3491. ],
  3492. 'SseKmsKey' => [
  3493. 'location' => 'header',
  3494. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  3495. ],
  3496. 'SseC' => [
  3497. 'location' => 'header',
  3498. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3499. ],
  3500. 'SseCKeyMd5' => [
  3501. 'location' => 'header',
  3502. 'sentAs' => 'x-amz-server-side-encryption-customer-key-MD5'
  3503. ]
  3504. ]
  3505. ]
  3506. ],
  3507. 'completeMultipartUpload' => [
  3508. 'httpMethod' => 'POST',
  3509. 'data' => [
  3510. 'xmlRoot' => [
  3511. 'name' => 'CompleteMultipartUpload'
  3512. ]
  3513. ],
  3514. 'requestParameters' => [
  3515. 'Bucket' => [
  3516. 'required' => true,
  3517. 'type' => 'string',
  3518. 'location' => 'dns'
  3519. ],
  3520. 'Key' => [
  3521. 'required' => true,
  3522. 'type' => 'string',
  3523. 'location' => 'uri'
  3524. ],
  3525. 'Parts' => [
  3526. 'type' => 'array',
  3527. 'location' => 'xml',
  3528. 'data' => [
  3529. 'xmlFlattened' => true
  3530. ],
  3531. 'items' => [
  3532. 'name' => 'CompletedPart',
  3533. 'type' => 'object',
  3534. 'sentAs' => 'Part',
  3535. 'properties' => [
  3536. 'PartNumber' => [
  3537. 'type' => 'numeric'
  3538. ],
  3539. 'ETag' => [
  3540. 'type' => 'string'
  3541. ]
  3542. ]
  3543. ]
  3544. ],
  3545. 'UploadId' => [
  3546. 'required' => true,
  3547. 'type' => 'string',
  3548. 'location' => 'query',
  3549. 'sentAs' => 'uploadId'
  3550. ]
  3551. ],
  3552. 'responseParameters' => [
  3553. 'type' => 'object',
  3554. 'properties' => [
  3555. 'Location' => [
  3556. 'type' => 'string',
  3557. 'location' => 'xml'
  3558. ],
  3559. 'Bucket' => [
  3560. 'type' => 'string',
  3561. 'location' => 'xml'
  3562. ],
  3563. 'Key' => [
  3564. 'type' => 'string',
  3565. 'location' => 'xml'
  3566. ],
  3567. 'Location' => [
  3568. 'type' => 'string',
  3569. 'location' => 'xml'
  3570. ],
  3571. 'ETag' => [
  3572. 'type' => 'string',
  3573. 'location' => 'xml'
  3574. ],
  3575. 'VersionId' => [
  3576. 'type' => 'string',
  3577. 'location' => 'header',
  3578. 'sentAs' => 'x-amz-version-id'
  3579. ],
  3580. 'RequestId' => [
  3581. 'location' => 'header',
  3582. 'sentAs' => 'x-amz-request-id'
  3583. ],
  3584. 'SseKms' => [
  3585. 'location' => 'header',
  3586. 'sentAs' => 'x-amz-server-side-encryption'
  3587. ],
  3588. 'SseKmsKey' => [
  3589. 'location' => 'header',
  3590. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  3591. ],
  3592. 'SseC' => [
  3593. 'location' => 'header',
  3594. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3595. ],
  3596. 'SseCKeyMd5' => [
  3597. 'location' => 'header',
  3598. 'sentAs' => 'x-amz-server-side-encryption-customer-key-MD5'
  3599. ]
  3600. ]
  3601. ]
  3602. ],
  3603. 'listParts' => [
  3604. 'httpMethod' => 'GET',
  3605. 'requestParameters' => [
  3606. 'Bucket' => [
  3607. 'required' => true,
  3608. 'type' => 'string',
  3609. 'location' => 'dns'
  3610. ],
  3611. 'Key' => [
  3612. 'required' => true,
  3613. 'type' => 'string',
  3614. 'location' => 'uri'
  3615. ],
  3616. 'MaxParts' => [
  3617. 'type' => 'numeric',
  3618. 'location' => 'query',
  3619. 'sentAs' => 'max-parts'
  3620. ],
  3621. 'PartNumberMarker' => [
  3622. 'type' => 'numeric',
  3623. 'location' => 'query',
  3624. 'sentAs' => 'part-number-marker'
  3625. ],
  3626. 'UploadId' => [
  3627. 'required' => true,
  3628. 'type' => 'string',
  3629. 'location' => 'query',
  3630. 'sentAs' => 'uploadId'
  3631. ]
  3632. ],
  3633. 'responseParameters' => [
  3634. 'type' => 'object',
  3635. 'properties' => [
  3636. 'Bucket' => [
  3637. 'type' => 'string',
  3638. 'location' => 'xml'
  3639. ],
  3640. 'Key' => [
  3641. 'type' => 'string',
  3642. 'location' => 'xml'
  3643. ],
  3644. 'UploadId' => [
  3645. 'type' => 'string',
  3646. 'location' => 'xml'
  3647. ],
  3648. 'PartNumberMarker' => [
  3649. 'type' => 'numeric',
  3650. 'location' => 'xml'
  3651. ],
  3652. 'NextPartNumberMarker' => [
  3653. 'type' => 'numeric',
  3654. 'location' => 'xml'
  3655. ],
  3656. 'MaxParts' => [
  3657. 'type' => 'numeric',
  3658. 'location' => 'xml'
  3659. ],
  3660. 'IsTruncated' => [
  3661. 'type' => 'boolean',
  3662. 'location' => 'xml'
  3663. ],
  3664. 'Parts' => [
  3665. 'type' => 'array',
  3666. 'location' => 'xml',
  3667. 'sentAs' => 'Part',
  3668. 'data' => [
  3669. 'xmlFlattened' => true
  3670. ],
  3671. 'items' => [
  3672. 'name' => 'Part',
  3673. 'type' => 'object',
  3674. 'sentAs' => 'Part',
  3675. 'properties' => [
  3676. 'PartNumber' => [
  3677. 'type' => 'integer'
  3678. ],
  3679. 'LastModified' => [
  3680. 'type' => 'string'
  3681. ],
  3682. 'ETag' => [
  3683. 'type' => 'string'
  3684. ],
  3685. 'Size' => [
  3686. 'type' => 'integer'
  3687. ]
  3688. ]
  3689. ]
  3690. ],
  3691. 'Initiator' => [
  3692. 'type' => 'object',
  3693. 'location' => 'xml',
  3694. 'properties' => [
  3695. 'ID' => [
  3696. 'type' => 'string'
  3697. ],
  3698. 'DisplayName' => [
  3699. 'type' => 'string'
  3700. ]
  3701. ]
  3702. ],
  3703. 'Owner' => [
  3704. 'type' => 'object',
  3705. 'location' => 'xml',
  3706. 'properties' => [
  3707. 'DisplayName' => [
  3708. 'type' => 'string'
  3709. ],
  3710. 'ID' => [
  3711. 'type' => 'string'
  3712. ]
  3713. ]
  3714. ],
  3715. 'StorageClass' => [
  3716. 'type' => 'string',
  3717. 'location' => 'xml'
  3718. ],
  3719. 'RequestId' => [
  3720. 'location' => 'header',
  3721. 'sentAs' => 'x-amz-request-id'
  3722. ]
  3723. ]
  3724. ]
  3725. ],
  3726. 'copyPart' => [
  3727. 'httpMethod' => 'PUT',
  3728. 'requestParameters' => [
  3729. 'Bucket' => [
  3730. 'required' => true,
  3731. 'type' => 'string',
  3732. 'location' => 'dns'
  3733. ],
  3734. 'CopySource' => [
  3735. 'required' => true,
  3736. 'type' => 'string',
  3737. 'location' => 'header',
  3738. 'sentAs' => 'x-amz-copy-source'
  3739. ],
  3740. 'CopySourceRange' => [
  3741. 'type' => 'string',
  3742. 'location' => 'header',
  3743. 'sentAs' => 'x-amz-copy-source-range'
  3744. ],
  3745. 'Key' => [
  3746. 'required' => true,
  3747. 'type' => 'string',
  3748. 'location' => 'uri'
  3749. ],
  3750. 'PartNumber' => [
  3751. 'required' => true,
  3752. 'type' => 'numeric',
  3753. 'location' => 'query',
  3754. 'sentAs' => 'partNumber'
  3755. ],
  3756. 'UploadId' => [
  3757. 'required' => true,
  3758. 'type' => 'string',
  3759. 'location' => 'query',
  3760. 'sentAs' => 'uploadId'
  3761. ],
  3762. 'SseC' => [
  3763. 'location' => 'header',
  3764. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3765. ],
  3766. 'SseCKey' => [
  3767. 'location' => 'header',
  3768. 'sentAs' => 'x-amz-server-side-encryption-customer-key',
  3769. 'type' => 'password'
  3770. ],
  3771. 'CopySourceSseC' => [
  3772. 'location' => 'header',
  3773. 'sentAs' => 'x-amz-copy-source-server-side-encryption-customer-algorithm'
  3774. ],
  3775. 'CopySourceSseCKey' => [
  3776. 'location' => 'header',
  3777. 'sentAs' => 'x-amz-copy-source-server-side-encryption-customer-key',
  3778. 'type' => 'password'
  3779. ]
  3780. ],
  3781. 'responseParameters' => [
  3782. 'type' => 'object',
  3783. 'properties' => [
  3784. 'ETag' => [
  3785. 'type' => 'string',
  3786. 'location' => 'xml'
  3787. ],
  3788. 'LastModified' => [
  3789. 'type' => 'string',
  3790. 'location' => 'xml'
  3791. ],
  3792. 'RequestId' => [
  3793. 'location' => 'header',
  3794. 'sentAs' => 'x-amz-request-id'
  3795. ],
  3796. 'SseKms' => [
  3797. 'location' => 'header',
  3798. 'sentAs' => 'x-amz-server-side-encryption'
  3799. ],
  3800. 'SseKmsKey' => [
  3801. 'location' => 'header',
  3802. 'sentAs' => 'x-amz-server-side-encryption-aws-kms-key-id'
  3803. ],
  3804. 'SseC' => [
  3805. 'location' => 'header',
  3806. 'sentAs' => 'x-amz-server-side-encryption-customer-algorithm'
  3807. ],
  3808. 'SseCKeyMd5' => [
  3809. 'location' => 'header',
  3810. 'sentAs' => 'x-amz-server-side-encryption-customer-key-MD5'
  3811. ]
  3812. ]
  3813. ]
  3814. ]
  3815. ],
  3816. 'aliases' => [
  3817. 'headBucket' => 'getBucketMetadata',
  3818. 'getBucketLogging' => 'getBucketLoggingConfiguration',
  3819. 'setBucketLogging' => 'setBucketLoggingConfiguration',
  3820. 'getBucketVersioning' => 'getBucketVersioningConfiguration',
  3821. 'setBucketVersioning' => 'setBucketVersioningConfiguration',
  3822. 'setBucketWebsite' => 'setBucketWebsiteConfiguration',
  3823. 'getBucketWebsite' => 'getBucketWebsiteConfiguration',
  3824. 'deleteBucketWebsite' => 'deleteBucketWebsiteConfiguration',
  3825. 'setBucketLifecycle' => 'setBucketLifecycleConfiguration',
  3826. 'getBucketLifecycle' => 'getBucketLifecycleConfiguration',
  3827. 'deleteBucketLifecycle' => 'deleteBucketLifecycleConfiguration'
  3828. ]
  3829. ];
  3830. }