Service.php 330 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043
  1. <?php
  2. namespace Qcloud\Cos;
  3. /**
  4. * @link http://guzzle3.readthedocs.io/webservice-client/guzzle-service-descriptions.html
  5. */
  6. class Service {
  7. public static function getService() {
  8. return array(
  9. 'name' => 'Cos Service',
  10. 'apiVersion' => 'V5',
  11. 'description' => 'Cos V5 API Service',
  12. 'operations' => array(
  13. // 舍弃一个分块上传且删除已上传的分片块
  14. 'AbortMultipartUpload' => array(
  15. 'httpMethod' => 'DELETE',
  16. 'uri' => '/{Bucket}{/Key*}',
  17. 'class' => 'Qcloud\\Cos\\Command',
  18. 'responseClass' => 'AbortMultipartUploadOutput',
  19. 'responseType' => 'model',
  20. 'parameters' => array(
  21. 'Bucket' => array(
  22. 'required' => true,
  23. 'type' => 'string',
  24. 'location' => 'uri'),
  25. 'Key' => array(
  26. 'required' => true,
  27. 'type' => 'string',
  28. 'location' => 'uri',
  29. 'minLength' => 1,
  30. 'filters' => array(
  31. 'Qcloud\\Cos\\Client::explodeKey')),
  32. 'UploadId' => array(
  33. 'required' => true,
  34. 'type' => 'string',
  35. 'location' => 'query',
  36. 'sentAs' => 'uploadId'
  37. )
  38. )
  39. ),
  40. // 创建存储桶(Bucket)
  41. 'CreateBucket' => array(
  42. 'httpMethod' => 'PUT',
  43. 'uri' => '/{Bucket}',
  44. 'class' => 'Qcloud\\Cos\\Command',
  45. 'responseClass' => 'CreateBucketOutput',
  46. 'responseType' => 'model',
  47. 'data' => array(
  48. 'xmlRoot' => array(
  49. 'name' => 'CreateBucketConfiguration')),
  50. 'parameters' => array(
  51. 'ACL' => array(
  52. 'type' => 'string',
  53. 'location' => 'header',
  54. 'sentAs' => 'x-cos-acl'),
  55. 'Bucket' => array(
  56. 'required' => true,
  57. 'type' => 'string',
  58. 'location' => 'uri'
  59. )
  60. )
  61. ),
  62. // 完成整个分块上传
  63. 'CompleteMultipartUpload' => array(
  64. 'httpMethod' => 'POST',
  65. 'uri' => '/{Bucket}{/Key*}',
  66. 'class' => 'Qcloud\\Cos\\Command',
  67. 'responseClass' => 'CompleteMultipartUploadOutput',
  68. 'responseType' => 'model',
  69. 'data' => array(
  70. 'xmlRoot' => array(
  71. 'name' => 'CompleteMultipartUpload'
  72. )
  73. ),
  74. 'parameters' => array(
  75. 'Bucket' => array(
  76. 'required' => true,
  77. 'type' => 'string',
  78. 'location' => 'uri'),
  79. 'Key' => array(
  80. 'required' => true,
  81. 'type' => 'string',
  82. 'location' => 'uri',
  83. 'minLength' => 1,
  84. 'filters' => array(
  85. 'Qcloud\\Cos\\Client::explodeKey'
  86. )
  87. ),
  88. 'Parts' => array(
  89. 'type' => 'array',
  90. 'location' => 'xml',
  91. 'data' => array(
  92. 'xmlFlattened' => true),
  93. 'items' => array(
  94. 'name' => 'CompletedPart',
  95. 'type' => 'object',
  96. 'sentAs' => 'Part',
  97. 'properties' => array(
  98. 'ETag' => array(
  99. 'type' => 'string'
  100. ),
  101. 'PartNumber' => array(
  102. 'type' => 'numeric'
  103. )
  104. )
  105. )
  106. ),
  107. 'UploadId' => array(
  108. 'required' => true,
  109. 'type' => 'string',
  110. 'location' => 'query',
  111. 'sentAs' => 'uploadId',
  112. ),
  113. 'PicOperations' => array(
  114. 'type' => 'string',
  115. 'location' => 'header',
  116. 'sentAs' => 'Pic-Operations',
  117. )
  118. )
  119. ),
  120. // 初始化分块上传
  121. 'CreateMultipartUpload' => array(
  122. 'httpMethod' => 'POST',
  123. 'uri' => '/{Bucket}{/Key*}?uploads',
  124. 'class' => 'Qcloud\\Cos\\Command',
  125. 'responseClass' => 'CreateMultipartUploadOutput',
  126. 'responseType' => 'model',
  127. 'data' => array(
  128. 'xmlRoot' => array(
  129. 'name' => 'CreateMultipartUploadRequest'
  130. )
  131. ),
  132. 'parameters' => array(
  133. 'ACL' => array(
  134. 'type' => 'string',
  135. 'location' => 'header',
  136. 'sentAs' => 'x-cos-acl',
  137. ),
  138. 'Bucket' => array(
  139. 'required' => true,
  140. 'type' => 'string',
  141. 'location' => 'uri',
  142. ),
  143. 'CacheControl' => array(
  144. 'type' => 'string',
  145. 'location' => 'header',
  146. 'sentAs' => 'Cache-Control',
  147. ),
  148. 'ContentDisposition' => array(
  149. 'type' => 'string',
  150. 'location' => 'header',
  151. 'sentAs' => 'Content-Disposition',
  152. ),
  153. 'ContentEncoding' => array(
  154. 'type' => 'string',
  155. 'location' => 'header',
  156. 'sentAs' => 'Content-Encoding',
  157. ),
  158. 'ContentLanguage' => array(
  159. 'type' => 'string',
  160. 'location' => 'header',
  161. 'sentAs' => 'Content-Language',
  162. ),
  163. 'ContentType' => array(
  164. 'type' => 'string',
  165. 'location' => 'header',
  166. 'sentAs' => 'Content-Type',
  167. ),
  168. 'Expires' => array(
  169. 'type' => array(
  170. 'object',
  171. 'string',
  172. 'integer',
  173. ),
  174. 'format' => 'date-time-http',
  175. 'location' => 'header',
  176. ),
  177. 'GrantFullControl' => array(
  178. 'type' => 'string',
  179. 'location' => 'header',
  180. 'sentAs' => 'x-cos-grant-full-control',
  181. ),
  182. 'GrantRead' => array(
  183. 'type' => 'string',
  184. 'location' => 'header',
  185. 'sentAs' => 'x-cos-grant-read',
  186. ),
  187. 'GrantReadACP' => array(
  188. 'type' => 'string',
  189. 'location' => 'header',
  190. 'sentAs' => 'x-cos-grant-read-acp',
  191. ),
  192. 'GrantWriteACP' => array(
  193. 'type' => 'string',
  194. 'location' => 'header',
  195. 'sentAs' => 'x-cos-grant-write-acp',
  196. ),
  197. 'Key' => array(
  198. 'required' => true,
  199. 'type' => 'string',
  200. 'location' => 'uri',
  201. 'minLength' => 1,
  202. 'filters' => array(
  203. 'Qcloud\\Cos\\Client::explodeKey'
  204. )
  205. ),
  206. 'ServerSideEncryption' => array(
  207. 'type' => 'string',
  208. 'location' => 'header',
  209. 'sentAs' => 'x-cos-server-side-encryption',
  210. ),
  211. 'StorageClass' => array(
  212. 'type' => 'string',
  213. 'location' => 'header',
  214. 'sentAs' => 'x-cos-storage-class',
  215. ),
  216. 'WebsiteRedirectLocation' => array(
  217. 'type' => 'string',
  218. 'location' => 'header',
  219. 'sentAs' => 'x-cos-website-redirect-location',
  220. ),
  221. 'SSECustomerAlgorithm' => array(
  222. 'type' => 'string',
  223. 'location' => 'header',
  224. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  225. ),
  226. 'SSECustomerKey' => array(
  227. 'type' => 'string',
  228. 'location' => 'header',
  229. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  230. ),
  231. 'SSECustomerKeyMD5' => array(
  232. 'type' => 'string',
  233. 'location' => 'header',
  234. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  235. ),
  236. 'SSEKMSKeyId' => array(
  237. 'type' => 'string',
  238. 'location' => 'header',
  239. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  240. ),
  241. 'RequestPayer' => array(
  242. 'type' => 'string',
  243. 'location' => 'header',
  244. 'sentAs' => 'x-cos-request-payer',
  245. ),
  246. 'ACP' => array(
  247. 'type' => 'object',
  248. 'additionalProperties' => true,
  249. ),
  250. 'PicOperations' => array(
  251. 'type' => 'string',
  252. 'location' => 'header',
  253. 'sentAs' => 'Pic-Operations',
  254. )
  255. )
  256. ),
  257. // 复制对象
  258. 'CopyObject' => array(
  259. 'httpMethod' => 'PUT',
  260. 'uri' => '/{Bucket}{/Key*}',
  261. 'class' => 'Qcloud\\Cos\\Command',
  262. 'responseClass' => 'CopyObjectOutput',
  263. 'responseType' => 'model',
  264. 'data' => array(
  265. 'xmlRoot' => array(
  266. 'name' => 'CopyObjectRequest',
  267. ),
  268. ),
  269. 'parameters' => array(
  270. 'ACL' => array(
  271. 'type' => 'string',
  272. 'location' => 'header',
  273. 'sentAs' => 'x-cos-acl',
  274. ),
  275. 'Bucket' => array(
  276. 'required' => true,
  277. 'type' => 'string',
  278. 'location' => 'uri',
  279. ),
  280. 'CacheControl' => array(
  281. 'type' => 'string',
  282. 'location' => 'header',
  283. 'sentAs' => 'Cache-Control',
  284. ),
  285. 'ContentDisposition' => array(
  286. 'type' => 'string',
  287. 'location' => 'header',
  288. 'sentAs' => 'Content-Disposition',
  289. ),
  290. 'ContentEncoding' => array(
  291. 'type' => 'string',
  292. 'location' => 'header',
  293. 'sentAs' => 'Content-Encoding',
  294. ),
  295. 'ContentLanguage' => array(
  296. 'type' => 'string',
  297. 'location' => 'header',
  298. 'sentAs' => 'Content-Language',
  299. ),
  300. 'ContentType' => array(
  301. 'type' => 'string',
  302. 'location' => 'header',
  303. 'sentAs' => 'Content-Type',
  304. ),
  305. 'CopySource' => array(
  306. 'required' => true,
  307. 'type' => 'string',
  308. 'location' => 'header',
  309. 'sentAs' => 'x-cos-copy-source',
  310. ),
  311. 'CopySourceIfMatch' => array(
  312. 'type' => 'string',
  313. 'location' => 'header',
  314. 'sentAs' => 'x-cos-copy-source-if-match',
  315. ),
  316. 'CopySourceIfModifiedSince' => array(
  317. 'type' => array(
  318. 'object',
  319. 'string',
  320. 'integer',
  321. ),
  322. 'format' => 'date-time-http',
  323. 'location' => 'header',
  324. 'sentAs' => 'x-cos-copy-source-if-modified-since',
  325. ),
  326. 'CopySourceIfNoneMatch' => array(
  327. 'type' => 'string',
  328. 'location' => 'header',
  329. 'sentAs' => 'x-cos-copy-source-if-none-match',
  330. ),
  331. 'CopySourceIfUnmodifiedSince' => array(
  332. 'type' => array(
  333. 'object',
  334. 'string',
  335. 'integer',
  336. ),
  337. 'format' => 'date-time-http',
  338. 'location' => 'header',
  339. 'sentAs' => 'x-cos-copy-source-if-unmodified-since',
  340. ),
  341. 'Expires' => array(
  342. 'type' => array(
  343. 'object',
  344. 'string',
  345. 'integer',
  346. ),
  347. 'format' => 'date-time-http',
  348. 'location' => 'header',
  349. ),
  350. 'GrantFullControl' => array(
  351. 'type' => 'string',
  352. 'location' => 'header',
  353. 'sentAs' => 'x-cos-grant-full-control',
  354. ),
  355. 'GrantRead' => array(
  356. 'type' => 'string',
  357. 'location' => 'header',
  358. 'sentAs' => 'x-cos-grant-read',
  359. ),
  360. 'GrantReadACP' => array(
  361. 'type' => 'string',
  362. 'location' => 'header',
  363. 'sentAs' => 'x-cos-grant-read-acp',
  364. ),
  365. 'GrantWriteACP' => array(
  366. 'type' => 'string',
  367. 'location' => 'header',
  368. 'sentAs' => 'x-cos-grant-write-acp',
  369. ),
  370. 'Key' => array(
  371. 'required' => true,
  372. 'type' => 'string',
  373. 'location' => 'uri',
  374. 'minLength' => 1,
  375. 'filters' => array(
  376. 'Qcloud\\Cos\\Client::explodeKey')
  377. ),
  378. 'MetadataDirective' => array(
  379. 'type' => 'string',
  380. 'location' => 'header',
  381. 'sentAs' => 'x-cos-metadata-directive',
  382. ),
  383. 'ServerSideEncryption' => array(
  384. 'type' => 'string',
  385. 'location' => 'header',
  386. 'sentAs' => 'x-cos-server-side-encryption',
  387. ),
  388. 'StorageClass' => array(
  389. 'type' => 'string',
  390. 'location' => 'header',
  391. 'sentAs' => 'x-cos-storage-class',
  392. ),
  393. 'WebsiteRedirectLocation' => array(
  394. 'type' => 'string',
  395. 'location' => 'header',
  396. 'sentAs' => 'x-cos-website-redirect-location',
  397. ),
  398. 'SSECustomerAlgorithm' => array(
  399. 'type' => 'string',
  400. 'location' => 'header',
  401. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  402. ),
  403. 'SSECustomerKey' => array(
  404. 'type' => 'string',
  405. 'location' => 'header',
  406. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  407. ),
  408. 'CopySourceSSECustomerAlgorithm' => array(
  409. 'type' => 'string',
  410. 'location' => 'header',
  411. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-algorithm',
  412. ),
  413. 'CopySourceSSECustomerKey' => array(
  414. 'type' => 'string',
  415. 'location' => 'header',
  416. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-key',
  417. ),
  418. 'CopySourceSSECustomerKeyMD5' => array(
  419. 'type' => 'string',
  420. 'location' => 'header',
  421. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-key-MD5',
  422. ),
  423. 'RequestPayer' => array(
  424. 'type' => 'string',
  425. 'location' => 'header',
  426. 'sentAs' => 'x-cos-request-payer',
  427. ),
  428. 'ACP' => array(
  429. 'type' => 'object',
  430. 'additionalProperties' => true,
  431. )
  432. ),
  433. ),
  434. // 删除存储桶 (Bucket)
  435. 'DeleteBucket' => array(
  436. 'httpMethod' => 'DELETE',
  437. 'uri' => '/{Bucket}',
  438. 'class' => 'Qcloud\\Cos\\Command',
  439. 'responseClass' => 'DeleteBucketOutput',
  440. 'responseType' => 'model',
  441. 'parameters' => array(
  442. 'Bucket' => array(
  443. 'required' => true,
  444. 'type' => 'string',
  445. 'location' => 'uri'
  446. )
  447. )
  448. ),
  449. // 删除跨域访问配置信息
  450. 'DeleteBucketCors' => array(
  451. 'httpMethod' => 'DELETE',
  452. 'uri' => '/{Bucket}?cors',
  453. 'class' => 'Qcloud\\Cos\\Command',
  454. 'responseClass' => 'DeleteBucketCorsOutput',
  455. 'responseType' => 'model',
  456. 'parameters' => array(
  457. 'Bucket' => array(
  458. 'required' => true,
  459. 'type' => 'string',
  460. 'location' => 'uri',
  461. ),
  462. ),
  463. ),
  464. // 删除存储桶标签信息
  465. 'DeleteBucketTagging' => array(
  466. 'httpMethod' => 'DELETE',
  467. 'uri' => '/{Bucket}?tagging',
  468. 'class' => 'Qcloud\\Cos\\Command',
  469. 'responseClass' => 'DeleteBucketTaggingOutput',
  470. 'responseType' => 'model',
  471. 'parameters' => array(
  472. 'Bucket' => array(
  473. 'required' => true,
  474. 'type' => 'string',
  475. 'location' => 'uri',
  476. ),
  477. ),
  478. ),
  479. // 删除存储桶标清单任务
  480. 'DeleteBucketInventory' => array(
  481. 'httpMethod' => 'Delete',
  482. 'uri' => '/{Bucket}?inventory',
  483. 'class' => 'Qcloud\\Cos\\Command',
  484. 'responseClass' => 'DeleteBucketInventoryOutput',
  485. 'responseType' => 'model',
  486. 'parameters' => array(
  487. 'Bucket' => array(
  488. 'required' => true,
  489. 'type' => 'string',
  490. 'location' => 'uri',
  491. ),
  492. 'Id' => array(
  493. 'required' => true,
  494. 'type' => 'string',
  495. 'location' => 'query',
  496. 'sentAs' => 'id',
  497. )
  498. ),
  499. ),
  500. // 删除 COS 上单个对象
  501. 'DeleteObject' => array(
  502. 'httpMethod' => 'DELETE',
  503. 'uri' => '/{Bucket}{/Key*}',
  504. 'class' => 'Qcloud\\Cos\\Command',
  505. 'responseClass' => 'DeleteObjectOutput',
  506. 'responseType' => 'model',
  507. 'parameters' => array(
  508. 'Bucket' => array(
  509. 'required' => true,
  510. 'type' => 'string',
  511. 'location' => 'uri'
  512. ),
  513. 'Key' => array(
  514. 'required' => true,
  515. 'type' => 'string',
  516. 'location' => 'uri',
  517. 'minLength' => 1,
  518. 'filters' => array(
  519. 'Qcloud\\Cos\\Client::explodeKey'
  520. )
  521. ),
  522. 'MFA' => array(
  523. 'type' => 'string',
  524. 'location' => 'header',
  525. 'sentAs' => 'x-cos-mfa',
  526. ),
  527. 'VersionId' => array(
  528. 'type' => 'string',
  529. 'location' => 'query',
  530. 'sentAs' => 'versionId',
  531. ),
  532. 'RequestPayer' => array(
  533. 'type' => 'string',
  534. 'location' => 'header',
  535. 'sentAs' => 'x-cos-request-payer',
  536. )
  537. )
  538. ),
  539. // 批量删除 COS 对象
  540. 'DeleteObjects' => array(
  541. 'httpMethod' => 'POST',
  542. 'uri' => '/{Bucket}?delete',
  543. 'class' => 'Qcloud\\Cos\\Command',
  544. 'responseClass' => 'DeleteObjectsOutput',
  545. 'responseType' => 'model',
  546. 'data' => array(
  547. 'xmlRoot' => array(
  548. 'name' => 'Delete',
  549. ),
  550. 'contentMd5' => true,
  551. ),
  552. 'parameters' => array(
  553. 'Bucket' => array(
  554. 'required' => true,
  555. 'type' => 'string',
  556. 'location' => 'uri',
  557. ),
  558. 'Objects' => array(
  559. 'required' => true,
  560. 'type' => 'array',
  561. 'location' => 'xml',
  562. 'data' => array(
  563. 'xmlFlattened' => true,
  564. ),
  565. 'items' => array(
  566. 'type' => 'object',
  567. 'sentAs' => 'Object',
  568. 'properties' => array(
  569. 'Key' => array(
  570. 'required' => true,
  571. 'type' => 'string',
  572. 'minLength' => 1,
  573. ),
  574. 'VersionId' => array(
  575. 'type' => 'string',
  576. ),
  577. ),
  578. ),
  579. ),
  580. 'Quiet' => array(
  581. 'type' => 'boolean',
  582. 'format' => 'boolean-string',
  583. 'location' => 'xml',
  584. ),
  585. 'MFA' => array(
  586. 'type' => 'string',
  587. 'location' => 'header',
  588. 'sentAs' => 'x-cos-mfa',
  589. ),
  590. 'RequestPayer' => array(
  591. 'type' => 'string',
  592. 'location' => 'header',
  593. 'sentAs' => 'x-cos-request-payer',
  594. )
  595. ),
  596. ),
  597. // 删除存储桶(Bucket)的website
  598. 'DeleteBucketWebsite' => array(
  599. 'httpMethod' => 'DELETE',
  600. 'uri' => '/{Bucket}?website',
  601. 'class' => 'Qcloud\\Cos\\Command',
  602. 'responseClass' => 'DeleteBucketWebsiteOutput',
  603. 'responseType' => 'model',
  604. 'parameters' => array(
  605. 'Bucket' => array(
  606. 'required' => true,
  607. 'type' => 'string',
  608. 'location' => 'uri',
  609. ),
  610. ),
  611. ),
  612. // 删除存储桶(Bucket)的生命周期配置
  613. 'DeleteBucketLifecycle' => array(
  614. 'httpMethod' => 'DELETE',
  615. 'uri' => '/{Bucket}?lifecycle',
  616. 'class' => 'Qcloud\\Cos\\Command',
  617. 'responseClass' => 'DeleteBucketLifecycleOutput',
  618. 'responseType' => 'model',
  619. 'parameters' => array(
  620. 'Bucket' => array(
  621. 'required' => true,
  622. 'type' => 'string',
  623. 'location' => 'uri',
  624. ),
  625. ),
  626. ),
  627. // 删除跨区域复制配置
  628. 'DeleteBucketReplication' => array(
  629. 'httpMethod' => 'DELETE',
  630. 'uri' => '/{Bucket}?replication',
  631. 'class' => 'Qcloud\\Cos\\Command',
  632. 'responseClass' => 'DeleteBucketReplicationOutput',
  633. 'responseType' => 'model',
  634. 'parameters' => array(
  635. 'Bucket' => array(
  636. 'required' => true,
  637. 'type' => 'string',
  638. 'location' => 'uri',
  639. ),
  640. ),
  641. ),
  642. // 配置对象标签
  643. 'PutObjectTagging' => array(
  644. 'httpMethod' => 'PUT',
  645. 'uri' => '/{Bucket}{/Key*}?tagging',
  646. 'class' => 'Qcloud\\Cos\\Command',
  647. 'responseClass' => 'PutObjectTaggingOutput',
  648. 'responseType' => 'model',
  649. 'data' => array(
  650. 'xmlRoot' => array(
  651. 'name' => 'Tagging',
  652. ),
  653. 'contentMd5' => true,
  654. ),
  655. 'parameters' => array(
  656. 'Bucket' => array(
  657. 'required' => true,
  658. 'type' => 'string',
  659. 'location' => 'uri',
  660. ),
  661. 'Key' => array(
  662. 'required' => true,
  663. 'type' => 'string',
  664. 'location' => 'uri',
  665. 'minLength' => 1,
  666. 'filters' => array(
  667. 'Qcloud\\Cos\\Client::explodeKey'
  668. )
  669. ),
  670. 'TagSet' => array(
  671. 'required' => true,
  672. 'type' => 'array',
  673. 'location' => 'xml',
  674. 'items' => array(
  675. 'name' => 'TagRule',
  676. 'type' => 'object',
  677. 'sentAs' => 'Tag',
  678. 'properties' => array(
  679. 'Key' => array(
  680. 'required' => true,
  681. 'type' => 'string',
  682. ),
  683. 'Value' => array(
  684. 'required' => true,
  685. 'type' => 'string',
  686. ),
  687. ),
  688. ),
  689. ),
  690. ),
  691. ),
  692. // 获取对象标签信息
  693. 'GetObjectTagging' => array(
  694. 'httpMethod' => 'GET',
  695. 'uri' => '/{Bucket}{/Key*}?tagging',
  696. 'class' => 'Qcloud\\Cos\\Command',
  697. 'responseClass' => 'GetObjectTaggingOutput',
  698. 'responseType' => 'model',
  699. 'parameters' => array(
  700. 'Bucket' => array(
  701. 'required' => true,
  702. 'type' => 'string',
  703. 'location' => 'uri',
  704. ),
  705. 'Key' => array(
  706. 'required' => true,
  707. 'type' => 'string',
  708. 'location' => 'uri',
  709. 'minLength' => 1,
  710. 'filters' => array(
  711. 'Qcloud\\Cos\\Client::explodeKey'
  712. )
  713. )
  714. ),
  715. ),
  716. // 删除对象标签
  717. 'DeleteObjectTagging' => array(
  718. 'httpMethod' => 'DELETE',
  719. 'uri' => '/{Bucket}{/Key*}?tagging',
  720. 'class' => 'Qcloud\\Cos\\Command',
  721. 'responseClass' => 'DeleteObjectTaggingOutput',
  722. 'responseType' => 'model',
  723. 'parameters' => array(
  724. 'Bucket' => array(
  725. 'required' => true,
  726. 'type' => 'string',
  727. 'location' => 'uri'
  728. ),
  729. 'Key' => array(
  730. 'required' => true,
  731. 'type' => 'string',
  732. 'location' => 'uri',
  733. 'minLength' => 1,
  734. 'filters' => array(
  735. 'Qcloud\\Cos\\Client::explodeKey'
  736. )
  737. )
  738. )
  739. ),
  740. // 下载对象
  741. 'GetObject' => array(
  742. 'httpMethod' => 'GET',
  743. 'uri' => '/{Bucket}{/Key*}',
  744. 'class' => 'Qcloud\\Cos\\Command',
  745. 'responseClass' => 'GetObjectOutput',
  746. 'responseType' => 'model',
  747. 'parameters' => array(
  748. 'Bucket' => array(
  749. 'required' => true,
  750. 'type' => 'string',
  751. 'location' => 'uri'
  752. ),
  753. 'IfMatch' => array(
  754. 'type' => 'string',
  755. 'location' => 'header',
  756. 'sentAs' => 'If-Match'
  757. ),
  758. 'IfModifiedSince' => array(
  759. 'type' => array(
  760. 'object',
  761. 'string',
  762. 'integer'
  763. ),
  764. 'format' => 'date-time-http',
  765. 'location' => 'header',
  766. 'sentAs' => 'If-Modified-Since'
  767. ),
  768. 'IfNoneMatch' => array(
  769. 'type' => 'string',
  770. 'location' => 'header',
  771. 'sentAs' => 'If-None-Match'
  772. ),
  773. 'IfUnmodifiedSince' => array(
  774. 'type' => array(
  775. 'object',
  776. 'string',
  777. 'integer'
  778. ),
  779. 'format' => 'date-time-http',
  780. 'location' => 'header',
  781. 'sentAs' => 'If-Unmodified-Since'
  782. ),
  783. 'Key' => array(
  784. 'required' => true,
  785. 'type' => 'string',
  786. 'location' => 'uri',
  787. 'minLength' => 1,
  788. 'filters' => array(
  789. 'Qcloud\\Cos\\Client::explodeKey'
  790. )
  791. ),
  792. 'Range' => array(
  793. 'type' => 'string',
  794. 'location' => 'header'),
  795. 'ResponseCacheControl' => array(
  796. 'type' => 'string',
  797. 'location' => 'query',
  798. 'sentAs' => 'response-cache-control'
  799. ),
  800. 'ResponseContentDisposition' => array(
  801. 'type' => 'string',
  802. 'location' => 'query',
  803. 'sentAs' => 'response-content-disposition'
  804. ),
  805. 'ResponseContentEncoding' => array(
  806. 'type' => 'string',
  807. 'location' => 'query',
  808. 'sentAs' => 'response-content-encoding'
  809. ),
  810. 'ResponseContentLanguage' => array(
  811. 'type' => 'string',
  812. 'location' => 'query',
  813. 'sentAs' => 'response-content-language'
  814. ),
  815. 'ResponseContentType' => array(
  816. 'type' => 'string',
  817. 'location' => 'query',
  818. 'sentAs' => 'response-content-type'
  819. ),
  820. 'ResponseExpires' => array(
  821. 'type' => array(
  822. 'object',
  823. 'string',
  824. 'integer'
  825. ),
  826. 'format' => 'date-time-http',
  827. 'location' => 'query',
  828. 'sentAs' => 'response-expires'
  829. ),
  830. 'VersionId' => array(
  831. 'type' => 'string',
  832. 'location' => 'query',
  833. 'sentAs' => 'versionId',
  834. ),
  835. 'SSECustomerAlgorithm' => array(
  836. 'type' => 'string',
  837. 'location' => 'header',
  838. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  839. ),
  840. 'SSECustomerKey' => array(
  841. 'type' => 'string',
  842. 'location' => 'header',
  843. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  844. ),
  845. 'SSECustomerKeyMD5' => array(
  846. 'type' => 'string',
  847. 'location' => 'header',
  848. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  849. ),
  850. 'TrafficLimit' => array(
  851. 'type' => 'integer',
  852. 'location' => 'header',
  853. 'sentAs' => 'x-cos-traffic-limit',
  854. )
  855. )
  856. ),
  857. // 获取 COS 对象的访问权限信息(Access Control List, ACL)
  858. 'GetObjectAcl' => array(
  859. 'httpMethod' => 'GET',
  860. 'uri' => '/{Bucket}{/Key*}?acl',
  861. 'class' => 'Qcloud\\Cos\\Command',
  862. 'responseClass' => 'GetObjectAclOutput',
  863. 'responseType' => 'model',
  864. 'parameters' => array(
  865. 'Bucket' => array(
  866. 'required' => true,
  867. 'type' => 'string',
  868. 'location' => 'uri',
  869. ),
  870. 'Key' => array(
  871. 'required' => true,
  872. 'type' => 'string',
  873. 'location' => 'uri',
  874. 'minLength' => 1,
  875. 'filters' => array(
  876. 'Qcloud\\Cos\\Client::explodeKey')
  877. ),
  878. 'VersionId' => array(
  879. 'type' => 'string',
  880. 'location' => 'query',
  881. 'sentAs' => 'versionId',
  882. ),
  883. 'RequestPayer' => array(
  884. 'type' => 'string',
  885. 'location' => 'header',
  886. 'sentAs' => 'x-cos-request-payer',
  887. )
  888. )
  889. ),
  890. // 获取存储桶(Bucket)的访问权限信息(Access Control List, ACL)
  891. 'GetBucketAcl' => array(
  892. 'httpMethod' => 'GET',
  893. 'uri' => '/{Bucket}?acl',
  894. 'class' => 'Qcloud\\Cos\\Command',
  895. 'responseClass' => 'GetBucketAclOutput',
  896. 'responseType' => 'model',
  897. 'parameters' => array(
  898. 'Bucket' => array(
  899. 'required' => true,
  900. 'type' => 'string',
  901. 'location' => 'uri'
  902. )
  903. )
  904. ),
  905. // 查询存储桶(Bucket)跨域访问配置信息
  906. 'GetBucketCors' => array(
  907. 'httpMethod' => 'GET',
  908. 'uri' => '/{Bucket}?cors',
  909. 'class' => 'Qcloud\\Cos\\Command',
  910. 'responseClass' => 'GetBucketCorsOutput',
  911. 'responseType' => 'model',
  912. 'parameters' => array(
  913. 'Bucket' => array(
  914. 'required' => true,
  915. 'type' => 'string',
  916. 'location' => 'uri',
  917. )
  918. ),
  919. ),
  920. // 查询存储桶(Bucket)Domain配置信息
  921. 'GetBucketDomain' => array(
  922. 'httpMethod' => 'GET',
  923. 'uri' => '/{Bucket}?domain',
  924. 'class' => 'Qcloud\\Cos\\Command',
  925. 'responseClass' => 'GetBucketDomainOutput',
  926. 'responseType' => 'model',
  927. 'parameters' => array(
  928. 'Bucket' => array(
  929. 'required' => true,
  930. 'type' => 'string',
  931. 'location' => 'uri',
  932. )
  933. ),
  934. ),
  935. // 查询存储桶(Bucket)Accelerate配置信息
  936. 'GetBucketAccelerate' => array(
  937. 'httpMethod' => 'GET',
  938. 'uri' => '/{Bucket}?accelerate',
  939. 'class' => 'Qcloud\\Cos\\Command',
  940. 'responseClass' => 'GetBucketAccelerateOutput',
  941. 'responseType' => 'model',
  942. 'parameters' => array(
  943. 'Bucket' => array(
  944. 'required' => true,
  945. 'type' => 'string',
  946. 'location' => 'uri',
  947. )
  948. ),
  949. ),
  950. // 查询存储桶(Bucket)Website配置信息
  951. 'GetBucketWebsite' => array(
  952. 'httpMethod' => 'GET',
  953. 'uri' => '/{Bucket}?website',
  954. 'class' => 'Qcloud\\Cos\\Command',
  955. 'responseClass' => 'GetBucketWebsiteOutput',
  956. 'responseType' => 'model',
  957. 'parameters' => array(
  958. 'Bucket' => array(
  959. 'required' => true,
  960. 'type' => 'string',
  961. 'location' => 'uri',
  962. )
  963. ),
  964. ),
  965. // 查询存储桶(Bucket)的生命周期配置
  966. 'GetBucketLifecycle' => array(
  967. 'httpMethod' => 'GET',
  968. 'uri' => '/{Bucket}?lifecycle',
  969. 'class' => 'Qcloud\\Cos\\Command',
  970. 'responseClass' => 'GetBucketLifecycleOutput',
  971. 'responseType' => 'model',
  972. 'parameters' => array(
  973. 'Bucket' => array(
  974. 'required' => true,
  975. 'type' => 'string',
  976. 'location' => 'uri',
  977. )
  978. ),
  979. ),
  980. // 获取存储桶(Bucket)版本控制信息
  981. 'GetBucketVersioning' => array(
  982. 'httpMethod' => 'GET',
  983. 'uri' => '/{Bucket}?versioning',
  984. 'class' => 'Qcloud\\Cos\\Command',
  985. 'responseClass' => 'GetBucketVersioningOutput',
  986. 'responseType' => 'model',
  987. 'parameters' => array(
  988. 'Bucket' => array(
  989. 'required' => true,
  990. 'type' => 'string',
  991. 'location' => 'uri',
  992. )
  993. ),
  994. ),
  995. // 获取存储桶(Bucket)跨区域复制配置信息
  996. 'GetBucketReplication' => array(
  997. 'httpMethod' => 'GET',
  998. 'uri' => '/{Bucket}?replication',
  999. 'class' => 'Qcloud\\Cos\\Command',
  1000. 'responseClass' => 'GetBucketReplicationOutput',
  1001. 'responseType' => 'model',
  1002. 'parameters' => array(
  1003. 'Bucket' => array(
  1004. 'required' => true,
  1005. 'type' => 'string',
  1006. 'location' => 'uri',
  1007. )
  1008. ),
  1009. ),
  1010. // 获取存储桶(Bucket)所在的地域信息
  1011. 'GetBucketLocation' => array(
  1012. 'httpMethod' => 'GET',
  1013. 'uri' => '/{Bucket}?location',
  1014. 'class' => 'Qcloud\\Cos\\Command',
  1015. 'responseClass' => 'GetBucketLocationOutput',
  1016. 'responseType' => 'model',
  1017. 'parameters' => array(
  1018. 'Bucket' => array(
  1019. 'required' => true,
  1020. 'type' => 'string',
  1021. 'location' => 'uri',
  1022. ),
  1023. ),
  1024. ),
  1025. // 获取存储桶(Bucket)Notification信息
  1026. 'GetBucketNotification' => array(
  1027. 'httpMethod' => 'GET',
  1028. 'uri' => '/{Bucket}?notification',
  1029. 'class' => 'Qcloud\\Cos\\Command',
  1030. 'responseClass' => 'GetBucketNotificationOutput',
  1031. 'responseType' => 'model',
  1032. 'parameters' => array(
  1033. 'Bucket' => array(
  1034. 'required' => true,
  1035. 'type' => 'string',
  1036. 'location' => 'uri',
  1037. )
  1038. ),
  1039. ),
  1040. // 获取存储桶(Bucket)日志信息
  1041. 'GetBucketLogging' => array(
  1042. 'httpMethod' => 'GET',
  1043. 'uri' => '/{Bucket}?logging',
  1044. 'class' => 'Qcloud\\Cos\\Command',
  1045. 'responseClass' => 'GetBucketLoggingOutput',
  1046. 'responseType' => 'model',
  1047. 'parameters' => array(
  1048. 'Bucket' => array(
  1049. 'required' => true,
  1050. 'type' => 'string',
  1051. 'location' => 'uri',
  1052. )
  1053. ),
  1054. ),
  1055. // 获取存储桶(Bucket)清单信息
  1056. 'GetBucketInventory' => array(
  1057. 'httpMethod' => 'GET',
  1058. 'uri' => '/{Bucket}?inventory',
  1059. 'class' => 'Qcloud\\Cos\\Command',
  1060. 'responseClass' => 'GetBucketInventoryOutput',
  1061. 'responseType' => 'model',
  1062. 'parameters' => array(
  1063. 'Bucket' => array(
  1064. 'required' => true,
  1065. 'type' => 'string',
  1066. 'location' => 'uri',
  1067. ),
  1068. 'Id' => array(
  1069. 'required' => true,
  1070. 'type' => 'string',
  1071. 'location' => 'query',
  1072. 'sentAs' => 'id',
  1073. )
  1074. ),
  1075. ),
  1076. // 获取存储桶(Bucket)标签信息
  1077. 'GetBucketTagging' => array(
  1078. 'httpMethod' => 'GET',
  1079. 'uri' => '/{Bucket}?tagging',
  1080. 'class' => 'Qcloud\\Cos\\Command',
  1081. 'responseClass' => 'GetBucketTaggingOutput',
  1082. 'responseType' => 'model',
  1083. 'parameters' => array(
  1084. 'Bucket' => array(
  1085. 'required' => true,
  1086. 'type' => 'string',
  1087. 'location' => 'uri',
  1088. )
  1089. ),
  1090. ),
  1091. // 分块上传
  1092. 'UploadPart' => array(
  1093. 'httpMethod' => 'PUT',
  1094. 'uri' => '/{Bucket}{/Key*}',
  1095. 'class' => 'Qcloud\\Cos\\Command',
  1096. 'responseClass' => 'UploadPartOutput',
  1097. 'responseType' => 'model',
  1098. 'data' => array(
  1099. 'xmlRoot' => array(
  1100. 'name' => 'UploadPartRequest'
  1101. )
  1102. ),
  1103. 'parameters' => array(
  1104. 'Body' => array(
  1105. 'type' => array(
  1106. 'any'),
  1107. 'location' => 'body'
  1108. ),
  1109. 'Bucket' => array(
  1110. 'required' => true,
  1111. 'type' => 'string',
  1112. 'location' => 'uri'
  1113. ),
  1114. 'ContentLength' => array(
  1115. 'type' => 'numeric',
  1116. 'minimum'=> 0,
  1117. 'location' => 'header',
  1118. 'sentAs' => 'Content-Length'
  1119. ),
  1120. 'ContentMD5' => array(
  1121. 'type' => array(
  1122. 'boolean'
  1123. ),
  1124. 'location' => 'header',
  1125. 'sentAs' => 'Content-MD5'
  1126. ),
  1127. 'Key' => array(
  1128. 'required' => true,
  1129. 'type' => 'string',
  1130. 'location' => 'uri',
  1131. 'minLength' => 1,
  1132. 'filters' => array(
  1133. 'Qcloud\\Cos\\Client::explodeKey'
  1134. )
  1135. ),
  1136. 'PartNumber' => array(
  1137. 'required' => true,
  1138. 'type' => 'numeric',
  1139. 'location' => 'query',
  1140. 'sentAs' => 'partNumber'),
  1141. 'UploadId' => array(
  1142. 'required' => true,
  1143. 'type' => 'string',
  1144. 'location' => 'query',
  1145. 'sentAs' => 'uploadId'),
  1146. 'ServerSideEncryption' => array(
  1147. 'type' => 'string',
  1148. 'location' => 'header',
  1149. 'sentAs' => 'x-cos-server-side-encryption',
  1150. ),
  1151. 'SSECustomerAlgorithm' => array(
  1152. 'type' => 'string',
  1153. 'location' => 'header',
  1154. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  1155. ),
  1156. 'SSECustomerKey' => array(
  1157. 'type' => 'string',
  1158. 'location' => 'header',
  1159. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  1160. ),
  1161. 'SSECustomerKeyMD5' => array(
  1162. 'type' => 'string',
  1163. 'location' => 'header',
  1164. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  1165. ),
  1166. 'RequestPayer' => array(
  1167. 'type' => 'string',
  1168. 'location' => 'header',
  1169. 'sentAs' => 'x-cos-request-payer',
  1170. ),
  1171. 'TrafficLimit' => array(
  1172. 'type' => 'integer',
  1173. 'location' => 'header',
  1174. 'sentAs' => 'x-cos-traffic-limit',
  1175. )
  1176. )
  1177. ),
  1178. // 上传对象
  1179. 'PutObject' => array(
  1180. 'httpMethod' => 'PUT',
  1181. 'uri' => '/{Bucket}{/Key*}',
  1182. 'class' => 'Qcloud\\Cos\\Command',
  1183. 'responseClass' => 'PutObjectOutput',
  1184. 'responseType' => 'model',
  1185. 'data' => array(
  1186. 'xmlRoot' => array(
  1187. 'name' => 'PutObjectRequest'
  1188. )
  1189. ),
  1190. 'parameters' => array(
  1191. 'ACL' => array(
  1192. 'type' => 'string',
  1193. 'location' => 'header',
  1194. 'sentAs' => 'x-cos-acl'
  1195. ),
  1196. 'Body' => array(
  1197. 'required' => true,
  1198. 'type' => array(
  1199. 'any'
  1200. ),
  1201. 'location' => 'body'
  1202. ),
  1203. 'Bucket' => array(
  1204. 'required' => true,
  1205. 'type' => 'string',
  1206. 'location' => 'uri'
  1207. ),
  1208. 'CacheControl' => array(
  1209. 'type' => 'string',
  1210. 'location' => 'header',
  1211. 'sentAs' => 'Cache-Control'
  1212. ),
  1213. 'ContentDisposition' => array(
  1214. 'type' => 'string',
  1215. 'location' => 'header',
  1216. 'sentAs' => 'Content-Disposition'
  1217. ),
  1218. 'ContentEncoding' => array(
  1219. 'type' => 'string',
  1220. 'location' => 'header',
  1221. 'sentAs' => 'Content-Encoding'
  1222. ),
  1223. 'ContentLanguage' => array(
  1224. 'type' => 'string',
  1225. 'location' => 'header',
  1226. 'sentAs' => 'Content-Language'
  1227. ),
  1228. 'ContentLength' => array(
  1229. 'type' => 'numeric',
  1230. 'minimum'=> 0,
  1231. 'location' => 'header',
  1232. 'sentAs' => 'Content-Length'
  1233. ),
  1234. 'ContentMD5' => array(
  1235. 'type' => array(
  1236. 'boolean'
  1237. ),
  1238. 'location' => 'header',
  1239. 'sentAs' => 'Content-MD5'
  1240. ),
  1241. 'ContentType' => array(
  1242. 'type' => 'string',
  1243. 'location' => 'header',
  1244. 'sentAs' => 'Content-Type'
  1245. ),
  1246. 'Key' => array(
  1247. 'required' => true,
  1248. 'type' => 'string',
  1249. 'location' => 'uri',
  1250. 'minLength' => 1,
  1251. 'filters' => array(
  1252. 'Qcloud\\Cos\\Client::explodeKey'
  1253. )
  1254. ),
  1255. 'ServerSideEncryption' => array(
  1256. 'type' => 'string',
  1257. 'location' => 'header',
  1258. 'sentAs' => 'x-cos-server-side-encryption',
  1259. ),
  1260. 'StorageClass' => array(
  1261. 'type' => 'string',
  1262. 'location' => 'header',
  1263. 'sentAs' => 'x-cos-storage-class',
  1264. ),
  1265. 'WebsiteRedirectLocation' => array(
  1266. 'type' => 'string',
  1267. 'location' => 'header',
  1268. 'sentAs' => 'x-cos-website-redirect-location',
  1269. ),
  1270. 'SSECustomerAlgorithm' => array(
  1271. 'type' => 'string',
  1272. 'location' => 'header',
  1273. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  1274. ),
  1275. 'SSECustomerKey' => array(
  1276. 'type' => 'string',
  1277. 'location' => 'header',
  1278. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  1279. ),
  1280. 'SSECustomerKeyMD5' => array(
  1281. 'type' => 'string',
  1282. 'location' => 'header',
  1283. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  1284. ),
  1285. 'SSEKMSKeyId' => array(
  1286. 'type' => 'string',
  1287. 'location' => 'header',
  1288. 'sentAs' => 'x-cos-server-side-encryption-cos-kms-key-id',
  1289. ),
  1290. 'RequestPayer' => array(
  1291. 'type' => 'string',
  1292. 'location' => 'header',
  1293. 'sentAs' => 'x-cos-request-payer',
  1294. ),
  1295. 'ACP' => array(
  1296. 'type' => 'object',
  1297. 'additionalProperties' => true,
  1298. ),
  1299. 'PicOperations' => array(
  1300. 'type' => 'string',
  1301. 'location' => 'header',
  1302. 'sentAs' => 'Pic-Operations',
  1303. ),
  1304. 'TrafficLimit' => array(
  1305. 'type' => 'integer',
  1306. 'location' => 'header',
  1307. 'sentAs' => 'x-cos-traffic-limit',
  1308. ),
  1309. 'Tagging' => array(
  1310. 'type' => 'string',
  1311. 'location' => 'header',
  1312. 'sentAs' => 'x-cos-tagging',
  1313. ),
  1314. )
  1315. ),
  1316. // 追加对象
  1317. 'AppendObject' => array(
  1318. 'httpMethod' => 'POST',
  1319. 'uri' => '/{Bucket}{/Key*}?append',
  1320. 'class' => 'Qcloud\\Cos\\Command',
  1321. 'responseClass' => 'AppendObjectOutput',
  1322. 'responseType' => 'model',
  1323. 'data' => array(
  1324. 'xmlRoot' => array(
  1325. 'name' => 'AppendObjectRequest'
  1326. )
  1327. ),
  1328. 'parameters' => array(
  1329. 'Position' => array(
  1330. 'type' => 'integer',
  1331. 'required' => true,
  1332. 'location' => 'query',
  1333. 'sentAs' => 'position'
  1334. ),
  1335. 'ACL' => array(
  1336. 'type' => 'string',
  1337. 'location' => 'header',
  1338. 'sentAs' => 'x-cos-acl'
  1339. ),
  1340. 'Body' => array(
  1341. 'required' => true,
  1342. 'type' => array(
  1343. 'any'
  1344. ),
  1345. 'location' => 'body'
  1346. ),
  1347. 'Bucket' => array(
  1348. 'required' => true,
  1349. 'type' => 'string',
  1350. 'location' => 'uri'
  1351. ),
  1352. 'CacheControl' => array(
  1353. 'type' => 'string',
  1354. 'location' => 'header',
  1355. 'sentAs' => 'Cache-Control'
  1356. ),
  1357. 'ContentDisposition' => array(
  1358. 'type' => 'string',
  1359. 'location' => 'header',
  1360. 'sentAs' => 'Content-Disposition'
  1361. ),
  1362. 'ContentEncoding' => array(
  1363. 'type' => 'string',
  1364. 'location' => 'header',
  1365. 'sentAs' => 'Content-Encoding'
  1366. ),
  1367. 'ContentLanguage' => array(
  1368. 'type' => 'string',
  1369. 'location' => 'header',
  1370. 'sentAs' => 'Content-Language'
  1371. ),
  1372. 'ContentLength' => array(
  1373. 'type' => 'numeric',
  1374. 'minimum'=> 0,
  1375. 'location' => 'header',
  1376. 'sentAs' => 'Content-Length'
  1377. ),
  1378. 'ContentMD5' => array(
  1379. 'type' => array(
  1380. 'boolean'
  1381. ),
  1382. 'location' => 'header',
  1383. 'sentAs' => 'Content-MD5'
  1384. ),
  1385. 'ContentType' => array(
  1386. 'type' => 'string',
  1387. 'location' => 'header',
  1388. 'sentAs' => 'Content-Type'
  1389. ),
  1390. 'Key' => array(
  1391. 'required' => true,
  1392. 'type' => 'string',
  1393. 'location' => 'uri',
  1394. 'minLength' => 1,
  1395. 'filters' => array(
  1396. 'Qcloud\\Cos\\Client::explodeKey'
  1397. )
  1398. ),
  1399. 'ServerSideEncryption' => array(
  1400. 'type' => 'string',
  1401. 'location' => 'header',
  1402. 'sentAs' => 'x-cos-server-side-encryption',
  1403. ),
  1404. 'StorageClass' => array(
  1405. 'type' => 'string',
  1406. 'location' => 'header',
  1407. 'sentAs' => 'x-cos-storage-class',
  1408. ),
  1409. 'WebsiteRedirectLocation' => array(
  1410. 'type' => 'string',
  1411. 'location' => 'header',
  1412. 'sentAs' => 'x-cos-website-redirect-location',
  1413. ),
  1414. 'SSECustomerAlgorithm' => array(
  1415. 'type' => 'string',
  1416. 'location' => 'header',
  1417. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  1418. ),
  1419. 'SSECustomerKey' => array(
  1420. 'type' => 'string',
  1421. 'location' => 'header',
  1422. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  1423. ),
  1424. 'SSECustomerKeyMD5' => array(
  1425. 'type' => 'string',
  1426. 'location' => 'header',
  1427. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  1428. ),
  1429. 'SSEKMSKeyId' => array(
  1430. 'type' => 'string',
  1431. 'location' => 'header',
  1432. 'sentAs' => 'x-cos-server-side-encryption-cos-kms-key-id',
  1433. ),
  1434. 'RequestPayer' => array(
  1435. 'type' => 'string',
  1436. 'location' => 'header',
  1437. 'sentAs' => 'x-cos-request-payer',
  1438. ),
  1439. 'ACP' => array(
  1440. 'type' => 'object',
  1441. 'additionalProperties' => true,
  1442. ),
  1443. 'PicOperations' => array(
  1444. 'type' => 'string',
  1445. 'location' => 'header',
  1446. 'sentAs' => 'Pic-Operations',
  1447. ),
  1448. 'TrafficLimit' => array(
  1449. 'type' => 'integer',
  1450. 'location' => 'header',
  1451. 'sentAs' => 'x-cos-traffic-limit',
  1452. )
  1453. )
  1454. ),
  1455. // 设置 COS 对象的访问权限信息(Access Control List, ACL)
  1456. 'PutObjectAcl' => array(
  1457. 'httpMethod' => 'PUT',
  1458. 'uri' => '/{Bucket}{/Key*}?acl',
  1459. 'class' => 'Qcloud\\Cos\\Command',
  1460. 'responseClass' => 'PutObjectAclOutput',
  1461. 'responseType' => 'model',
  1462. 'data' => array(
  1463. 'xmlRoot' => array(
  1464. 'name' => 'AccessControlPolicy',
  1465. ),
  1466. ),
  1467. 'parameters' => array(
  1468. 'ACL' => array(
  1469. 'type' => 'string',
  1470. 'location' => 'header',
  1471. 'sentAs' => 'x-cos-acl',
  1472. ),
  1473. 'Grants' => array(
  1474. 'type' => 'array',
  1475. 'location' => 'xml',
  1476. 'sentAs' => 'AccessControlList',
  1477. 'items' => array(
  1478. 'name' => 'Grant',
  1479. 'type' => 'object',
  1480. 'properties' => array(
  1481. 'Grantee' => array(
  1482. 'type' => 'object',
  1483. 'properties' => array(
  1484. 'DisplayName' => array(
  1485. 'type' => 'string'),
  1486. 'ID' => array(
  1487. 'type' => 'string'),
  1488. 'Type' => array(
  1489. 'type' => 'string',
  1490. 'sentAs' => 'xsi:type',
  1491. 'data' => array(
  1492. 'xmlAttribute' => true,
  1493. 'xmlNamespace' => 'http://www.w3.org/2001/XMLSchema-instance')),
  1494. 'URI' => array(
  1495. 'type' => 'string') )),
  1496. 'Permission' => array(
  1497. 'type' => 'string',
  1498. ),
  1499. ),
  1500. ),
  1501. ),
  1502. 'Owner' => array(
  1503. 'type' => 'object',
  1504. 'location' => 'xml',
  1505. 'properties' => array(
  1506. 'DisplayName' => array(
  1507. 'type' => 'string',
  1508. ),
  1509. 'ID' => array(
  1510. 'type' => 'string',
  1511. ),
  1512. ),
  1513. ),
  1514. 'Bucket' => array(
  1515. 'required' => true,
  1516. 'type' => 'string',
  1517. 'location' => 'uri',
  1518. ),
  1519. 'GrantFullControl' => array(
  1520. 'type' => 'string',
  1521. 'location' => 'header',
  1522. 'sentAs' => 'x-cos-grant-full-control',
  1523. ),
  1524. 'GrantRead' => array(
  1525. 'type' => 'string',
  1526. 'location' => 'header',
  1527. 'sentAs' => 'x-cos-grant-read',
  1528. ),
  1529. 'GrantReadACP' => array(
  1530. 'type' => 'string',
  1531. 'location' => 'header',
  1532. 'sentAs' => 'x-cos-grant-read-acp',
  1533. ),
  1534. 'GrantWrite' => array(
  1535. 'type' => 'string',
  1536. 'location' => 'header',
  1537. 'sentAs' => 'x-cos-grant-write',
  1538. ),
  1539. 'GrantWriteACP' => array(
  1540. 'type' => 'string',
  1541. 'location' => 'header',
  1542. 'sentAs' => 'x-cos-grant-write-acp',
  1543. ),
  1544. 'Key' => array(
  1545. 'required' => true,
  1546. 'type' => 'string',
  1547. 'location' => 'uri',
  1548. 'minLength' => 1,
  1549. 'filters' => array(
  1550. 'Qcloud\\Cos\\Client::explodeKey')
  1551. ),
  1552. 'RequestPayer' => array(
  1553. 'type' => 'string',
  1554. 'location' => 'header',
  1555. 'sentAs' => 'x-cos-request-payer',
  1556. ),
  1557. 'ACP' => array(
  1558. 'type' => 'object',
  1559. 'additionalProperties' => true,
  1560. ),
  1561. )
  1562. ),
  1563. // 设置存储桶(Bucket)的访问权限(Access Control List, ACL)
  1564. 'PutBucketAcl' => array(
  1565. 'httpMethod' => 'PUT',
  1566. 'uri' => '/{Bucket}?acl',
  1567. 'class' => 'Qcloud\\Cos\\Command',
  1568. 'responseClass' => 'PutBucketAclOutput',
  1569. 'responseType' => 'model',
  1570. 'data' => array(
  1571. 'xmlRoot' => array(
  1572. 'name' => 'AccessControlPolicy',
  1573. ),
  1574. ),
  1575. 'parameters' => array(
  1576. 'ACL' => array(
  1577. 'type' => 'string',
  1578. 'location' => 'header',
  1579. 'sentAs' => 'x-cos-acl',
  1580. ),
  1581. 'Grants' => array(
  1582. 'type' => 'array',
  1583. 'location' => 'xml',
  1584. 'sentAs' => 'AccessControlList',
  1585. 'items' => array(
  1586. 'name' => 'Grant',
  1587. 'type' => 'object',
  1588. 'properties' => array(
  1589. 'Grantee' => array(
  1590. 'type' => 'object',
  1591. 'properties' => array(
  1592. 'DisplayName' => array(
  1593. 'type' => 'string',
  1594. ),
  1595. 'EmailAddress' => array(
  1596. 'type' => 'string',
  1597. ),
  1598. 'ID' => array(
  1599. 'type' => 'string',
  1600. ),
  1601. 'Type' => array(
  1602. 'required' => true,
  1603. 'type' => 'string',
  1604. 'sentAs' => 'xsi:type',
  1605. 'data' => array(
  1606. 'xmlAttribute' => true,
  1607. 'xmlNamespace' => 'http://www.w3.org/2001/XMLSchema-instance',
  1608. ),
  1609. ),
  1610. 'URI' => array(
  1611. 'type' => 'string',
  1612. ),
  1613. ),
  1614. ),
  1615. 'Permission' => array(
  1616. 'type' => 'string',
  1617. ),
  1618. ),
  1619. ),
  1620. ),
  1621. 'Owner' => array(
  1622. 'type' => 'object',
  1623. 'location' => 'xml',
  1624. 'properties' => array(
  1625. 'DisplayName' => array(
  1626. 'type' => 'string',
  1627. ),
  1628. 'ID' => array(
  1629. 'type' => 'string',
  1630. ),
  1631. ),
  1632. ),
  1633. 'Bucket' => array(
  1634. 'required' => true,
  1635. 'type' => 'string',
  1636. 'location' => 'uri',
  1637. ),
  1638. 'GrantFullControl' => array(
  1639. 'type' => 'string',
  1640. 'location' => 'header',
  1641. 'sentAs' => 'x-cos-grant-full-control',
  1642. ),
  1643. 'GrantRead' => array(
  1644. 'type' => 'string',
  1645. 'location' => 'header',
  1646. 'sentAs' => 'x-cos-grant-read',
  1647. ),
  1648. 'GrantReadACP' => array(
  1649. 'type' => 'string',
  1650. 'location' => 'header',
  1651. 'sentAs' => 'x-cos-grant-read-acp',
  1652. ),
  1653. 'GrantWrite' => array(
  1654. 'type' => 'string',
  1655. 'location' => 'header',
  1656. 'sentAs' => 'x-cos-grant-write',
  1657. ),
  1658. 'GrantWriteACP' => array(
  1659. 'type' => 'string',
  1660. 'location' => 'header',
  1661. 'sentAs' => 'x-cos-grant-write-acp',
  1662. ),
  1663. 'ACP' => array(
  1664. 'type' => 'object',
  1665. 'additionalProperties' => true,
  1666. ),
  1667. ),
  1668. ),
  1669. // 设置存储桶(Bucket)的跨域配置信息
  1670. 'PutBucketCors' => array(
  1671. 'httpMethod' => 'PUT',
  1672. 'uri' => '/{Bucket}?cors',
  1673. 'class' => 'Qcloud\\Cos\\Command',
  1674. 'responseClass' => 'PutBucketCorsOutput',
  1675. 'responseType' => 'model',
  1676. 'data' => array(
  1677. 'xmlRoot' => array(
  1678. 'name' => 'CORSConfiguration',
  1679. ),
  1680. 'contentMd5' => true,
  1681. ),
  1682. 'parameters' => array(
  1683. 'Bucket' => array(
  1684. 'required' => true,
  1685. 'type' => 'string',
  1686. 'location' => 'uri',
  1687. ),
  1688. 'CORSRules' => array(
  1689. 'required' => true,
  1690. 'type' => 'array',
  1691. 'location' => 'xml',
  1692. 'data' => array(
  1693. 'xmlFlattened' => true,
  1694. ),
  1695. 'items' => array(
  1696. 'name' => 'CORSRule',
  1697. 'type' => 'object',
  1698. 'sentAs' => 'CORSRule',
  1699. 'properties' => array(
  1700. 'ID' => array(
  1701. 'type' => 'string',
  1702. ),
  1703. 'AllowedHeaders' => array(
  1704. 'type' => 'array',
  1705. 'data' => array(
  1706. 'xmlFlattened' => true,
  1707. ),
  1708. 'items' => array(
  1709. 'name' => 'AllowedHeader',
  1710. 'type' => 'string',
  1711. 'sentAs' => 'AllowedHeader',
  1712. ),
  1713. ),
  1714. 'AllowedMethods' => array(
  1715. 'required' => true,
  1716. 'type' => 'array',
  1717. 'data' => array(
  1718. 'xmlFlattened' => true,
  1719. ),
  1720. 'items' => array(
  1721. 'name' => 'AllowedMethod',
  1722. 'type' => 'string',
  1723. 'sentAs' => 'AllowedMethod',
  1724. ),
  1725. ),
  1726. 'AllowedOrigins' => array(
  1727. 'required' => true,
  1728. 'type' => 'array',
  1729. 'data' => array(
  1730. 'xmlFlattened' => true,
  1731. ),
  1732. 'items' => array(
  1733. 'name' => 'AllowedOrigin',
  1734. 'type' => 'string',
  1735. 'sentAs' => 'AllowedOrigin',
  1736. ),
  1737. ),
  1738. 'ExposeHeaders' => array(
  1739. 'type' => 'array',
  1740. 'data' => array(
  1741. 'xmlFlattened' => true,
  1742. ),
  1743. 'items' => array(
  1744. 'name' => 'ExposeHeader',
  1745. 'type' => 'string',
  1746. 'sentAs' => 'ExposeHeader',
  1747. ),
  1748. ),
  1749. 'MaxAgeSeconds' => array(
  1750. 'type' => 'numeric',
  1751. ),
  1752. ),
  1753. ),
  1754. ),
  1755. ),
  1756. ),
  1757. // 设置存储桶(Bucket)的Domain信息
  1758. 'PutBucketDomain' => array(
  1759. 'httpMethod' => 'PUT',
  1760. 'uri' => '/{Bucket}?domain',
  1761. 'class' => 'Qcloud\\Cos\\Command',
  1762. 'responseClass' => 'PutBucketDomainOutput',
  1763. 'responseType' => 'model',
  1764. 'data' => array(
  1765. 'xmlRoot' => array(
  1766. 'name' => 'DomainConfiguration',
  1767. ),
  1768. 'contentMd5' => true,
  1769. ),
  1770. 'parameters' => array(
  1771. 'Bucket' => array(
  1772. 'required' => true,
  1773. 'type' => 'string',
  1774. 'location' => 'uri',
  1775. ),
  1776. 'DomainRules' => array(
  1777. 'required' => true,
  1778. 'type' => 'array',
  1779. 'location' => 'xml',
  1780. 'data' => array(
  1781. 'xmlFlattened' => true,
  1782. ),
  1783. 'items' => array(
  1784. 'name' => 'DomainRule',
  1785. 'type' => 'object',
  1786. 'sentAs' => 'DomainRule',
  1787. 'properties' => array(
  1788. 'Status' => array(
  1789. 'required' => true,
  1790. 'type' => 'string',
  1791. ),
  1792. 'Name' => array(
  1793. 'required' => true,
  1794. 'type' => 'string',
  1795. ),
  1796. 'Type' => array(
  1797. 'required' => true,
  1798. 'type' => 'string',
  1799. ),
  1800. 'ForcedReplacement' => array(
  1801. 'type' => 'string',
  1802. ),
  1803. ),
  1804. ),
  1805. ),
  1806. ),
  1807. ),
  1808. // 设置存储桶(Bucket)生命周期配置
  1809. 'PutBucketLifecycle' => array(
  1810. 'httpMethod' => 'PUT',
  1811. 'uri' => '/{Bucket}?lifecycle',
  1812. 'class' => 'Qcloud\\Cos\\Command',
  1813. 'responseClass' => 'PutBucketLifecycleOutput',
  1814. 'responseType' => 'model',
  1815. 'data' => array(
  1816. 'xmlRoot' => array(
  1817. 'name' => 'LifecycleConfiguration',
  1818. ),
  1819. 'contentMd5' => true,
  1820. ),
  1821. 'parameters' => array(
  1822. 'Bucket' => array(
  1823. 'required' => true,
  1824. 'type' => 'string',
  1825. 'location' => 'uri',
  1826. ),
  1827. 'Rules' => array(
  1828. 'required' => true,
  1829. 'type' => 'array',
  1830. 'location' => 'xml',
  1831. 'data' => array(
  1832. 'xmlFlattened' => true,
  1833. ),
  1834. 'items' => array(
  1835. 'name' => 'Rule',
  1836. 'type' => 'object',
  1837. 'sentAs' => 'Rule',
  1838. 'properties' => array(
  1839. 'Expiration' => array(
  1840. 'type' => 'object',
  1841. 'properties' => array(
  1842. 'Date' => array(
  1843. 'type' => array(
  1844. 'object',
  1845. 'string',
  1846. 'integer',
  1847. ),
  1848. 'format' => 'date-time',
  1849. ),
  1850. 'Days' => array(
  1851. 'type' => 'numeric',
  1852. ),
  1853. ),
  1854. ),
  1855. 'ID' => array(
  1856. 'type' => 'string',
  1857. ),
  1858. 'Filter' => array(
  1859. 'type' => 'object',
  1860. 'require' => true,
  1861. 'properties' => array(
  1862. 'Prefix' => array(
  1863. 'type' => 'string',
  1864. 'require' => true,
  1865. ),
  1866. 'Tag' => array(
  1867. 'type' => 'object',
  1868. 'require' => true,
  1869. 'properties' => array(
  1870. 'Key' => array(
  1871. 'type' => 'string'
  1872. ),
  1873. 'filters' => array(
  1874. 'Qcloud\\Cos\\Client::explodeKey'),
  1875. 'Value' => array(
  1876. 'type' => 'string'
  1877. ),
  1878. )
  1879. )
  1880. ),
  1881. ),
  1882. 'Status' => array(
  1883. 'required' => true,
  1884. 'type' => 'string',
  1885. ),
  1886. 'Transitions' => array(
  1887. 'type' => 'array',
  1888. 'location' => 'xml',
  1889. 'data' => array(
  1890. 'xmlFlattened' => true,
  1891. ),
  1892. 'items' => array(
  1893. 'name' => 'Transition',
  1894. 'type' => 'object',
  1895. 'sentAs' => 'Transition',
  1896. 'properties' => array(
  1897. 'Date' => array(
  1898. 'type' => array(
  1899. 'object',
  1900. 'string',
  1901. 'integer',
  1902. ),
  1903. 'format' => 'date-time',
  1904. ),
  1905. 'Days' => array(
  1906. 'type' => 'numeric',
  1907. ),
  1908. 'StorageClass' => array(
  1909. 'type' => 'string',
  1910. )))),
  1911. 'NoncurrentVersionTransition' => array(
  1912. 'type' => 'object',
  1913. 'properties' => array(
  1914. 'NoncurrentDays' => array(
  1915. 'type' => 'numeric',
  1916. ),
  1917. 'StorageClass' => array(
  1918. 'type' => 'string',
  1919. ),
  1920. ),
  1921. ),
  1922. 'NoncurrentVersionExpiration' => array(
  1923. 'type' => 'object',
  1924. 'properties' => array(
  1925. 'NoncurrentDays' => array(
  1926. 'type' => 'numeric',
  1927. ),
  1928. ),
  1929. ),
  1930. ),
  1931. ),
  1932. ),
  1933. ),
  1934. ),
  1935. // 存储桶(Bucket)版本控制
  1936. 'PutBucketVersioning' => array(
  1937. 'httpMethod' => 'PUT',
  1938. 'uri' => '/{Bucket}?versioning',
  1939. 'class' => 'Qcloud\\Cos\\Command',
  1940. 'responseClass' => 'PutBucketVersioningOutput',
  1941. 'responseType' => 'model',
  1942. 'data' => array(
  1943. 'xmlRoot' => array(
  1944. 'name' => 'VersioningConfiguration',
  1945. ),
  1946. ),
  1947. 'parameters' => array(
  1948. 'Bucket' => array(
  1949. 'required' => true,
  1950. 'type' => 'string',
  1951. 'location' => 'uri',
  1952. ),
  1953. 'MFA' => array(
  1954. 'type' => 'string',
  1955. 'location' => 'header',
  1956. 'sentAs' => 'x-cos-mfa',
  1957. ),
  1958. 'MFADelete' => array(
  1959. 'type' => 'string',
  1960. 'location' => 'xml',
  1961. 'sentAs' => 'MfaDelete',
  1962. ),
  1963. 'Status' => array(
  1964. 'type' => 'string',
  1965. 'location' => 'xml',
  1966. ),
  1967. ),
  1968. ),
  1969. // 配置存储桶(Bucket)Accelerate
  1970. 'PutBucketAccelerate' => array(
  1971. 'httpMethod' => 'PUT',
  1972. 'uri' => '/{Bucket}?accelerate',
  1973. 'class' => 'Qcloud\\Cos\\Command',
  1974. 'responseClass' => 'PutBucketAccelerateOutput',
  1975. 'responseType' => 'model',
  1976. 'data' => array(
  1977. 'xmlRoot' => array(
  1978. 'name' => 'AccelerateConfiguration',
  1979. ),
  1980. 'xmlAllowEmpty' => true,
  1981. ),
  1982. 'parameters' => array(
  1983. 'Bucket' => array(
  1984. 'required' => true,
  1985. 'type' => 'string',
  1986. 'location' => 'uri',
  1987. ),
  1988. 'Status' => array(
  1989. 'required' => true,
  1990. 'type' => 'string',
  1991. 'location' => 'xml',
  1992. )
  1993. ),
  1994. ),
  1995. // 配置存储桶(Bucket)website
  1996. 'PutBucketWebsite' => array(
  1997. 'httpMethod' => 'PUT',
  1998. 'uri' => '/{Bucket}?website',
  1999. 'class' => 'Qcloud\\Cos\\Command',
  2000. 'responseClass' => 'PutBucketWebsiteOutput',
  2001. 'responseType' => 'model',
  2002. 'data' => array(
  2003. 'xmlRoot' => array(
  2004. 'name' => 'WebsiteConfiguration',
  2005. ),
  2006. 'xmlAllowEmpty' => true,
  2007. ),
  2008. 'parameters' => array(
  2009. 'Bucket' => array(
  2010. 'required' => true,
  2011. 'type' => 'string',
  2012. 'location' => 'uri',
  2013. ),
  2014. 'ErrorDocument' => array(
  2015. 'type' => 'object',
  2016. 'location' => 'xml',
  2017. 'properties' => array(
  2018. 'Key' => array(
  2019. 'type' => 'string',
  2020. 'minLength' => 1,
  2021. ),
  2022. ),
  2023. ),
  2024. 'IndexDocument' => array(
  2025. 'required' => true,
  2026. 'type' => 'object',
  2027. 'location' => 'xml',
  2028. 'properties' => array(
  2029. 'Suffix' => array(
  2030. 'required' => true,
  2031. 'type' => 'string',
  2032. ),
  2033. ),
  2034. ),
  2035. 'RedirectAllRequestsTo' => array(
  2036. 'type' => 'object',
  2037. 'location' => 'xml',
  2038. 'properties' => array(
  2039. 'HostName' => array(
  2040. 'type' => 'string',
  2041. ),
  2042. 'Protocol' => array(
  2043. 'type' => 'string',
  2044. ),
  2045. ),
  2046. ),
  2047. 'RoutingRules' => array(
  2048. 'type' => 'array',
  2049. 'location' => 'xml',
  2050. 'items' => array(
  2051. 'name' => 'RoutingRule',
  2052. 'type' => 'object',
  2053. 'properties' => array(
  2054. 'Condition' => array(
  2055. 'type' => 'object',
  2056. 'properties' => array(
  2057. 'HttpErrorCodeReturnedEquals' => array(
  2058. 'type' => 'string',
  2059. ),
  2060. 'KeyPrefixEquals' => array(
  2061. 'type' => 'string',
  2062. ),
  2063. ),
  2064. ),
  2065. 'Redirect' => array(
  2066. 'type' => 'object',
  2067. 'properties' => array(
  2068. 'HostName' => array(
  2069. 'type' => 'string',
  2070. ),
  2071. 'HttpRedirectCode' => array(
  2072. 'type' => 'string',
  2073. ),
  2074. 'Protocol' => array(
  2075. 'type' => 'string',
  2076. ),
  2077. 'ReplaceKeyPrefixWith' => array(
  2078. 'type' => 'string',
  2079. ),
  2080. 'ReplaceKeyWith' => array(
  2081. 'type' => 'string',
  2082. ),
  2083. ),
  2084. ),
  2085. ),
  2086. ),
  2087. ),
  2088. ),
  2089. ),
  2090. // 配置存储桶(Bucket)跨区域复制
  2091. 'PutBucketReplication' => array(
  2092. 'httpMethod' => 'PUT',
  2093. 'uri' => '/{Bucket}?replication',
  2094. 'class' => 'Qcloud\\Cos\\Command',
  2095. 'responseClass' => 'PutBucketReplicationOutput',
  2096. 'responseType' => 'model',
  2097. 'data' => array(
  2098. 'xmlRoot' => array(
  2099. 'name' => 'ReplicationConfiguration',
  2100. ),
  2101. 'contentMd5' => true,
  2102. ),
  2103. 'parameters' => array(
  2104. 'Bucket' => array(
  2105. 'required' => true,
  2106. 'type' => 'string',
  2107. 'location' => 'uri',
  2108. ),
  2109. 'Role' => array(
  2110. 'required' => true,
  2111. 'type' => 'string',
  2112. 'location' => 'xml',
  2113. ),
  2114. 'Rules' => array(
  2115. 'required' => true,
  2116. 'type' => 'array',
  2117. 'location' => 'xml',
  2118. 'data' => array(
  2119. 'xmlFlattened' => true,
  2120. ),
  2121. 'items' => array(
  2122. 'name' => 'ReplicationRule',
  2123. 'type' => 'object',
  2124. 'sentAs' => 'Rule',
  2125. 'properties' => array(
  2126. 'ID' => array(
  2127. 'type' => 'string',
  2128. ),
  2129. 'Prefix' => array(
  2130. 'required' => true,
  2131. 'type' => 'string',
  2132. ),
  2133. 'Status' => array(
  2134. 'required' => true,
  2135. 'type' => 'string',
  2136. ),
  2137. 'Destination' => array(
  2138. 'required' => true,
  2139. 'type' => 'object',
  2140. 'properties' => array(
  2141. 'Bucket' => array(
  2142. 'required' => true,
  2143. 'type' => 'string',
  2144. ),
  2145. 'StorageClass' => array(
  2146. 'type' => 'string',
  2147. ),
  2148. ),
  2149. ),
  2150. ),
  2151. ),
  2152. ),
  2153. ),
  2154. ),
  2155. // 设置存储桶(Bucket)的回调设置
  2156. 'PutBucketNotification' => array(
  2157. 'httpMethod' => 'PUT',
  2158. 'uri' => '/{Bucket}?notification',
  2159. 'class' => 'Qcloud\\Cos\\Command',
  2160. 'responseClass' => 'PutBucketNotificationOutput',
  2161. 'responseType' => 'model',
  2162. 'data' => array(
  2163. 'xmlRoot' => array(
  2164. 'name' => 'NotificationConfiguration',
  2165. ),
  2166. ),
  2167. 'parameters' => array(
  2168. 'Bucket' => array(
  2169. 'required' => true,
  2170. 'type' => 'string',
  2171. 'location' => 'uri',
  2172. ),
  2173. 'CloudFunctionConfigurations' => array(
  2174. 'type' => 'array',
  2175. 'location' => 'xml',
  2176. 'data' => array(
  2177. 'xmlFlattened' => true,
  2178. ),
  2179. 'items' => array(
  2180. 'name' => 'CloudFunctionConfiguration',
  2181. 'type' => 'object',
  2182. 'sentAs' => 'CloudFunctionConfiguration',
  2183. 'properties' => array(
  2184. 'Id' => array(
  2185. 'type' => 'string',
  2186. ),
  2187. 'CloudFunction' => array(
  2188. 'required' => true,
  2189. 'type' => 'string',
  2190. 'sentAs' => 'CloudFunction',
  2191. ),
  2192. 'Events' => array(
  2193. 'required' => true,
  2194. 'type' => 'array',
  2195. 'data' => array(
  2196. 'xmlFlattened' => true,
  2197. ),
  2198. 'items' => array(
  2199. 'name' => 'Event',
  2200. 'type' => 'string',
  2201. 'sentAs' => 'Event',
  2202. ),
  2203. ),
  2204. 'Filter' => array(
  2205. 'type' => 'object',
  2206. 'properties' => array(
  2207. 'Key' => array(
  2208. 'type' => 'object',
  2209. 'sentAs' => 'Key',
  2210. 'properties' => array(
  2211. 'FilterRules' => array(
  2212. 'type' => 'array',
  2213. 'data' => array(
  2214. 'xmlFlattened' => true,
  2215. ),
  2216. 'items' => array(
  2217. 'name' => 'FilterRule',
  2218. 'type' => 'object',
  2219. 'sentAs' => 'FilterRule',
  2220. 'properties' => array(
  2221. 'Name' => array(
  2222. 'type' => 'string',
  2223. ),
  2224. 'Value' => array(
  2225. 'type' => 'string',
  2226. ),
  2227. ),
  2228. ),
  2229. ),
  2230. ),
  2231. ),
  2232. 'filters' => array(
  2233. 'Qcloud\\Cos\\Client::explodeKey')
  2234. ),
  2235. ),
  2236. ),
  2237. ),
  2238. ),
  2239. ),
  2240. ),
  2241. // 配置存储桶(Bucket)标签
  2242. 'PutBucketTagging' => array(
  2243. 'httpMethod' => 'PUT',
  2244. 'uri' => '/{Bucket}?tagging',
  2245. 'class' => 'Qcloud\\Cos\\Command',
  2246. 'responseClass' => 'PutBucketTaggingOutput',
  2247. 'responseType' => 'model',
  2248. 'data' => array(
  2249. 'xmlRoot' => array(
  2250. 'name' => 'Tagging',
  2251. ),
  2252. 'contentMd5' => true,
  2253. ),
  2254. 'parameters' => array(
  2255. 'Bucket' => array(
  2256. 'required' => true,
  2257. 'type' => 'string',
  2258. 'location' => 'uri',
  2259. ),
  2260. 'TagSet' => array(
  2261. 'required' => true,
  2262. 'type' => 'array',
  2263. 'location' => 'xml',
  2264. 'items' => array(
  2265. 'name' => 'TagRule',
  2266. 'type' => 'object',
  2267. 'sentAs' => 'Tag',
  2268. 'properties' => array(
  2269. 'Key' => array(
  2270. 'required' => true,
  2271. 'type' => 'string',
  2272. ),
  2273. 'Value' => array(
  2274. 'required' => true,
  2275. 'type' => 'string',
  2276. ),
  2277. ),
  2278. ),
  2279. ),
  2280. ),
  2281. ),
  2282. //开启存储桶(Bucket)日志服务
  2283. 'PutBucketLogging' => array(
  2284. 'httpMethod' => 'PUT',
  2285. 'uri' => '/{Bucket}?logging',
  2286. 'class' => 'Qcloud\\Cos\\Command',
  2287. 'responseClass' => 'PutBucketLoggingOutput',
  2288. 'responseType' => 'model',
  2289. 'data' => array(
  2290. 'xmlRoot' => array(
  2291. 'name' => 'BucketLoggingStatus',
  2292. ),
  2293. 'contentMd5' => true,
  2294. ),
  2295. 'parameters' => array(
  2296. 'Bucket' => array(
  2297. 'required' => true,
  2298. 'type' => 'string',
  2299. 'location' => 'uri',
  2300. ),
  2301. 'LoggingEnabled' => array(
  2302. 'location' => 'xml',
  2303. 'type' => 'object',
  2304. 'properties' => array(
  2305. 'TargetBucket' => array(
  2306. 'type' => 'string',
  2307. 'location' => 'xml',
  2308. ),
  2309. 'TargetPrefix' => array(
  2310. 'type' => 'string',
  2311. 'location' => 'xml',
  2312. ),
  2313. )
  2314. ),
  2315. ),
  2316. ),
  2317. // 配置存储桶(Bucket)清单
  2318. 'PutBucketInventory' => array(
  2319. 'httpMethod' => 'PUT',
  2320. 'uri' => '/{Bucket}?inventory',
  2321. 'class' => 'Qcloud\\Cos\\Command',
  2322. 'responseClass' => 'PutBucketInventoryOutput',
  2323. 'responseType' => 'model',
  2324. 'data' => array(
  2325. 'xmlRoot' => array(
  2326. 'name' => 'InventoryConfiguration',
  2327. ),
  2328. 'contentMd5' => true,
  2329. ),
  2330. 'parameters' => array(
  2331. 'Bucket' => array(
  2332. 'required' => true,
  2333. 'type' => 'string',
  2334. 'location' => 'uri',
  2335. ),
  2336. 'Id' => array(
  2337. 'required' => true,
  2338. 'type' => 'string',
  2339. 'location' => 'xml',
  2340. ),
  2341. 'IsEnabled' => array(
  2342. 'required' => true,
  2343. 'type' => 'string',
  2344. 'location' => 'xml',
  2345. ),
  2346. 'Destination' => array(
  2347. 'type' => 'object',
  2348. 'location' => 'xml',
  2349. 'properties' => array(
  2350. 'COSBucketDestination'=> array(
  2351. 'type' => 'object',
  2352. 'properties' => array(
  2353. 'Format' => array(
  2354. 'type' => 'string',
  2355. 'require' => true,
  2356. ),
  2357. 'AccountId' => array(
  2358. 'type' => 'string',
  2359. 'require' => true,
  2360. ),
  2361. 'Bucket' => array(
  2362. 'type' => 'string',
  2363. 'require' => true,
  2364. ),
  2365. 'Prefix' => array(
  2366. 'type' => 'string',
  2367. ),
  2368. 'Encryption' => array(
  2369. 'type' => 'object',
  2370. 'properties' => array(
  2371. 'SSE-COS' => array(
  2372. 'type' => 'string',
  2373. ),
  2374. ),
  2375. ),
  2376. ),
  2377. ),
  2378. ),
  2379. ),
  2380. 'Schedule' => array(
  2381. 'required' => true,
  2382. 'type' => 'object',
  2383. 'location' => 'xml',
  2384. 'properties' => array(
  2385. 'Frequency' => array(
  2386. 'type' => 'string',
  2387. 'require' => true,
  2388. ),
  2389. )
  2390. ),
  2391. 'Filter' => array(
  2392. 'type' => 'object',
  2393. 'location' => 'xml',
  2394. 'properties' => array(
  2395. 'Prefix' => array(
  2396. 'type' => 'string',
  2397. ),
  2398. )
  2399. ),
  2400. 'IncludedObjectVersions' => array(
  2401. 'required' => true,
  2402. 'type' => 'string',
  2403. 'location' => 'xml',
  2404. ),
  2405. 'OptionalFields' => array(
  2406. 'type' => 'array',
  2407. 'location' => 'xml',
  2408. 'items' => array(
  2409. 'name' => 'Fields',
  2410. 'type' => 'string',
  2411. 'sentAs' => 'Field',
  2412. ),
  2413. ),
  2414. ),
  2415. ),
  2416. // 回热归档对象
  2417. 'RestoreObject' => array(
  2418. 'httpMethod' => 'POST',
  2419. 'uri' => '/{Bucket}{/Key*}?restore',
  2420. 'class' => 'Qcloud\\Cos\\Command',
  2421. 'responseClass' => 'RestoreObjectOutput',
  2422. 'responseType' => 'model',
  2423. 'data' => array(
  2424. 'xmlRoot' => array(
  2425. 'name' => 'RestoreRequest',
  2426. ),
  2427. ),
  2428. 'parameters' => array(
  2429. 'Bucket' => array(
  2430. 'required' => true,
  2431. 'type' => 'string',
  2432. 'location' => 'uri',
  2433. ),
  2434. 'Key' => array(
  2435. 'required' => true,
  2436. 'type' => 'string',
  2437. 'location' => 'uri',
  2438. 'minLength' => 1,
  2439. 'filters' => array(
  2440. 'Qcloud\\Cos\\Client::explodeKey')
  2441. ),
  2442. 'VersionId' => array(
  2443. 'type' => 'string',
  2444. 'location' => 'query',
  2445. 'sentAs' => 'versionId',
  2446. ),
  2447. 'Days' => array(
  2448. 'required' => true,
  2449. 'type' => 'numeric',
  2450. 'location' => 'xml',
  2451. ),
  2452. 'CASJobParameters' => array(
  2453. 'type' => 'object',
  2454. 'location' => 'xml',
  2455. 'properties' => array(
  2456. 'Tier' => array(
  2457. 'type' => 'string',
  2458. 'required' => true,
  2459. ),
  2460. ),
  2461. ),
  2462. 'RequestPayer' => array(
  2463. 'type' => 'string',
  2464. 'location' => 'header',
  2465. 'sentAs' => 'x-cos-request-payer',
  2466. ),
  2467. ),
  2468. ),
  2469. // 查询存储桶(Bucket)中正在进行中的分块上传对象
  2470. 'ListParts' => array(
  2471. 'httpMethod' => 'GET',
  2472. 'uri' => '/{Bucket}{/Key*}',
  2473. 'class' => 'Qcloud\\Cos\\Command',
  2474. 'responseClass' => 'ListPartsOutput',
  2475. 'responseType' => 'model',
  2476. 'parameters' => array(
  2477. 'Bucket' => array(
  2478. 'required' => true,
  2479. 'type' => 'string',
  2480. 'location' => 'uri'
  2481. ),
  2482. 'Key' => array(
  2483. 'required' => true,
  2484. 'type' => 'string',
  2485. 'location' => 'uri',
  2486. 'minLength' => 1,
  2487. 'filters' => array(
  2488. 'Qcloud\\Cos\\Client::explodeKey'
  2489. )
  2490. ),
  2491. 'MaxParts' => array(
  2492. 'type' => 'numeric',
  2493. 'location' => 'query',
  2494. 'sentAs' => 'max-parts'),
  2495. 'PartNumberMarker' => array(
  2496. 'type' => 'numeric',
  2497. 'location' => 'query',
  2498. 'sentAs' => 'part-number-marker'
  2499. ),
  2500. 'UploadId' => array(
  2501. 'required' => true,
  2502. 'type' => 'string',
  2503. 'location' => 'query',
  2504. 'sentAs' => 'uploadId'
  2505. )
  2506. )
  2507. ),
  2508. // 查询存储桶(Bucket)下的部分或者全部对象
  2509. 'ListObjects' => array(
  2510. 'httpMethod' => 'GET',
  2511. 'uri' => '/{Bucket}',
  2512. 'class' => 'Qcloud\\Cos\\Command',
  2513. 'responseClass' => 'ListObjectsOutput',
  2514. 'responseType' => 'model',
  2515. 'parameters' => array(
  2516. 'Bucket' => array(
  2517. 'required' => true,
  2518. 'type' => 'string',
  2519. 'location' => 'uri'
  2520. ),
  2521. 'Delimiter' => array(
  2522. 'type' => 'string',
  2523. 'location' => 'query',
  2524. 'sentAs' => 'delimiter'
  2525. ),
  2526. 'EncodingType' => array(
  2527. 'type' => 'string',
  2528. 'location' => 'query',
  2529. 'sentAs' => 'encoding-type'
  2530. ),
  2531. 'Marker' => array(
  2532. 'type' => 'string',
  2533. 'location' => 'query',
  2534. 'sentAs' => 'marker'
  2535. ),
  2536. 'MaxKeys' => array(
  2537. 'type' => 'numeric',
  2538. 'location' => 'query',
  2539. 'sentAs' => 'max-keys'
  2540. ),
  2541. 'Prefix' => array(
  2542. 'type' => 'string',
  2543. 'location' => 'query',
  2544. 'sentAs' => 'prefix'
  2545. )
  2546. )
  2547. ),
  2548. // 获取所属账户的所有存储空间列表
  2549. 'ListBuckets' => array(
  2550. 'httpMethod' => 'GET',
  2551. 'uri' => '/',
  2552. 'class' => 'Qcloud\\Cos\\Command',
  2553. 'responseClass' => 'ListBucketsOutput',
  2554. 'responseType' => 'model',
  2555. 'parameters' => array(
  2556. ),
  2557. ),
  2558. // 获取多版本对象
  2559. 'ListObjectVersions' => array(
  2560. 'httpMethod' => 'GET',
  2561. 'uri' => '/{Bucket}?versions',
  2562. 'class' => 'Qcloud\\Cos\\Command',
  2563. 'responseClass' => 'ListObjectVersionsOutput',
  2564. 'responseType' => 'model',
  2565. 'parameters' => array(
  2566. 'Bucket' => array(
  2567. 'required' => true,
  2568. 'type' => 'string',
  2569. 'location' => 'uri',
  2570. ),
  2571. 'Delimiter' => array(
  2572. 'type' => 'string',
  2573. 'location' => 'query',
  2574. 'sentAs' => 'delimiter',
  2575. ),
  2576. 'EncodingType' => array(
  2577. 'type' => 'string',
  2578. 'location' => 'query',
  2579. 'sentAs' => 'encoding-type',
  2580. ),
  2581. 'KeyMarker' => array(
  2582. 'type' => 'string',
  2583. 'location' => 'query',
  2584. 'sentAs' => 'key-marker',
  2585. ),
  2586. 'MaxKeys' => array(
  2587. 'type' => 'numeric',
  2588. 'location' => 'query',
  2589. 'sentAs' => 'max-keys',
  2590. ),
  2591. 'Prefix' => array(
  2592. 'type' => 'string',
  2593. 'location' => 'query',
  2594. 'sentAs' => 'prefix',
  2595. ),
  2596. 'VersionIdMarker' => array(
  2597. 'type' => 'string',
  2598. 'location' => 'query',
  2599. 'sentAs' => 'version-id-marker',
  2600. )
  2601. ),
  2602. ),
  2603. // 获取已上传分块列表
  2604. 'ListMultipartUploads' => array(
  2605. 'httpMethod' => 'GET',
  2606. 'uri' => '/{Bucket}?uploads',
  2607. 'class' => 'Qcloud\\Cos\\Command',
  2608. 'responseClass' => 'ListMultipartUploadsOutput',
  2609. 'responseType' => 'model',
  2610. 'parameters' => array(
  2611. 'Bucket' => array(
  2612. 'required' => true,
  2613. 'type' => 'string',
  2614. 'location' => 'uri',
  2615. ),
  2616. 'Delimiter' => array(
  2617. 'type' => 'string',
  2618. 'location' => 'query',
  2619. 'sentAs' => 'delimiter',
  2620. ),
  2621. 'EncodingType' => array(
  2622. 'type' => 'string',
  2623. 'location' => 'query',
  2624. 'sentAs' => 'encoding-type',
  2625. ),
  2626. 'KeyMarker' => array(
  2627. 'type' => 'string',
  2628. 'location' => 'query',
  2629. 'sentAs' => 'key-marker',
  2630. ),
  2631. 'MaxUploads' => array(
  2632. 'type' => 'numeric',
  2633. 'location' => 'query',
  2634. 'sentAs' => 'max-uploads',
  2635. ),
  2636. 'Prefix' => array(
  2637. 'type' => 'string',
  2638. 'location' => 'query',
  2639. 'sentAs' => 'prefix',
  2640. ),
  2641. 'UploadIdMarker' => array(
  2642. 'type' => 'string',
  2643. 'location' => 'query',
  2644. 'sentAs' => 'upload-id-marker',
  2645. )
  2646. ),
  2647. ),
  2648. // 获取清单列表
  2649. 'ListBucketInventoryConfigurations' => array(
  2650. 'httpMethod' => 'GET',
  2651. 'uri' => '/{Bucket}?inventory',
  2652. 'class' => 'Qcloud\\Cos\\Command',
  2653. 'responseClass' => 'ListBucketInventoryConfigurationsOutput',
  2654. 'responseType' => 'model',
  2655. 'parameters' => array(
  2656. 'Bucket' => array(
  2657. 'required' => true,
  2658. 'type' => 'string',
  2659. 'location' => 'uri'
  2660. ),
  2661. 'ContinuationToken' => array(
  2662. 'type' => 'string',
  2663. 'location' => 'query',
  2664. 'sentAs' => 'continuation-token',
  2665. ),
  2666. ),
  2667. ),
  2668. // 获取对象的meta信息
  2669. 'HeadObject' => array(
  2670. 'httpMethod' => 'HEAD',
  2671. 'uri' => '/{Bucket}{/Key*}',
  2672. 'class' => 'Qcloud\\Cos\\Command',
  2673. 'responseClass' => 'HeadObjectOutput',
  2674. 'responseType' => 'model',
  2675. 'parameters' => array(
  2676. 'Bucket' => array(
  2677. 'required' => true,
  2678. 'type' => 'string',
  2679. 'location' => 'uri',
  2680. ),
  2681. 'IfMatch' => array(
  2682. 'type' => 'string',
  2683. 'location' => 'header',
  2684. 'sentAs' => 'If-Match',
  2685. ),
  2686. 'IfModifiedSince' => array(
  2687. 'type' => array(
  2688. 'object',
  2689. 'string',
  2690. 'integer',
  2691. ),
  2692. 'format' => 'date-time-http',
  2693. 'location' => 'header',
  2694. 'sentAs' => 'If-Modified-Since',
  2695. ),
  2696. 'IfNoneMatch' => array(
  2697. 'type' => 'string',
  2698. 'location' => 'header',
  2699. 'sentAs' => 'If-None-Match',
  2700. ),
  2701. 'IfUnmodifiedSince' => array(
  2702. 'type' => array(
  2703. 'object',
  2704. 'string',
  2705. 'integer',
  2706. ),
  2707. 'format' => 'date-time-http',
  2708. 'location' => 'header',
  2709. 'sentAs' => 'If-Unmodified-Since',
  2710. ),
  2711. 'Key' => array(
  2712. 'required' => true,
  2713. 'type' => 'string',
  2714. 'location' => 'uri',
  2715. 'minLength' => 1,
  2716. 'filters' => array(
  2717. 'Qcloud\\Cos\\Client::explodeKey')
  2718. ),
  2719. 'Range' => array(
  2720. 'type' => 'string',
  2721. 'location' => 'header',
  2722. ),
  2723. 'VersionId' => array(
  2724. 'type' => 'string',
  2725. 'location' => 'query',
  2726. 'sentAs' => 'versionId',
  2727. ),
  2728. 'SSECustomerAlgorithm' => array(
  2729. 'type' => 'string',
  2730. 'location' => 'header',
  2731. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  2732. ),
  2733. 'SSECustomerKey' => array(
  2734. 'type' => 'string',
  2735. 'location' => 'header',
  2736. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  2737. ),
  2738. 'SSECustomerKeyMD5' => array(
  2739. 'type' => 'string',
  2740. 'location' => 'header',
  2741. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  2742. ),
  2743. 'RequestPayer' => array(
  2744. 'type' => 'string',
  2745. 'location' => 'header',
  2746. 'sentAs' => 'x-cos-request-payer',
  2747. ),
  2748. )
  2749. ),
  2750. // 存储桶(Bucket)是否存在
  2751. 'HeadBucket' => array(
  2752. 'httpMethod' => 'HEAD',
  2753. 'uri' => '/{Bucket}',
  2754. 'class' => 'Qcloud\\Cos\\Command',
  2755. 'responseClass' => 'HeadBucketOutput',
  2756. 'responseType' => 'model',
  2757. 'parameters' => array(
  2758. 'Bucket' => array(
  2759. 'required' => true,
  2760. 'type' => 'string',
  2761. 'location' => 'uri',
  2762. ),
  2763. )
  2764. ),
  2765. // 分块copy
  2766. 'UploadPartCopy' => array(
  2767. 'httpMethod' => 'PUT',
  2768. 'uri' => '/{Bucket}{/Key*}',
  2769. 'class' => 'Qcloud\\Cos\\Command',
  2770. 'responseClass' => 'UploadPartCopyOutput',
  2771. 'responseType' => 'model',
  2772. 'data' => array(
  2773. 'xmlRoot' => array(
  2774. 'name' => 'UploadPartCopyRequest',
  2775. ),
  2776. ),
  2777. 'parameters' => array(
  2778. 'Bucket' => array(
  2779. 'required' => true,
  2780. 'type' => 'string',
  2781. 'location' => 'uri',
  2782. ),
  2783. 'CopySource' => array(
  2784. 'required' => true,
  2785. 'type' => 'string',
  2786. 'location' => 'header',
  2787. 'sentAs' => 'x-cos-copy-source',
  2788. ),
  2789. 'CopySourceIfMatch' => array(
  2790. 'type' => 'string',
  2791. 'location' => 'header',
  2792. 'sentAs' => 'x-cos-copy-source-if-match',
  2793. ),
  2794. 'CopySourceIfModifiedSince' => array(
  2795. 'type' => array(
  2796. 'object',
  2797. 'string',
  2798. 'integer',
  2799. ),
  2800. 'format' => 'date-time-http',
  2801. 'location' => 'header',
  2802. 'sentAs' => 'x-cos-copy-source-if-modified-since',
  2803. ),
  2804. 'CopySourceIfNoneMatch' => array(
  2805. 'type' => 'string',
  2806. 'location' => 'header',
  2807. 'sentAs' => 'x-cos-copy-source-if-none-match',
  2808. ),
  2809. 'CopySourceIfUnmodifiedSince' => array(
  2810. 'type' => array(
  2811. 'object',
  2812. 'string',
  2813. 'integer',
  2814. ),
  2815. 'format' => 'date-time-http',
  2816. 'location' => 'header',
  2817. 'sentAs' => 'x-cos-copy-source-if-unmodified-since',
  2818. ),
  2819. 'CopySourceRange' => array(
  2820. 'type' => 'string',
  2821. 'location' => 'header',
  2822. 'sentAs' => 'x-cos-copy-source-range',
  2823. ),
  2824. 'Key' => array(
  2825. 'required' => true,
  2826. 'type' => 'string',
  2827. 'location' => 'uri',
  2828. 'minLength' => 1,
  2829. 'filters' => array(
  2830. 'Qcloud\\Cos\\Client::explodeKey')
  2831. ),
  2832. 'PartNumber' => array(
  2833. 'required' => true,
  2834. 'type' => 'numeric',
  2835. 'location' => 'query',
  2836. 'sentAs' => 'partNumber',
  2837. ),
  2838. 'UploadId' => array(
  2839. 'required' => true,
  2840. 'type' => 'string',
  2841. 'location' => 'query',
  2842. 'sentAs' => 'uploadId',
  2843. ),
  2844. 'SSECustomerAlgorithm' => array(
  2845. 'type' => 'string',
  2846. 'location' => 'header',
  2847. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  2848. ),
  2849. 'SSECustomerKey' => array(
  2850. 'type' => 'string',
  2851. 'location' => 'header',
  2852. 'sentAs' => 'x-cos-server-side-encryption-customer-key',
  2853. ),
  2854. 'SSECustomerKeyMD5' => array(
  2855. 'type' => 'string',
  2856. 'location' => 'header',
  2857. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  2858. ),
  2859. 'CopySourceSSECustomerAlgorithm' => array(
  2860. 'type' => 'string',
  2861. 'location' => 'header',
  2862. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-algorithm',
  2863. ),
  2864. 'CopySourceSSECustomerKey' => array(
  2865. 'type' => 'string',
  2866. 'location' => 'header',
  2867. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-key',
  2868. ),
  2869. 'CopySourceSSECustomerKeyMD5' => array(
  2870. 'type' => 'string',
  2871. 'location' => 'header',
  2872. 'sentAs' => 'x-cos-copy-source-server-side-encryption-customer-key-MD5',
  2873. ),
  2874. 'RequestPayer' => array(
  2875. 'type' => 'string',
  2876. 'location' => 'header',
  2877. 'sentAs' => 'x-cos-request-payer',
  2878. )
  2879. ),
  2880. ),
  2881. // 检索对象内容
  2882. 'SelectObjectContent' => array(
  2883. 'httpMethod' => 'Post',
  2884. 'uri' => '/{/Key*}?select&select-type=2',
  2885. 'class' => 'Qcloud\\Cos\\Command',
  2886. 'responseClass' => 'SelectObjectContentOutput',
  2887. 'responseType' => 'model',
  2888. 'data' => array(
  2889. 'xmlRoot' => array(
  2890. 'name' => 'SelectRequest',
  2891. ),
  2892. 'contentMd5' => true,
  2893. ),
  2894. 'parameters' => array(
  2895. 'Bucket' => array(
  2896. 'required' => true,
  2897. 'type' => 'string',
  2898. 'location' => 'uri',
  2899. ),
  2900. 'Key' => array(
  2901. 'required' => true,
  2902. 'type' => 'string',
  2903. 'location' => 'uri',
  2904. 'minLength' => 1,
  2905. 'filters' => array(
  2906. 'Qcloud\\Cos\\Client::explodeKey')
  2907. ),
  2908. 'Expression' => array(
  2909. 'type' => 'string',
  2910. 'location' => 'xml'
  2911. ),
  2912. 'ExpressionType' => array(
  2913. 'type' => 'string',
  2914. 'location' => 'xml'
  2915. ),
  2916. 'InputSerialization' => array(
  2917. 'location' => 'xml',
  2918. 'type' => 'object',
  2919. 'properties' => array(
  2920. 'CompressionType' => array(
  2921. 'type' => 'string',
  2922. 'location' => 'xml',
  2923. ),
  2924. 'CSV' => array(
  2925. 'type' => 'object',
  2926. 'location' => 'xml',
  2927. 'properties' => array(
  2928. 'FileHeaderInfo' => array(
  2929. 'type' => 'string',
  2930. 'location' => 'xml',
  2931. ),
  2932. 'RecordDelimiter' => array(
  2933. 'type' => 'string',
  2934. 'location' => 'xml',
  2935. ),
  2936. 'FieldDelimiter' => array(
  2937. 'type' => 'string',
  2938. 'location' => 'xml',
  2939. ),
  2940. 'QuoteCharacter' => array(
  2941. 'type' => 'string',
  2942. 'location' => 'xml',
  2943. ),
  2944. 'QuoteEscapeCharacter' => array(
  2945. 'type' => 'string',
  2946. 'location' => 'xml',
  2947. ),
  2948. 'Comments' => array(
  2949. 'type' => 'string',
  2950. 'location' => 'xml',
  2951. ),
  2952. 'AllowQuotedRecordDelimiter' => array(
  2953. 'type' => 'string',
  2954. 'location' => 'xml',
  2955. ),
  2956. )
  2957. ),
  2958. 'JSON' => array(
  2959. 'type' => 'object',
  2960. 'location' => 'xml',
  2961. 'properties' => array(
  2962. 'Type' => array(
  2963. 'type' => 'string',
  2964. 'location' => 'xml',
  2965. )
  2966. )
  2967. ),
  2968. )
  2969. ),
  2970. 'OutputSerialization' => array(
  2971. 'location' => 'xml',
  2972. 'type' => 'object',
  2973. 'properties' => array(
  2974. 'CompressionType' => array(
  2975. 'type' => 'string',
  2976. 'location' => 'xml',
  2977. ),
  2978. 'CSV' => array(
  2979. 'type' => 'object',
  2980. 'location' => 'xml',
  2981. 'properties' => array(
  2982. 'QuoteFields' => array(
  2983. 'type' => 'string',
  2984. 'location' => 'xml',
  2985. ),
  2986. 'RecordDelimiter' => array(
  2987. 'type' => 'string',
  2988. 'location' => 'xml',
  2989. ),
  2990. 'FieldDelimiter' => array(
  2991. 'type' => 'string',
  2992. 'location' => 'xml',
  2993. ),
  2994. 'QuoteCharacter' => array(
  2995. 'type' => 'string',
  2996. 'location' => 'xml',
  2997. ),
  2998. 'QuoteEscapeCharacter' => array(
  2999. 'type' => 'string',
  3000. 'location' => 'xml',
  3001. ),
  3002. )
  3003. ),
  3004. 'JSON' => array(
  3005. 'type' => 'object',
  3006. 'location' => 'xml',
  3007. 'properties' => array(
  3008. 'RecordDelimiter' => array(
  3009. 'type' => 'string',
  3010. 'location' => 'xml',
  3011. )
  3012. )
  3013. ),
  3014. )
  3015. ),
  3016. 'RequestProgress' => array(
  3017. 'location' => 'xml',
  3018. 'type' => 'object',
  3019. 'properties' => array(
  3020. 'Enabled' => array(
  3021. 'type' => 'string',
  3022. 'location' => 'xml',
  3023. ),
  3024. )
  3025. ),
  3026. ),
  3027. ),
  3028. // 存储桶(Bucket)开启智能分层
  3029. 'PutBucketIntelligentTiering' => array(
  3030. 'httpMethod' => 'PUT',
  3031. 'uri' => '/{Bucket}?intelligenttiering',
  3032. 'class' => 'Qcloud\\Cos\\Command',
  3033. 'responseClass' => 'PutBucketIntelligentTieringOutput',
  3034. 'responseType' => 'model',
  3035. 'data' => array(
  3036. 'xmlRoot' => array(
  3037. 'name' => 'IntelligentTieringConfiguration',
  3038. ),
  3039. ),
  3040. 'parameters' => array(
  3041. 'Bucket' => array(
  3042. 'required' => true,
  3043. 'type' => 'string',
  3044. 'location' => 'uri',
  3045. ),
  3046. 'Status' => array(
  3047. 'type' => 'string',
  3048. 'location' => 'xml',
  3049. ),
  3050. 'Transition' => array(
  3051. 'location' => 'xml',
  3052. 'type' => 'object',
  3053. 'properties' => array(
  3054. 'Days' => array(
  3055. 'type' => 'integer',
  3056. 'location' => 'xml',
  3057. ),
  3058. 'RequestFrequent' => array(
  3059. 'type' => 'integer',
  3060. 'location' => 'xml',
  3061. ),
  3062. )
  3063. ),
  3064. ),
  3065. ),
  3066. // 查询存储桶(Bucket)智能分层
  3067. 'GetBucketIntelligentTiering' => array(
  3068. 'httpMethod' => 'GET',
  3069. 'uri' => '/{Bucket}?intelligenttiering',
  3070. 'class' => 'Qcloud\\Cos\\Command',
  3071. 'responseClass' => 'GetBucketIntelligentTieringOutput',
  3072. 'responseType' => 'model',
  3073. 'parameters' => array(
  3074. 'Bucket' => array(
  3075. 'required' => true,
  3076. 'type' => 'string',
  3077. 'location' => 'uri',
  3078. ),
  3079. ),
  3080. ),
  3081. //万象-获取图片基本信息
  3082. 'ImageInfo' => array(
  3083. 'httpMethod' => 'GET',
  3084. 'uri' => '/{Bucket}{/Key*}?imageInfo',
  3085. 'class' => 'Qcloud\\Cos\\Command',
  3086. 'responseClass' => 'ImageInfoOutput',
  3087. 'responseType' => 'model',
  3088. 'parameters' => array(
  3089. 'Bucket' => array(
  3090. 'required' => true,
  3091. 'type' => 'string',
  3092. 'location' => 'uri',
  3093. ),
  3094. 'Key' => array(
  3095. 'required' => true,
  3096. 'type' => 'string',
  3097. 'location' => 'uri',
  3098. 'minLength' => 1,
  3099. 'filters' => array(
  3100. 'Qcloud\\Cos\\Client::explodeKey'
  3101. )
  3102. ),
  3103. )
  3104. ),
  3105. //万象-获取图片EXIF信息
  3106. 'ImageExif' => array(
  3107. 'httpMethod' => 'GET',
  3108. 'uri' => '/{Bucket}{/Key*}?exif',
  3109. 'class' => 'Qcloud\\Cos\\Command',
  3110. 'responseClass' => 'ImageExifOutput',
  3111. 'responseType' => 'model',
  3112. 'parameters' => array(
  3113. 'Bucket' => array(
  3114. 'required' => true,
  3115. 'type' => 'string',
  3116. 'location' => 'uri',
  3117. ),
  3118. 'Key' => array(
  3119. 'required' => true,
  3120. 'type' => 'string',
  3121. 'location' => 'uri',
  3122. 'minLength' => 1,
  3123. 'filters' => array(
  3124. 'Qcloud\\Cos\\Client::explodeKey'
  3125. )
  3126. ),
  3127. )
  3128. ),
  3129. //万象-获取图片主色调信息
  3130. 'ImageAve' => array(
  3131. 'httpMethod' => 'GET',
  3132. 'uri' => '/{Bucket}{/Key*}?imageAve',
  3133. 'class' => 'Qcloud\\Cos\\Command',
  3134. 'responseClass' => 'ImageAveOutput',
  3135. 'responseType' => 'model',
  3136. 'parameters' => array(
  3137. 'Bucket' => array(
  3138. 'required' => true,
  3139. 'type' => 'string',
  3140. 'location' => 'uri',
  3141. ),
  3142. 'Key' => array(
  3143. 'required' => true,
  3144. 'type' => 'string',
  3145. 'location' => 'uri',
  3146. 'minLength' => 1,
  3147. 'filters' => array(
  3148. 'Qcloud\\Cos\\Client::explodeKey'
  3149. )
  3150. ),
  3151. ),
  3152. ),
  3153. //万象-云上数据处理
  3154. 'ImageProcess' => array(
  3155. 'httpMethod' => 'POST',
  3156. 'uri' => '/{Bucket}{/Key*}?image_process',
  3157. 'class' => 'Qcloud\\Cos\\Command',
  3158. 'responseClass' => 'ImageProcessOutput',
  3159. 'responseType' => 'model',
  3160. 'parameters' => array(
  3161. 'Bucket' => array(
  3162. 'required' => true,
  3163. 'type' => 'string',
  3164. 'location' => 'uri',
  3165. ),
  3166. 'Key' => array(
  3167. 'required' => true,
  3168. 'type' => 'string',
  3169. 'location' => 'uri',
  3170. 'minLength' => 1,
  3171. 'filters' => array(
  3172. 'Qcloud\\Cos\\Client::explodeKey'
  3173. )
  3174. ),
  3175. 'ContentType' => array(
  3176. 'type' => 'string',
  3177. 'location' => 'header',
  3178. 'sentAs' => 'Content-Type',
  3179. ),
  3180. 'PicOperations' => array(
  3181. 'type' => 'string',
  3182. 'location' => 'header',
  3183. 'sentAs' => 'Pic-Operations',
  3184. ),
  3185. ),
  3186. ),
  3187. //万象-二维码下载时识别
  3188. 'Qrcode' => array(
  3189. 'httpMethod' => 'GET',
  3190. 'uri' => '/{Bucket}{/Key*}?ci-process=QRcode',
  3191. 'class' => 'Qcloud\\Cos\\Command',
  3192. 'responseClass' => 'QrcodeOutput',
  3193. 'responseType' => 'model',
  3194. 'parameters' => array(
  3195. 'Bucket' => array(
  3196. 'required' => true,
  3197. 'type' => 'string',
  3198. 'location' => 'uri',
  3199. ),
  3200. 'Key' => array(
  3201. 'required' => true,
  3202. 'type' => 'string',
  3203. 'location' => 'uri',
  3204. 'minLength' => 1,
  3205. 'filters' => array(
  3206. 'Qcloud\\Cos\\Client::explodeKey'
  3207. )
  3208. ),
  3209. 'Cover' => array(
  3210. 'type' => 'integer',
  3211. 'location' => 'query',
  3212. 'sentAs' => 'cover'
  3213. ),
  3214. ),
  3215. ),
  3216. //万象-二维码生成
  3217. 'QrcodeGenerate' => array(
  3218. 'httpMethod' => 'GET',
  3219. 'uri' => '/{Bucket}?ci-process=qrcode-generate',
  3220. 'class' => 'Qcloud\\Cos\\Command',
  3221. 'responseClass' => 'QrcodeGenerateOutput',
  3222. 'responseType' => 'model',
  3223. 'parameters' => array(
  3224. 'Bucket' => array(
  3225. 'required' => true,
  3226. 'type' => 'string',
  3227. 'location' => 'uri',
  3228. ),
  3229. 'QrcodeContent' => array(
  3230. 'required' => true,
  3231. 'type' => 'string',
  3232. 'location' => 'query',
  3233. 'sentAs' => 'qrcode-content'
  3234. ),
  3235. 'QrcodeMode' => array(
  3236. 'type' => 'integer',
  3237. 'location' => 'query',
  3238. 'sentAs' => 'mode'
  3239. ),
  3240. 'QrcodeWidth' => array(
  3241. 'required' => true,
  3242. 'type' => 'string',
  3243. 'location' => 'query',
  3244. 'sentAs' => 'width'
  3245. ),
  3246. ),
  3247. ),
  3248. //万象-图片标签
  3249. 'DetectLabel' => array(
  3250. 'httpMethod' => 'GET',
  3251. 'uri' => '/{Bucket}{/Key*}?ci-process=detect-label',
  3252. 'class' => 'Qcloud\\Cos\\Command',
  3253. 'responseClass' => 'DetectLabelOutput',
  3254. 'responseType' => 'model',
  3255. 'parameters' => array(
  3256. 'Bucket' => array(
  3257. 'required' => true,
  3258. 'type' => 'string',
  3259. 'location' => 'uri',
  3260. ),
  3261. 'Key' => array(
  3262. 'required' => true,
  3263. 'type' => 'string',
  3264. 'location' => 'uri',
  3265. 'minLength' => 1,
  3266. 'filters' => array(
  3267. 'Qcloud\\Cos\\Client::explodeKey'
  3268. )
  3269. ),
  3270. ),
  3271. ),
  3272. //万象-增加样式
  3273. 'PutBucketImageStyle' => array(
  3274. 'httpMethod' => 'PUT',
  3275. 'uri' => '/{Bucket}?style',
  3276. 'class' => 'Qcloud\\Cos\\Command',
  3277. 'responseClass' => 'PutBucketImageStyleOutput',
  3278. 'responseType' => 'model',
  3279. 'data' => array(
  3280. 'xmlRoot' => array(
  3281. 'name' => 'AddStyle',
  3282. ),
  3283. ),
  3284. 'parameters' => array(
  3285. 'StyleName' => array(
  3286. 'type' => 'string',
  3287. 'location' => 'xml',
  3288. ),
  3289. 'StyleBody' => array(
  3290. 'type' => 'string',
  3291. 'location' => 'xml',
  3292. ),
  3293. 'Bucket' => array(
  3294. 'required' => true,
  3295. 'type' => 'string',
  3296. 'location' => 'uri',
  3297. ),
  3298. ),
  3299. ),
  3300. //万象-查询样式
  3301. 'GetBucketImageStyle' => array(
  3302. 'httpMethod' => 'GET',
  3303. 'uri' => '/{Bucket}?style',
  3304. 'class' => 'Qcloud\\Cos\\Command',
  3305. 'responseClass' => 'GetBucketImageStyleOutput',
  3306. 'responseType' => 'model',
  3307. 'data' => array(
  3308. 'xmlRoot' => array(
  3309. 'name' => 'GetStyle',
  3310. ),
  3311. ),
  3312. 'parameters' => array(
  3313. 'Bucket' => array(
  3314. 'required' => true,
  3315. 'type' => 'string',
  3316. 'location' => 'uri',
  3317. ),
  3318. 'StyleName' => array(
  3319. 'type' => 'string',
  3320. 'location' => 'xml',
  3321. ),
  3322. ),
  3323. ),
  3324. //万象-删除样式
  3325. 'DeleteBucketImageStyle' => array(
  3326. 'httpMethod' => 'Delete',
  3327. 'uri' => '/{Bucket}?style',
  3328. 'class' => 'Qcloud\\Cos\\Command',
  3329. 'responseClass' => 'DeleteBucketImageStyleOutput',
  3330. 'responseType' => 'model',
  3331. 'data' => array(
  3332. 'xmlRoot' => array(
  3333. 'name' => 'DeleteStyle',
  3334. ),
  3335. ),
  3336. 'parameters' => array(
  3337. 'StyleName' => array(
  3338. 'type' => 'string',
  3339. 'location' => 'xml',
  3340. ),
  3341. 'Bucket' => array(
  3342. 'required' => true,
  3343. 'type' => 'string',
  3344. 'location' => 'uri',
  3345. ),
  3346. ),
  3347. ),
  3348. //万象-开通Guetzli压缩
  3349. 'PutBucketGuetzli' => array(
  3350. 'httpMethod' => 'PUT',
  3351. 'uri' => '/{Bucket}?guetzli',
  3352. 'class' => 'Qcloud\\Cos\\Command',
  3353. 'responseClass' => 'PutBucketGuetzliOutput',
  3354. 'responseType' => 'model',
  3355. 'parameters' => array(
  3356. 'Bucket' => array(
  3357. 'required' => true,
  3358. 'type' => 'string',
  3359. 'location' => 'uri',
  3360. ),
  3361. ),
  3362. ),
  3363. //万象-查询Guetzli状态
  3364. 'GetBucketGuetzli' => array(
  3365. 'httpMethod' => 'GET',
  3366. 'uri' => '/{Bucket}?guetzli',
  3367. 'class' => 'Qcloud\\Cos\\Command',
  3368. 'responseClass' => 'GetBucketGuetzliOutput',
  3369. 'responseType' => 'model',
  3370. 'parameters' => array(
  3371. 'Bucket' => array(
  3372. 'required' => true,
  3373. 'type' => 'string',
  3374. 'location' => 'uri',
  3375. ),
  3376. ),
  3377. ),
  3378. //万象-关闭Guetzli压缩
  3379. 'DeleteBucketGuetzli' => array(
  3380. 'httpMethod' => 'Delete',
  3381. 'uri' => '/{Bucket}?guetzli',
  3382. 'class' => 'Qcloud\\Cos\\Command',
  3383. 'responseClass' => 'DeleteBucketGuetzliOutput',
  3384. 'responseType' => 'model',
  3385. 'parameters' => array(
  3386. 'Bucket' => array(
  3387. 'required' => true,
  3388. 'type' => 'string',
  3389. 'location' => 'uri',
  3390. ),
  3391. ),
  3392. ),
  3393. //图片审核
  3394. 'GetObjectSensitiveContentRecognition' => array(
  3395. 'httpMethod' => 'GET',
  3396. 'uri' => '/{Bucket}{/Key*}',
  3397. 'class' => 'Qcloud\\Cos\\Command',
  3398. 'responseClass' => 'GetObjectSensitiveContentRecognitionOutput',
  3399. 'responseType' => 'model',
  3400. 'parameters' => array(
  3401. 'Bucket' => array(
  3402. 'required' => true,
  3403. 'type' => 'string',
  3404. 'location' => 'uri',
  3405. ),
  3406. 'ci-process' => array(
  3407. 'required' => true,
  3408. 'type' => 'string',
  3409. 'location' => 'query'
  3410. ),
  3411. 'Key' => array(
  3412. 'required' => true,
  3413. 'type' => 'string',
  3414. 'location' => 'uri',
  3415. 'minLength' => 1,
  3416. 'filters' => array(
  3417. 'Qcloud\\Cos\\Client::explodeKey'
  3418. )
  3419. ),
  3420. 'DetectType' => array(
  3421. 'required' => true,
  3422. 'type' => 'string',
  3423. 'location' => 'query',
  3424. 'sentAs' => 'detect-type'
  3425. ),
  3426. 'DetectUrl' => array(
  3427. 'type' => 'string',
  3428. 'location' => 'query',
  3429. 'sentAs' => 'detect-url'
  3430. ),
  3431. 'Interval' => array(
  3432. 'type' => 'integer',
  3433. 'location' => 'query',
  3434. 'sentAs' => 'interval'
  3435. ),
  3436. 'MaxFrames' => array(
  3437. 'type' => 'integer',
  3438. 'location' => 'query',
  3439. 'sentAs' => 'max-frames'
  3440. ),
  3441. 'BizType' => array(
  3442. 'type' => 'string',
  3443. 'location' => 'query',
  3444. 'sentAs' => 'biz-type'
  3445. )
  3446. ),
  3447. ),
  3448. // 文本审核
  3449. 'DetectText' => array(
  3450. 'httpMethod' => 'POST',
  3451. 'uri' => '/{Bucket}text/auditing',
  3452. 'class' => 'Qcloud\\Cos\\Command',
  3453. 'responseClass' => 'DetectTextOutput',
  3454. 'responseType' => 'model',
  3455. 'data' => array(
  3456. 'xmlRoot' => array(
  3457. 'name' => 'Request',
  3458. ),
  3459. ),
  3460. 'parameters' => array(
  3461. 'Bucket' => array(
  3462. 'required' => true,
  3463. 'type' => 'string',
  3464. 'location' => 'uri',
  3465. ),
  3466. 'Input' => array(
  3467. 'location' => 'xml',
  3468. 'type' => 'object',
  3469. 'properties' => array(
  3470. 'Content' => array(
  3471. 'type' => 'string',
  3472. 'location' => 'xml',
  3473. ),
  3474. 'Object' => array(
  3475. 'type' => 'string',
  3476. 'location' => 'xml',
  3477. ),
  3478. ),
  3479. ),
  3480. 'Conf' => array(
  3481. 'location' => 'xml',
  3482. 'type' => 'object',
  3483. 'properties' => array(
  3484. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  3485. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  3486. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  3487. 'CallbackVersion' => array( 'type' => 'string', 'location' => 'xml', ),
  3488. ),
  3489. ),
  3490. ),
  3491. ),
  3492. //媒体截图
  3493. 'GetSnapshot' => array(
  3494. 'httpMethod' => 'GET',
  3495. 'uri' => '/{Bucket}{/Key*}',
  3496. 'class' => 'Qcloud\\Cos\\Command',
  3497. 'responseClass' => 'GetSnapshotOutput',
  3498. 'responseType' => 'model',
  3499. 'parameters' => array(
  3500. 'Bucket' => array(
  3501. 'required' => true,
  3502. 'type' => 'string',
  3503. 'location' => 'uri',
  3504. ),
  3505. 'Key' => array(
  3506. 'required' => true,
  3507. 'type' => 'string',
  3508. 'location' => 'uri',
  3509. 'minLength' => 1,
  3510. 'filters' => array(
  3511. 'Qcloud\\Cos\\Client::explodeKey'
  3512. )
  3513. ),
  3514. 'Time' => array(
  3515. 'required' => true,
  3516. 'type' => 'numeric',
  3517. 'location' => 'query',
  3518. 'sentAs' => 'time'
  3519. ),
  3520. 'ci-process' => array(
  3521. 'required' => true,
  3522. 'type' => 'string',
  3523. 'location' => 'query'
  3524. ),
  3525. 'Width' => array(
  3526. 'type' => 'integer',
  3527. 'location' => 'query',
  3528. 'sentAs' => 'width'
  3529. ),
  3530. 'Height' => array(
  3531. 'type' => 'integer',
  3532. 'location' => 'query',
  3533. 'sentAs' => 'height'
  3534. ),
  3535. 'Format' => array(
  3536. 'type' => 'string',
  3537. 'location' => 'query',
  3538. 'sentAs' => 'format'
  3539. ),
  3540. 'Rotate' => array(
  3541. 'type' => 'string',
  3542. 'location' => 'query',
  3543. 'sentAs' => 'rotate'
  3544. ),
  3545. 'Mode' => array(
  3546. 'type' => 'string',
  3547. 'location' => 'query',
  3548. 'sentAs' => 'mode'
  3549. )
  3550. ),
  3551. ),
  3552. //添加防盗链
  3553. 'PutBucketReferer' => array(
  3554. 'httpMethod' => 'PUT',
  3555. 'uri' => '/{Bucket}?referer',
  3556. 'class' => 'Qcloud\\Cos\\Command',
  3557. 'responseClass' => 'PutBucketRefererOutput',
  3558. 'responseType' => 'model',
  3559. 'data' => array(
  3560. 'xmlRoot' => array(
  3561. 'name' => 'RefererConfiguration',
  3562. ),
  3563. 'contentMd5' => true,
  3564. ),
  3565. 'parameters' => array(
  3566. 'Bucket' => array(
  3567. 'required' => true,
  3568. 'type' => 'string',
  3569. 'location' => 'uri',
  3570. ),
  3571. 'Status' => array(
  3572. 'required' => true,
  3573. 'type' => 'string',
  3574. 'location' => 'xml',
  3575. ),
  3576. 'RefererType' => array(
  3577. 'required' => true,
  3578. 'type' => 'string',
  3579. 'location' => 'xml',
  3580. ),
  3581. 'EmptyReferConfiguration' => array(
  3582. 'required' => true,
  3583. 'type' => 'string',
  3584. 'location' => 'xml',
  3585. ),
  3586. 'DomainList' => array(
  3587. 'location' => 'xml',
  3588. 'type' => 'object',
  3589. 'properties' => array(
  3590. 'Domains' => array(
  3591. 'type' => 'array',
  3592. 'data' => array(
  3593. 'xmlFlattened' => true,
  3594. ),
  3595. 'items' => array(
  3596. 'name' => 'Domain',
  3597. 'type' => 'string',
  3598. 'sentAs' => 'Domain',
  3599. ),
  3600. )
  3601. )
  3602. ),
  3603. ),
  3604. ),
  3605. //获取防盗链规则
  3606. 'GetBucketReferer' => array(
  3607. 'httpMethod' => 'GET',
  3608. 'uri' => '/{Bucket}?referer',
  3609. 'class' => 'Qcloud\\Cos\\Command',
  3610. 'responseClass' => 'GetBucketRefererOutput',
  3611. 'responseType' => 'model',
  3612. 'data' => array(
  3613. 'xmlRoot' => array(
  3614. 'name' => 'RefererConfiguration',
  3615. ),
  3616. ),
  3617. 'parameters' => array(
  3618. 'Bucket' => array(
  3619. 'required' => true,
  3620. 'type' => 'string',
  3621. 'location' => 'uri'
  3622. )
  3623. )
  3624. ),
  3625. //获取媒体信息
  3626. 'GetMediaInfo' => array(
  3627. 'httpMethod' => 'GET',
  3628. 'uri' => '/{Bucket}{/Key*}',
  3629. 'class' => 'Qcloud\\Cos\\Command',
  3630. 'responseClass' => 'GetMediaInfoOutput',
  3631. 'responseType' => 'model',
  3632. 'parameters' => array(
  3633. 'Bucket' => array(
  3634. 'required' => true,
  3635. 'type' => 'string',
  3636. 'location' => 'uri',
  3637. ),
  3638. 'Key' => array(
  3639. 'required' => true,
  3640. 'type' => 'string',
  3641. 'location' => 'uri',
  3642. 'minLength' => 1,
  3643. 'filters' => array(
  3644. 'Qcloud\\Cos\\Client::explodeKey'
  3645. )
  3646. ),
  3647. 'ci-process' => array(
  3648. 'required' => true,
  3649. 'type' => 'string',
  3650. 'location' => 'query'
  3651. )
  3652. ),
  3653. ),
  3654. 'CreateMediaTranscodeJobs' => Descriptions::CreateMediaTranscodeJobs(), // 媒体转码
  3655. 'CreateMediaSnapshotJobs' => Descriptions::CreateMediaSnapshotJobs(), // 媒体截图
  3656. 'CreateMediaConcatJobs' => Descriptions::CreateMediaConcatJobs(), // 媒体拼接
  3657. 'DetectAudio' => Descriptions::DetectAudio(), // 音频审核
  3658. 'GetDetectAudioResult' => Descriptions::GetDetectAudioResult(), // 主动获取音频审核结果
  3659. 'GetDetectTextResult' => Descriptions::GetDetectTextResult(), // 主动获取文本文件审核结果
  3660. 'DetectVideo' => Descriptions::DetectVideo(), // 视频审核
  3661. 'GetDetectVideoResult' => Descriptions::GetDetectVideoResult(), // 主动获取视频审核结果
  3662. 'DetectDocument' => Descriptions::DetectDocument(), // 文档审核
  3663. 'GetDetectDocumentResult' => Descriptions::GetDetectDocumentResult(), // 主动获取文档审核结果
  3664. 'CreateDocProcessJobs' => Descriptions::CreateDocProcessJobs(), // 提交文档转码任务
  3665. 'DescribeDocProcessQueues' => Descriptions::DescribeDocProcessQueues(), // 查询文档转码队列
  3666. 'DescribeDocProcessJob' => Descriptions::DescribeDocProcessJob(), // 查询文档转码任务
  3667. 'GetDescribeDocProcessJobs' => Descriptions::GetDescribeDocProcessJobs(), // 拉取符合条件的文档转码任务
  3668. 'DetectImage' => Descriptions::DetectImage(), // 图片审核
  3669. 'DetectImages' => Descriptions::DetectImages(), // 图片审核-批量
  3670. ),
  3671. 'models' => array(
  3672. 'AbortMultipartUploadOutput' => array(
  3673. 'type' => 'object',
  3674. 'additionalProperties' => true,
  3675. 'properties' => array(
  3676. 'RequestId' => array(
  3677. 'location' => 'header',
  3678. 'sentAs' => 'x-cos-request-id'
  3679. )
  3680. )
  3681. ),
  3682. 'CreateBucketOutput' => array(
  3683. 'type' => 'object',
  3684. 'additionalProperties' => true,
  3685. 'properties' => array(
  3686. 'Location' => array(
  3687. 'type' => 'string',
  3688. 'location' => 'header'
  3689. ),
  3690. 'RequestId' => array(
  3691. 'location' => 'header',
  3692. 'sentAs' => 'x-cos-request-id'
  3693. )
  3694. )
  3695. ),
  3696. 'CompleteMultipartUploadOutput' => array(
  3697. 'type' => 'object',
  3698. 'additionalProperties' => true,
  3699. 'properties' => array(
  3700. 'Location' => array(
  3701. 'type' => 'string',
  3702. 'location' => 'xml',
  3703. ),
  3704. 'Bucket' => array(
  3705. 'type' => 'string',
  3706. 'location' => 'xml',
  3707. ),
  3708. 'Key' => array(
  3709. 'type' => 'string',
  3710. 'location' => 'xml'
  3711. ),
  3712. 'Expiration' => array(
  3713. 'type' => 'string',
  3714. 'location' => 'header',
  3715. 'sentAs' => 'x-cos-expiration',
  3716. ),
  3717. 'ETag' => array(
  3718. 'type' => 'string',
  3719. 'location' => 'xml',
  3720. ),
  3721. 'ServerSideEncryption' => array(
  3722. 'type' => 'string',
  3723. 'location' => 'header',
  3724. 'sentAs' => 'x-cos-server-side-encryption',
  3725. ),
  3726. 'VersionId' => array(
  3727. 'type' => 'string',
  3728. 'location' => 'header',
  3729. 'sentAs' => 'x-cos-version-id',
  3730. ),
  3731. 'SSEKMSKeyId' => array(
  3732. 'type' => 'string',
  3733. 'location' => 'header',
  3734. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  3735. ),
  3736. 'RequestCharged' => array(
  3737. 'type' => 'string',
  3738. 'location' => 'header',
  3739. 'sentAs' => 'x-cos-request-charged',
  3740. ),
  3741. 'RequestId' => array(
  3742. 'location' => 'header',
  3743. 'sentAs' => 'x-cos-request-id',
  3744. ),
  3745. 'CRC' => array(
  3746. 'type' => 'string',
  3747. 'location' => 'header',
  3748. 'sentAs' => 'x-cos-hash-crc64ecma',
  3749. ),
  3750. 'ImageInfo' => array(
  3751. 'type' => 'object',
  3752. 'location' => 'xml',
  3753. 'properties' => array(
  3754. 'Format' => array(
  3755. 'type' => 'string',
  3756. ),
  3757. 'Width' => array(
  3758. 'type' => 'string',
  3759. ),
  3760. 'Height' => array(
  3761. 'type' => 'string',
  3762. ),
  3763. 'Quality' => array(
  3764. 'type' => 'string',
  3765. ),
  3766. 'Ave' => array(
  3767. 'type' => 'string',
  3768. ),
  3769. 'Orientation' => array(
  3770. 'type' => 'string',
  3771. ),
  3772. ),
  3773. ),
  3774. 'ProcessResults' => array(
  3775. 'type' => 'object',
  3776. 'location' => 'xml',
  3777. 'properties' => array(
  3778. 'Object' => array(
  3779. 'type' => 'array',
  3780. 'items' => array(
  3781. 'type' => 'object',
  3782. 'properties' => array(
  3783. 'Key' => array(
  3784. 'type' => 'string',
  3785. ),
  3786. 'Location' => array(
  3787. 'type' => 'string',
  3788. ),
  3789. 'Format' => array(
  3790. 'type' => 'string',
  3791. ),
  3792. 'Width' => array(
  3793. 'type' => 'string',
  3794. ),
  3795. 'Height' => array(
  3796. 'type' => 'string',
  3797. ),
  3798. 'Size' => array(
  3799. 'type' => 'string',
  3800. ),
  3801. 'Quality' => array(
  3802. 'type' => 'string',
  3803. ),
  3804. 'ETag' => array(
  3805. 'type' => 'string',
  3806. ),
  3807. 'WatermarkStatus' => array(
  3808. 'type' => 'integer',
  3809. ),
  3810. ),
  3811. ),
  3812. ),
  3813. ),
  3814. ),
  3815. ),
  3816. ),
  3817. 'CreateMultipartUploadOutput' => array(
  3818. 'type' => 'object',
  3819. 'additionalProperties' => true,
  3820. 'properties' => array(
  3821. 'Bucket' => array(
  3822. 'type' => 'string',
  3823. 'location' => 'xml',
  3824. 'sentAs' => 'Bucket'
  3825. ),
  3826. 'Key' => array(
  3827. 'type' => 'string',
  3828. 'location' => 'xml'
  3829. ),
  3830. 'UploadId' => array(
  3831. 'type' => 'string',
  3832. 'location' => 'xml'
  3833. ),
  3834. 'ServerSideEncryption' => array(
  3835. 'type' => 'string',
  3836. 'location' => 'header',
  3837. 'sentAs' => 'x-cos-server-side-encryption',
  3838. ),
  3839. 'SSECustomerAlgorithm' => array(
  3840. 'type' => 'string',
  3841. 'location' => 'header',
  3842. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  3843. ),
  3844. 'SSECustomerKeyMD5' => array(
  3845. 'type' => 'string',
  3846. 'location' => 'header',
  3847. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  3848. ),
  3849. 'SSEKMSKeyId' => array(
  3850. 'type' => 'string',
  3851. 'location' => 'header',
  3852. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  3853. ),
  3854. 'RequestCharged' => array(
  3855. 'type' => 'string',
  3856. 'location' => 'header',
  3857. 'sentAs' => 'x-cos-request-charged',
  3858. ),
  3859. 'RequestId' => array(
  3860. 'location' => 'header',
  3861. 'sentAs' => 'x-cos-request-id',
  3862. )
  3863. )
  3864. ),
  3865. 'CopyObjectOutput' => array(
  3866. 'type' => 'object',
  3867. 'additionalProperties' => true,
  3868. 'properties' => array(
  3869. 'ETag' => array(
  3870. 'type' => 'string',
  3871. 'location' => 'xml',
  3872. ),
  3873. 'LastModified' => array(
  3874. 'type' => 'string',
  3875. 'location' => 'xml',
  3876. ),
  3877. 'Expiration' => array(
  3878. 'type' => 'string',
  3879. 'location' => 'header',
  3880. 'sentAs' => 'x-cos-expiration',
  3881. ),
  3882. 'CopySourceVersionId' => array(
  3883. 'type' => 'string',
  3884. 'location' => 'header',
  3885. 'sentAs' => 'x-cos-copy-source-version-id',
  3886. ),
  3887. 'VersionId' => array(
  3888. 'type' => 'string',
  3889. 'location' => 'header',
  3890. 'sentAs' => 'x-cos-version-id',
  3891. ),
  3892. 'ServerSideEncryption' => array(
  3893. 'type' => 'string',
  3894. 'location' => 'header',
  3895. 'sentAs' => 'x-cos-server-side-encryption',
  3896. ),
  3897. 'SSECustomerAlgorithm' => array(
  3898. 'type' => 'string',
  3899. 'location' => 'header',
  3900. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  3901. ),
  3902. 'RequestCharged' => array(
  3903. 'type' => 'string',
  3904. 'location' => 'header',
  3905. 'sentAs' => 'x-cos-request-charged',
  3906. ),
  3907. 'RequestId' => array(
  3908. 'location' => 'header',
  3909. 'sentAs' => 'x-cos-request-id',
  3910. ),
  3911. 'CRC' => array(
  3912. 'type' => 'string',
  3913. 'location' => 'header',
  3914. 'sentAs' => 'x-cos-hash-crc64ecma',
  3915. )
  3916. ),
  3917. ),
  3918. 'DeleteBucketOutput' => array(
  3919. 'type' => 'object',
  3920. 'additionalProperties' => true,
  3921. 'properties' => array(
  3922. 'RequestId' => array(
  3923. 'location' => 'header',
  3924. 'sentAs' => 'x-cos-request-id'
  3925. )
  3926. )
  3927. ),
  3928. 'DeleteBucketCorsOutput' => array(
  3929. 'type' => 'object',
  3930. 'additionalProperties' => true,
  3931. 'properties' => array(
  3932. 'RequestId' => array(
  3933. 'location' => 'header',
  3934. 'sentAs' => 'x-cos-request-id',
  3935. ),
  3936. ),
  3937. ),
  3938. 'DeleteBucketTaggingOutput' => array(
  3939. 'type' => 'object',
  3940. 'additionalProperties' => true,
  3941. 'properties' => array(
  3942. 'RequestId' => array(
  3943. 'location' => 'header',
  3944. 'sentAs' => 'x-cos-request-id',
  3945. ),
  3946. ),
  3947. ),
  3948. 'DeleteBucketInventoryOutput' => array(
  3949. 'type' => 'object',
  3950. 'additionalProperties' => true,
  3951. 'properties' => array(
  3952. 'RequestId' => array(
  3953. 'location' => 'header',
  3954. 'sentAs' => 'x-cos-request-id',
  3955. ),
  3956. ),
  3957. ),
  3958. 'DeleteObjectOutput' => array(
  3959. 'type' => 'object',
  3960. 'additionalProperties' => true,
  3961. 'properties' => array(
  3962. 'DeleteMarker' => array(
  3963. 'type' => 'boolean',
  3964. 'location' => 'header',
  3965. 'sentAs' => 'x-cos-delete-marker',
  3966. ),
  3967. 'VersionId' => array(
  3968. 'type' => 'string',
  3969. 'location' => 'header',
  3970. 'sentAs' => 'x-cos-version-id',
  3971. ),
  3972. 'RequestCharged' => array(
  3973. 'type' => 'string',
  3974. 'location' => 'header',
  3975. 'sentAs' => 'x-cos-request-charged',
  3976. ),
  3977. 'RequestId' => array(
  3978. 'location' => 'header',
  3979. 'sentAs' => 'x-cos-request-id',
  3980. ),
  3981. ),
  3982. ),
  3983. 'DeleteObjectsOutput' => array(
  3984. 'type' => 'object',
  3985. 'additionalProperties' => true,
  3986. 'properties' => array(
  3987. 'Deleted' => array(
  3988. 'type' => 'array',
  3989. 'location' => 'xml',
  3990. 'sentAs' => 'Deleted',
  3991. 'data' => array(
  3992. 'xmlFlattened' => true,
  3993. ),
  3994. 'items' => array(
  3995. 'type' => 'object',
  3996. 'properties' => array(
  3997. 'Key' => array(
  3998. 'type' => 'string',
  3999. ),
  4000. 'VersionId' => array(
  4001. 'type' => 'string',
  4002. ),
  4003. 'DeleteMarker' => array(
  4004. 'type' => 'boolean',
  4005. ),
  4006. 'DeleteMarkerVersionId' => array(
  4007. 'type' => 'string',
  4008. ),
  4009. ),
  4010. ),
  4011. ),
  4012. 'RequestCharged' => array(
  4013. 'type' => 'string',
  4014. 'location' => 'header',
  4015. 'sentAs' => 'x-cos-request-charged',
  4016. ),
  4017. 'Errors' => array(
  4018. 'type' => 'array',
  4019. 'location' => 'xml',
  4020. 'sentAs' => 'Error',
  4021. 'data' => array(
  4022. 'xmlFlattened' => true,
  4023. ),
  4024. 'items' => array(
  4025. 'type' => 'object',
  4026. 'properties' => array(
  4027. 'Key' => array(
  4028. 'type' => 'string',
  4029. ),
  4030. 'VersionId' => array(
  4031. 'type' => 'string',
  4032. ),
  4033. 'Code' => array(
  4034. 'type' => 'string',
  4035. ),
  4036. 'Message' => array(
  4037. 'type' => 'string',
  4038. ),
  4039. ),
  4040. ),
  4041. ),
  4042. 'RequestId' => array(
  4043. 'location' => 'header',
  4044. 'sentAs' => 'x-cos-request-id',
  4045. ),
  4046. ),
  4047. ),
  4048. 'DeleteBucketLifecycleOutput' => array(
  4049. 'type' => 'object',
  4050. 'additionalProperties' => true,
  4051. 'properties' => array(
  4052. 'RequestId' => array(
  4053. 'location' => 'header',
  4054. 'sentAs' => 'x-cos-request-id',
  4055. ),
  4056. ),
  4057. ),
  4058. 'DeleteBucketReplicationOutput' => array(
  4059. 'type' => 'object',
  4060. 'additionalProperties' => true,
  4061. 'properties' => array(
  4062. 'RequestId' => array(
  4063. 'location' => 'header',
  4064. 'sentAs' => 'x-cos-request-id',
  4065. ),
  4066. ),
  4067. ),
  4068. 'DeleteBucketWebsiteOutput' => array(
  4069. 'type' => 'object',
  4070. 'additionalProperties' => true,
  4071. 'properties' => array(
  4072. 'RequestId' => array(
  4073. 'location' => 'header',
  4074. 'sentAs' => 'x-cos-request-id',
  4075. ),
  4076. ),
  4077. ),
  4078. 'PutObjectTaggingOutput' => array(
  4079. 'type' => 'object',
  4080. 'additionalProperties' => true,
  4081. 'properties' => array(
  4082. 'RequestId' => array(
  4083. 'location' => 'header',
  4084. 'sentAs' => 'x-cos-request-id',
  4085. ),
  4086. ),
  4087. ),
  4088. 'GetObjectTaggingOutput' => array(
  4089. 'type' => 'object',
  4090. 'additionalProperties' => true,
  4091. 'properties' => array(
  4092. 'TagSet' => array(
  4093. 'type' => 'array',
  4094. 'location' => 'xml',
  4095. 'items' => array(
  4096. 'sentAs' => 'Tag',
  4097. 'type' => 'object',
  4098. 'properties' => array(
  4099. 'Key' => array(
  4100. 'type' => 'string',
  4101. ),
  4102. 'Value' => array(
  4103. 'type' => 'string',
  4104. ),
  4105. ),
  4106. ),
  4107. ),
  4108. 'RequestId' => array(
  4109. 'location' => 'header',
  4110. 'sentAs' => 'x-cos-request-id',
  4111. ),
  4112. ),
  4113. ),
  4114. 'DeleteObjectTaggingOutput' => array(
  4115. 'type' => 'object',
  4116. 'additionalProperties' => true,
  4117. 'properties' => array(
  4118. 'RequestId' => array(
  4119. 'location' => 'header',
  4120. 'sentAs' => 'x-cos-request-id'
  4121. )
  4122. )
  4123. ),
  4124. 'GetObjectOutput' => array(
  4125. 'type' => 'object',
  4126. 'additionalProperties' => true,
  4127. 'properties' => array(
  4128. 'Body' => array(
  4129. 'type' => 'string',
  4130. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  4131. 'location' => 'body',
  4132. ),
  4133. 'DeleteMarker' => array(
  4134. 'type' => 'boolean',
  4135. 'location' => 'header',
  4136. 'sentAs' => 'x-cos-delete-marker',
  4137. ),
  4138. 'AcceptRanges' => array(
  4139. 'type' => 'string',
  4140. 'location' => 'header',
  4141. 'sentAs' => 'accept-ranges',
  4142. ),
  4143. 'Expiration' => array(
  4144. 'type' => 'string',
  4145. 'location' => 'header',
  4146. 'sentAs' => 'x-cos-expiration',
  4147. ),
  4148. 'Restore' => array(
  4149. 'type' => 'string',
  4150. 'location' => 'header',
  4151. 'sentAs' => 'x-cos-restore',
  4152. ),
  4153. 'LastModified' => array(
  4154. 'type' => 'string',
  4155. 'location' => 'header',
  4156. 'sentAs' => 'Last-Modified',
  4157. ),
  4158. 'ContentLength' => array(
  4159. 'type' => 'numeric',
  4160. 'minimum'=> 0,
  4161. 'location' => 'header',
  4162. 'sentAs' => 'Content-Length',
  4163. ),
  4164. 'ETag' => array(
  4165. 'type' => 'string',
  4166. 'location' => 'header',
  4167. ),
  4168. 'MissingMeta' => array(
  4169. 'type' => 'numeric',
  4170. 'location' => 'header',
  4171. 'sentAs' => 'x-cos-missing-meta',
  4172. ),
  4173. 'VersionId' => array(
  4174. 'type' => 'string',
  4175. 'location' => 'header',
  4176. 'sentAs' => 'x-cos-version-id',
  4177. ),
  4178. 'CacheControl' => array(
  4179. 'type' => 'string',
  4180. 'location' => 'header',
  4181. 'sentAs' => 'Cache-Control',
  4182. ),
  4183. 'ContentDisposition' => array(
  4184. 'type' => 'string',
  4185. 'location' => 'header',
  4186. 'sentAs' => 'Content-Disposition',
  4187. ),
  4188. 'ContentEncoding' => array(
  4189. 'type' => 'string',
  4190. 'location' => 'header',
  4191. 'sentAs' => 'Content-Encoding',
  4192. ),
  4193. 'ContentLanguage' => array(
  4194. 'type' => 'string',
  4195. 'location' => 'header',
  4196. 'sentAs' => 'Content-Language',
  4197. ),
  4198. 'ContentRange' => array(
  4199. 'type' => 'string',
  4200. 'location' => 'header',
  4201. 'sentAs' => 'Content-Range',
  4202. ),
  4203. 'ContentType' => array(
  4204. 'type' => 'string',
  4205. 'location' => 'header',
  4206. 'sentAs' => 'Content-Type',
  4207. ),
  4208. 'Expires' => array(
  4209. 'type' => 'string',
  4210. 'location' => 'header',
  4211. ),
  4212. 'WebsiteRedirectLocation' => array(
  4213. 'type' => 'string',
  4214. 'location' => 'header',
  4215. 'sentAs' => 'x-cos-website-redirect-location',
  4216. ),
  4217. 'ServerSideEncryption' => array(
  4218. 'type' => 'string',
  4219. 'location' => 'header',
  4220. 'sentAs' => 'x-cos-server-side-encryption',
  4221. ),
  4222. 'SSECustomerAlgorithm' => array(
  4223. 'type' => 'string',
  4224. 'location' => 'header',
  4225. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  4226. ),
  4227. 'SSECustomerKeyMD5' => array(
  4228. 'type' => 'string',
  4229. 'location' => 'header',
  4230. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  4231. ),
  4232. 'SSEKMSKeyId' => array(
  4233. 'type' => 'string',
  4234. 'location' => 'header',
  4235. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  4236. ),
  4237. 'StorageClass' => array(
  4238. 'type' => 'string',
  4239. 'location' => 'header',
  4240. 'sentAs' => 'x-cos-storage-class',
  4241. ),
  4242. 'RequestCharged' => array(
  4243. 'type' => 'string',
  4244. 'location' => 'header',
  4245. 'sentAs' => 'x-cos-request-charged',
  4246. ),
  4247. 'ReplicationStatus' => array(
  4248. 'type' => 'string',
  4249. 'location' => 'header',
  4250. 'sentAs' => 'x-cos-replication-status',
  4251. ),
  4252. 'RequestId' => array(
  4253. 'location' => 'header',
  4254. 'sentAs' => 'x-cos-request-id',
  4255. ),
  4256. 'CRC' => array(
  4257. 'type' => 'string',
  4258. 'location' => 'header',
  4259. 'sentAs' => 'x-cos-hash-crc64ecma',
  4260. )
  4261. ),
  4262. ),
  4263. 'GetObjectAclOutput' => array(
  4264. 'type' => 'object',
  4265. 'additionalProperties' => true,
  4266. 'properties' => array(
  4267. 'Owner' => array(
  4268. 'type' => 'object',
  4269. 'location' => 'xml',
  4270. 'properties' => array(
  4271. 'DisplayName' => array(
  4272. 'type' => 'string',
  4273. ),
  4274. 'ID' => array(
  4275. 'type' => 'string',
  4276. ),
  4277. ),
  4278. ),
  4279. 'Grants' => array(
  4280. 'type' => 'array',
  4281. 'location' => 'xml',
  4282. 'sentAs' => 'AccessControlList',
  4283. 'items' => array(
  4284. 'type' => 'object',
  4285. 'properties' => array(
  4286. 'Grantee' => array(
  4287. 'type' => 'object',
  4288. 'properties' => array(
  4289. 'DisplayName' => array(
  4290. 'type' => 'string'),
  4291. 'ID' => array(
  4292. 'type' => 'string'))),
  4293. 'Permission' => array(
  4294. 'type' => 'string',
  4295. ),
  4296. ),
  4297. ),
  4298. ),
  4299. 'RequestCharged' => array(
  4300. 'type' => 'string',
  4301. 'location' => 'header',
  4302. 'sentAs' => 'x-cos-request-charged',
  4303. ),
  4304. 'RequestId' => array(
  4305. 'location' => 'header',
  4306. 'sentAs' => 'x-cos-request-id',
  4307. ),
  4308. ),
  4309. ),
  4310. 'GetBucketAclOutput' => array(
  4311. 'type' => 'object',
  4312. 'additionalProperties' => true,
  4313. 'properties' => array(
  4314. 'Owner' => array(
  4315. 'type' => 'object',
  4316. 'location' => 'xml',
  4317. 'properties' => array(
  4318. 'DisplayName' => array(
  4319. 'type' => 'string'
  4320. ),
  4321. 'ID' => array(
  4322. 'type' => 'string'
  4323. )
  4324. )
  4325. ),
  4326. 'Grants' => array(
  4327. 'type' => 'array',
  4328. 'location' => 'xml',
  4329. 'sentAs' => 'AccessControlList',
  4330. 'items' => array(
  4331. 'type' => 'object',
  4332. 'properties' => array(
  4333. 'Grantee' => array(
  4334. 'type' => 'object',
  4335. 'properties' => array(
  4336. 'DisplayName' => array(
  4337. 'type' => 'string'
  4338. ),
  4339. 'ID' => array(
  4340. 'type' => 'string'
  4341. )
  4342. )
  4343. ),
  4344. 'Permission' => array(
  4345. 'type' => 'string'
  4346. )
  4347. )
  4348. )
  4349. ),
  4350. 'RequestId' => array(
  4351. 'location' => 'header',
  4352. 'sentAs' => 'x-cos-request-id'
  4353. )
  4354. )
  4355. ),
  4356. 'GetBucketCorsOutput' => array(
  4357. 'type' => 'object',
  4358. 'additionalProperties' => true,
  4359. 'properties' => array(
  4360. 'CORSRules' => array(
  4361. 'type' => 'array',
  4362. 'location' => 'xml',
  4363. 'sentAs' => 'CORSRule',
  4364. 'data' => array(
  4365. 'xmlFlattened' => true,
  4366. ),
  4367. 'items' => array(
  4368. 'type' => 'object',
  4369. 'properties' => array(
  4370. 'ID' => array(
  4371. 'type' => 'string'),
  4372. 'AllowedHeaders' => array(
  4373. 'type' => 'array',
  4374. 'sentAs' => 'AllowedHeader',
  4375. 'data' => array(
  4376. 'xmlFlattened' => true,
  4377. ),
  4378. 'items' => array(
  4379. 'type' => 'string',
  4380. )
  4381. ),
  4382. 'AllowedMethods' => array(
  4383. 'type' => 'array',
  4384. 'sentAs' => 'AllowedMethod',
  4385. 'data' => array(
  4386. 'xmlFlattened' => true,
  4387. ),
  4388. 'items' => array(
  4389. 'type' => 'string',
  4390. ),
  4391. ),
  4392. 'AllowedOrigins' => array(
  4393. 'type' => 'array',
  4394. 'sentAs' => 'AllowedOrigin',
  4395. 'data' => array(
  4396. 'xmlFlattened' => true,
  4397. ),
  4398. 'items' => array(
  4399. 'type' => 'string',
  4400. ),
  4401. ),
  4402. 'ExposeHeaders' => array(
  4403. 'type' => 'array',
  4404. 'sentAs' => 'ExposeHeader',
  4405. 'data' => array(
  4406. 'xmlFlattened' => true,
  4407. ),
  4408. 'items' => array(
  4409. 'type' => 'string',
  4410. ),
  4411. ),
  4412. 'MaxAgeSeconds' => array(
  4413. 'type' => 'numeric',
  4414. ),
  4415. ),
  4416. ),
  4417. ),
  4418. 'RequestId' => array(
  4419. 'location' => 'header',
  4420. 'sentAs' => 'x-cos-request-id',
  4421. ),
  4422. ),
  4423. ),
  4424. 'GetBucketDomainOutput' => array(
  4425. 'type' => 'object',
  4426. 'additionalProperties' => true,
  4427. 'properties' => array(
  4428. 'DomainRules' => array(
  4429. 'type' => 'array',
  4430. 'location' => 'xml',
  4431. 'sentAs' => 'DomainRule',
  4432. 'data' => array(
  4433. 'xmlFlattened' => true,
  4434. ),
  4435. 'items' => array(
  4436. 'type' => 'object',
  4437. 'properties' => array(
  4438. 'Status' => array(
  4439. 'type' => 'string'
  4440. ),
  4441. 'Name' => array(
  4442. 'type' => 'string'
  4443. ),
  4444. 'Type' => array(
  4445. 'type' => 'string'
  4446. ),
  4447. 'ForcedReplacement' => array(
  4448. 'type' => 'string'
  4449. ),
  4450. ),
  4451. ),
  4452. ),
  4453. 'DomainTxtVerification' => array(
  4454. 'location' => 'header',
  4455. 'sentAs' => 'x-cos-domain-txt-verification',
  4456. ),
  4457. 'RequestId' => array(
  4458. 'location' => 'header',
  4459. 'sentAs' => 'x-cos-request-id',
  4460. ),
  4461. ),
  4462. ),
  4463. 'GetBucketLifecycleOutput' => array(
  4464. 'type' => 'object',
  4465. 'additionalProperties' => true,
  4466. 'properties' => array(
  4467. 'Rules' => array(
  4468. 'type' => 'array',
  4469. 'location' => 'xml',
  4470. 'sentAs' => 'Rule',
  4471. 'data' => array(
  4472. 'xmlFlattened' => true,
  4473. ),
  4474. 'items' => array(
  4475. 'type' => 'object',
  4476. 'properties' => array(
  4477. 'Expiration' => array(
  4478. 'type' => 'object',
  4479. 'properties' => array(
  4480. 'Date' => array(
  4481. 'type' => 'string',
  4482. ),
  4483. 'Days' => array(
  4484. 'type' => 'numeric',
  4485. ),
  4486. ),
  4487. ),
  4488. 'ID' => array(
  4489. 'type' => 'string',
  4490. ),
  4491. 'Filter' => array(
  4492. 'type' => 'object',
  4493. 'properties' => array(
  4494. 'Prefix' => array(
  4495. 'type' => 'string',
  4496. ),
  4497. 'Tag' => array(
  4498. 'type' => 'object',
  4499. 'properties' => array(
  4500. 'Key' => array(
  4501. 'type' => 'string'
  4502. ),
  4503. 'Value' => array(
  4504. 'type' => 'string'
  4505. ),
  4506. )
  4507. )
  4508. ),
  4509. ),
  4510. 'Status' => array(
  4511. 'type' => 'string',
  4512. ),
  4513. 'Transition' => array(
  4514. 'type' => 'object',
  4515. 'properties' => array(
  4516. 'Date' => array(
  4517. 'type' => 'string',
  4518. ),
  4519. 'Days' => array(
  4520. 'type' => 'numeric',
  4521. ),
  4522. 'StorageClass' => array(
  4523. 'type' => 'string',
  4524. ),
  4525. ),
  4526. ),
  4527. 'NoncurrentVersionTransition' => array(
  4528. 'type' => 'object',
  4529. 'properties' => array(
  4530. 'NoncurrentDays' => array(
  4531. 'type' => 'numeric',
  4532. ),
  4533. 'StorageClass' => array(
  4534. 'type' => 'string',
  4535. ),
  4536. ),
  4537. ),
  4538. 'NoncurrentVersionExpiration' => array(
  4539. 'type' => 'object',
  4540. 'properties' => array(
  4541. 'NoncurrentDays' => array(
  4542. 'type' => 'numeric',
  4543. ),
  4544. ),
  4545. ),
  4546. ),
  4547. ),
  4548. ),
  4549. 'RequestId' => array(
  4550. 'location' => 'header',
  4551. 'sentAs' => 'x-cos-request-id',
  4552. ),
  4553. ),
  4554. ),
  4555. 'GetBucketVersioningOutput' => array(
  4556. 'type' => 'object',
  4557. 'additionalProperties' => true,
  4558. 'properties' => array(
  4559. 'Status' => array(
  4560. 'type' => 'string',
  4561. 'location' => 'xml',
  4562. ),
  4563. 'MFADelete' => array(
  4564. 'type' => 'string',
  4565. 'location' => 'xml',
  4566. 'sentAs' => 'MfaDelete',
  4567. ),
  4568. 'RequestId' => array(
  4569. 'location' => 'header',
  4570. 'sentAs' => 'x-cos-request-id',
  4571. ),
  4572. ),
  4573. ),
  4574. 'GetBucketReplicationOutput' => array(
  4575. 'type' => 'object',
  4576. 'additionalProperties' => true,
  4577. 'properties' => array(
  4578. 'Role' => array(
  4579. 'type' => 'string',
  4580. 'location' => 'xml',
  4581. ),
  4582. 'Rules' => array(
  4583. 'type' => 'array',
  4584. 'location' => 'xml',
  4585. 'sentAs' => 'Rule',
  4586. 'data' => array(
  4587. 'xmlFlattened' => true,
  4588. ),
  4589. 'items' => array(
  4590. 'type' => 'object',
  4591. 'properties' => array(
  4592. 'ID' => array(
  4593. 'type' => 'string',
  4594. ),
  4595. 'Prefix' => array(
  4596. 'type' => 'string',
  4597. ),
  4598. 'Status' => array(
  4599. 'type' => 'string',
  4600. ),
  4601. 'Destination' => array(
  4602. 'type' => 'object',
  4603. 'properties' => array(
  4604. 'Bucket' => array(
  4605. 'type' => 'string',
  4606. ),
  4607. 'StorageClass' => array(
  4608. 'type' => 'string',
  4609. ),
  4610. ),
  4611. ),
  4612. ),
  4613. ),
  4614. ),
  4615. 'RequestId' => array(
  4616. 'location' => 'header',
  4617. 'sentAs' => 'x-cos-request-id',
  4618. ),
  4619. ),
  4620. ),
  4621. 'GetBucketLocationOutput' => array(
  4622. 'type' => 'object',
  4623. 'additionalProperties' => true,
  4624. 'properties' => array(
  4625. 'Location' => array(
  4626. 'type' => 'string',
  4627. 'location' => 'body',
  4628. 'filters' => array(
  4629. 'strval',
  4630. 'strip_tags',
  4631. 'trim',
  4632. ),
  4633. ),
  4634. ),
  4635. ),
  4636. 'GetBucketAccelerateOutput' => array(
  4637. 'type' => 'object',
  4638. 'additionalProperties' => true,
  4639. 'properties' => array(
  4640. 'Status' => array(
  4641. 'type' => 'string',
  4642. 'location' => 'xml',
  4643. ),
  4644. 'Type' => array(
  4645. 'type' => 'string',
  4646. 'location' => 'xml',
  4647. ),
  4648. 'RequestId' => array(
  4649. 'location' => 'header',
  4650. 'sentAs' => 'x-cos-request-id',
  4651. ),
  4652. ),
  4653. ),
  4654. 'GetBucketWebsiteOutput' => array(
  4655. 'type' => 'object',
  4656. 'additionalProperties' => true,
  4657. 'properties' => array(
  4658. 'RedirectAllRequestsTo' => array(
  4659. 'type' => 'object',
  4660. 'location' => 'xml',
  4661. 'properties' => array(
  4662. 'HostName' => array(
  4663. 'type' => 'string',
  4664. ),
  4665. 'Protocol' => array(
  4666. 'type' => 'string',
  4667. ),
  4668. ),
  4669. ),
  4670. 'IndexDocument' => array(
  4671. 'type' => 'object',
  4672. 'location' => 'xml',
  4673. 'properties' => array(
  4674. 'Suffix' => array(
  4675. 'type' => 'string',
  4676. ),
  4677. ),
  4678. ),
  4679. 'ErrorDocument' => array(
  4680. 'type' => 'object',
  4681. 'location' => 'xml',
  4682. 'properties' => array(
  4683. 'Key' => array(
  4684. 'type' => 'string',
  4685. ),
  4686. ),
  4687. ),
  4688. 'RoutingRules' => array(
  4689. 'type' => 'array',
  4690. 'location' => 'xml',
  4691. 'items' => array(
  4692. 'name' => 'RoutingRule',
  4693. 'type' => 'object',
  4694. 'sentAs' => 'RoutingRule',
  4695. 'properties' => array(
  4696. 'Condition' => array(
  4697. 'type' => 'object',
  4698. 'properties' => array(
  4699. 'HttpErrorCodeReturnedEquals' => array(
  4700. 'type' => 'string',
  4701. ),
  4702. 'KeyPrefixEquals' => array(
  4703. 'type' => 'string',
  4704. ),
  4705. ),
  4706. ),
  4707. 'Redirect' => array(
  4708. 'type' => 'object',
  4709. 'properties' => array(
  4710. 'HostName' => array(
  4711. 'type' => 'string',
  4712. ),
  4713. 'HttpRedirectCode' => array(
  4714. 'type' => 'string',
  4715. ),
  4716. 'Protocol' => array(
  4717. 'type' => 'string',
  4718. ),
  4719. 'ReplaceKeyPrefixWith' => array(
  4720. 'type' => 'string',
  4721. ),
  4722. 'ReplaceKeyWith' => array(
  4723. 'type' => 'string',
  4724. ),
  4725. ),
  4726. ),
  4727. ),
  4728. ),
  4729. ),
  4730. 'RequestId' => array(
  4731. 'location' => 'header',
  4732. 'sentAs' => 'x-cos-request-id',
  4733. ),
  4734. ),
  4735. ),
  4736. 'GetBucketInventoryOutput' => array(
  4737. 'type' => 'object',
  4738. 'additionalProperties' => true,
  4739. 'properties' => array(
  4740. 'Destination' => array(
  4741. 'type' => 'object',
  4742. 'location' => 'xml',
  4743. 'properties' => array(
  4744. 'COSBucketDestination' => array(
  4745. 'type' => 'object',
  4746. 'properties' => array(
  4747. 'Format' => array(
  4748. 'type' => 'string',
  4749. ),
  4750. 'AccountId' => array(
  4751. 'type' => 'string',
  4752. ),
  4753. 'Bucket' => array(
  4754. 'type' => 'string',
  4755. ),
  4756. 'Prefix' => array(
  4757. 'type' => 'string',
  4758. ),
  4759. 'Encryption' => array(
  4760. 'type' => 'object',
  4761. 'properties' => array(
  4762. 'SSE-COS' => array(
  4763. 'type' => 'string',
  4764. )
  4765. )
  4766. ),
  4767. ),
  4768. ),
  4769. ),
  4770. ),
  4771. 'Schedule' => array(
  4772. 'type' => 'object',
  4773. 'location' => 'xml',
  4774. 'properties' => array(
  4775. 'Frequency' => array(
  4776. 'type' => 'string',
  4777. ),
  4778. ),
  4779. ),
  4780. 'OptionalFields' => array(
  4781. 'type' => 'array',
  4782. 'location' => 'xml',
  4783. 'properties' => array(
  4784. 'Key' => array(
  4785. 'type' => 'string',
  4786. ),
  4787. ),
  4788. ),
  4789. 'OptionalFields' => array(
  4790. 'type' => 'array',
  4791. 'location' => 'xml',
  4792. 'items' => array(
  4793. 'name' => 'Field',
  4794. 'type' => 'string',
  4795. 'sentAs' => 'Field',
  4796. ),
  4797. ),
  4798. 'IsEnabled' => array(
  4799. 'type' => 'string',
  4800. 'location' => 'xml',
  4801. ),
  4802. 'Id' => array(
  4803. 'type' => 'string',
  4804. 'location' => 'xml',
  4805. ),
  4806. 'IncludedObjectVersions' => array(
  4807. 'type' => 'string',
  4808. 'location' => 'xml',
  4809. ),
  4810. 'RequestId' => array(
  4811. 'location' => 'header',
  4812. 'sentAs' => 'x-cos-request-id',
  4813. ),
  4814. ),
  4815. ),
  4816. 'GetBucketTaggingOutput' => array(
  4817. 'type' => 'object',
  4818. 'additionalProperties' => true,
  4819. 'properties' => array(
  4820. 'TagSet' => array(
  4821. 'type' => 'array',
  4822. 'location' => 'xml',
  4823. 'items' => array(
  4824. 'sentAs' => 'Tag',
  4825. 'type' => 'object',
  4826. 'properties' => array(
  4827. 'Key' => array(
  4828. 'type' => 'string',
  4829. ),
  4830. 'Value' => array(
  4831. 'type' => 'string',
  4832. ),
  4833. ),
  4834. ),
  4835. ),
  4836. 'RequestId' => array(
  4837. 'location' => 'header',
  4838. 'sentAs' => 'x-cos-request-id',
  4839. ),
  4840. ),
  4841. ),
  4842. 'GetBucketNotificationOutput' => array(
  4843. 'type' => 'object',
  4844. 'additionalProperties' => true,
  4845. 'properties' => array(
  4846. 'CloudFunctionConfigurations' => array(
  4847. 'type' => 'array',
  4848. 'location' => 'xml',
  4849. 'sentAs' => 'CloudFunctionConfiguration',
  4850. 'data' => array(
  4851. 'xmlFlattened' => true,
  4852. ),
  4853. 'items' => array(
  4854. 'type' => 'object',
  4855. 'properties' => array(
  4856. 'Id' => array(
  4857. 'type' => 'string',
  4858. ),
  4859. 'CloudFunction' => array(
  4860. 'type' => 'string',
  4861. 'sentAs' => 'CloudFunction',
  4862. ),
  4863. 'Events' => array(
  4864. 'type' => 'array',
  4865. 'sentAs' => 'Event',
  4866. 'data' => array(
  4867. 'xmlFlattened' => true,
  4868. ),
  4869. 'items' => array(
  4870. 'type' => 'string',
  4871. ),
  4872. ),
  4873. 'Filter' => array(
  4874. 'type' => 'object',
  4875. 'properties' => array(
  4876. 'Key' => array(
  4877. 'type' => 'object',
  4878. 'sentAs' => 'Key',
  4879. 'properties' => array(
  4880. 'FilterRules' => array(
  4881. 'type' => 'array',
  4882. 'sentAs' => 'FilterRule',
  4883. 'data' => array(
  4884. 'xmlFlattened' => true,
  4885. ),
  4886. 'items' => array(
  4887. 'type' => 'object',
  4888. 'properties' => array(
  4889. 'Name' => array(
  4890. 'type' => 'string',
  4891. ),
  4892. 'Value' => array(
  4893. 'type' => 'string',
  4894. ),
  4895. ),
  4896. ),
  4897. ),
  4898. ),
  4899. ),
  4900. ),
  4901. ),
  4902. ),
  4903. ),
  4904. ),
  4905. 'RequestId' => array(
  4906. 'location' => 'header',
  4907. 'sentAs' => 'x-cos-request-id',
  4908. ),
  4909. ),
  4910. ),
  4911. 'GetBucketLoggingOutput' => array(
  4912. 'type' => 'object',
  4913. 'additionalProperties' => true,
  4914. 'properties' => array(
  4915. 'LoggingEnabled' => array(
  4916. 'location' => 'xml',
  4917. 'type' => 'object',
  4918. 'properties' => array(
  4919. 'TargetBucket' => array(
  4920. 'type' => 'string',
  4921. 'location' => 'xml',
  4922. ),
  4923. 'TargetPrefix' => array(
  4924. 'type' => 'string',
  4925. ),
  4926. ),
  4927. ),
  4928. 'RequestId' => array(
  4929. 'location' => 'header',
  4930. 'sentAs' => 'x-cos-request-id',
  4931. ),
  4932. ),
  4933. ),
  4934. 'UploadPartOutput' => array(
  4935. 'type' => 'object',
  4936. 'additionalProperties' => true,
  4937. 'properties' => array(
  4938. 'ServerSideEncryption' => array(
  4939. 'type' => 'string',
  4940. 'location' => 'header',
  4941. 'sentAs' => 'x-cos-server-side-encryption',
  4942. ),
  4943. 'ETag' => array(
  4944. 'type' => 'string',
  4945. 'location' => 'header',
  4946. ),
  4947. 'SSECustomerAlgorithm' => array(
  4948. 'type' => 'string',
  4949. 'location' => 'header',
  4950. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  4951. ),
  4952. 'SSECustomerKeyMD5' => array(
  4953. 'type' => 'string',
  4954. 'location' => 'header',
  4955. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  4956. ),
  4957. 'SSEKMSKeyId' => array(
  4958. 'type' => 'string',
  4959. 'location' => 'header',
  4960. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  4961. ),
  4962. 'RequestCharged' => array(
  4963. 'type' => 'string',
  4964. 'location' => 'header',
  4965. 'sentAs' => 'x-cos-request-charged',
  4966. ),
  4967. 'RequestId' => array(
  4968. 'location' => 'header',
  4969. 'sentAs' => 'x-cos-request-id',
  4970. ),
  4971. 'CRC' => array(
  4972. 'type' => 'string',
  4973. 'location' => 'header',
  4974. 'sentAs' => 'x-cos-hash-crc64ecma',
  4975. )
  4976. ),
  4977. ),
  4978. 'UploadPartCopyOutput' => array(
  4979. 'type' => 'object',
  4980. 'additionalProperties' => true,
  4981. 'properties' => array(
  4982. 'CopySourceVersionId' => array(
  4983. 'type' => 'string',
  4984. 'location' => 'header',
  4985. 'sentAs' => 'x-cos-copy-source-version-id',
  4986. ),
  4987. 'ETag' => array(
  4988. 'type' => 'string',
  4989. 'location' => 'xml',
  4990. ),
  4991. 'LastModified' => array(
  4992. 'type' => 'string',
  4993. 'location' => 'xml',
  4994. ),
  4995. 'ServerSideEncryption' => array(
  4996. 'type' => 'string',
  4997. 'location' => 'header',
  4998. 'sentAs' => 'x-cos-server-side-encryption',
  4999. ),
  5000. 'SSECustomerAlgorithm' => array(
  5001. 'type' => 'string',
  5002. 'location' => 'header',
  5003. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  5004. ),
  5005. 'SSECustomerKeyMD5' => array(
  5006. 'type' => 'string',
  5007. 'location' => 'header',
  5008. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  5009. ),
  5010. 'SSEKMSKeyId' => array(
  5011. 'type' => 'string',
  5012. 'location' => 'header',
  5013. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  5014. ),
  5015. 'RequestCharged' => array(
  5016. 'type' => 'string',
  5017. 'location' => 'header',
  5018. 'sentAs' => 'x-cos-request-charged',
  5019. ),
  5020. 'RequestId' => array(
  5021. 'location' => 'header',
  5022. 'sentAs' => 'x-cos-request-id',
  5023. ),
  5024. 'CRC' => array(
  5025. 'type' => 'string',
  5026. 'location' => 'header',
  5027. 'sentAs' => 'x-cos-hash-crc64ecma',
  5028. )
  5029. ),
  5030. ),
  5031. 'PutBucketAclOutput' => array(
  5032. 'type' => 'object',
  5033. 'additionalProperties' => true,
  5034. 'properties' => array(
  5035. 'RequestId' => array(
  5036. 'location' => 'header',
  5037. 'sentAs' => 'x-cos-request-id'
  5038. )
  5039. )
  5040. ),
  5041. 'PutObjectOutput' => array(
  5042. 'type' => 'object',
  5043. 'additionalProperties' => true,
  5044. 'properties' => array(
  5045. 'Expiration' => array(
  5046. 'type' => 'string',
  5047. 'location' => 'header',
  5048. 'sentAs' => 'x-cos-expiration',
  5049. ),
  5050. 'ETag' => array(
  5051. 'type' => 'string',
  5052. 'location' => 'header',
  5053. ),
  5054. 'ServerSideEncryption' => array(
  5055. 'type' => 'string',
  5056. 'location' => 'header',
  5057. 'sentAs' => 'x-cos-server-side-encryption',
  5058. ),
  5059. 'VersionId' => array(
  5060. 'type' => 'string',
  5061. 'location' => 'header',
  5062. 'sentAs' => 'x-cos-version-id',
  5063. ),
  5064. 'SSECustomerAlgorithm' => array(
  5065. 'type' => 'string',
  5066. 'location' => 'header',
  5067. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  5068. ),
  5069. 'SSECustomerKeyMD5' => array(
  5070. 'type' => 'string',
  5071. 'location' => 'header',
  5072. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  5073. ),
  5074. 'SSEKMSKeyId' => array(
  5075. 'type' => 'string',
  5076. 'location' => 'header',
  5077. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  5078. ),
  5079. 'RequestCharged' => array(
  5080. 'type' => 'string',
  5081. 'location' => 'header',
  5082. 'sentAs' => 'x-cos-request-charged',
  5083. ),
  5084. 'RequestId' => array(
  5085. 'location' => 'header',
  5086. 'sentAs' => 'x-cos-request-id',
  5087. ),
  5088. 'ContentLength' => array(
  5089. 'type' => 'numeric',
  5090. 'minimum'=> 0,
  5091. 'location' => 'header',
  5092. 'sentAs' => 'Content-Length',
  5093. ),
  5094. 'Body' => array(
  5095. 'type' => 'string',
  5096. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  5097. 'location' => 'body',
  5098. ),
  5099. 'CRC' => array(
  5100. 'type' => 'string',
  5101. 'location' => 'header',
  5102. 'sentAs' => 'x-cos-hash-crc64ecma',
  5103. )
  5104. ),
  5105. ),
  5106. 'AppendObjectOutput' => array(
  5107. 'type' => 'object',
  5108. 'additionalProperties' => true,
  5109. 'properties' => array(
  5110. 'ETag' => array(
  5111. 'type' => 'string',
  5112. 'location' => 'header',
  5113. ),
  5114. 'Position' => array(
  5115. 'type' => 'integer',
  5116. 'location' => 'header',
  5117. 'sentAs' => 'x-cos-next-append-position',
  5118. ),
  5119. 'RequestId' => array(
  5120. 'location' => 'header',
  5121. 'sentAs' => 'x-cos-request-id',
  5122. )
  5123. ),
  5124. ),
  5125. 'PutObjectAclOutput' => array(
  5126. 'type' => 'object',
  5127. 'additionalProperties' => true,
  5128. 'properties' => array(
  5129. 'RequestCharged' => array(
  5130. 'type' => 'string',
  5131. 'location' => 'header',
  5132. 'sentAs' => 'x-cos-request-charged',
  5133. ),
  5134. 'RequestId' => array(
  5135. 'location' => 'header',
  5136. 'sentAs' => 'x-cos-request-id',
  5137. ),
  5138. ),
  5139. ),
  5140. 'PutBucketCorsOutput' => array(
  5141. 'type' => 'object',
  5142. 'additionalProperties' => true,
  5143. 'properties' => array(
  5144. 'RequestId' => array(
  5145. 'location' => 'header',
  5146. 'sentAs' => 'x-cos-request-id',
  5147. ),
  5148. ),
  5149. ),
  5150. 'PutBucketDomainOutput' => array(
  5151. 'type' => 'object',
  5152. 'additionalProperties' => true,
  5153. 'properties' => array(
  5154. 'RequestId' => array(
  5155. 'location' => 'header',
  5156. 'sentAs' => 'x-cos-request-id',
  5157. ),
  5158. ),
  5159. ),
  5160. 'PutBucketLifecycleOutput' => array(
  5161. 'type' => 'object',
  5162. 'additionalProperties' => true,
  5163. 'properties' => array(
  5164. 'RequestId' => array(
  5165. 'location' => 'header',
  5166. 'sentAs' => 'x-cos-request-id',
  5167. ),
  5168. ),
  5169. ),
  5170. 'PutBucketVersioningOutput' => array(
  5171. 'type' => 'object',
  5172. 'additionalProperties' => true,
  5173. 'properties' => array(
  5174. 'RequestId' => array(
  5175. 'location' => 'header',
  5176. 'sentAs' => 'x-cos-request-id',
  5177. ),
  5178. ),
  5179. ),
  5180. 'PutBucketReplicationOutput' => array(
  5181. 'type' => 'object',
  5182. 'additionalProperties' => true,
  5183. 'properties' => array(
  5184. 'RequestId' => array(
  5185. 'location' => 'header',
  5186. 'sentAs' => 'x-cos-request-id',
  5187. ),
  5188. ),
  5189. ),
  5190. 'PutBucketNotificationOutput' => array(
  5191. 'type' => 'object',
  5192. 'additionalProperties' => true,
  5193. 'properties' => array(
  5194. 'RequestId' => array(
  5195. 'location' => 'header',
  5196. 'sentAs' => 'x-cos-request-id',
  5197. ),
  5198. ),
  5199. ),
  5200. 'PutBucketWebsiteOutput' => array(
  5201. 'type' => 'object',
  5202. 'additionalProperties' => true,
  5203. 'properties' => array(
  5204. 'RequestId' => array(
  5205. 'location' => 'header',
  5206. 'sentAs' => 'x-cos-request-id',
  5207. ),
  5208. ),
  5209. ),
  5210. 'PutBucketAccelerateOutput' => array(
  5211. 'type' => 'object',
  5212. 'additionalProperties' => true,
  5213. 'properties' => array(
  5214. 'RequestId' => array(
  5215. 'location' => 'header',
  5216. 'sentAs' => 'x-cos-request-id',
  5217. ),
  5218. ),
  5219. ),
  5220. 'PutBucketLoggingOutput' => array(
  5221. 'type' => 'object',
  5222. 'additionalProperties' => true,
  5223. 'properties' => array(
  5224. 'RequestId' => array(
  5225. 'location' => 'header',
  5226. 'sentAs' => 'x-cos-request-id',
  5227. ),
  5228. ),
  5229. ),
  5230. 'PutBucketInventoryOutput' => array(
  5231. 'type' => 'object',
  5232. 'additionalProperties' => true,
  5233. 'properties' => array(
  5234. 'RequestId' => array(
  5235. 'location' => 'header',
  5236. 'sentAs' => 'x-cos-request-id',
  5237. ),
  5238. ),
  5239. ),
  5240. 'PutBucketTaggingOutput' => array(
  5241. 'type' => 'object',
  5242. 'additionalProperties' => true,
  5243. 'properties' => array(
  5244. 'RequestId' => array(
  5245. 'location' => 'header',
  5246. 'sentAs' => 'x-cos-request-id',
  5247. ),
  5248. ),
  5249. ),
  5250. 'RestoreObjectOutput' => array(
  5251. 'type' => 'object',
  5252. 'additionalProperties' => true,
  5253. 'properties' => array(
  5254. 'RequestCharged' => array(
  5255. 'type' => 'string',
  5256. 'location' => 'header',
  5257. 'sentAs' => 'x-cos-request-charged',
  5258. ),
  5259. 'RequestId' => array(
  5260. 'location' => 'header',
  5261. 'sentAs' => 'x-cos-request-id',
  5262. ),
  5263. ),
  5264. ),
  5265. 'ListPartsOutput' => array(
  5266. 'type' => 'object',
  5267. 'additionalProperties' => true,
  5268. 'properties' => array(
  5269. 'Bucket' => array(
  5270. 'type' => 'string',
  5271. 'location' => 'xml'
  5272. ),
  5273. 'Key' => array(
  5274. 'type' => 'string',
  5275. 'location' => 'xml'
  5276. ),
  5277. 'UploadId' => array(
  5278. 'type' => 'string',
  5279. 'location' => 'xml'
  5280. ),
  5281. 'PartNumberMarker' => array(
  5282. 'type' => 'numeric',
  5283. 'location' => 'xml'
  5284. ),
  5285. 'NextPartNumberMarker' => array(
  5286. 'type' => 'numeric',
  5287. 'location' => 'xml'
  5288. ),
  5289. 'MaxParts' => array(
  5290. 'type' => 'numeric',
  5291. 'location' => 'xml'
  5292. ),
  5293. 'IsTruncated' => array(
  5294. 'type' => 'boolean',
  5295. 'location' => 'xml'
  5296. ),
  5297. 'Parts' => array(
  5298. 'type' => 'array',
  5299. 'location' => 'xml',
  5300. 'sentAs' => 'Part',
  5301. 'data' => array(
  5302. 'xmlFlattened' => true
  5303. ),
  5304. 'items' => array(
  5305. 'type' => 'object',
  5306. 'properties' => array(
  5307. 'PartNumber' => array(
  5308. 'type' => 'numeric'
  5309. ),
  5310. 'LastModified' => array(
  5311. 'type' => 'string'
  5312. ),
  5313. 'ETag' => array(
  5314. 'type' => 'string'
  5315. ),
  5316. 'Size' => array(
  5317. 'type' => 'numeric'
  5318. )
  5319. )
  5320. )
  5321. ),
  5322. 'Initiator' => array(
  5323. 'type' => 'object',
  5324. 'location' => 'xml',
  5325. 'properties' => array(
  5326. 'ID' => array(
  5327. 'type' => 'string'
  5328. ),
  5329. 'DisplayName' => array(
  5330. 'type' => 'string'
  5331. )
  5332. )
  5333. ),
  5334. 'Owner' => array(
  5335. 'type' => 'object',
  5336. 'location' => 'xml',
  5337. 'properties' => array(
  5338. 'DisplayName' => array(
  5339. 'type' => 'string'
  5340. ),
  5341. 'ID' => array(
  5342. 'type' => 'string'
  5343. )
  5344. )
  5345. ),
  5346. 'StorageClass' => array(
  5347. 'type' => 'string',
  5348. 'location' => 'xml'
  5349. ),
  5350. 'RequestId' => array(
  5351. 'location' => 'header',
  5352. 'sentAs' => 'x-cos-request-id'
  5353. )
  5354. )
  5355. ),
  5356. 'ListObjectsOutput' => array(
  5357. 'type' => 'object',
  5358. 'additionalProperties' => true,
  5359. 'properties' => array(
  5360. 'IsTruncated' => array(
  5361. 'type' => 'boolean',
  5362. 'location' => 'xml'
  5363. ),
  5364. 'Marker' => array(
  5365. 'type' => 'string',
  5366. 'location' => 'xml'
  5367. ),
  5368. 'NextMarker' => array(
  5369. 'type' => 'string',
  5370. 'location' => 'xml'
  5371. ),
  5372. 'Contents' => array(
  5373. 'type' => 'array',
  5374. 'location' => 'xml',
  5375. 'data' => array(
  5376. 'xmlFlattened' => true
  5377. ),
  5378. 'items' => array(
  5379. 'type' => 'object',
  5380. 'properties' => array(
  5381. 'Key' => array(
  5382. 'type' => 'string'
  5383. ),
  5384. 'LastModified' => array(
  5385. 'type' => 'string'
  5386. ),
  5387. 'ETag' => array(
  5388. 'type' => 'string'
  5389. ),
  5390. 'Size' => array(
  5391. 'type' => 'numeric'
  5392. ),
  5393. 'StorageClass' => array(
  5394. 'type' => 'string'
  5395. ),
  5396. 'Owner' => array(
  5397. 'type' => 'object',
  5398. 'properties' => array(
  5399. 'DisplayName' => array(
  5400. 'type' => 'string'
  5401. ),
  5402. 'ID' => array(
  5403. 'type' => 'string'
  5404. )
  5405. )
  5406. )
  5407. )
  5408. )
  5409. ),
  5410. 'Name' => array(
  5411. 'type' => 'string',
  5412. 'location' => 'xml'
  5413. ),
  5414. 'Prefix' => array(
  5415. 'type' => 'string',
  5416. 'location' => 'xml'
  5417. ),
  5418. 'Delimiter' => array(
  5419. 'type' => 'string',
  5420. 'location' => 'xml'
  5421. ),
  5422. 'MaxKeys' => array(
  5423. 'type' => 'numeric',
  5424. 'location' => 'xml'
  5425. ),
  5426. 'CommonPrefixes' => array(
  5427. 'type' => 'array',
  5428. 'location' => 'xml',
  5429. 'data' => array(
  5430. 'xmlFlattened' => true
  5431. ),
  5432. 'items' => array(
  5433. 'type' => 'object',
  5434. 'properties' => array(
  5435. 'Prefix' => array(
  5436. 'type' => 'string'
  5437. )
  5438. )
  5439. )
  5440. ),
  5441. 'EncodingType' => array(
  5442. 'type' => 'string',
  5443. 'location' => 'xml'),
  5444. 'RequestId' => array(
  5445. 'location' => 'header',
  5446. 'sentAs' => 'x-cos-request-id'
  5447. )
  5448. )
  5449. ),
  5450. 'ListBucketsOutput' => array(
  5451. 'type' => 'object',
  5452. 'additionalProperties' => true,
  5453. 'properties' => array(
  5454. 'Buckets' => array(
  5455. 'type' => 'array',
  5456. 'location' => 'xml',
  5457. 'items' => array(
  5458. 'type' => 'object',
  5459. 'properties' => array(
  5460. 'Name' => array(
  5461. 'type' => 'string',
  5462. ),
  5463. 'CreationDate' => array(
  5464. 'type' => 'string',
  5465. ),
  5466. ),
  5467. ),
  5468. ),
  5469. 'Owner' => array(
  5470. 'type' => 'object',
  5471. 'location' => 'xml',
  5472. 'properties' => array(
  5473. 'DisplayName' => array(
  5474. 'type' => 'string',
  5475. ),
  5476. 'ID' => array(
  5477. 'type' => 'string',
  5478. ),
  5479. ),
  5480. ),
  5481. 'RequestId' => array(
  5482. 'location' => 'header',
  5483. 'sentAs' => 'x-cos-request-id',
  5484. ),
  5485. ),
  5486. ),
  5487. 'ListObjectVersionsOutput' => array(
  5488. 'type' => 'object',
  5489. 'additionalProperties' => true,
  5490. 'properties' => array(
  5491. 'IsTruncated' => array(
  5492. 'type' => 'boolean',
  5493. 'location' => 'xml',
  5494. ),
  5495. 'KeyMarker' => array(
  5496. 'type' => 'string',
  5497. 'location' => 'xml',
  5498. ),
  5499. 'VersionIdMarker' => array(
  5500. 'type' => 'string',
  5501. 'location' => 'xml',
  5502. ),
  5503. 'NextKeyMarker' => array(
  5504. 'type' => 'string',
  5505. 'location' => 'xml',
  5506. ),
  5507. 'NextVersionIdMarker' => array(
  5508. 'type' => 'string',
  5509. 'location' => 'xml',
  5510. ),
  5511. 'Version' => array(
  5512. 'type' => 'array',
  5513. 'location' => 'xml',
  5514. 'data' => array(
  5515. 'xmlFlattened' => true,
  5516. ),
  5517. 'items' => array(
  5518. 'type' => 'object',
  5519. 'properties' => array(
  5520. 'ETag' => array(
  5521. 'type' => 'string',
  5522. ),
  5523. 'Size' => array(
  5524. 'type' => 'numeric',
  5525. ),
  5526. 'StorageClass' => array(
  5527. 'type' => 'string',
  5528. ),
  5529. 'Key' => array(
  5530. 'type' => 'string',
  5531. ),
  5532. 'VersionId' => array(
  5533. 'type' => 'string',
  5534. ),
  5535. 'IsLatest' => array(
  5536. 'type' => 'boolean',
  5537. ),
  5538. 'LastModified' => array(
  5539. 'type' => 'string',
  5540. ),
  5541. 'Owner' => array(
  5542. 'type' => 'object',
  5543. 'properties' => array(
  5544. 'DisplayName' => array(
  5545. 'type' => 'string',
  5546. ),
  5547. 'ID' => array(
  5548. 'type' => 'string',
  5549. ),
  5550. ),
  5551. ),
  5552. ),
  5553. ),
  5554. ),
  5555. 'DeleteMarkers' => array(
  5556. 'type' => 'array',
  5557. 'location' => 'xml',
  5558. 'sentAs' => 'DeleteMarker',
  5559. 'data' => array(
  5560. 'xmlFlattened' => true,
  5561. ),
  5562. 'items' => array(
  5563. 'type' => 'object',
  5564. 'properties' => array(
  5565. 'Owner' => array(
  5566. 'type' => 'object',
  5567. 'properties' => array(
  5568. 'DisplayName' => array(
  5569. 'type' => 'string',
  5570. ),
  5571. 'ID' => array(
  5572. 'type' => 'string',
  5573. ),
  5574. ),
  5575. ),
  5576. 'Key' => array(
  5577. 'type' => 'string',
  5578. ),
  5579. 'VersionId' => array(
  5580. 'type' => 'string',
  5581. ),
  5582. 'IsLatest' => array(
  5583. 'type' => 'boolean',
  5584. ),
  5585. 'LastModified' => array(
  5586. 'type' => 'string',
  5587. ),
  5588. ),
  5589. ),
  5590. ),
  5591. 'Name' => array(
  5592. 'type' => 'string',
  5593. 'location' => 'xml',
  5594. ),
  5595. 'Prefix' => array(
  5596. 'type' => 'string',
  5597. 'location' => 'xml',
  5598. ),
  5599. 'Delimiter' => array(
  5600. 'type' => 'string',
  5601. 'location' => 'xml',
  5602. ),
  5603. 'MaxKeys' => array(
  5604. 'type' => 'numeric',
  5605. 'location' => 'xml',
  5606. ),
  5607. 'CommonPrefixes' => array(
  5608. 'type' => 'array',
  5609. 'location' => 'xml',
  5610. 'data' => array(
  5611. 'xmlFlattened' => true,
  5612. ),
  5613. 'items' => array(
  5614. 'type' => 'object',
  5615. 'properties' => array(
  5616. 'Prefix' => array(
  5617. 'type' => 'string',
  5618. ),
  5619. ),
  5620. ),
  5621. ),
  5622. 'EncodingType' => array(
  5623. 'type' => 'string',
  5624. 'location' => 'xml',
  5625. ),
  5626. 'RequestId' => array(
  5627. 'location' => 'header',
  5628. 'sentAs' => 'x-cos-request-id',
  5629. ),
  5630. ),
  5631. ),
  5632. 'ListMultipartUploadsOutput' => array(
  5633. 'type' => 'object',
  5634. 'additionalProperties' => true,
  5635. 'properties' => array(
  5636. 'Bucket' => array(
  5637. 'type' => 'string',
  5638. 'location' => 'xml',
  5639. ),
  5640. 'KeyMarker' => array(
  5641. 'type' => 'string',
  5642. 'location' => 'xml',
  5643. ),
  5644. 'UploadIdMarker' => array(
  5645. 'type' => 'string',
  5646. 'location' => 'xml',
  5647. ),
  5648. 'NextKeyMarker' => array(
  5649. 'type' => 'string',
  5650. 'location' => 'xml',
  5651. ),
  5652. 'Prefix' => array(
  5653. 'type' => 'string',
  5654. 'location' => 'xml',
  5655. ),
  5656. 'Delimiter' => array(
  5657. 'type' => 'string',
  5658. 'location' => 'xml',
  5659. ),
  5660. 'NextUploadIdMarker' => array(
  5661. 'type' => 'string',
  5662. 'location' => 'xml',
  5663. ),
  5664. 'MaxUploads' => array(
  5665. 'type' => 'numeric',
  5666. 'location' => 'xml',
  5667. ),
  5668. 'IsTruncated' => array(
  5669. 'type' => 'boolean',
  5670. 'location' => 'xml',
  5671. ),
  5672. 'Uploads' => array(
  5673. 'type' => 'array',
  5674. 'location' => 'xml',
  5675. 'sentAs' => 'Upload',
  5676. 'data' => array(
  5677. 'xmlFlattened' => true,
  5678. ),
  5679. 'items' => array(
  5680. 'type' => 'object',
  5681. 'properties' => array(
  5682. 'UploadId' => array(
  5683. 'type' => 'string',
  5684. ),
  5685. 'Key' => array(
  5686. 'type' => 'string',
  5687. ),
  5688. 'Initiated' => array(
  5689. 'type' => 'string',
  5690. ),
  5691. 'StorageClass' => array(
  5692. 'type' => 'string',
  5693. ),
  5694. 'Owner' => array(
  5695. 'type' => 'object',
  5696. 'properties' => array(
  5697. 'DisplayName' => array(
  5698. 'type' => 'string',
  5699. ),
  5700. 'ID' => array(
  5701. 'type' => 'string',
  5702. ),
  5703. ),
  5704. ),
  5705. 'Initiator' => array(
  5706. 'type' => 'object',
  5707. 'properties' => array(
  5708. 'ID' => array(
  5709. 'type' => 'string',
  5710. ),
  5711. 'DisplayName' => array(
  5712. 'type' => 'string',
  5713. ),
  5714. ),
  5715. ),
  5716. ),
  5717. ),
  5718. ),
  5719. 'CommonPrefixes' => array(
  5720. 'type' => 'array',
  5721. 'location' => 'xml',
  5722. 'data' => array(
  5723. 'xmlFlattened' => true,
  5724. ),
  5725. 'items' => array(
  5726. 'type' => 'object',
  5727. 'properties' => array(
  5728. 'Prefix' => array(
  5729. 'type' => 'string',
  5730. ),
  5731. ),
  5732. ),
  5733. ),
  5734. 'EncodingType' => array(
  5735. 'type' => 'string',
  5736. 'location' => 'xml',
  5737. ),
  5738. 'RequestId' => array(
  5739. 'location' => 'header',
  5740. 'sentAs' => 'x-cos-request-id',
  5741. ),
  5742. ),
  5743. ),
  5744. 'ListBucketInventoryConfigurationsOutput' => array(
  5745. 'type' => 'object',
  5746. 'additionalProperties' => true,
  5747. 'properties' => array(
  5748. 'InventoryConfiguration' => array(
  5749. 'type' => 'array',
  5750. 'location' => 'xml',
  5751. 'sentAs' => 'InventoryConfiguration',
  5752. 'items' => array(
  5753. 'type' => 'object',
  5754. 'properties' => array(
  5755. 'Destination' => array(
  5756. 'type' => 'object',
  5757. 'location' => 'xml',
  5758. 'properties' => array(
  5759. 'COSBucketDestination' => array(
  5760. 'type' => 'object',
  5761. 'properties' => array(
  5762. 'Format' => array(
  5763. 'type' => 'string',
  5764. ),
  5765. 'AccountId' => array(
  5766. 'type' => 'string',
  5767. ),
  5768. 'Bucket' => array(
  5769. 'type' => 'string',
  5770. ),
  5771. 'Prefix' => array(
  5772. 'type' => 'string',
  5773. ),
  5774. 'Encryption' => array(
  5775. 'type' => 'object',
  5776. 'properties' => array(
  5777. 'SSE-COS' => array(
  5778. 'type' => 'string',
  5779. )
  5780. )
  5781. ),
  5782. ),
  5783. ),
  5784. ),
  5785. ),
  5786. 'Schedule' => array(
  5787. 'type' => 'object',
  5788. 'location' => 'xml',
  5789. 'properties' => array(
  5790. 'Frequency' => array(
  5791. 'type' => 'string',
  5792. ),
  5793. ),
  5794. ),
  5795. 'OptionalFields' => array(
  5796. 'type' => 'array',
  5797. 'location' => 'xml',
  5798. 'properties' => array(
  5799. 'Key' => array(
  5800. 'type' => 'string',
  5801. ),
  5802. ),
  5803. ),
  5804. 'OptionalFields' => array(
  5805. 'type' => 'array',
  5806. 'location' => 'xml',
  5807. 'items' => array(
  5808. 'name' => 'Field',
  5809. 'type' => 'string',
  5810. 'sentAs' => 'Field',
  5811. ),
  5812. ),
  5813. 'IsEnabled' => array(
  5814. 'type' => 'string',
  5815. 'location' => 'xml',
  5816. ),
  5817. 'Id' => array(
  5818. 'type' => 'string',
  5819. 'location' => 'xml',
  5820. ),
  5821. 'IncludedObjectVersions' => array(
  5822. 'type' => 'string',
  5823. 'location' => 'xml',
  5824. ),
  5825. 'RequestId' => array(
  5826. 'location' => 'header',
  5827. 'sentAs' => 'x-cos-request-id',
  5828. ),
  5829. ),
  5830. ),
  5831. ),
  5832. ),
  5833. ),
  5834. 'HeadObjectOutput' => array(
  5835. 'type' => 'object',
  5836. 'additionalProperties' => true,
  5837. 'properties' => array(
  5838. 'DeleteMarker' => array(
  5839. 'type' => 'boolean',
  5840. 'location' => 'header',
  5841. 'sentAs' => 'x-cos-delete-marker',
  5842. ),
  5843. 'AcceptRanges' => array(
  5844. 'type' => 'string',
  5845. 'location' => 'header',
  5846. 'sentAs' => 'accept-ranges',
  5847. ),
  5848. 'Expiration' => array(
  5849. 'type' => 'string',
  5850. 'location' => 'header',
  5851. 'sentAs' => 'x-cos-expiration',
  5852. ),
  5853. 'Restore' => array(
  5854. 'type' => 'string',
  5855. 'location' => 'header',
  5856. 'sentAs' => 'x-cos-restore',
  5857. ),
  5858. 'LastModified' => array(
  5859. 'type' => 'string',
  5860. 'location' => 'header',
  5861. 'sentAs' => 'Last-Modified',
  5862. ),
  5863. 'ContentLength' => array(
  5864. 'type' => 'numeric',
  5865. 'minimum'=> 0,
  5866. 'location' => 'header',
  5867. 'sentAs' => 'Content-Length',
  5868. ),
  5869. 'ETag' => array(
  5870. 'type' => 'string',
  5871. 'location' => 'header',
  5872. ),
  5873. 'MissingMeta' => array(
  5874. 'type' => 'numeric',
  5875. 'location' => 'header',
  5876. 'sentAs' => 'x-cos-missing-meta',
  5877. ),
  5878. 'VersionId' => array(
  5879. 'type' => 'string',
  5880. 'location' => 'header',
  5881. 'sentAs' => 'x-cos-version-id',
  5882. ),
  5883. 'CacheControl' => array(
  5884. 'type' => 'string',
  5885. 'location' => 'header',
  5886. 'sentAs' => 'Cache-Control',
  5887. ),
  5888. 'ContentDisposition' => array(
  5889. 'type' => 'string',
  5890. 'location' => 'header',
  5891. 'sentAs' => 'Content-Disposition',
  5892. ),
  5893. 'ContentEncoding' => array(
  5894. 'type' => 'string',
  5895. 'location' => 'header',
  5896. 'sentAs' => 'Content-Encoding',
  5897. ),
  5898. 'ContentLanguage' => array(
  5899. 'type' => 'string',
  5900. 'location' => 'header',
  5901. 'sentAs' => 'Content-Language',
  5902. ),
  5903. 'ContentType' => array(
  5904. 'type' => 'string',
  5905. 'location' => 'header',
  5906. 'sentAs' => 'Content-Type',
  5907. ),
  5908. 'Expires' => array(
  5909. 'type' => 'string',
  5910. 'location' => 'header',
  5911. ),
  5912. 'WebsiteRedirectLocation' => array(
  5913. 'type' => 'string',
  5914. 'location' => 'header',
  5915. 'sentAs' => 'x-cos-website-redirect-location',
  5916. ),
  5917. 'ServerSideEncryption' => array(
  5918. 'type' => 'string',
  5919. 'location' => 'header',
  5920. 'sentAs' => 'x-cos-server-side-encryption',
  5921. ),
  5922. 'SSECustomerAlgorithm' => array(
  5923. 'type' => 'string',
  5924. 'location' => 'header',
  5925. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  5926. ),
  5927. 'SSECustomerKeyMD5' => array(
  5928. 'type' => 'string',
  5929. 'location' => 'header',
  5930. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  5931. ),
  5932. 'SSEKMSKeyId' => array(
  5933. 'type' => 'string',
  5934. 'location' => 'header',
  5935. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  5936. ),
  5937. 'StorageClass' => array(
  5938. 'type' => 'string',
  5939. 'location' => 'header',
  5940. 'sentAs' => 'x-cos-storage-class',
  5941. ),
  5942. 'RequestCharged' => array(
  5943. 'type' => 'string',
  5944. 'location' => 'header',
  5945. 'sentAs' => 'x-cos-request-charged',
  5946. ),
  5947. 'ReplicationStatus' => array(
  5948. 'type' => 'string',
  5949. 'location' => 'header',
  5950. 'sentAs' => 'x-cos-replication-status',
  5951. ),
  5952. 'RequestId' => array(
  5953. 'location' => 'header',
  5954. 'sentAs' => 'x-cos-request-id',
  5955. ),
  5956. 'CRC' => array(
  5957. 'type' => 'string',
  5958. 'location' => 'header',
  5959. 'sentAs' => 'x-cos-hash-crc64ecma',
  5960. )
  5961. )
  5962. ),
  5963. 'HeadBucketOutput' => array(
  5964. 'type' => 'object',
  5965. 'additionalProperties' => true,
  5966. 'properties' => array(
  5967. 'RequestId' => array(
  5968. 'location' => 'header',
  5969. 'sentAs' => 'x-cos-request-id',
  5970. ),
  5971. ),
  5972. ),
  5973. 'SelectObjectContentOutput' => array(
  5974. 'type' => 'object',
  5975. 'additionalProperties' => true,
  5976. 'properties' => array(
  5977. 'RawData' => array(
  5978. 'type' => 'string',
  5979. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  5980. 'location' => 'body',
  5981. ),
  5982. ),
  5983. ),
  5984. 'GetBucketIntelligentTieringOutput' => array(
  5985. 'type' => 'object',
  5986. 'additionalProperties' => true,
  5987. 'properties' => array(
  5988. 'Status' => array(
  5989. 'type' => 'string',
  5990. 'location' => 'xml',
  5991. ),
  5992. 'Transition' => array(
  5993. 'type' => 'object',
  5994. 'location' => 'xml',
  5995. 'properties' => array(
  5996. 'Days' => array(
  5997. 'type' => 'string',
  5998. ),
  5999. 'RequestFrequent' => array(
  6000. 'type' => 'string',
  6001. ),
  6002. )
  6003. ),
  6004. 'RequestId' => array(
  6005. 'location' => 'header',
  6006. 'sentAs' => 'x-cos-request-id',
  6007. ),
  6008. ),
  6009. ),
  6010. 'PutBucketIntelligentTieringOutput' => array(
  6011. 'type' => 'object',
  6012. 'additionalProperties' => true,
  6013. 'properties' => array(
  6014. 'RequestId' => array(
  6015. 'location' => 'header',
  6016. 'sentAs' => 'x-cos-request-id',
  6017. ),
  6018. ),
  6019. ),
  6020. 'ImageInfoOutput' => array(
  6021. 'type' => 'object',
  6022. 'additionalProperties' => true,
  6023. 'properties' => array(
  6024. 'Body' => array(
  6025. 'type' => 'string',
  6026. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6027. 'location' => 'body',
  6028. ),
  6029. 'RequestId' => array(
  6030. 'location' => 'header',
  6031. 'sentAs' => 'x-cos-request-id',
  6032. ),
  6033. 'ContentType' => array(
  6034. 'type' => 'string',
  6035. 'location' => 'header',
  6036. 'sentAs' => 'Content-Type',
  6037. ),
  6038. 'ContentLength' => array(
  6039. 'type' => 'numeric',
  6040. 'minimum'=> 0,
  6041. 'location' => 'header',
  6042. 'sentAs' => 'Content-Length',
  6043. ),
  6044. ),
  6045. ),
  6046. 'ImageExifOutput' => array(
  6047. 'type' => 'object',
  6048. 'additionalProperties' => true,
  6049. 'properties' => array(
  6050. 'Body' => array(
  6051. 'type' => 'string',
  6052. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6053. 'location' => 'body',
  6054. ),
  6055. 'RequestId' => array(
  6056. 'location' => 'header',
  6057. 'sentAs' => 'x-cos-request-id',
  6058. ),
  6059. 'ContentType' => array(
  6060. 'type' => 'string',
  6061. 'location' => 'header',
  6062. 'sentAs' => 'Content-Type',
  6063. ),
  6064. 'ContentLength' => array(
  6065. 'type' => 'numeric',
  6066. 'minimum'=> 0,
  6067. 'location' => 'header',
  6068. 'sentAs' => 'Content-Length',
  6069. ),
  6070. ),
  6071. ),
  6072. 'ImageAveOutput' => array(
  6073. 'type' => 'object',
  6074. 'additionalProperties' => true,
  6075. 'properties' => array(
  6076. 'Body' => array(
  6077. 'type' => 'string',
  6078. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6079. 'location' => 'body',
  6080. ),
  6081. 'RequestId' => array(
  6082. 'location' => 'header',
  6083. 'sentAs' => 'x-cos-request-id',
  6084. ),
  6085. 'ContentType' => array(
  6086. 'type' => 'string',
  6087. 'location' => 'header',
  6088. 'sentAs' => 'Content-Type',
  6089. ),
  6090. 'ContentLength' => array(
  6091. 'type' => 'numeric',
  6092. 'minimum'=> 0,
  6093. 'location' => 'header',
  6094. 'sentAs' => 'Content-Length',
  6095. ),
  6096. ),
  6097. ),
  6098. 'ImageProcessOutput' => array(
  6099. 'type' => 'object',
  6100. 'additionalProperties' => true,
  6101. 'properties' => array(
  6102. 'RequestId' => array(
  6103. 'location' => 'header',
  6104. 'sentAs' => 'x-cos-request-id',
  6105. ),
  6106. 'OriginalInfo' => array(
  6107. 'type' => 'object',
  6108. 'location' => 'xml',
  6109. 'properties' => array(
  6110. 'Key' => array(
  6111. 'type' => 'string',
  6112. ),
  6113. 'Location' => array(
  6114. 'type' => 'string',
  6115. ),
  6116. 'ETag' => array(
  6117. 'type' => 'string',
  6118. ),
  6119. 'ImageInfo' => array(
  6120. 'type' => 'object',
  6121. 'properties' => array(
  6122. 'Format' => array(
  6123. 'type' => 'string',
  6124. ),
  6125. 'Width' => array(
  6126. 'type' => 'string',
  6127. ),
  6128. 'Height' => array(
  6129. 'type' => 'string',
  6130. ),
  6131. 'Quality' => array(
  6132. 'type' => 'string',
  6133. ),
  6134. 'Ave' => array(
  6135. 'type' => 'string',
  6136. ),
  6137. 'Orientation' => array(
  6138. 'type' => 'string',
  6139. ),
  6140. ),
  6141. ),
  6142. ),
  6143. ),
  6144. 'ProcessResults' => array(
  6145. 'type' => 'object',
  6146. 'location' => 'xml',
  6147. 'properties' => array(
  6148. 'Object' => array(
  6149. 'type' => 'array',
  6150. 'items' => array(
  6151. 'type' => 'object',
  6152. 'properties' => array(
  6153. 'Key' => array(
  6154. 'type' => 'string',
  6155. ),
  6156. 'Location' => array(
  6157. 'type' => 'string',
  6158. ),
  6159. 'Format' => array(
  6160. 'type' => 'string',
  6161. ),
  6162. 'Width' => array(
  6163. 'type' => 'string',
  6164. ),
  6165. 'Height' => array(
  6166. 'type' => 'string',
  6167. ),
  6168. 'Size' => array(
  6169. 'type' => 'string',
  6170. ),
  6171. 'Quality' => array(
  6172. 'type' => 'string',
  6173. ),
  6174. 'ETag' => array(
  6175. 'type' => 'string',
  6176. ),
  6177. 'WatermarkStatus' => array(
  6178. 'type' => 'integer',
  6179. ),
  6180. ),
  6181. ),
  6182. ),
  6183. ),
  6184. ),
  6185. ),
  6186. ),
  6187. 'QrcodeOutput' => array(
  6188. 'type' => 'object',
  6189. 'additionalProperties' => true,
  6190. 'properties' => array(
  6191. 'RequestId' => array(
  6192. 'location' => 'header',
  6193. 'sentAs' => 'x-cos-request-id',
  6194. ),
  6195. 'CodeStatus' => array(
  6196. 'type' => 'integer',
  6197. 'location' => 'xml',
  6198. ),
  6199. 'QRcodeInfo' => array(
  6200. 'type' => 'array',
  6201. 'location' => 'xml',
  6202. 'items' => array(
  6203. 'type' => 'object',
  6204. 'properties' => array(
  6205. 'CodeUrl' => array(
  6206. 'type' => 'string',
  6207. ),
  6208. 'Point' => array(
  6209. 'type' => 'array',
  6210. 'items' => array(
  6211. 'type' => 'string',
  6212. ),
  6213. ),
  6214. ),
  6215. ),
  6216. ),
  6217. 'ResultImage' => array(
  6218. 'type' => 'string',
  6219. 'location' => 'xml',
  6220. ),
  6221. ),
  6222. ),
  6223. 'QrcodeGenerateOutput' => array(
  6224. 'type' => 'object',
  6225. 'additionalProperties' => true,
  6226. 'properties' => array(
  6227. 'RequestId' => array(
  6228. 'location' => 'header',
  6229. 'sentAs' => 'x-cos-request-id',
  6230. ),
  6231. 'ResultImage' => array(
  6232. 'type' => 'string',
  6233. 'location' => 'xml',
  6234. ),
  6235. ),
  6236. ),
  6237. 'DetectLabelOutput' => array(
  6238. 'type' => 'object',
  6239. 'additionalProperties' => true,
  6240. 'properties' => array(
  6241. 'RequestId' => array(
  6242. 'location' => 'header',
  6243. 'sentAs' => 'x-cos-request-id',
  6244. ),
  6245. 'Labels' => array(
  6246. 'type' => 'array',
  6247. 'location' => 'xml',
  6248. 'items' => array(
  6249. 'type' => 'object',
  6250. 'properties' => array(
  6251. 'Confidence' => array(
  6252. 'type' => 'integer',
  6253. ),
  6254. 'Name' => array(
  6255. 'type' => 'string',
  6256. ),
  6257. ),
  6258. ),
  6259. ),
  6260. ),
  6261. ),
  6262. 'PutBucketImageStyleOutput' => array(
  6263. 'type' => 'object',
  6264. 'additionalProperties' => true,
  6265. 'properties' => array(
  6266. 'RequestId' => array(
  6267. 'location' => 'header',
  6268. 'sentAs' => 'x-cos-request-id',
  6269. ),
  6270. ),
  6271. ),
  6272. 'GetBucketImageStyleOutput' => array(
  6273. 'type' => 'object',
  6274. 'additionalProperties' => true,
  6275. 'properties' => array(
  6276. 'RequestId' => array(
  6277. 'location' => 'header',
  6278. 'sentAs' => 'x-cos-request-id',
  6279. ),
  6280. 'StyleRule' => array(
  6281. 'type' => 'array',
  6282. 'location' => 'xml',
  6283. 'items' => array(
  6284. 'type' => 'object',
  6285. 'properties' => array(
  6286. 'StyleName' => array(
  6287. 'type' => 'string',
  6288. ),
  6289. 'StyleBody' => array(
  6290. 'type' => 'string',
  6291. ),
  6292. ),
  6293. ),
  6294. ),
  6295. ),
  6296. ),
  6297. 'DeleteBucketImageStyleOutput' => array(
  6298. 'type' => 'object',
  6299. 'additionalProperties' => true,
  6300. 'properties' => array(
  6301. 'RequestId' => array(
  6302. 'location' => 'header',
  6303. 'sentAs' => 'x-cos-request-id',
  6304. ),
  6305. ),
  6306. ),
  6307. 'PutBucketGuetzliOutput' => array(
  6308. 'type' => 'object',
  6309. 'additionalProperties' => true,
  6310. 'properties' => array(
  6311. 'RequestId' => array(
  6312. 'location' => 'header',
  6313. 'sentAs' => 'x-cos-request-id',
  6314. ),
  6315. ),
  6316. ),
  6317. 'GetBucketGuetzliOutput' => array(
  6318. 'type' => 'object',
  6319. 'additionalProperties' => true,
  6320. 'properties' => array(
  6321. 'RequestId' => array(
  6322. 'location' => 'header',
  6323. 'sentAs' => 'x-cos-request-id',
  6324. ),
  6325. 'ContentLength' => array(
  6326. 'type' => 'numeric',
  6327. 'minimum'=> 0,
  6328. 'location' => 'header',
  6329. 'sentAs' => 'Content-Length',
  6330. ),
  6331. 'Body' => array(
  6332. 'type' => 'string',
  6333. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6334. 'location' => 'body',
  6335. ),
  6336. ),
  6337. ),
  6338. 'DeleteBucketGuetzliOutput' => array(
  6339. 'type' => 'object',
  6340. 'additionalProperties' => true,
  6341. 'properties' => array(
  6342. 'RequestId' => array(
  6343. 'location' => 'header',
  6344. 'sentAs' => 'x-cos-request-id',
  6345. ),
  6346. ),
  6347. ),
  6348. 'GetObjectSensitiveContentRecognitionOutput' => array(
  6349. 'type' => 'object',
  6350. 'additionalProperties' => true,
  6351. 'properties' => array(
  6352. 'RequestId' => array(
  6353. 'location' => 'header',
  6354. 'sentAs' => 'x-cos-request-id',
  6355. ),
  6356. 'PornInfo' => array(
  6357. 'type' => 'array',
  6358. 'location' => 'xml',
  6359. 'items' => array(
  6360. 'type' => 'object',
  6361. 'properties' => array(
  6362. 'Code' => array(
  6363. 'type' => 'integer',
  6364. ),
  6365. 'Msg' => array(
  6366. 'type' => 'string',
  6367. ),
  6368. 'HitFlag' => array(
  6369. 'type' => 'integer',
  6370. ),
  6371. 'Score' => array(
  6372. 'type' => 'integer',
  6373. ),
  6374. 'Label' => array(
  6375. 'type' => 'string',
  6376. )
  6377. ),
  6378. ),
  6379. ),
  6380. 'TerroristInfo' => array(
  6381. 'type' => 'array',
  6382. 'location' => 'xml',
  6383. 'items' => array(
  6384. 'type' => 'object',
  6385. 'properties' => array(
  6386. 'Code' => array(
  6387. 'type' => 'integer',
  6388. ),
  6389. 'Msg' => array(
  6390. 'type' => 'string',
  6391. ),
  6392. 'HitFlag' => array(
  6393. 'type' => 'integer',
  6394. ),
  6395. 'Score' => array(
  6396. 'type' => 'integer',
  6397. ),
  6398. 'Label' => array(
  6399. 'type' => 'string',
  6400. )
  6401. ),
  6402. ),
  6403. ),
  6404. 'PoliticsInfo' => array(
  6405. 'type' => 'array',
  6406. 'location' => 'xml',
  6407. 'items' => array(
  6408. 'type' => 'object',
  6409. 'properties' => array(
  6410. 'Code' => array(
  6411. 'type' => 'integer',
  6412. ),
  6413. 'Msg' => array(
  6414. 'type' => 'string',
  6415. ),
  6416. 'HitFlag' => array(
  6417. 'type' => 'integer',
  6418. ),
  6419. 'Score' => array(
  6420. 'type' => 'integer',
  6421. ),
  6422. 'Label' => array(
  6423. 'type' => 'string',
  6424. )
  6425. ),
  6426. ),
  6427. ),
  6428. 'AdsInfo' => array(
  6429. 'type' => 'array',
  6430. 'location' => 'xml',
  6431. 'items' => array(
  6432. 'type' => 'object',
  6433. 'properties' => array(
  6434. 'Code' => array(
  6435. 'type' => 'integer',
  6436. ),
  6437. 'Msg' => array(
  6438. 'type' => 'string',
  6439. ),
  6440. 'HitFlag' => array(
  6441. 'type' => 'integer',
  6442. ),
  6443. 'Score' => array(
  6444. 'type' => 'integer',
  6445. ),
  6446. 'Label' => array(
  6447. 'type' => 'string',
  6448. )
  6449. ),
  6450. ),
  6451. ),
  6452. )
  6453. ),
  6454. 'DetectTextOutput' => array(
  6455. 'type' => 'object',
  6456. 'additionalProperties' => true,
  6457. 'properties' => array(
  6458. 'RequestId' => array(
  6459. 'type' => 'string',
  6460. 'location' => 'header',
  6461. 'sentAs' => 'x-ci-request-id',
  6462. ),
  6463. 'ContentType' => array(
  6464. 'type' => 'string',
  6465. 'location' => 'header',
  6466. 'sentAs' => 'Content-Type',
  6467. ),
  6468. 'ContentLength' => array(
  6469. 'type' => 'numeric',
  6470. 'minimum'=> 0,
  6471. 'location' => 'header',
  6472. 'sentAs' => 'Content-Length',
  6473. ),
  6474. 'JobsDetail' => array(
  6475. 'type' => 'object',
  6476. 'location' => 'xml',
  6477. 'properties' => array(
  6478. 'Code' => array( 'type' => 'string', 'location' => 'xml',),
  6479. 'Message' => array( 'type' => 'string', 'location' => 'xml',),
  6480. 'JobId' => array( 'type' => 'string', 'location' => 'xml',),
  6481. 'State' => array( 'type' => 'string', 'location' => 'xml',),
  6482. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml',),
  6483. 'Content' => array( 'type' => 'string', 'location' => 'xml',),
  6484. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  6485. 'Result' => array( 'type' => 'integer', 'location' => 'xml',),
  6486. 'SectionCount' => array( 'type' => 'integer', 'location' => 'xml',),
  6487. 'PornInfo' => array(
  6488. 'type' => 'object',
  6489. 'location' => 'xml',
  6490. 'properties' => array(
  6491. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6492. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6493. ),
  6494. ),
  6495. 'TerrorismInfo' => array(
  6496. 'type' => 'object',
  6497. 'location' => 'xml',
  6498. 'properties' => array(
  6499. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6500. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6501. ),
  6502. ),
  6503. 'PoliticsInfo' => array(
  6504. 'type' => 'object',
  6505. 'location' => 'xml',
  6506. 'properties' => array(
  6507. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6508. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6509. ),
  6510. ),
  6511. 'AdsInfo' => array(
  6512. 'type' => 'object',
  6513. 'location' => 'xml',
  6514. 'properties' => array(
  6515. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6516. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6517. ),
  6518. ),
  6519. 'IllegalInfo' => array(
  6520. 'type' => 'object',
  6521. 'location' => 'xml',
  6522. 'properties' => array(
  6523. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6524. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6525. ),
  6526. ),
  6527. 'AbuseInfo' => array(
  6528. 'type' => 'object',
  6529. 'location' => 'xml',
  6530. 'properties' => array(
  6531. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6532. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6533. ),
  6534. ),
  6535. 'Section' => array(
  6536. 'type' => 'array',
  6537. 'location' => 'xml',
  6538. 'items' => array(
  6539. 'type' => 'object',
  6540. 'properties' => array(
  6541. 'StartByte' => array( 'type' => 'integer', 'location' => 'xml',),
  6542. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  6543. 'Result' => array( 'type' => 'integer', 'location' => 'xml',),
  6544. 'PornInfo' => array(
  6545. 'type' => 'object',
  6546. 'location' => 'xml',
  6547. 'properties' => array(
  6548. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6549. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6550. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6551. ),
  6552. ),
  6553. 'TerrorismInfo' => array(
  6554. 'type' => 'object',
  6555. 'location' => 'xml',
  6556. 'properties' => array(
  6557. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6558. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6559. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6560. ),
  6561. ),
  6562. 'PoliticsInfo' => array(
  6563. 'type' => 'object',
  6564. 'location' => 'xml',
  6565. 'properties' => array(
  6566. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6567. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6568. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6569. ),
  6570. ),
  6571. 'AdsInfo' => array(
  6572. 'type' => 'object',
  6573. 'location' => 'xml',
  6574. 'properties' => array(
  6575. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6576. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6577. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6578. ),
  6579. ),
  6580. 'IllegalInfo' => array(
  6581. 'type' => 'object',
  6582. 'location' => 'xml',
  6583. 'properties' => array(
  6584. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6585. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6586. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6587. ),
  6588. ),
  6589. 'AbuseInfo' => array(
  6590. 'type' => 'object',
  6591. 'location' => 'xml',
  6592. 'properties' => array(
  6593. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6594. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6595. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6596. ),
  6597. ),
  6598. ),
  6599. ),
  6600. ),
  6601. ),
  6602. ),
  6603. ),
  6604. ),
  6605. 'GetSnapshotOutput' => array(
  6606. 'type' => 'object',
  6607. 'additionalProperties' => true,
  6608. 'properties' => array(
  6609. 'Body' => array(
  6610. 'type' => 'string',
  6611. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6612. 'location' => 'body',
  6613. ),
  6614. 'DeleteMarker' => array(
  6615. 'type' => 'boolean',
  6616. 'location' => 'header',
  6617. 'sentAs' => 'x-cos-delete-marker',
  6618. ),
  6619. 'AcceptRanges' => array(
  6620. 'type' => 'string',
  6621. 'location' => 'header',
  6622. 'sentAs' => 'accept-ranges',
  6623. ),
  6624. 'Expiration' => array(
  6625. 'type' => 'string',
  6626. 'location' => 'header',
  6627. 'sentAs' => 'x-cos-expiration',
  6628. ),
  6629. 'Restore' => array(
  6630. 'type' => 'string',
  6631. 'location' => 'header',
  6632. 'sentAs' => 'x-cos-restore',
  6633. ),
  6634. 'LastModified' => array(
  6635. 'type' => 'string',
  6636. 'location' => 'header',
  6637. 'sentAs' => 'Last-Modified',
  6638. ),
  6639. 'ContentLength' => array(
  6640. 'type' => 'numeric',
  6641. 'minimum'=> 0,
  6642. 'location' => 'header',
  6643. 'sentAs' => 'Content-Length',
  6644. ),
  6645. 'ETag' => array(
  6646. 'type' => 'string',
  6647. 'location' => 'header',
  6648. ),
  6649. 'MissingMeta' => array(
  6650. 'type' => 'numeric',
  6651. 'location' => 'header',
  6652. 'sentAs' => 'x-cos-missing-meta',
  6653. ),
  6654. 'VersionId' => array(
  6655. 'type' => 'string',
  6656. 'location' => 'header',
  6657. 'sentAs' => 'x-cos-version-id',
  6658. ),
  6659. 'CacheControl' => array(
  6660. 'type' => 'string',
  6661. 'location' => 'header',
  6662. 'sentAs' => 'Cache-Control',
  6663. ),
  6664. 'ContentDisposition' => array(
  6665. 'type' => 'string',
  6666. 'location' => 'header',
  6667. 'sentAs' => 'Content-Disposition',
  6668. ),
  6669. 'ContentEncoding' => array(
  6670. 'type' => 'string',
  6671. 'location' => 'header',
  6672. 'sentAs' => 'Content-Encoding',
  6673. ),
  6674. 'ContentLanguage' => array(
  6675. 'type' => 'string',
  6676. 'location' => 'header',
  6677. 'sentAs' => 'Content-Language',
  6678. ),
  6679. 'ContentRange' => array(
  6680. 'type' => 'string',
  6681. 'location' => 'header',
  6682. 'sentAs' => 'Content-Range',
  6683. ),
  6684. 'ContentType' => array(
  6685. 'type' => 'string',
  6686. 'location' => 'header',
  6687. 'sentAs' => 'Content-Type',
  6688. ),
  6689. 'Expires' => array(
  6690. 'type' => 'string',
  6691. 'location' => 'header',
  6692. ),
  6693. 'WebsiteRedirectLocation' => array(
  6694. 'type' => 'string',
  6695. 'location' => 'header',
  6696. 'sentAs' => 'x-cos-website-redirect-location',
  6697. ),
  6698. 'ServerSideEncryption' => array(
  6699. 'type' => 'string',
  6700. 'location' => 'header',
  6701. 'sentAs' => 'x-cos-server-side-encryption',
  6702. ),
  6703. 'SSECustomerAlgorithm' => array(
  6704. 'type' => 'string',
  6705. 'location' => 'header',
  6706. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  6707. ),
  6708. 'SSECustomerKeyMD5' => array(
  6709. 'type' => 'string',
  6710. 'location' => 'header',
  6711. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  6712. ),
  6713. 'SSEKMSKeyId' => array(
  6714. 'type' => 'string',
  6715. 'location' => 'header',
  6716. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  6717. ),
  6718. 'StorageClass' => array(
  6719. 'type' => 'string',
  6720. 'location' => 'header',
  6721. 'sentAs' => 'x-cos-storage-class',
  6722. ),
  6723. 'RequestCharged' => array(
  6724. 'type' => 'string',
  6725. 'location' => 'header',
  6726. 'sentAs' => 'x-cos-request-charged',
  6727. ),
  6728. 'ReplicationStatus' => array(
  6729. 'type' => 'string',
  6730. 'location' => 'header',
  6731. 'sentAs' => 'x-cos-replication-status',
  6732. ),
  6733. 'RequestId' => array(
  6734. 'location' => 'header',
  6735. 'sentAs' => 'x-cos-request-id',
  6736. )
  6737. )
  6738. ),
  6739. 'PutBucketRefererOutput' => array(
  6740. 'type' => 'object',
  6741. 'additionalProperties' => true,
  6742. 'properties' => array(
  6743. 'ContentLength' => array(
  6744. 'type' => 'numeric',
  6745. 'minimum'=> 0,
  6746. 'location' => 'header',
  6747. 'sentAs' => 'Content-Length',
  6748. ),
  6749. 'ETag' => array(
  6750. 'type' => 'string',
  6751. 'location' => 'header',
  6752. ),
  6753. 'RequestId' => array(
  6754. 'location' => 'header',
  6755. 'sentAs' => 'x-cos-request-id',
  6756. )
  6757. )
  6758. ),
  6759. 'GetBucketRefererOutput' => array(
  6760. 'type' => 'object',
  6761. 'additionalProperties' => true,
  6762. 'properties' => array(
  6763. 'RequestId' => array(
  6764. 'location' => 'header',
  6765. 'sentAs' => 'x-cos-request-id'
  6766. ),
  6767. 'ContentType' => array(
  6768. 'type' => 'string',
  6769. 'location' => 'header',
  6770. 'sentAs' => 'Content-Type',
  6771. ),
  6772. 'ContentLength' => array(
  6773. 'type' => 'numeric',
  6774. 'minimum'=> 0,
  6775. 'location' => 'header',
  6776. 'sentAs' => 'Content-Length',
  6777. ),
  6778. 'Status' => array(
  6779. 'type' => 'string',
  6780. 'location' => 'xml'
  6781. ),
  6782. 'RefererType' => array(
  6783. 'type' => 'string',
  6784. 'location' => 'xml'
  6785. ),
  6786. 'EmptyReferConfiguration' => array(
  6787. 'type' => 'string',
  6788. 'location' => 'xml'
  6789. ),
  6790. 'DomainList' => array(
  6791. 'location' => 'xml',
  6792. 'type' => 'object',
  6793. 'properties' => array(
  6794. 'Domains' => array(
  6795. 'type' => 'array',
  6796. 'data' => array(
  6797. 'xmlFlattened' => true,
  6798. ),
  6799. 'items' => array(
  6800. 'name' => 'Domain',
  6801. 'type' => 'string',
  6802. 'sentAs' => 'Domain',
  6803. ),
  6804. )
  6805. )
  6806. )
  6807. )
  6808. ),
  6809. 'GetMediaInfoOutput' => array(
  6810. 'type' => 'object',
  6811. 'additionalProperties' => true,
  6812. 'properties' => array(
  6813. 'RequestId' => array(
  6814. 'type' => 'string',
  6815. 'location' => 'header',
  6816. 'sentAs' => 'x-cos-request-id',
  6817. ),
  6818. 'ContentType' => array(
  6819. 'type' => 'string',
  6820. 'location' => 'header',
  6821. 'sentAs' => 'Content-Type',
  6822. ),
  6823. 'ContentLength' => array(
  6824. 'type' => 'numeric',
  6825. 'minimum'=> 0,
  6826. 'location' => 'header',
  6827. 'sentAs' => 'Content-Length',
  6828. ),
  6829. 'MediaInfo' => array(
  6830. 'type' => 'object',
  6831. 'location' => 'xml',
  6832. 'properties' => array(
  6833. 'Stream' => array(
  6834. 'type' => 'object',
  6835. 'location' => 'xml',
  6836. 'properties' => array(
  6837. 'JobId' => array(
  6838. 'type' => 'string',
  6839. ),
  6840. 'State' => array(
  6841. 'type' => 'string',
  6842. ),
  6843. 'Video' => array(
  6844. 'type' => 'object',
  6845. 'location' => 'xml',
  6846. 'properties' => array(
  6847. 'Index' => array(
  6848. 'type' => 'integer',
  6849. ),
  6850. 'CodecName' => array(
  6851. 'type' => 'string',
  6852. ),
  6853. 'CodecLongName' => array(
  6854. 'type' => 'string',
  6855. ),
  6856. 'CodecTimeBase' => array(
  6857. 'type' => 'string',
  6858. ),
  6859. 'CodecTag' => array(
  6860. 'type' => 'string',
  6861. ),
  6862. 'Profile' => array(
  6863. 'type' => 'string',
  6864. ),
  6865. 'Height' => array(
  6866. 'type' => 'integer',
  6867. ),
  6868. 'Width' => array(
  6869. 'type' => 'integer',
  6870. ),
  6871. 'HasBFrame' => array(
  6872. 'type' => 'integer',
  6873. ),
  6874. 'RefFrames' => array(
  6875. 'type' => 'integer',
  6876. ),
  6877. 'Sar' => array(
  6878. 'type' => 'string',
  6879. ),
  6880. 'Dar' => array(
  6881. 'type' => 'string',
  6882. ),
  6883. 'PixFormat' => array(
  6884. 'type' => 'string',
  6885. ),
  6886. 'FieldOrder' => array(
  6887. 'type' => 'string',
  6888. ),
  6889. 'Level' => array(
  6890. 'type' => 'integer',
  6891. ),
  6892. 'Fps' => array(
  6893. 'type' => 'integer',
  6894. ),
  6895. 'AvgFps' => array(
  6896. 'type' => 'string',
  6897. ),
  6898. 'Timebase' => array(
  6899. 'type' => 'string',
  6900. ),
  6901. 'StartTime' => array(
  6902. 'type' => 'numeric',
  6903. ),
  6904. 'Duration' => array(
  6905. 'type' => 'numeric',
  6906. ),
  6907. 'Bitrate' => array(
  6908. 'type' => 'numeric',
  6909. ),
  6910. 'NumFrames' => array(
  6911. 'type' => 'integer',
  6912. ),
  6913. 'Language' => array(
  6914. 'type' => 'string',
  6915. )
  6916. ),
  6917. 'Audio' => array(
  6918. 'type' => 'object',
  6919. 'location' => 'xml',
  6920. 'properties' => array(
  6921. 'Index' => array(
  6922. 'type' => 'integer',
  6923. ),
  6924. 'CodecName' => array(
  6925. 'type' => 'string',
  6926. ),
  6927. 'CodecLongName' => array(
  6928. 'type' => 'string',
  6929. ),
  6930. 'CodecTimeBase' => array(
  6931. 'type' => 'string',
  6932. ),
  6933. 'CodecTagString' => array(
  6934. 'type' => 'string',
  6935. ),
  6936. 'CodecTag' => array(
  6937. 'type' => 'string',
  6938. ),
  6939. 'SampleFmt' => array(
  6940. 'type' => 'string',
  6941. ),
  6942. 'SampleRate' => array(
  6943. 'type' => 'integer',
  6944. ),
  6945. 'Channel' => array(
  6946. 'type' => 'integer',
  6947. ),
  6948. 'ChannelLayout' => array(
  6949. 'type' => 'string',
  6950. ),
  6951. 'Timebase' => array(
  6952. 'type' => 'string',
  6953. ),
  6954. 'StartTime' => array(
  6955. 'type' => 'numeric',
  6956. ),
  6957. 'Duration' => array(
  6958. 'type' => 'numeric',
  6959. ),
  6960. 'Bitrate' => array(
  6961. 'type' => 'numeric',
  6962. ),
  6963. 'Language' => array(
  6964. 'type' => 'string',
  6965. )
  6966. )
  6967. ),
  6968. 'Subtitle' => array(
  6969. 'type' => 'object',
  6970. 'location' => 'xml',
  6971. 'properties' => array(
  6972. 'Index' => array(
  6973. 'type' => 'integer',
  6974. ),
  6975. 'Language' => array(
  6976. 'type' => 'string',
  6977. )
  6978. )
  6979. )
  6980. ),
  6981. )
  6982. ),
  6983. 'Format' => array(
  6984. 'type' => 'object',
  6985. 'location' => 'xml',
  6986. 'properties' => array(
  6987. 'NumStream' => array(
  6988. 'type' => 'integer',
  6989. ),
  6990. 'NumProgram' => array(
  6991. 'type' => 'integer',
  6992. ),
  6993. 'FormatName' => array(
  6994. 'type' => 'string',
  6995. ),
  6996. 'FormatLongName' => array(
  6997. 'type' => 'string',
  6998. ),
  6999. 'StartTime' => array(
  7000. 'type' => 'numeric',
  7001. ),
  7002. 'Duration' => array(
  7003. 'type' => 'numeric',
  7004. ),
  7005. 'Bitrate' => array(
  7006. 'type' => 'integer',
  7007. ),
  7008. 'Size' => array(
  7009. 'type' => 'integer',
  7010. )
  7011. )
  7012. )
  7013. )
  7014. )
  7015. )
  7016. ),
  7017. 'CreateMediaTranscodeJobsOutput' => Descriptions::CreateMediaTranscodeJobsOutput(),
  7018. 'CreateMediaSnapshotJobsOutput' => Descriptions::CreateMediaSnapshotJobsOutput(),
  7019. 'CreateMediaConcatJobsOutput' => Descriptions::CreateMediaConcatJobsOutput(),
  7020. 'DetectAudioOutput' => Descriptions::DetectAudioOutput(),
  7021. 'GetDetectAudioResultOutput' => Descriptions::GetDetectAudioResultOutput(),
  7022. 'GetDetectTextResultOutput' => Descriptions::GetDetectTextResultOutput(),
  7023. 'DetectVideoOutput' => Descriptions::DetectVideoOutput(),
  7024. 'GetDetectVideoResultOutput' => Descriptions::GetDetectVideoResultOutput(),
  7025. 'DetectDocumentOutput' => Descriptions::DetectDocumentOutput(),
  7026. 'GetDetectDocumentResultOutput' => Descriptions::GetDetectDocumentResultOutput(),
  7027. 'CreateDocProcessJobsOutput' => Descriptions::CreateDocProcessJobsOutput(),
  7028. 'DescribeDocProcessQueuesOutput' => Descriptions::DescribeDocProcessQueuesOutput(),
  7029. 'DescribeDocProcessJobOutput' => Descriptions::DescribeDocProcessJobOutput(),
  7030. 'GetDescribeDocProcessJobsOutput' => Descriptions::GetDescribeDocProcessJobsOutput(),
  7031. 'DetectImageOutput' => Descriptions::DetectImageOutput(),
  7032. 'DetectImagesOutput' => Descriptions::DetectImagesOutput(),
  7033. )
  7034. );
  7035. }
  7036. }