OBSRequestResource.php 268 KB

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