V2RequestResource.php 255 KB

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