Service.php 361 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387
  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. 'Url' => array(
  3479. 'type' => 'string',
  3480. 'location' => 'xml',
  3481. ),
  3482. 'DataId' => array(
  3483. 'type' => 'string',
  3484. 'location' => 'xml',
  3485. ),
  3486. 'UserInfo' => array(
  3487. 'location' => 'xml',
  3488. 'type' => 'object',
  3489. 'properties' => array(
  3490. 'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  3491. 'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
  3492. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
  3493. 'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
  3494. 'Room' => array( 'type' => 'string', 'location' => 'xml', ),
  3495. 'IP' => array( 'type' => 'string', 'location' => 'xml', ),
  3496. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  3497. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  3498. 'Gender' => array( 'type' => 'string', 'location' => 'xml', ),
  3499. 'Level' => array( 'type' => 'string', 'location' => 'xml', ),
  3500. 'Role' => array( 'type' => 'string', 'location' => 'xml', ),
  3501. ),
  3502. ),
  3503. ),
  3504. ),
  3505. 'Conf' => array(
  3506. 'location' => 'xml',
  3507. 'type' => 'object',
  3508. 'properties' => array(
  3509. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  3510. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  3511. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  3512. 'CallbackVersion' => array( 'type' => 'string', 'location' => 'xml', ),
  3513. 'CallbackType' => array( 'type' => 'integer', 'location' => 'xml', ),
  3514. ),
  3515. ),
  3516. ),
  3517. ),
  3518. //媒体截图
  3519. 'GetSnapshot' => array(
  3520. 'httpMethod' => 'GET',
  3521. 'uri' => '/{Bucket}{/Key*}',
  3522. 'class' => 'Qcloud\\Cos\\Command',
  3523. 'responseClass' => 'GetSnapshotOutput',
  3524. 'responseType' => 'model',
  3525. 'parameters' => array(
  3526. 'Bucket' => array(
  3527. 'required' => true,
  3528. 'type' => 'string',
  3529. 'location' => 'uri',
  3530. ),
  3531. 'Key' => array(
  3532. 'required' => true,
  3533. 'type' => 'string',
  3534. 'location' => 'uri',
  3535. 'minLength' => 1,
  3536. 'filters' => array(
  3537. 'Qcloud\\Cos\\Client::explodeKey'
  3538. )
  3539. ),
  3540. 'Time' => array(
  3541. 'required' => true,
  3542. 'type' => 'numeric',
  3543. 'location' => 'query',
  3544. 'sentAs' => 'time'
  3545. ),
  3546. 'ci-process' => array(
  3547. 'required' => true,
  3548. 'type' => 'string',
  3549. 'location' => 'query'
  3550. ),
  3551. 'Width' => array(
  3552. 'type' => 'integer',
  3553. 'location' => 'query',
  3554. 'sentAs' => 'width'
  3555. ),
  3556. 'Height' => array(
  3557. 'type' => 'integer',
  3558. 'location' => 'query',
  3559. 'sentAs' => 'height'
  3560. ),
  3561. 'Format' => array(
  3562. 'type' => 'string',
  3563. 'location' => 'query',
  3564. 'sentAs' => 'format'
  3565. ),
  3566. 'Rotate' => array(
  3567. 'type' => 'string',
  3568. 'location' => 'query',
  3569. 'sentAs' => 'rotate'
  3570. ),
  3571. 'Mode' => array(
  3572. 'type' => 'string',
  3573. 'location' => 'query',
  3574. 'sentAs' => 'mode'
  3575. )
  3576. ),
  3577. ),
  3578. //添加防盗链
  3579. 'PutBucketReferer' => array(
  3580. 'httpMethod' => 'PUT',
  3581. 'uri' => '/{Bucket}?referer',
  3582. 'class' => 'Qcloud\\Cos\\Command',
  3583. 'responseClass' => 'PutBucketRefererOutput',
  3584. 'responseType' => 'model',
  3585. 'data' => array(
  3586. 'xmlRoot' => array(
  3587. 'name' => 'RefererConfiguration',
  3588. ),
  3589. 'contentMd5' => true,
  3590. ),
  3591. 'parameters' => array(
  3592. 'Bucket' => array(
  3593. 'required' => true,
  3594. 'type' => 'string',
  3595. 'location' => 'uri',
  3596. ),
  3597. 'Status' => array(
  3598. 'required' => true,
  3599. 'type' => 'string',
  3600. 'location' => 'xml',
  3601. ),
  3602. 'RefererType' => array(
  3603. 'required' => true,
  3604. 'type' => 'string',
  3605. 'location' => 'xml',
  3606. ),
  3607. 'EmptyReferConfiguration' => array(
  3608. 'required' => true,
  3609. 'type' => 'string',
  3610. 'location' => 'xml',
  3611. ),
  3612. 'DomainList' => array(
  3613. 'location' => 'xml',
  3614. 'type' => 'object',
  3615. 'properties' => array(
  3616. 'Domains' => array(
  3617. 'type' => 'array',
  3618. 'data' => array(
  3619. 'xmlFlattened' => true,
  3620. ),
  3621. 'items' => array(
  3622. 'name' => 'Domain',
  3623. 'type' => 'string',
  3624. 'sentAs' => 'Domain',
  3625. ),
  3626. )
  3627. )
  3628. ),
  3629. ),
  3630. ),
  3631. //获取防盗链规则
  3632. 'GetBucketReferer' => array(
  3633. 'httpMethod' => 'GET',
  3634. 'uri' => '/{Bucket}?referer',
  3635. 'class' => 'Qcloud\\Cos\\Command',
  3636. 'responseClass' => 'GetBucketRefererOutput',
  3637. 'responseType' => 'model',
  3638. 'data' => array(
  3639. 'xmlRoot' => array(
  3640. 'name' => 'RefererConfiguration',
  3641. ),
  3642. ),
  3643. 'parameters' => array(
  3644. 'Bucket' => array(
  3645. 'required' => true,
  3646. 'type' => 'string',
  3647. 'location' => 'uri'
  3648. )
  3649. )
  3650. ),
  3651. //获取媒体信息
  3652. 'GetMediaInfo' => array(
  3653. 'httpMethod' => 'GET',
  3654. 'uri' => '/{Bucket}{/Key*}',
  3655. 'class' => 'Qcloud\\Cos\\Command',
  3656. 'responseClass' => 'GetMediaInfoOutput',
  3657. 'responseType' => 'model',
  3658. 'parameters' => array(
  3659. 'Bucket' => array(
  3660. 'required' => true,
  3661. 'type' => 'string',
  3662. 'location' => 'uri',
  3663. ),
  3664. 'Key' => array(
  3665. 'required' => true,
  3666. 'type' => 'string',
  3667. 'location' => 'uri',
  3668. 'minLength' => 1,
  3669. 'filters' => array(
  3670. 'Qcloud\\Cos\\Client::explodeKey'
  3671. )
  3672. ),
  3673. 'ci-process' => array(
  3674. 'required' => true,
  3675. 'type' => 'string',
  3676. 'location' => 'query'
  3677. )
  3678. ),
  3679. ),
  3680. 'CreateMediaTranscodeJobs' => Descriptions::CreateMediaTranscodeJobs(), // 媒体转码
  3681. 'CreateMediaJobs' => Descriptions::CreateMediaJobs(), // 媒体任务
  3682. 'DescribeMediaJob' => Descriptions::DescribeMediaJob(), // 查询指定的媒体任务
  3683. 'DescribeMediaJobs' => Descriptions::DescribeMediaJobs(), // 拉取拉取符合条件的媒体任务
  3684. 'CreateMediaSnapshotJobs' => Descriptions::CreateMediaSnapshotJobs(), // 媒体截图
  3685. 'CreateMediaConcatJobs' => Descriptions::CreateMediaConcatJobs(), // 媒体拼接
  3686. 'DetectAudio' => Descriptions::DetectAudio(), // 音频审核
  3687. 'GetDetectAudioResult' => Descriptions::GetDetectAudioResult(), // 主动获取音频审核结果
  3688. 'GetDetectTextResult' => Descriptions::GetDetectTextResult(), // 主动获取文本文件审核结果
  3689. 'DetectVideo' => Descriptions::DetectVideo(), // 视频审核
  3690. 'GetDetectVideoResult' => Descriptions::GetDetectVideoResult(), // 主动获取视频审核结果
  3691. 'DetectDocument' => Descriptions::DetectDocument(), // 文档审核
  3692. 'GetDetectDocumentResult' => Descriptions::GetDetectDocumentResult(), // 主动获取文档审核结果
  3693. 'CreateDocProcessJobs' => Descriptions::CreateDocProcessJobs(), // 提交文档转码任务
  3694. 'DescribeDocProcessQueues' => Descriptions::DescribeDocProcessQueues(), // 查询文档转码队列
  3695. 'DescribeDocProcessJob' => Descriptions::DescribeDocProcessJob(), // 查询文档转码任务
  3696. 'GetDescribeDocProcessJobs' => Descriptions::GetDescribeDocProcessJobs(), // 拉取符合条件的文档转码任务
  3697. 'DetectImage' => Descriptions::DetectImage(), // 图片审核
  3698. 'DetectImages' => Descriptions::DetectImages(), // 图片审核-批量
  3699. 'DetectVirus' => Descriptions::DetectVirus(), // 云查毒
  3700. 'GetDetectVirusResult' => Descriptions::GetDetectVirusResult(), // 查询病毒检测任务结果
  3701. 'GetDetectImageResult' => Descriptions::GetDetectImageResult(), // 主动获取图片审核结果
  3702. 'CreateMediaVoiceSeparateJobs' => Descriptions::CreateMediaVoiceSeparateJobs(), // 提交人声分离任务
  3703. 'DescribeMediaVoiceSeparateJob' => Descriptions::DescribeMediaVoiceSeparateJob(), // 查询指定的人声分离任务
  3704. 'DetectWebpage' => Descriptions::DetectWebpage(), // 提交网页审核任务
  3705. 'GetDetectWebpageResult' => Descriptions::GetDetectWebpageResult(), // 查询网页审核任务结果
  3706. 'DescribeMediaBuckets' => Descriptions::DescribeMediaBuckets(), // 查询媒体处理开通状态
  3707. 'GetPrivateM3U8' => Descriptions::GetPrivateM3U8(), // 获取私有 M3U8 ts 资源的下载授权
  3708. 'DescribeMediaQueues' => Descriptions::DescribeMediaQueues(), // 搜索媒体处理队列
  3709. 'UpdateMediaQueue' => Descriptions::UpdateMediaQueue(), // 更新媒体处理队列
  3710. 'CreateMediaSmartCoverJobs' => Descriptions::CreateMediaSmartCoverJobs(), // 提交智能封面任务
  3711. 'CreateMediaVideoProcessJobs' => Descriptions::CreateMediaVideoProcessJobs(), // 提交视频增强任务
  3712. 'CreateMediaVideoMontageJobs' => Descriptions::CreateMediaVideoMontageJobs(), // 提交精彩集锦任务
  3713. 'CreateMediaAnimationJobs' => Descriptions::CreateMediaAnimationJobs(), // 提交动图任务
  3714. 'CreateMediaPicProcessJobs' => Descriptions::CreateMediaPicProcessJobs(), // 提交图片处理任务
  3715. 'CreateMediaSegmentJobs' => Descriptions::CreateMediaSegmentJobs(), // 提交转封装任务
  3716. 'CreateMediaVideoTagJobs' => Descriptions::CreateMediaVideoTagJobs(), // 提交视频标签任务
  3717. 'CreateMediaSuperResolutionJobs' => Descriptions::CreateMediaSuperResolutionJobs(), // 提交超分辨率任务
  3718. 'CreateMediaSDRtoHDRJobs' => Descriptions::CreateMediaSDRtoHDRJobs(), // 提交 SDR to HDR 任务
  3719. 'CreateMediaDigitalWatermarkJobs' => Descriptions::CreateMediaDigitalWatermarkJobs(), // 嵌入数字水印任务(添加水印)
  3720. 'CreateMediaExtractDigitalWatermarkJobs' => Descriptions::CreateMediaExtractDigitalWatermarkJobs(), // 提取数字水印任务(提取水印)
  3721. 'DetectLiveVideo' => Descriptions::DetectLiveVideo(), // 直播流审核
  3722. 'CancelLiveVideoAuditing' => Descriptions::CancelLiveVideoAuditing(), // 取消直播流审核
  3723. 'OpticalOcrRecognition' => Descriptions::OpticalOcrRecognition(), // 通用文字识别
  3724. 'TriggerWorkflow' => Descriptions::TriggerWorkflow(), // 手动触发工作流
  3725. 'GetWorkflowInstances' => Descriptions::GetWorkflowInstances(), // 获取工作流实例列表
  3726. 'GetWorkflowInstance' => Descriptions::GetWorkflowInstance(), // 获取工作流实例详情
  3727. 'CreateMediaSnapshotTemplate' => Descriptions::CreateMediaSnapshotTemplate(), // 新增截图模板
  3728. 'UpdateMediaSnapshotTemplate' => Descriptions::UpdateMediaSnapshotTemplate(), // 更新截图模板
  3729. 'CreateMediaTranscodeTemplate' => Descriptions::CreateMediaTranscodeTemplate(), // 新增转码模板
  3730. 'UpdateMediaTranscodeTemplate' => Descriptions::UpdateMediaTranscodeTemplate(), // 更新转码模板
  3731. 'CreateMediaHighSpeedHdTemplate' => Descriptions::CreateMediaHighSpeedHdTemplate(), // 新增极速高清转码模板
  3732. 'UpdateMediaHighSpeedHdTemplate' => Descriptions::UpdateMediaHighSpeedHdTemplate(), // 更新极速高清转码模板
  3733. 'CreateMediaAnimationTemplate' => Descriptions::CreateMediaAnimationTemplate(), // 新增动图模板
  3734. 'UpdateMediaAnimationTemplate' => Descriptions::UpdateMediaAnimationTemplate(), // 更新动图模板
  3735. 'CreateMediaConcatTemplate' => Descriptions::CreateMediaConcatTemplate(), // 新增拼接模板
  3736. 'UpdateMediaConcatTemplate' => Descriptions::UpdateMediaConcatTemplate(), // 更新拼接模板
  3737. 'CreateMediaVideoProcessTemplate' => Descriptions::CreateMediaVideoProcessTemplate(), // 新增视频增强模板
  3738. 'UpdateMediaVideoProcessTemplate' => Descriptions::UpdateMediaVideoProcessTemplate(), // 更新视频增强模板
  3739. 'CreateMediaVideoMontageTemplate' => Descriptions::CreateMediaVideoMontageTemplate(), // 新增精彩集锦模板
  3740. 'UpdateMediaVideoMontageTemplate' => Descriptions::UpdateMediaVideoMontageTemplate(), // 更新精彩集锦模板
  3741. 'CreateMediaVoiceSeparateTemplate' => Descriptions::CreateMediaVoiceSeparateTemplate(), // 新增人声分离模板
  3742. 'UpdateMediaVoiceSeparateTemplate' => Descriptions::UpdateMediaVoiceSeparateTemplate(), // 更新人声分离模板
  3743. 'CreateMediaSuperResolutionTemplate' => Descriptions::CreateMediaSuperResolutionTemplate(), // 新增超分辨率模板
  3744. 'UpdateMediaSuperResolutionTemplate' => Descriptions::UpdateMediaSuperResolutionTemplate(), // 更新超分辨率模板
  3745. 'CreateMediaPicProcessTemplate' => Descriptions::CreateMediaPicProcessTemplate(), // 新增图片处理模板
  3746. 'UpdateMediaPicProcessTemplate' => Descriptions::UpdateMediaPicProcessTemplate(), // 更新图片处理模板
  3747. 'CreateMediaWatermarkTemplate' => Descriptions::CreateMediaWatermarkTemplate(), // 新增水印模板
  3748. 'UpdateMediaWatermarkTemplate' => Descriptions::UpdateMediaWatermarkTemplate(), // 更新水印模板
  3749. 'DescribeMediaTemplates' => Descriptions::DescribeMediaTemplates(), // 查询模板列表
  3750. 'DescribeWorkflow' => Descriptions::DescribeWorkflow(), // 搜索工作流
  3751. 'DeleteWorkflow' => Descriptions::DeleteWorkflow(), // 删除工作流
  3752. 'CreateInventoryTriggerJob' => Descriptions::CreateInventoryTriggerJob(), // 触发批量存量任务
  3753. 'DescribeInventoryTriggerJobs' => Descriptions::DescribeInventoryTriggerJobs(), // 批量拉取存量任务
  3754. 'DescribeInventoryTriggerJob' => Descriptions::DescribeInventoryTriggerJob(), // 查询存量任务
  3755. 'CancelInventoryTriggerJob' => Descriptions::CancelInventoryTriggerJob(), // 取消存量任务
  3756. 'CreateMediaNoiseReductionJobs' => Descriptions::CreateMediaNoiseReductionJobs(), // 提交音频降噪任务
  3757. 'ImageRepairProcess' => Descriptions::ImageRepairProcess(), // 图片水印修复
  3758. 'ImageDetectCarProcess' => Descriptions::ImageDetectCarProcess(), // 车辆车牌检测
  3759. 'ImageAssessQualityProcess' => Descriptions::ImageAssessQualityProcess(), // 图片质量评估
  3760. 'ImageSearchOpen' => Descriptions::ImageSearchOpen(), // 开通以图搜图
  3761. 'ImageSearchAdd' => Descriptions::ImageSearchAdd(), // 添加图库图片
  3762. 'ImageSearch' => Descriptions::ImageSearch(), // 图片搜索接口
  3763. 'ImageSearchDelete' => Descriptions::ImageSearchDelete(), // 图片搜索接口
  3764. 'BindCiService' => Descriptions::BindCiService(), // 绑定数据万象服务
  3765. 'GetCiService' => Descriptions::GetCiService(), // 查询数据万象服务
  3766. 'UnBindCiService' => Descriptions::UnBindCiService(), // 解绑数据万象服务
  3767. 'GetHotLink' => Descriptions::GetHotLink(), // 查询防盗链
  3768. 'AddHotLink' => Descriptions::AddHotLink(), // 查询防盗链
  3769. 'OpenOriginProtect' => Descriptions::OpenOriginProtect(), // 开通原图保护
  3770. 'GetOriginProtect' => Descriptions::GetOriginProtect(), // 查询原图保护状态
  3771. 'CloseOriginProtect' => Descriptions::CloseOriginProtect(), // 关闭原图保护
  3772. 'ImageDetectFace' => Descriptions::ImageDetectFace(), // 人脸检测
  3773. 'ImageFaceEffect' => Descriptions::ImageFaceEffect(), // 人脸特效
  3774. 'IDCardOCR' => Descriptions::IDCardOCR(), // 身份证识别
  3775. 'IDCardOCRByUpload' => Descriptions::IDCardOCRByUpload(), // 身份证识别-上传时处理
  3776. 'GetLiveCode' => Descriptions::GetLiveCode(), // 获取数字验证码
  3777. 'GetActionSequence' => Descriptions::GetActionSequence(), // 获取动作顺序
  3778. 'DescribeDocProcessBuckets' => Descriptions::DescribeDocProcessBuckets(), // 查询文档预览开通状态
  3779. 'UpdateDocProcessQueue' => Descriptions::UpdateDocProcessQueue(), // 更新文档转码队列
  3780. 'CreateMediaQualityEstimateJobs' => Descriptions::CreateMediaQualityEstimateJobs(), // 提交视频质量评分任务
  3781. 'CreateMediaStreamExtractJobs' => Descriptions::CreateMediaStreamExtractJobs(), // 提交音视频流分离任务
  3782. ),
  3783. 'models' => array(
  3784. 'AbortMultipartUploadOutput' => array(
  3785. 'type' => 'object',
  3786. 'additionalProperties' => true,
  3787. 'properties' => array(
  3788. 'RequestId' => array(
  3789. 'location' => 'header',
  3790. 'sentAs' => 'x-cos-request-id'
  3791. )
  3792. )
  3793. ),
  3794. 'CreateBucketOutput' => array(
  3795. 'type' => 'object',
  3796. 'additionalProperties' => true,
  3797. 'properties' => array(
  3798. 'Location' => array(
  3799. 'type' => 'string',
  3800. 'location' => 'header'
  3801. ),
  3802. 'RequestId' => array(
  3803. 'location' => 'header',
  3804. 'sentAs' => 'x-cos-request-id'
  3805. )
  3806. )
  3807. ),
  3808. 'CompleteMultipartUploadOutput' => array(
  3809. 'type' => 'object',
  3810. 'additionalProperties' => true,
  3811. 'properties' => array(
  3812. 'Location' => array(
  3813. 'type' => 'string',
  3814. 'location' => 'xml',
  3815. ),
  3816. 'Bucket' => array(
  3817. 'type' => 'string',
  3818. 'location' => 'xml',
  3819. ),
  3820. 'Key' => array(
  3821. 'type' => 'string',
  3822. 'location' => 'xml'
  3823. ),
  3824. 'Expiration' => array(
  3825. 'type' => 'string',
  3826. 'location' => 'header',
  3827. 'sentAs' => 'x-cos-expiration',
  3828. ),
  3829. 'ETag' => array(
  3830. 'type' => 'string',
  3831. 'location' => 'xml',
  3832. ),
  3833. 'ServerSideEncryption' => array(
  3834. 'type' => 'string',
  3835. 'location' => 'header',
  3836. 'sentAs' => 'x-cos-server-side-encryption',
  3837. ),
  3838. 'VersionId' => array(
  3839. 'type' => 'string',
  3840. 'location' => 'header',
  3841. 'sentAs' => 'x-cos-version-id',
  3842. ),
  3843. 'SSEKMSKeyId' => array(
  3844. 'type' => 'string',
  3845. 'location' => 'header',
  3846. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  3847. ),
  3848. 'RequestCharged' => array(
  3849. 'type' => 'string',
  3850. 'location' => 'header',
  3851. 'sentAs' => 'x-cos-request-charged',
  3852. ),
  3853. 'RequestId' => array(
  3854. 'location' => 'header',
  3855. 'sentAs' => 'x-cos-request-id',
  3856. ),
  3857. 'CRC' => array(
  3858. 'type' => 'string',
  3859. 'location' => 'header',
  3860. 'sentAs' => 'x-cos-hash-crc64ecma',
  3861. ),
  3862. 'ImageInfo' => array(
  3863. 'type' => 'object',
  3864. 'location' => 'xml',
  3865. 'properties' => array(
  3866. 'Format' => array(
  3867. 'type' => 'string',
  3868. ),
  3869. 'Width' => array(
  3870. 'type' => 'string',
  3871. ),
  3872. 'Height' => array(
  3873. 'type' => 'string',
  3874. ),
  3875. 'Quality' => array(
  3876. 'type' => 'string',
  3877. ),
  3878. 'Ave' => array(
  3879. 'type' => 'string',
  3880. ),
  3881. 'Orientation' => array(
  3882. 'type' => 'string',
  3883. ),
  3884. ),
  3885. ),
  3886. 'ProcessResults' => array(
  3887. 'type' => 'object',
  3888. 'location' => 'xml',
  3889. 'properties' => array(
  3890. 'Object' => array(
  3891. 'type' => 'array',
  3892. 'items' => array(
  3893. 'type' => 'object',
  3894. 'properties' => array(
  3895. 'Key' => array(
  3896. 'type' => 'string',
  3897. ),
  3898. 'Location' => array(
  3899. 'type' => 'string',
  3900. ),
  3901. 'Format' => array(
  3902. 'type' => 'string',
  3903. ),
  3904. 'Width' => array(
  3905. 'type' => 'string',
  3906. ),
  3907. 'Height' => array(
  3908. 'type' => 'string',
  3909. ),
  3910. 'Size' => array(
  3911. 'type' => 'string',
  3912. ),
  3913. 'Quality' => array(
  3914. 'type' => 'string',
  3915. ),
  3916. 'ETag' => array(
  3917. 'type' => 'string',
  3918. ),
  3919. 'WatermarkStatus' => array(
  3920. 'type' => 'integer',
  3921. ),
  3922. ),
  3923. ),
  3924. ),
  3925. ),
  3926. ),
  3927. ),
  3928. ),
  3929. 'CreateMultipartUploadOutput' => array(
  3930. 'type' => 'object',
  3931. 'additionalProperties' => true,
  3932. 'properties' => array(
  3933. 'Bucket' => array(
  3934. 'type' => 'string',
  3935. 'location' => 'xml',
  3936. 'sentAs' => 'Bucket'
  3937. ),
  3938. 'Key' => array(
  3939. 'type' => 'string',
  3940. 'location' => 'xml'
  3941. ),
  3942. 'UploadId' => array(
  3943. 'type' => 'string',
  3944. 'location' => 'xml'
  3945. ),
  3946. 'ServerSideEncryption' => array(
  3947. 'type' => 'string',
  3948. 'location' => 'header',
  3949. 'sentAs' => 'x-cos-server-side-encryption',
  3950. ),
  3951. 'SSECustomerAlgorithm' => array(
  3952. 'type' => 'string',
  3953. 'location' => 'header',
  3954. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  3955. ),
  3956. 'SSECustomerKeyMD5' => array(
  3957. 'type' => 'string',
  3958. 'location' => 'header',
  3959. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  3960. ),
  3961. 'SSEKMSKeyId' => array(
  3962. 'type' => 'string',
  3963. 'location' => 'header',
  3964. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  3965. ),
  3966. 'RequestCharged' => array(
  3967. 'type' => 'string',
  3968. 'location' => 'header',
  3969. 'sentAs' => 'x-cos-request-charged',
  3970. ),
  3971. 'RequestId' => array(
  3972. 'location' => 'header',
  3973. 'sentAs' => 'x-cos-request-id',
  3974. )
  3975. )
  3976. ),
  3977. 'CopyObjectOutput' => array(
  3978. 'type' => 'object',
  3979. 'additionalProperties' => true,
  3980. 'properties' => array(
  3981. 'ETag' => array(
  3982. 'type' => 'string',
  3983. 'location' => 'xml',
  3984. ),
  3985. 'LastModified' => array(
  3986. 'type' => 'string',
  3987. 'location' => 'xml',
  3988. ),
  3989. 'Expiration' => array(
  3990. 'type' => 'string',
  3991. 'location' => 'header',
  3992. 'sentAs' => 'x-cos-expiration',
  3993. ),
  3994. 'CopySourceVersionId' => array(
  3995. 'type' => 'string',
  3996. 'location' => 'header',
  3997. 'sentAs' => 'x-cos-copy-source-version-id',
  3998. ),
  3999. 'VersionId' => array(
  4000. 'type' => 'string',
  4001. 'location' => 'header',
  4002. 'sentAs' => 'x-cos-version-id',
  4003. ),
  4004. 'ServerSideEncryption' => array(
  4005. 'type' => 'string',
  4006. 'location' => 'header',
  4007. 'sentAs' => 'x-cos-server-side-encryption',
  4008. ),
  4009. 'SSECustomerAlgorithm' => array(
  4010. 'type' => 'string',
  4011. 'location' => 'header',
  4012. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  4013. ),
  4014. 'RequestCharged' => array(
  4015. 'type' => 'string',
  4016. 'location' => 'header',
  4017. 'sentAs' => 'x-cos-request-charged',
  4018. ),
  4019. 'RequestId' => array(
  4020. 'location' => 'header',
  4021. 'sentAs' => 'x-cos-request-id',
  4022. ),
  4023. 'CRC' => array(
  4024. 'type' => 'string',
  4025. 'location' => 'header',
  4026. 'sentAs' => 'x-cos-hash-crc64ecma',
  4027. )
  4028. ),
  4029. ),
  4030. 'DeleteBucketOutput' => array(
  4031. 'type' => 'object',
  4032. 'additionalProperties' => true,
  4033. 'properties' => array(
  4034. 'RequestId' => array(
  4035. 'location' => 'header',
  4036. 'sentAs' => 'x-cos-request-id'
  4037. )
  4038. )
  4039. ),
  4040. 'DeleteBucketCorsOutput' => array(
  4041. 'type' => 'object',
  4042. 'additionalProperties' => true,
  4043. 'properties' => array(
  4044. 'RequestId' => array(
  4045. 'location' => 'header',
  4046. 'sentAs' => 'x-cos-request-id',
  4047. ),
  4048. ),
  4049. ),
  4050. 'DeleteBucketTaggingOutput' => array(
  4051. 'type' => 'object',
  4052. 'additionalProperties' => true,
  4053. 'properties' => array(
  4054. 'RequestId' => array(
  4055. 'location' => 'header',
  4056. 'sentAs' => 'x-cos-request-id',
  4057. ),
  4058. ),
  4059. ),
  4060. 'DeleteBucketInventoryOutput' => array(
  4061. 'type' => 'object',
  4062. 'additionalProperties' => true,
  4063. 'properties' => array(
  4064. 'RequestId' => array(
  4065. 'location' => 'header',
  4066. 'sentAs' => 'x-cos-request-id',
  4067. ),
  4068. ),
  4069. ),
  4070. 'DeleteObjectOutput' => array(
  4071. 'type' => 'object',
  4072. 'additionalProperties' => true,
  4073. 'properties' => array(
  4074. 'DeleteMarker' => array(
  4075. 'type' => 'boolean',
  4076. 'location' => 'header',
  4077. 'sentAs' => 'x-cos-delete-marker',
  4078. ),
  4079. 'VersionId' => array(
  4080. 'type' => 'string',
  4081. 'location' => 'header',
  4082. 'sentAs' => 'x-cos-version-id',
  4083. ),
  4084. 'RequestCharged' => array(
  4085. 'type' => 'string',
  4086. 'location' => 'header',
  4087. 'sentAs' => 'x-cos-request-charged',
  4088. ),
  4089. 'RequestId' => array(
  4090. 'location' => 'header',
  4091. 'sentAs' => 'x-cos-request-id',
  4092. ),
  4093. ),
  4094. ),
  4095. 'DeleteObjectsOutput' => array(
  4096. 'type' => 'object',
  4097. 'additionalProperties' => true,
  4098. 'properties' => array(
  4099. 'Deleted' => array(
  4100. 'type' => 'array',
  4101. 'location' => 'xml',
  4102. 'sentAs' => 'Deleted',
  4103. 'data' => array(
  4104. 'xmlFlattened' => true,
  4105. ),
  4106. 'items' => array(
  4107. 'type' => 'object',
  4108. 'properties' => array(
  4109. 'Key' => array(
  4110. 'type' => 'string',
  4111. ),
  4112. 'VersionId' => array(
  4113. 'type' => 'string',
  4114. ),
  4115. 'DeleteMarker' => array(
  4116. 'type' => 'boolean',
  4117. ),
  4118. 'DeleteMarkerVersionId' => array(
  4119. 'type' => 'string',
  4120. ),
  4121. ),
  4122. ),
  4123. ),
  4124. 'RequestCharged' => array(
  4125. 'type' => 'string',
  4126. 'location' => 'header',
  4127. 'sentAs' => 'x-cos-request-charged',
  4128. ),
  4129. 'Errors' => array(
  4130. 'type' => 'array',
  4131. 'location' => 'xml',
  4132. 'sentAs' => 'Error',
  4133. 'data' => array(
  4134. 'xmlFlattened' => true,
  4135. ),
  4136. 'items' => array(
  4137. 'type' => 'object',
  4138. 'properties' => array(
  4139. 'Key' => array(
  4140. 'type' => 'string',
  4141. ),
  4142. 'VersionId' => array(
  4143. 'type' => 'string',
  4144. ),
  4145. 'Code' => array(
  4146. 'type' => 'string',
  4147. ),
  4148. 'Message' => array(
  4149. 'type' => 'string',
  4150. ),
  4151. ),
  4152. ),
  4153. ),
  4154. 'RequestId' => array(
  4155. 'location' => 'header',
  4156. 'sentAs' => 'x-cos-request-id',
  4157. ),
  4158. ),
  4159. ),
  4160. 'DeleteBucketLifecycleOutput' => array(
  4161. 'type' => 'object',
  4162. 'additionalProperties' => true,
  4163. 'properties' => array(
  4164. 'RequestId' => array(
  4165. 'location' => 'header',
  4166. 'sentAs' => 'x-cos-request-id',
  4167. ),
  4168. ),
  4169. ),
  4170. 'DeleteBucketReplicationOutput' => array(
  4171. 'type' => 'object',
  4172. 'additionalProperties' => true,
  4173. 'properties' => array(
  4174. 'RequestId' => array(
  4175. 'location' => 'header',
  4176. 'sentAs' => 'x-cos-request-id',
  4177. ),
  4178. ),
  4179. ),
  4180. 'DeleteBucketWebsiteOutput' => array(
  4181. 'type' => 'object',
  4182. 'additionalProperties' => true,
  4183. 'properties' => array(
  4184. 'RequestId' => array(
  4185. 'location' => 'header',
  4186. 'sentAs' => 'x-cos-request-id',
  4187. ),
  4188. ),
  4189. ),
  4190. 'PutObjectTaggingOutput' => array(
  4191. 'type' => 'object',
  4192. 'additionalProperties' => true,
  4193. 'properties' => array(
  4194. 'RequestId' => array(
  4195. 'location' => 'header',
  4196. 'sentAs' => 'x-cos-request-id',
  4197. ),
  4198. ),
  4199. ),
  4200. 'GetObjectTaggingOutput' => array(
  4201. 'type' => 'object',
  4202. 'additionalProperties' => true,
  4203. 'properties' => array(
  4204. 'TagSet' => array(
  4205. 'type' => 'array',
  4206. 'location' => 'xml',
  4207. 'items' => array(
  4208. 'sentAs' => 'Tag',
  4209. 'type' => 'object',
  4210. 'properties' => array(
  4211. 'Key' => array(
  4212. 'type' => 'string',
  4213. ),
  4214. 'Value' => array(
  4215. 'type' => 'string',
  4216. ),
  4217. ),
  4218. ),
  4219. ),
  4220. 'RequestId' => array(
  4221. 'location' => 'header',
  4222. 'sentAs' => 'x-cos-request-id',
  4223. ),
  4224. ),
  4225. ),
  4226. 'DeleteObjectTaggingOutput' => array(
  4227. 'type' => 'object',
  4228. 'additionalProperties' => true,
  4229. 'properties' => array(
  4230. 'RequestId' => array(
  4231. 'location' => 'header',
  4232. 'sentAs' => 'x-cos-request-id'
  4233. )
  4234. )
  4235. ),
  4236. 'GetObjectOutput' => array(
  4237. 'type' => 'object',
  4238. 'additionalProperties' => true,
  4239. 'properties' => array(
  4240. 'Body' => array(
  4241. 'type' => 'string',
  4242. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  4243. 'location' => 'body',
  4244. ),
  4245. 'DeleteMarker' => array(
  4246. 'type' => 'boolean',
  4247. 'location' => 'header',
  4248. 'sentAs' => 'x-cos-delete-marker',
  4249. ),
  4250. 'AcceptRanges' => array(
  4251. 'type' => 'string',
  4252. 'location' => 'header',
  4253. 'sentAs' => 'accept-ranges',
  4254. ),
  4255. 'Expiration' => array(
  4256. 'type' => 'string',
  4257. 'location' => 'header',
  4258. 'sentAs' => 'x-cos-expiration',
  4259. ),
  4260. 'Restore' => array(
  4261. 'type' => 'string',
  4262. 'location' => 'header',
  4263. 'sentAs' => 'x-cos-restore',
  4264. ),
  4265. 'LastModified' => array(
  4266. 'type' => 'string',
  4267. 'location' => 'header',
  4268. 'sentAs' => 'Last-Modified',
  4269. ),
  4270. 'ContentLength' => array(
  4271. 'type' => 'numeric',
  4272. 'minimum'=> 0,
  4273. 'location' => 'header',
  4274. 'sentAs' => 'Content-Length',
  4275. ),
  4276. 'ETag' => array(
  4277. 'type' => 'string',
  4278. 'location' => 'header',
  4279. ),
  4280. 'MissingMeta' => array(
  4281. 'type' => 'numeric',
  4282. 'location' => 'header',
  4283. 'sentAs' => 'x-cos-missing-meta',
  4284. ),
  4285. 'VersionId' => array(
  4286. 'type' => 'string',
  4287. 'location' => 'header',
  4288. 'sentAs' => 'x-cos-version-id',
  4289. ),
  4290. 'CacheControl' => array(
  4291. 'type' => 'string',
  4292. 'location' => 'header',
  4293. 'sentAs' => 'Cache-Control',
  4294. ),
  4295. 'ContentDisposition' => array(
  4296. 'type' => 'string',
  4297. 'location' => 'header',
  4298. 'sentAs' => 'Content-Disposition',
  4299. ),
  4300. 'ContentEncoding' => array(
  4301. 'type' => 'string',
  4302. 'location' => 'header',
  4303. 'sentAs' => 'Content-Encoding',
  4304. ),
  4305. 'ContentLanguage' => array(
  4306. 'type' => 'string',
  4307. 'location' => 'header',
  4308. 'sentAs' => 'Content-Language',
  4309. ),
  4310. 'ContentRange' => array(
  4311. 'type' => 'string',
  4312. 'location' => 'header',
  4313. 'sentAs' => 'Content-Range',
  4314. ),
  4315. 'ContentType' => array(
  4316. 'type' => 'string',
  4317. 'location' => 'header',
  4318. 'sentAs' => 'Content-Type',
  4319. ),
  4320. 'Expires' => array(
  4321. 'type' => 'string',
  4322. 'location' => 'header',
  4323. ),
  4324. 'WebsiteRedirectLocation' => array(
  4325. 'type' => 'string',
  4326. 'location' => 'header',
  4327. 'sentAs' => 'x-cos-website-redirect-location',
  4328. ),
  4329. 'ServerSideEncryption' => array(
  4330. 'type' => 'string',
  4331. 'location' => 'header',
  4332. 'sentAs' => 'x-cos-server-side-encryption',
  4333. ),
  4334. 'SSECustomerAlgorithm' => array(
  4335. 'type' => 'string',
  4336. 'location' => 'header',
  4337. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  4338. ),
  4339. 'SSECustomerKeyMD5' => array(
  4340. 'type' => 'string',
  4341. 'location' => 'header',
  4342. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  4343. ),
  4344. 'SSEKMSKeyId' => array(
  4345. 'type' => 'string',
  4346. 'location' => 'header',
  4347. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  4348. ),
  4349. 'StorageClass' => array(
  4350. 'type' => 'string',
  4351. 'location' => 'header',
  4352. 'sentAs' => 'x-cos-storage-class',
  4353. ),
  4354. 'RequestCharged' => array(
  4355. 'type' => 'string',
  4356. 'location' => 'header',
  4357. 'sentAs' => 'x-cos-request-charged',
  4358. ),
  4359. 'ReplicationStatus' => array(
  4360. 'type' => 'string',
  4361. 'location' => 'header',
  4362. 'sentAs' => 'x-cos-replication-status',
  4363. ),
  4364. 'RequestId' => array(
  4365. 'location' => 'header',
  4366. 'sentAs' => 'x-cos-request-id',
  4367. ),
  4368. 'CRC' => array(
  4369. 'type' => 'string',
  4370. 'location' => 'header',
  4371. 'sentAs' => 'x-cos-hash-crc64ecma',
  4372. )
  4373. ),
  4374. ),
  4375. 'GetObjectAclOutput' => array(
  4376. 'type' => 'object',
  4377. 'additionalProperties' => true,
  4378. 'properties' => array(
  4379. 'Owner' => array(
  4380. 'type' => 'object',
  4381. 'location' => 'xml',
  4382. 'properties' => array(
  4383. 'DisplayName' => array(
  4384. 'type' => 'string',
  4385. ),
  4386. 'ID' => array(
  4387. 'type' => 'string',
  4388. ),
  4389. ),
  4390. ),
  4391. 'Grants' => array(
  4392. 'type' => 'array',
  4393. 'location' => 'xml',
  4394. 'sentAs' => 'AccessControlList',
  4395. 'items' => array(
  4396. 'type' => 'object',
  4397. 'properties' => array(
  4398. 'Grantee' => array(
  4399. 'type' => 'object',
  4400. 'properties' => array(
  4401. 'DisplayName' => array(
  4402. 'type' => 'string'),
  4403. 'ID' => array(
  4404. 'type' => 'string'))),
  4405. 'Permission' => array(
  4406. 'type' => 'string',
  4407. ),
  4408. ),
  4409. ),
  4410. ),
  4411. 'RequestCharged' => array(
  4412. 'type' => 'string',
  4413. 'location' => 'header',
  4414. 'sentAs' => 'x-cos-request-charged',
  4415. ),
  4416. 'RequestId' => array(
  4417. 'location' => 'header',
  4418. 'sentAs' => 'x-cos-request-id',
  4419. ),
  4420. ),
  4421. ),
  4422. 'GetBucketAclOutput' => array(
  4423. 'type' => 'object',
  4424. 'additionalProperties' => true,
  4425. 'properties' => array(
  4426. 'Owner' => array(
  4427. 'type' => 'object',
  4428. 'location' => 'xml',
  4429. 'properties' => array(
  4430. 'DisplayName' => array(
  4431. 'type' => 'string'
  4432. ),
  4433. 'ID' => array(
  4434. 'type' => 'string'
  4435. )
  4436. )
  4437. ),
  4438. 'Grants' => array(
  4439. 'type' => 'array',
  4440. 'location' => 'xml',
  4441. 'sentAs' => 'AccessControlList',
  4442. 'items' => array(
  4443. 'type' => 'object',
  4444. 'properties' => array(
  4445. 'Grantee' => array(
  4446. 'type' => 'object',
  4447. 'properties' => array(
  4448. 'DisplayName' => array(
  4449. 'type' => 'string'
  4450. ),
  4451. 'ID' => array(
  4452. 'type' => 'string'
  4453. )
  4454. )
  4455. ),
  4456. 'Permission' => array(
  4457. 'type' => 'string'
  4458. )
  4459. )
  4460. )
  4461. ),
  4462. 'RequestId' => array(
  4463. 'location' => 'header',
  4464. 'sentAs' => 'x-cos-request-id'
  4465. )
  4466. )
  4467. ),
  4468. 'GetBucketCorsOutput' => array(
  4469. 'type' => 'object',
  4470. 'additionalProperties' => true,
  4471. 'properties' => array(
  4472. 'CORSRules' => array(
  4473. 'type' => 'array',
  4474. 'location' => 'xml',
  4475. 'sentAs' => 'CORSRule',
  4476. 'data' => array(
  4477. 'xmlFlattened' => true,
  4478. ),
  4479. 'items' => array(
  4480. 'type' => 'object',
  4481. 'properties' => array(
  4482. 'ID' => array(
  4483. 'type' => 'string'),
  4484. 'AllowedHeaders' => array(
  4485. 'type' => 'array',
  4486. 'sentAs' => 'AllowedHeader',
  4487. 'data' => array(
  4488. 'xmlFlattened' => true,
  4489. ),
  4490. 'items' => array(
  4491. 'type' => 'string',
  4492. )
  4493. ),
  4494. 'AllowedMethods' => array(
  4495. 'type' => 'array',
  4496. 'sentAs' => 'AllowedMethod',
  4497. 'data' => array(
  4498. 'xmlFlattened' => true,
  4499. ),
  4500. 'items' => array(
  4501. 'type' => 'string',
  4502. ),
  4503. ),
  4504. 'AllowedOrigins' => array(
  4505. 'type' => 'array',
  4506. 'sentAs' => 'AllowedOrigin',
  4507. 'data' => array(
  4508. 'xmlFlattened' => true,
  4509. ),
  4510. 'items' => array(
  4511. 'type' => 'string',
  4512. ),
  4513. ),
  4514. 'ExposeHeaders' => array(
  4515. 'type' => 'array',
  4516. 'sentAs' => 'ExposeHeader',
  4517. 'data' => array(
  4518. 'xmlFlattened' => true,
  4519. ),
  4520. 'items' => array(
  4521. 'type' => 'string',
  4522. ),
  4523. ),
  4524. 'MaxAgeSeconds' => array(
  4525. 'type' => 'numeric',
  4526. ),
  4527. ),
  4528. ),
  4529. ),
  4530. 'RequestId' => array(
  4531. 'location' => 'header',
  4532. 'sentAs' => 'x-cos-request-id',
  4533. ),
  4534. ),
  4535. ),
  4536. 'GetBucketDomainOutput' => array(
  4537. 'type' => 'object',
  4538. 'additionalProperties' => true,
  4539. 'properties' => array(
  4540. 'DomainRules' => array(
  4541. 'type' => 'array',
  4542. 'location' => 'xml',
  4543. 'sentAs' => 'DomainRule',
  4544. 'data' => array(
  4545. 'xmlFlattened' => true,
  4546. ),
  4547. 'items' => array(
  4548. 'type' => 'object',
  4549. 'properties' => array(
  4550. 'Status' => array(
  4551. 'type' => 'string'
  4552. ),
  4553. 'Name' => array(
  4554. 'type' => 'string'
  4555. ),
  4556. 'Type' => array(
  4557. 'type' => 'string'
  4558. ),
  4559. 'ForcedReplacement' => array(
  4560. 'type' => 'string'
  4561. ),
  4562. ),
  4563. ),
  4564. ),
  4565. 'DomainTxtVerification' => array(
  4566. 'location' => 'header',
  4567. 'sentAs' => 'x-cos-domain-txt-verification',
  4568. ),
  4569. 'RequestId' => array(
  4570. 'location' => 'header',
  4571. 'sentAs' => 'x-cos-request-id',
  4572. ),
  4573. ),
  4574. ),
  4575. 'GetBucketLifecycleOutput' => array(
  4576. 'type' => 'object',
  4577. 'additionalProperties' => true,
  4578. 'properties' => array(
  4579. 'Rules' => array(
  4580. 'type' => 'array',
  4581. 'location' => 'xml',
  4582. 'sentAs' => 'Rule',
  4583. 'data' => array(
  4584. 'xmlFlattened' => true,
  4585. ),
  4586. 'items' => array(
  4587. 'type' => 'object',
  4588. 'properties' => array(
  4589. 'Expiration' => array(
  4590. 'type' => 'object',
  4591. 'properties' => array(
  4592. 'Date' => array(
  4593. 'type' => 'string',
  4594. ),
  4595. 'Days' => array(
  4596. 'type' => 'numeric',
  4597. ),
  4598. ),
  4599. ),
  4600. 'ID' => array(
  4601. 'type' => 'string',
  4602. ),
  4603. 'Filter' => array(
  4604. 'type' => 'object',
  4605. 'properties' => array(
  4606. 'Prefix' => array(
  4607. 'type' => 'string',
  4608. ),
  4609. 'Tag' => array(
  4610. 'type' => 'object',
  4611. 'properties' => array(
  4612. 'Key' => array(
  4613. 'type' => 'string'
  4614. ),
  4615. 'Value' => array(
  4616. 'type' => 'string'
  4617. ),
  4618. )
  4619. )
  4620. ),
  4621. ),
  4622. 'Status' => array(
  4623. 'type' => 'string',
  4624. ),
  4625. 'Transition' => array(
  4626. 'type' => 'object',
  4627. 'properties' => array(
  4628. 'Date' => array(
  4629. 'type' => 'string',
  4630. ),
  4631. 'Days' => array(
  4632. 'type' => 'numeric',
  4633. ),
  4634. 'StorageClass' => array(
  4635. 'type' => 'string',
  4636. ),
  4637. ),
  4638. ),
  4639. 'NoncurrentVersionTransition' => array(
  4640. 'type' => 'object',
  4641. 'properties' => array(
  4642. 'NoncurrentDays' => array(
  4643. 'type' => 'numeric',
  4644. ),
  4645. 'StorageClass' => array(
  4646. 'type' => 'string',
  4647. ),
  4648. ),
  4649. ),
  4650. 'NoncurrentVersionExpiration' => array(
  4651. 'type' => 'object',
  4652. 'properties' => array(
  4653. 'NoncurrentDays' => array(
  4654. 'type' => 'numeric',
  4655. ),
  4656. ),
  4657. ),
  4658. ),
  4659. ),
  4660. ),
  4661. 'RequestId' => array(
  4662. 'location' => 'header',
  4663. 'sentAs' => 'x-cos-request-id',
  4664. ),
  4665. ),
  4666. ),
  4667. 'GetBucketVersioningOutput' => array(
  4668. 'type' => 'object',
  4669. 'additionalProperties' => true,
  4670. 'properties' => array(
  4671. 'Status' => array(
  4672. 'type' => 'string',
  4673. 'location' => 'xml',
  4674. ),
  4675. 'MFADelete' => array(
  4676. 'type' => 'string',
  4677. 'location' => 'xml',
  4678. 'sentAs' => 'MfaDelete',
  4679. ),
  4680. 'RequestId' => array(
  4681. 'location' => 'header',
  4682. 'sentAs' => 'x-cos-request-id',
  4683. ),
  4684. ),
  4685. ),
  4686. 'GetBucketReplicationOutput' => array(
  4687. 'type' => 'object',
  4688. 'additionalProperties' => true,
  4689. 'properties' => array(
  4690. 'Role' => array(
  4691. 'type' => 'string',
  4692. 'location' => 'xml',
  4693. ),
  4694. 'Rules' => array(
  4695. 'type' => 'array',
  4696. 'location' => 'xml',
  4697. 'sentAs' => 'Rule',
  4698. 'data' => array(
  4699. 'xmlFlattened' => true,
  4700. ),
  4701. 'items' => array(
  4702. 'type' => 'object',
  4703. 'properties' => array(
  4704. 'ID' => array(
  4705. 'type' => 'string',
  4706. ),
  4707. 'Prefix' => array(
  4708. 'type' => 'string',
  4709. ),
  4710. 'Status' => array(
  4711. 'type' => 'string',
  4712. ),
  4713. 'Destination' => array(
  4714. 'type' => 'object',
  4715. 'properties' => array(
  4716. 'Bucket' => array(
  4717. 'type' => 'string',
  4718. ),
  4719. 'StorageClass' => array(
  4720. 'type' => 'string',
  4721. ),
  4722. ),
  4723. ),
  4724. ),
  4725. ),
  4726. ),
  4727. 'RequestId' => array(
  4728. 'location' => 'header',
  4729. 'sentAs' => 'x-cos-request-id',
  4730. ),
  4731. ),
  4732. ),
  4733. 'GetBucketLocationOutput' => array(
  4734. 'type' => 'object',
  4735. 'additionalProperties' => true,
  4736. 'properties' => array(
  4737. 'Location' => array(
  4738. 'type' => 'string',
  4739. 'location' => 'body',
  4740. 'filters' => array(
  4741. 'strval',
  4742. 'strip_tags',
  4743. 'trim',
  4744. ),
  4745. ),
  4746. ),
  4747. ),
  4748. 'GetBucketAccelerateOutput' => array(
  4749. 'type' => 'object',
  4750. 'additionalProperties' => true,
  4751. 'properties' => array(
  4752. 'Status' => array(
  4753. 'type' => 'string',
  4754. 'location' => 'xml',
  4755. ),
  4756. 'Type' => array(
  4757. 'type' => 'string',
  4758. 'location' => 'xml',
  4759. ),
  4760. 'RequestId' => array(
  4761. 'location' => 'header',
  4762. 'sentAs' => 'x-cos-request-id',
  4763. ),
  4764. ),
  4765. ),
  4766. 'GetBucketWebsiteOutput' => array(
  4767. 'type' => 'object',
  4768. 'additionalProperties' => true,
  4769. 'properties' => array(
  4770. 'RedirectAllRequestsTo' => array(
  4771. 'type' => 'object',
  4772. 'location' => 'xml',
  4773. 'properties' => array(
  4774. 'HostName' => array(
  4775. 'type' => 'string',
  4776. ),
  4777. 'Protocol' => array(
  4778. 'type' => 'string',
  4779. ),
  4780. ),
  4781. ),
  4782. 'IndexDocument' => array(
  4783. 'type' => 'object',
  4784. 'location' => 'xml',
  4785. 'properties' => array(
  4786. 'Suffix' => array(
  4787. 'type' => 'string',
  4788. ),
  4789. ),
  4790. ),
  4791. 'ErrorDocument' => array(
  4792. 'type' => 'object',
  4793. 'location' => 'xml',
  4794. 'properties' => array(
  4795. 'Key' => array(
  4796. 'type' => 'string',
  4797. ),
  4798. ),
  4799. ),
  4800. 'RoutingRules' => array(
  4801. 'type' => 'array',
  4802. 'location' => 'xml',
  4803. 'items' => array(
  4804. 'name' => 'RoutingRule',
  4805. 'type' => 'object',
  4806. 'sentAs' => 'RoutingRule',
  4807. 'properties' => array(
  4808. 'Condition' => array(
  4809. 'type' => 'object',
  4810. 'properties' => array(
  4811. 'HttpErrorCodeReturnedEquals' => array(
  4812. 'type' => 'string',
  4813. ),
  4814. 'KeyPrefixEquals' => array(
  4815. 'type' => 'string',
  4816. ),
  4817. ),
  4818. ),
  4819. 'Redirect' => array(
  4820. 'type' => 'object',
  4821. 'properties' => array(
  4822. 'HostName' => array(
  4823. 'type' => 'string',
  4824. ),
  4825. 'HttpRedirectCode' => array(
  4826. 'type' => 'string',
  4827. ),
  4828. 'Protocol' => array(
  4829. 'type' => 'string',
  4830. ),
  4831. 'ReplaceKeyPrefixWith' => array(
  4832. 'type' => 'string',
  4833. ),
  4834. 'ReplaceKeyWith' => array(
  4835. 'type' => 'string',
  4836. ),
  4837. ),
  4838. ),
  4839. ),
  4840. ),
  4841. ),
  4842. 'RequestId' => array(
  4843. 'location' => 'header',
  4844. 'sentAs' => 'x-cos-request-id',
  4845. ),
  4846. ),
  4847. ),
  4848. 'GetBucketInventoryOutput' => array(
  4849. 'type' => 'object',
  4850. 'additionalProperties' => true,
  4851. 'properties' => array(
  4852. 'Destination' => array(
  4853. 'type' => 'object',
  4854. 'location' => 'xml',
  4855. 'properties' => array(
  4856. 'COSBucketDestination' => array(
  4857. 'type' => 'object',
  4858. 'properties' => array(
  4859. 'Format' => array(
  4860. 'type' => 'string',
  4861. ),
  4862. 'AccountId' => array(
  4863. 'type' => 'string',
  4864. ),
  4865. 'Bucket' => array(
  4866. 'type' => 'string',
  4867. ),
  4868. 'Prefix' => array(
  4869. 'type' => 'string',
  4870. ),
  4871. 'Encryption' => array(
  4872. 'type' => 'object',
  4873. 'properties' => array(
  4874. 'SSE-COS' => array(
  4875. 'type' => 'string',
  4876. )
  4877. )
  4878. ),
  4879. ),
  4880. ),
  4881. ),
  4882. ),
  4883. 'Schedule' => array(
  4884. 'type' => 'object',
  4885. 'location' => 'xml',
  4886. 'properties' => array(
  4887. 'Frequency' => array(
  4888. 'type' => 'string',
  4889. ),
  4890. ),
  4891. ),
  4892. 'OptionalFields' => array(
  4893. 'type' => 'array',
  4894. 'location' => 'xml',
  4895. 'properties' => array(
  4896. 'Key' => array(
  4897. 'type' => 'string',
  4898. ),
  4899. ),
  4900. ),
  4901. 'OptionalFields' => array(
  4902. 'type' => 'array',
  4903. 'location' => 'xml',
  4904. 'items' => array(
  4905. 'name' => 'Field',
  4906. 'type' => 'string',
  4907. 'sentAs' => 'Field',
  4908. ),
  4909. ),
  4910. 'IsEnabled' => array(
  4911. 'type' => 'string',
  4912. 'location' => 'xml',
  4913. ),
  4914. 'Id' => array(
  4915. 'type' => 'string',
  4916. 'location' => 'xml',
  4917. ),
  4918. 'IncludedObjectVersions' => array(
  4919. 'type' => 'string',
  4920. 'location' => 'xml',
  4921. ),
  4922. 'RequestId' => array(
  4923. 'location' => 'header',
  4924. 'sentAs' => 'x-cos-request-id',
  4925. ),
  4926. ),
  4927. ),
  4928. 'GetBucketTaggingOutput' => array(
  4929. 'type' => 'object',
  4930. 'additionalProperties' => true,
  4931. 'properties' => array(
  4932. 'TagSet' => array(
  4933. 'type' => 'array',
  4934. 'location' => 'xml',
  4935. 'items' => array(
  4936. 'sentAs' => 'Tag',
  4937. 'type' => 'object',
  4938. 'properties' => array(
  4939. 'Key' => array(
  4940. 'type' => 'string',
  4941. ),
  4942. 'Value' => array(
  4943. 'type' => 'string',
  4944. ),
  4945. ),
  4946. ),
  4947. ),
  4948. 'RequestId' => array(
  4949. 'location' => 'header',
  4950. 'sentAs' => 'x-cos-request-id',
  4951. ),
  4952. ),
  4953. ),
  4954. 'GetBucketNotificationOutput' => array(
  4955. 'type' => 'object',
  4956. 'additionalProperties' => true,
  4957. 'properties' => array(
  4958. 'CloudFunctionConfigurations' => array(
  4959. 'type' => 'array',
  4960. 'location' => 'xml',
  4961. 'sentAs' => 'CloudFunctionConfiguration',
  4962. 'data' => array(
  4963. 'xmlFlattened' => true,
  4964. ),
  4965. 'items' => array(
  4966. 'type' => 'object',
  4967. 'properties' => array(
  4968. 'Id' => array(
  4969. 'type' => 'string',
  4970. ),
  4971. 'CloudFunction' => array(
  4972. 'type' => 'string',
  4973. 'sentAs' => 'CloudFunction',
  4974. ),
  4975. 'Events' => array(
  4976. 'type' => 'array',
  4977. 'sentAs' => 'Event',
  4978. 'data' => array(
  4979. 'xmlFlattened' => true,
  4980. ),
  4981. 'items' => array(
  4982. 'type' => 'string',
  4983. ),
  4984. ),
  4985. 'Filter' => array(
  4986. 'type' => 'object',
  4987. 'properties' => array(
  4988. 'Key' => array(
  4989. 'type' => 'object',
  4990. 'sentAs' => 'Key',
  4991. 'properties' => array(
  4992. 'FilterRules' => array(
  4993. 'type' => 'array',
  4994. 'sentAs' => 'FilterRule',
  4995. 'data' => array(
  4996. 'xmlFlattened' => true,
  4997. ),
  4998. 'items' => array(
  4999. 'type' => 'object',
  5000. 'properties' => array(
  5001. 'Name' => array(
  5002. 'type' => 'string',
  5003. ),
  5004. 'Value' => array(
  5005. 'type' => 'string',
  5006. ),
  5007. ),
  5008. ),
  5009. ),
  5010. ),
  5011. ),
  5012. ),
  5013. ),
  5014. ),
  5015. ),
  5016. ),
  5017. 'RequestId' => array(
  5018. 'location' => 'header',
  5019. 'sentAs' => 'x-cos-request-id',
  5020. ),
  5021. ),
  5022. ),
  5023. 'GetBucketLoggingOutput' => array(
  5024. 'type' => 'object',
  5025. 'additionalProperties' => true,
  5026. 'properties' => array(
  5027. 'LoggingEnabled' => array(
  5028. 'location' => 'xml',
  5029. 'type' => 'object',
  5030. 'properties' => array(
  5031. 'TargetBucket' => array(
  5032. 'type' => 'string',
  5033. 'location' => 'xml',
  5034. ),
  5035. 'TargetPrefix' => array(
  5036. 'type' => 'string',
  5037. ),
  5038. ),
  5039. ),
  5040. 'RequestId' => array(
  5041. 'location' => 'header',
  5042. 'sentAs' => 'x-cos-request-id',
  5043. ),
  5044. ),
  5045. ),
  5046. 'UploadPartOutput' => array(
  5047. 'type' => 'object',
  5048. 'additionalProperties' => true,
  5049. 'properties' => array(
  5050. 'ServerSideEncryption' => array(
  5051. 'type' => 'string',
  5052. 'location' => 'header',
  5053. 'sentAs' => 'x-cos-server-side-encryption',
  5054. ),
  5055. 'ETag' => array(
  5056. 'type' => 'string',
  5057. 'location' => 'header',
  5058. ),
  5059. 'SSECustomerAlgorithm' => array(
  5060. 'type' => 'string',
  5061. 'location' => 'header',
  5062. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  5063. ),
  5064. 'SSECustomerKeyMD5' => array(
  5065. 'type' => 'string',
  5066. 'location' => 'header',
  5067. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  5068. ),
  5069. 'SSEKMSKeyId' => array(
  5070. 'type' => 'string',
  5071. 'location' => 'header',
  5072. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  5073. ),
  5074. 'RequestCharged' => array(
  5075. 'type' => 'string',
  5076. 'location' => 'header',
  5077. 'sentAs' => 'x-cos-request-charged',
  5078. ),
  5079. 'RequestId' => array(
  5080. 'location' => 'header',
  5081. 'sentAs' => 'x-cos-request-id',
  5082. ),
  5083. 'CRC' => array(
  5084. 'type' => 'string',
  5085. 'location' => 'header',
  5086. 'sentAs' => 'x-cos-hash-crc64ecma',
  5087. )
  5088. ),
  5089. ),
  5090. 'UploadPartCopyOutput' => array(
  5091. 'type' => 'object',
  5092. 'additionalProperties' => true,
  5093. 'properties' => array(
  5094. 'CopySourceVersionId' => array(
  5095. 'type' => 'string',
  5096. 'location' => 'header',
  5097. 'sentAs' => 'x-cos-copy-source-version-id',
  5098. ),
  5099. 'ETag' => array(
  5100. 'type' => 'string',
  5101. 'location' => 'xml',
  5102. ),
  5103. 'LastModified' => array(
  5104. 'type' => 'string',
  5105. 'location' => 'xml',
  5106. ),
  5107. 'ServerSideEncryption' => array(
  5108. 'type' => 'string',
  5109. 'location' => 'header',
  5110. 'sentAs' => 'x-cos-server-side-encryption',
  5111. ),
  5112. 'SSECustomerAlgorithm' => array(
  5113. 'type' => 'string',
  5114. 'location' => 'header',
  5115. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  5116. ),
  5117. 'SSECustomerKeyMD5' => array(
  5118. 'type' => 'string',
  5119. 'location' => 'header',
  5120. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  5121. ),
  5122. 'SSEKMSKeyId' => array(
  5123. 'type' => 'string',
  5124. 'location' => 'header',
  5125. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  5126. ),
  5127. 'RequestCharged' => array(
  5128. 'type' => 'string',
  5129. 'location' => 'header',
  5130. 'sentAs' => 'x-cos-request-charged',
  5131. ),
  5132. 'RequestId' => array(
  5133. 'location' => 'header',
  5134. 'sentAs' => 'x-cos-request-id',
  5135. ),
  5136. 'CRC' => array(
  5137. 'type' => 'string',
  5138. 'location' => 'header',
  5139. 'sentAs' => 'x-cos-hash-crc64ecma',
  5140. )
  5141. ),
  5142. ),
  5143. 'PutBucketAclOutput' => array(
  5144. 'type' => 'object',
  5145. 'additionalProperties' => true,
  5146. 'properties' => array(
  5147. 'RequestId' => array(
  5148. 'location' => 'header',
  5149. 'sentAs' => 'x-cos-request-id'
  5150. )
  5151. )
  5152. ),
  5153. 'PutObjectOutput' => array(
  5154. 'type' => 'object',
  5155. 'additionalProperties' => true,
  5156. 'properties' => array(
  5157. 'Expiration' => array(
  5158. 'type' => 'string',
  5159. 'location' => 'header',
  5160. 'sentAs' => 'x-cos-expiration',
  5161. ),
  5162. 'ETag' => array(
  5163. 'type' => 'string',
  5164. 'location' => 'header',
  5165. ),
  5166. 'ServerSideEncryption' => array(
  5167. 'type' => 'string',
  5168. 'location' => 'header',
  5169. 'sentAs' => 'x-cos-server-side-encryption',
  5170. ),
  5171. 'VersionId' => array(
  5172. 'type' => 'string',
  5173. 'location' => 'header',
  5174. 'sentAs' => 'x-cos-version-id',
  5175. ),
  5176. 'SSECustomerAlgorithm' => array(
  5177. 'type' => 'string',
  5178. 'location' => 'header',
  5179. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  5180. ),
  5181. 'SSECustomerKeyMD5' => array(
  5182. 'type' => 'string',
  5183. 'location' => 'header',
  5184. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  5185. ),
  5186. 'SSEKMSKeyId' => array(
  5187. 'type' => 'string',
  5188. 'location' => 'header',
  5189. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  5190. ),
  5191. 'RequestCharged' => array(
  5192. 'type' => 'string',
  5193. 'location' => 'header',
  5194. 'sentAs' => 'x-cos-request-charged',
  5195. ),
  5196. 'RequestId' => array(
  5197. 'location' => 'header',
  5198. 'sentAs' => 'x-cos-request-id',
  5199. ),
  5200. 'ContentLength' => array(
  5201. 'type' => 'numeric',
  5202. 'minimum'=> 0,
  5203. 'location' => 'header',
  5204. 'sentAs' => 'Content-Length',
  5205. ),
  5206. 'Body' => array(
  5207. 'type' => 'string',
  5208. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  5209. 'location' => 'body',
  5210. ),
  5211. 'CRC' => array(
  5212. 'type' => 'string',
  5213. 'location' => 'header',
  5214. 'sentAs' => 'x-cos-hash-crc64ecma',
  5215. )
  5216. ),
  5217. ),
  5218. 'AppendObjectOutput' => array(
  5219. 'type' => 'object',
  5220. 'additionalProperties' => true,
  5221. 'properties' => array(
  5222. 'ETag' => array(
  5223. 'type' => 'string',
  5224. 'location' => 'header',
  5225. ),
  5226. 'Position' => array(
  5227. 'type' => 'integer',
  5228. 'location' => 'header',
  5229. 'sentAs' => 'x-cos-next-append-position',
  5230. ),
  5231. 'RequestId' => array(
  5232. 'location' => 'header',
  5233. 'sentAs' => 'x-cos-request-id',
  5234. )
  5235. ),
  5236. ),
  5237. 'PutObjectAclOutput' => array(
  5238. 'type' => 'object',
  5239. 'additionalProperties' => true,
  5240. 'properties' => array(
  5241. 'RequestCharged' => array(
  5242. 'type' => 'string',
  5243. 'location' => 'header',
  5244. 'sentAs' => 'x-cos-request-charged',
  5245. ),
  5246. 'RequestId' => array(
  5247. 'location' => 'header',
  5248. 'sentAs' => 'x-cos-request-id',
  5249. ),
  5250. ),
  5251. ),
  5252. 'PutBucketCorsOutput' => array(
  5253. 'type' => 'object',
  5254. 'additionalProperties' => true,
  5255. 'properties' => array(
  5256. 'RequestId' => array(
  5257. 'location' => 'header',
  5258. 'sentAs' => 'x-cos-request-id',
  5259. ),
  5260. ),
  5261. ),
  5262. 'PutBucketDomainOutput' => array(
  5263. 'type' => 'object',
  5264. 'additionalProperties' => true,
  5265. 'properties' => array(
  5266. 'RequestId' => array(
  5267. 'location' => 'header',
  5268. 'sentAs' => 'x-cos-request-id',
  5269. ),
  5270. ),
  5271. ),
  5272. 'PutBucketLifecycleOutput' => array(
  5273. 'type' => 'object',
  5274. 'additionalProperties' => true,
  5275. 'properties' => array(
  5276. 'RequestId' => array(
  5277. 'location' => 'header',
  5278. 'sentAs' => 'x-cos-request-id',
  5279. ),
  5280. ),
  5281. ),
  5282. 'PutBucketVersioningOutput' => array(
  5283. 'type' => 'object',
  5284. 'additionalProperties' => true,
  5285. 'properties' => array(
  5286. 'RequestId' => array(
  5287. 'location' => 'header',
  5288. 'sentAs' => 'x-cos-request-id',
  5289. ),
  5290. ),
  5291. ),
  5292. 'PutBucketReplicationOutput' => array(
  5293. 'type' => 'object',
  5294. 'additionalProperties' => true,
  5295. 'properties' => array(
  5296. 'RequestId' => array(
  5297. 'location' => 'header',
  5298. 'sentAs' => 'x-cos-request-id',
  5299. ),
  5300. ),
  5301. ),
  5302. 'PutBucketNotificationOutput' => array(
  5303. 'type' => 'object',
  5304. 'additionalProperties' => true,
  5305. 'properties' => array(
  5306. 'RequestId' => array(
  5307. 'location' => 'header',
  5308. 'sentAs' => 'x-cos-request-id',
  5309. ),
  5310. ),
  5311. ),
  5312. 'PutBucketWebsiteOutput' => array(
  5313. 'type' => 'object',
  5314. 'additionalProperties' => true,
  5315. 'properties' => array(
  5316. 'RequestId' => array(
  5317. 'location' => 'header',
  5318. 'sentAs' => 'x-cos-request-id',
  5319. ),
  5320. ),
  5321. ),
  5322. 'PutBucketAccelerateOutput' => array(
  5323. 'type' => 'object',
  5324. 'additionalProperties' => true,
  5325. 'properties' => array(
  5326. 'RequestId' => array(
  5327. 'location' => 'header',
  5328. 'sentAs' => 'x-cos-request-id',
  5329. ),
  5330. ),
  5331. ),
  5332. 'PutBucketLoggingOutput' => array(
  5333. 'type' => 'object',
  5334. 'additionalProperties' => true,
  5335. 'properties' => array(
  5336. 'RequestId' => array(
  5337. 'location' => 'header',
  5338. 'sentAs' => 'x-cos-request-id',
  5339. ),
  5340. ),
  5341. ),
  5342. 'PutBucketInventoryOutput' => array(
  5343. 'type' => 'object',
  5344. 'additionalProperties' => true,
  5345. 'properties' => array(
  5346. 'RequestId' => array(
  5347. 'location' => 'header',
  5348. 'sentAs' => 'x-cos-request-id',
  5349. ),
  5350. ),
  5351. ),
  5352. 'PutBucketTaggingOutput' => array(
  5353. 'type' => 'object',
  5354. 'additionalProperties' => true,
  5355. 'properties' => array(
  5356. 'RequestId' => array(
  5357. 'location' => 'header',
  5358. 'sentAs' => 'x-cos-request-id',
  5359. ),
  5360. ),
  5361. ),
  5362. 'RestoreObjectOutput' => array(
  5363. 'type' => 'object',
  5364. 'additionalProperties' => true,
  5365. 'properties' => array(
  5366. 'RequestCharged' => array(
  5367. 'type' => 'string',
  5368. 'location' => 'header',
  5369. 'sentAs' => 'x-cos-request-charged',
  5370. ),
  5371. 'RequestId' => array(
  5372. 'location' => 'header',
  5373. 'sentAs' => 'x-cos-request-id',
  5374. ),
  5375. ),
  5376. ),
  5377. 'ListPartsOutput' => array(
  5378. 'type' => 'object',
  5379. 'additionalProperties' => true,
  5380. 'properties' => array(
  5381. 'Bucket' => array(
  5382. 'type' => 'string',
  5383. 'location' => 'xml'
  5384. ),
  5385. 'Key' => array(
  5386. 'type' => 'string',
  5387. 'location' => 'xml'
  5388. ),
  5389. 'UploadId' => array(
  5390. 'type' => 'string',
  5391. 'location' => 'xml'
  5392. ),
  5393. 'PartNumberMarker' => array(
  5394. 'type' => 'numeric',
  5395. 'location' => 'xml'
  5396. ),
  5397. 'NextPartNumberMarker' => array(
  5398. 'type' => 'numeric',
  5399. 'location' => 'xml'
  5400. ),
  5401. 'MaxParts' => array(
  5402. 'type' => 'numeric',
  5403. 'location' => 'xml'
  5404. ),
  5405. 'IsTruncated' => array(
  5406. 'type' => 'boolean',
  5407. 'location' => 'xml'
  5408. ),
  5409. 'Parts' => array(
  5410. 'type' => 'array',
  5411. 'location' => 'xml',
  5412. 'sentAs' => 'Part',
  5413. 'data' => array(
  5414. 'xmlFlattened' => true
  5415. ),
  5416. 'items' => array(
  5417. 'type' => 'object',
  5418. 'properties' => array(
  5419. 'PartNumber' => array(
  5420. 'type' => 'numeric'
  5421. ),
  5422. 'LastModified' => array(
  5423. 'type' => 'string'
  5424. ),
  5425. 'ETag' => array(
  5426. 'type' => 'string'
  5427. ),
  5428. 'Size' => array(
  5429. 'type' => 'numeric'
  5430. )
  5431. )
  5432. )
  5433. ),
  5434. 'Initiator' => array(
  5435. 'type' => 'object',
  5436. 'location' => 'xml',
  5437. 'properties' => array(
  5438. 'ID' => array(
  5439. 'type' => 'string'
  5440. ),
  5441. 'DisplayName' => array(
  5442. 'type' => 'string'
  5443. )
  5444. )
  5445. ),
  5446. 'Owner' => array(
  5447. 'type' => 'object',
  5448. 'location' => 'xml',
  5449. 'properties' => array(
  5450. 'DisplayName' => array(
  5451. 'type' => 'string'
  5452. ),
  5453. 'ID' => array(
  5454. 'type' => 'string'
  5455. )
  5456. )
  5457. ),
  5458. 'StorageClass' => array(
  5459. 'type' => 'string',
  5460. 'location' => 'xml'
  5461. ),
  5462. 'RequestId' => array(
  5463. 'location' => 'header',
  5464. 'sentAs' => 'x-cos-request-id'
  5465. )
  5466. )
  5467. ),
  5468. 'ListObjectsOutput' => array(
  5469. 'type' => 'object',
  5470. 'additionalProperties' => true,
  5471. 'properties' => array(
  5472. 'IsTruncated' => array(
  5473. 'type' => 'boolean',
  5474. 'location' => 'xml'
  5475. ),
  5476. 'Marker' => array(
  5477. 'type' => 'string',
  5478. 'location' => 'xml'
  5479. ),
  5480. 'NextMarker' => array(
  5481. 'type' => 'string',
  5482. 'location' => 'xml'
  5483. ),
  5484. 'Contents' => array(
  5485. 'type' => 'array',
  5486. 'location' => 'xml',
  5487. 'data' => array(
  5488. 'xmlFlattened' => true
  5489. ),
  5490. 'items' => array(
  5491. 'type' => 'object',
  5492. 'properties' => array(
  5493. 'Key' => array(
  5494. 'type' => 'string'
  5495. ),
  5496. 'LastModified' => array(
  5497. 'type' => 'string'
  5498. ),
  5499. 'ETag' => array(
  5500. 'type' => 'string'
  5501. ),
  5502. 'Size' => array(
  5503. 'type' => 'numeric'
  5504. ),
  5505. 'StorageClass' => array(
  5506. 'type' => 'string'
  5507. ),
  5508. 'Owner' => array(
  5509. 'type' => 'object',
  5510. 'properties' => array(
  5511. 'DisplayName' => array(
  5512. 'type' => 'string'
  5513. ),
  5514. 'ID' => array(
  5515. 'type' => 'string'
  5516. )
  5517. )
  5518. )
  5519. )
  5520. )
  5521. ),
  5522. 'Name' => array(
  5523. 'type' => 'string',
  5524. 'location' => 'xml'
  5525. ),
  5526. 'Prefix' => array(
  5527. 'type' => 'string',
  5528. 'location' => 'xml'
  5529. ),
  5530. 'Delimiter' => array(
  5531. 'type' => 'string',
  5532. 'location' => 'xml'
  5533. ),
  5534. 'MaxKeys' => array(
  5535. 'type' => 'numeric',
  5536. 'location' => 'xml'
  5537. ),
  5538. 'CommonPrefixes' => array(
  5539. 'type' => 'array',
  5540. 'location' => 'xml',
  5541. 'data' => array(
  5542. 'xmlFlattened' => true
  5543. ),
  5544. 'items' => array(
  5545. 'type' => 'object',
  5546. 'properties' => array(
  5547. 'Prefix' => array(
  5548. 'type' => 'string'
  5549. )
  5550. )
  5551. )
  5552. ),
  5553. 'EncodingType' => array(
  5554. 'type' => 'string',
  5555. 'location' => 'xml'),
  5556. 'RequestId' => array(
  5557. 'location' => 'header',
  5558. 'sentAs' => 'x-cos-request-id'
  5559. )
  5560. )
  5561. ),
  5562. 'ListBucketsOutput' => array(
  5563. 'type' => 'object',
  5564. 'additionalProperties' => true,
  5565. 'properties' => array(
  5566. 'Buckets' => array(
  5567. 'type' => 'array',
  5568. 'location' => 'xml',
  5569. 'items' => array(
  5570. 'type' => 'object',
  5571. 'properties' => array(
  5572. 'Name' => array(
  5573. 'type' => 'string',
  5574. ),
  5575. 'CreationDate' => array(
  5576. 'type' => 'string',
  5577. ),
  5578. ),
  5579. ),
  5580. ),
  5581. 'Owner' => array(
  5582. 'type' => 'object',
  5583. 'location' => 'xml',
  5584. 'properties' => array(
  5585. 'DisplayName' => array(
  5586. 'type' => 'string',
  5587. ),
  5588. 'ID' => array(
  5589. 'type' => 'string',
  5590. ),
  5591. ),
  5592. ),
  5593. 'RequestId' => array(
  5594. 'location' => 'header',
  5595. 'sentAs' => 'x-cos-request-id',
  5596. ),
  5597. ),
  5598. ),
  5599. 'ListObjectVersionsOutput' => array(
  5600. 'type' => 'object',
  5601. 'additionalProperties' => true,
  5602. 'properties' => array(
  5603. 'IsTruncated' => array(
  5604. 'type' => 'boolean',
  5605. 'location' => 'xml',
  5606. ),
  5607. 'KeyMarker' => array(
  5608. 'type' => 'string',
  5609. 'location' => 'xml',
  5610. ),
  5611. 'VersionIdMarker' => array(
  5612. 'type' => 'string',
  5613. 'location' => 'xml',
  5614. ),
  5615. 'NextKeyMarker' => array(
  5616. 'type' => 'string',
  5617. 'location' => 'xml',
  5618. ),
  5619. 'NextVersionIdMarker' => array(
  5620. 'type' => 'string',
  5621. 'location' => 'xml',
  5622. ),
  5623. 'Version' => array(
  5624. 'type' => 'array',
  5625. 'location' => 'xml',
  5626. 'data' => array(
  5627. 'xmlFlattened' => true,
  5628. ),
  5629. 'items' => array(
  5630. 'type' => 'object',
  5631. 'properties' => array(
  5632. 'ETag' => array(
  5633. 'type' => 'string',
  5634. ),
  5635. 'Size' => array(
  5636. 'type' => 'numeric',
  5637. ),
  5638. 'StorageClass' => array(
  5639. 'type' => 'string',
  5640. ),
  5641. 'Key' => array(
  5642. 'type' => 'string',
  5643. ),
  5644. 'VersionId' => array(
  5645. 'type' => 'string',
  5646. ),
  5647. 'IsLatest' => array(
  5648. 'type' => 'boolean',
  5649. ),
  5650. 'LastModified' => array(
  5651. 'type' => 'string',
  5652. ),
  5653. 'Owner' => array(
  5654. 'type' => 'object',
  5655. 'properties' => array(
  5656. 'DisplayName' => array(
  5657. 'type' => 'string',
  5658. ),
  5659. 'ID' => array(
  5660. 'type' => 'string',
  5661. ),
  5662. ),
  5663. ),
  5664. ),
  5665. ),
  5666. ),
  5667. 'DeleteMarkers' => array(
  5668. 'type' => 'array',
  5669. 'location' => 'xml',
  5670. 'sentAs' => 'DeleteMarker',
  5671. 'data' => array(
  5672. 'xmlFlattened' => true,
  5673. ),
  5674. 'items' => array(
  5675. 'type' => 'object',
  5676. 'properties' => array(
  5677. 'Owner' => array(
  5678. 'type' => 'object',
  5679. 'properties' => array(
  5680. 'DisplayName' => array(
  5681. 'type' => 'string',
  5682. ),
  5683. 'ID' => array(
  5684. 'type' => 'string',
  5685. ),
  5686. ),
  5687. ),
  5688. 'Key' => array(
  5689. 'type' => 'string',
  5690. ),
  5691. 'VersionId' => array(
  5692. 'type' => 'string',
  5693. ),
  5694. 'IsLatest' => array(
  5695. 'type' => 'boolean',
  5696. ),
  5697. 'LastModified' => array(
  5698. 'type' => 'string',
  5699. ),
  5700. ),
  5701. ),
  5702. ),
  5703. 'Name' => array(
  5704. 'type' => 'string',
  5705. 'location' => 'xml',
  5706. ),
  5707. 'Prefix' => array(
  5708. 'type' => 'string',
  5709. 'location' => 'xml',
  5710. ),
  5711. 'Delimiter' => array(
  5712. 'type' => 'string',
  5713. 'location' => 'xml',
  5714. ),
  5715. 'MaxKeys' => array(
  5716. 'type' => 'numeric',
  5717. 'location' => 'xml',
  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. 'ListMultipartUploadsOutput' => array(
  5745. 'type' => 'object',
  5746. 'additionalProperties' => true,
  5747. 'properties' => array(
  5748. 'Bucket' => array(
  5749. 'type' => 'string',
  5750. 'location' => 'xml',
  5751. ),
  5752. 'KeyMarker' => array(
  5753. 'type' => 'string',
  5754. 'location' => 'xml',
  5755. ),
  5756. 'UploadIdMarker' => array(
  5757. 'type' => 'string',
  5758. 'location' => 'xml',
  5759. ),
  5760. 'NextKeyMarker' => array(
  5761. 'type' => 'string',
  5762. 'location' => 'xml',
  5763. ),
  5764. 'Prefix' => array(
  5765. 'type' => 'string',
  5766. 'location' => 'xml',
  5767. ),
  5768. 'Delimiter' => array(
  5769. 'type' => 'string',
  5770. 'location' => 'xml',
  5771. ),
  5772. 'NextUploadIdMarker' => array(
  5773. 'type' => 'string',
  5774. 'location' => 'xml',
  5775. ),
  5776. 'MaxUploads' => array(
  5777. 'type' => 'numeric',
  5778. 'location' => 'xml',
  5779. ),
  5780. 'IsTruncated' => array(
  5781. 'type' => 'boolean',
  5782. 'location' => 'xml',
  5783. ),
  5784. 'Uploads' => array(
  5785. 'type' => 'array',
  5786. 'location' => 'xml',
  5787. 'sentAs' => 'Upload',
  5788. 'data' => array(
  5789. 'xmlFlattened' => true,
  5790. ),
  5791. 'items' => array(
  5792. 'type' => 'object',
  5793. 'properties' => array(
  5794. 'UploadId' => array(
  5795. 'type' => 'string',
  5796. ),
  5797. 'Key' => array(
  5798. 'type' => 'string',
  5799. ),
  5800. 'Initiated' => array(
  5801. 'type' => 'string',
  5802. ),
  5803. 'StorageClass' => array(
  5804. 'type' => 'string',
  5805. ),
  5806. 'Owner' => array(
  5807. 'type' => 'object',
  5808. 'properties' => array(
  5809. 'DisplayName' => array(
  5810. 'type' => 'string',
  5811. ),
  5812. 'ID' => array(
  5813. 'type' => 'string',
  5814. ),
  5815. ),
  5816. ),
  5817. 'Initiator' => array(
  5818. 'type' => 'object',
  5819. 'properties' => array(
  5820. 'ID' => array(
  5821. 'type' => 'string',
  5822. ),
  5823. 'DisplayName' => array(
  5824. 'type' => 'string',
  5825. ),
  5826. ),
  5827. ),
  5828. ),
  5829. ),
  5830. ),
  5831. 'CommonPrefixes' => array(
  5832. 'type' => 'array',
  5833. 'location' => 'xml',
  5834. 'data' => array(
  5835. 'xmlFlattened' => true,
  5836. ),
  5837. 'items' => array(
  5838. 'type' => 'object',
  5839. 'properties' => array(
  5840. 'Prefix' => array(
  5841. 'type' => 'string',
  5842. ),
  5843. ),
  5844. ),
  5845. ),
  5846. 'EncodingType' => array(
  5847. 'type' => 'string',
  5848. 'location' => 'xml',
  5849. ),
  5850. 'RequestId' => array(
  5851. 'location' => 'header',
  5852. 'sentAs' => 'x-cos-request-id',
  5853. ),
  5854. ),
  5855. ),
  5856. 'ListBucketInventoryConfigurationsOutput' => array(
  5857. 'type' => 'object',
  5858. 'additionalProperties' => true,
  5859. 'properties' => array(
  5860. 'InventoryConfiguration' => array(
  5861. 'type' => 'array',
  5862. 'location' => 'xml',
  5863. 'sentAs' => 'InventoryConfiguration',
  5864. 'items' => array(
  5865. 'type' => 'object',
  5866. 'properties' => array(
  5867. 'Destination' => array(
  5868. 'type' => 'object',
  5869. 'location' => 'xml',
  5870. 'properties' => array(
  5871. 'COSBucketDestination' => array(
  5872. 'type' => 'object',
  5873. 'properties' => array(
  5874. 'Format' => array(
  5875. 'type' => 'string',
  5876. ),
  5877. 'AccountId' => array(
  5878. 'type' => 'string',
  5879. ),
  5880. 'Bucket' => array(
  5881. 'type' => 'string',
  5882. ),
  5883. 'Prefix' => array(
  5884. 'type' => 'string',
  5885. ),
  5886. 'Encryption' => array(
  5887. 'type' => 'object',
  5888. 'properties' => array(
  5889. 'SSE-COS' => array(
  5890. 'type' => 'string',
  5891. )
  5892. )
  5893. ),
  5894. ),
  5895. ),
  5896. ),
  5897. ),
  5898. 'Schedule' => array(
  5899. 'type' => 'object',
  5900. 'location' => 'xml',
  5901. 'properties' => array(
  5902. 'Frequency' => array(
  5903. 'type' => 'string',
  5904. ),
  5905. ),
  5906. ),
  5907. 'OptionalFields' => array(
  5908. 'type' => 'array',
  5909. 'location' => 'xml',
  5910. 'properties' => array(
  5911. 'Key' => array(
  5912. 'type' => 'string',
  5913. ),
  5914. ),
  5915. ),
  5916. 'OptionalFields' => array(
  5917. 'type' => 'array',
  5918. 'location' => 'xml',
  5919. 'items' => array(
  5920. 'name' => 'Field',
  5921. 'type' => 'string',
  5922. 'sentAs' => 'Field',
  5923. ),
  5924. ),
  5925. 'IsEnabled' => array(
  5926. 'type' => 'string',
  5927. 'location' => 'xml',
  5928. ),
  5929. 'Id' => array(
  5930. 'type' => 'string',
  5931. 'location' => 'xml',
  5932. ),
  5933. 'IncludedObjectVersions' => array(
  5934. 'type' => 'string',
  5935. 'location' => 'xml',
  5936. ),
  5937. 'RequestId' => array(
  5938. 'location' => 'header',
  5939. 'sentAs' => 'x-cos-request-id',
  5940. ),
  5941. ),
  5942. ),
  5943. ),
  5944. ),
  5945. ),
  5946. 'HeadObjectOutput' => array(
  5947. 'type' => 'object',
  5948. 'additionalProperties' => true,
  5949. 'properties' => array(
  5950. 'DeleteMarker' => array(
  5951. 'type' => 'boolean',
  5952. 'location' => 'header',
  5953. 'sentAs' => 'x-cos-delete-marker',
  5954. ),
  5955. 'AcceptRanges' => array(
  5956. 'type' => 'string',
  5957. 'location' => 'header',
  5958. 'sentAs' => 'accept-ranges',
  5959. ),
  5960. 'Expiration' => array(
  5961. 'type' => 'string',
  5962. 'location' => 'header',
  5963. 'sentAs' => 'x-cos-expiration',
  5964. ),
  5965. 'Restore' => array(
  5966. 'type' => 'string',
  5967. 'location' => 'header',
  5968. 'sentAs' => 'x-cos-restore',
  5969. ),
  5970. 'LastModified' => array(
  5971. 'type' => 'string',
  5972. 'location' => 'header',
  5973. 'sentAs' => 'Last-Modified',
  5974. ),
  5975. 'ContentLength' => array(
  5976. 'type' => 'numeric',
  5977. 'minimum'=> 0,
  5978. 'location' => 'header',
  5979. 'sentAs' => 'Content-Length',
  5980. ),
  5981. 'ETag' => array(
  5982. 'type' => 'string',
  5983. 'location' => 'header',
  5984. ),
  5985. 'MissingMeta' => array(
  5986. 'type' => 'numeric',
  5987. 'location' => 'header',
  5988. 'sentAs' => 'x-cos-missing-meta',
  5989. ),
  5990. 'VersionId' => array(
  5991. 'type' => 'string',
  5992. 'location' => 'header',
  5993. 'sentAs' => 'x-cos-version-id',
  5994. ),
  5995. 'CacheControl' => array(
  5996. 'type' => 'string',
  5997. 'location' => 'header',
  5998. 'sentAs' => 'Cache-Control',
  5999. ),
  6000. 'ContentDisposition' => array(
  6001. 'type' => 'string',
  6002. 'location' => 'header',
  6003. 'sentAs' => 'Content-Disposition',
  6004. ),
  6005. 'ContentEncoding' => array(
  6006. 'type' => 'string',
  6007. 'location' => 'header',
  6008. 'sentAs' => 'Content-Encoding',
  6009. ),
  6010. 'ContentLanguage' => array(
  6011. 'type' => 'string',
  6012. 'location' => 'header',
  6013. 'sentAs' => 'Content-Language',
  6014. ),
  6015. 'ContentType' => array(
  6016. 'type' => 'string',
  6017. 'location' => 'header',
  6018. 'sentAs' => 'Content-Type',
  6019. ),
  6020. 'Expires' => array(
  6021. 'type' => 'string',
  6022. 'location' => 'header',
  6023. ),
  6024. 'WebsiteRedirectLocation' => array(
  6025. 'type' => 'string',
  6026. 'location' => 'header',
  6027. 'sentAs' => 'x-cos-website-redirect-location',
  6028. ),
  6029. 'ServerSideEncryption' => array(
  6030. 'type' => 'string',
  6031. 'location' => 'header',
  6032. 'sentAs' => 'x-cos-server-side-encryption',
  6033. ),
  6034. 'SSECustomerAlgorithm' => array(
  6035. 'type' => 'string',
  6036. 'location' => 'header',
  6037. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  6038. ),
  6039. 'SSECustomerKeyMD5' => array(
  6040. 'type' => 'string',
  6041. 'location' => 'header',
  6042. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  6043. ),
  6044. 'SSEKMSKeyId' => array(
  6045. 'type' => 'string',
  6046. 'location' => 'header',
  6047. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  6048. ),
  6049. 'StorageClass' => array(
  6050. 'type' => 'string',
  6051. 'location' => 'header',
  6052. 'sentAs' => 'x-cos-storage-class',
  6053. ),
  6054. 'RequestCharged' => array(
  6055. 'type' => 'string',
  6056. 'location' => 'header',
  6057. 'sentAs' => 'x-cos-request-charged',
  6058. ),
  6059. 'ReplicationStatus' => array(
  6060. 'type' => 'string',
  6061. 'location' => 'header',
  6062. 'sentAs' => 'x-cos-replication-status',
  6063. ),
  6064. 'RequestId' => array(
  6065. 'location' => 'header',
  6066. 'sentAs' => 'x-cos-request-id',
  6067. ),
  6068. 'CRC' => array(
  6069. 'type' => 'string',
  6070. 'location' => 'header',
  6071. 'sentAs' => 'x-cos-hash-crc64ecma',
  6072. )
  6073. )
  6074. ),
  6075. 'HeadBucketOutput' => array(
  6076. 'type' => 'object',
  6077. 'additionalProperties' => true,
  6078. 'properties' => array(
  6079. 'RequestId' => array(
  6080. 'location' => 'header',
  6081. 'sentAs' => 'x-cos-request-id',
  6082. ),
  6083. ),
  6084. ),
  6085. 'SelectObjectContentOutput' => array(
  6086. 'type' => 'object',
  6087. 'additionalProperties' => true,
  6088. 'properties' => array(
  6089. 'RawData' => array(
  6090. 'type' => 'string',
  6091. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6092. 'location' => 'body',
  6093. ),
  6094. ),
  6095. ),
  6096. 'GetBucketIntelligentTieringOutput' => array(
  6097. 'type' => 'object',
  6098. 'additionalProperties' => true,
  6099. 'properties' => array(
  6100. 'Status' => array(
  6101. 'type' => 'string',
  6102. 'location' => 'xml',
  6103. ),
  6104. 'Transition' => array(
  6105. 'type' => 'object',
  6106. 'location' => 'xml',
  6107. 'properties' => array(
  6108. 'Days' => array(
  6109. 'type' => 'string',
  6110. ),
  6111. 'RequestFrequent' => array(
  6112. 'type' => 'string',
  6113. ),
  6114. )
  6115. ),
  6116. 'RequestId' => array(
  6117. 'location' => 'header',
  6118. 'sentAs' => 'x-cos-request-id',
  6119. ),
  6120. ),
  6121. ),
  6122. 'PutBucketIntelligentTieringOutput' => array(
  6123. 'type' => 'object',
  6124. 'additionalProperties' => true,
  6125. 'properties' => array(
  6126. 'RequestId' => array(
  6127. 'location' => 'header',
  6128. 'sentAs' => 'x-cos-request-id',
  6129. ),
  6130. ),
  6131. ),
  6132. 'ImageInfoOutput' => array(
  6133. 'type' => 'object',
  6134. 'additionalProperties' => true,
  6135. 'properties' => array(
  6136. 'Body' => array(
  6137. 'type' => 'string',
  6138. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6139. 'location' => 'body',
  6140. ),
  6141. 'RequestId' => array(
  6142. 'location' => 'header',
  6143. 'sentAs' => 'x-cos-request-id',
  6144. ),
  6145. 'ContentType' => array(
  6146. 'type' => 'string',
  6147. 'location' => 'header',
  6148. 'sentAs' => 'Content-Type',
  6149. ),
  6150. 'ContentLength' => array(
  6151. 'type' => 'numeric',
  6152. 'minimum'=> 0,
  6153. 'location' => 'header',
  6154. 'sentAs' => 'Content-Length',
  6155. ),
  6156. ),
  6157. ),
  6158. 'ImageExifOutput' => array(
  6159. 'type' => 'object',
  6160. 'additionalProperties' => true,
  6161. 'properties' => array(
  6162. 'Body' => array(
  6163. 'type' => 'string',
  6164. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6165. 'location' => 'body',
  6166. ),
  6167. 'RequestId' => array(
  6168. 'location' => 'header',
  6169. 'sentAs' => 'x-cos-request-id',
  6170. ),
  6171. 'ContentType' => array(
  6172. 'type' => 'string',
  6173. 'location' => 'header',
  6174. 'sentAs' => 'Content-Type',
  6175. ),
  6176. 'ContentLength' => array(
  6177. 'type' => 'numeric',
  6178. 'minimum'=> 0,
  6179. 'location' => 'header',
  6180. 'sentAs' => 'Content-Length',
  6181. ),
  6182. ),
  6183. ),
  6184. 'ImageAveOutput' => array(
  6185. 'type' => 'object',
  6186. 'additionalProperties' => true,
  6187. 'properties' => array(
  6188. 'Body' => array(
  6189. 'type' => 'string',
  6190. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6191. 'location' => 'body',
  6192. ),
  6193. 'RequestId' => array(
  6194. 'location' => 'header',
  6195. 'sentAs' => 'x-cos-request-id',
  6196. ),
  6197. 'ContentType' => array(
  6198. 'type' => 'string',
  6199. 'location' => 'header',
  6200. 'sentAs' => 'Content-Type',
  6201. ),
  6202. 'ContentLength' => array(
  6203. 'type' => 'numeric',
  6204. 'minimum'=> 0,
  6205. 'location' => 'header',
  6206. 'sentAs' => 'Content-Length',
  6207. ),
  6208. ),
  6209. ),
  6210. 'ImageProcessOutput' => array(
  6211. 'type' => 'object',
  6212. 'additionalProperties' => true,
  6213. 'properties' => array(
  6214. 'RequestId' => array(
  6215. 'location' => 'header',
  6216. 'sentAs' => 'x-cos-request-id',
  6217. ),
  6218. 'OriginalInfo' => array(
  6219. 'type' => 'object',
  6220. 'location' => 'xml',
  6221. 'properties' => array(
  6222. 'Key' => array(
  6223. 'type' => 'string',
  6224. ),
  6225. 'Location' => array(
  6226. 'type' => 'string',
  6227. ),
  6228. 'ETag' => array(
  6229. 'type' => 'string',
  6230. ),
  6231. 'ImageInfo' => array(
  6232. 'type' => 'object',
  6233. 'properties' => array(
  6234. 'Format' => array(
  6235. 'type' => 'string',
  6236. ),
  6237. 'Width' => array(
  6238. 'type' => 'string',
  6239. ),
  6240. 'Height' => array(
  6241. 'type' => 'string',
  6242. ),
  6243. 'Quality' => array(
  6244. 'type' => 'string',
  6245. ),
  6246. 'Ave' => array(
  6247. 'type' => 'string',
  6248. ),
  6249. 'Orientation' => array(
  6250. 'type' => 'string',
  6251. ),
  6252. ),
  6253. ),
  6254. ),
  6255. ),
  6256. 'ProcessResults' => array(
  6257. 'type' => 'object',
  6258. 'location' => 'xml',
  6259. 'properties' => array(
  6260. 'Object' => array(
  6261. 'type' => 'array',
  6262. 'items' => array(
  6263. 'type' => 'object',
  6264. 'properties' => array(
  6265. 'Key' => array(
  6266. 'type' => 'string',
  6267. ),
  6268. 'Location' => array(
  6269. 'type' => 'string',
  6270. ),
  6271. 'Format' => array(
  6272. 'type' => 'string',
  6273. ),
  6274. 'Width' => array(
  6275. 'type' => 'string',
  6276. ),
  6277. 'Height' => array(
  6278. 'type' => 'string',
  6279. ),
  6280. 'Size' => array(
  6281. 'type' => 'string',
  6282. ),
  6283. 'Quality' => array(
  6284. 'type' => 'string',
  6285. ),
  6286. 'ETag' => array(
  6287. 'type' => 'string',
  6288. ),
  6289. 'WatermarkStatus' => array(
  6290. 'type' => 'integer',
  6291. ),
  6292. ),
  6293. ),
  6294. ),
  6295. ),
  6296. ),
  6297. ),
  6298. ),
  6299. 'QrcodeOutput' => array(
  6300. 'type' => 'object',
  6301. 'additionalProperties' => true,
  6302. 'properties' => array(
  6303. 'RequestId' => array(
  6304. 'location' => 'header',
  6305. 'sentAs' => 'x-cos-request-id',
  6306. ),
  6307. 'CodeStatus' => array(
  6308. 'type' => 'integer',
  6309. 'location' => 'xml',
  6310. ),
  6311. 'QRcodeInfo' => array(
  6312. 'type' => 'array',
  6313. 'location' => 'xml',
  6314. 'items' => array(
  6315. 'type' => 'object',
  6316. 'properties' => array(
  6317. 'CodeUrl' => array(
  6318. 'type' => 'string',
  6319. ),
  6320. 'Point' => array(
  6321. 'type' => 'array',
  6322. 'items' => array(
  6323. 'type' => 'string',
  6324. ),
  6325. ),
  6326. ),
  6327. ),
  6328. ),
  6329. 'ResultImage' => array(
  6330. 'type' => 'string',
  6331. 'location' => 'xml',
  6332. ),
  6333. ),
  6334. ),
  6335. 'QrcodeGenerateOutput' => array(
  6336. 'type' => 'object',
  6337. 'additionalProperties' => true,
  6338. 'properties' => array(
  6339. 'RequestId' => array(
  6340. 'location' => 'header',
  6341. 'sentAs' => 'x-cos-request-id',
  6342. ),
  6343. 'ResultImage' => array(
  6344. 'type' => 'string',
  6345. 'location' => 'xml',
  6346. ),
  6347. ),
  6348. ),
  6349. 'DetectLabelOutput' => array(
  6350. 'type' => 'object',
  6351. 'additionalProperties' => true,
  6352. 'properties' => array(
  6353. 'RequestId' => array(
  6354. 'location' => 'header',
  6355. 'sentAs' => 'x-cos-request-id',
  6356. ),
  6357. 'Labels' => array(
  6358. 'type' => 'array',
  6359. 'location' => 'xml',
  6360. 'items' => array(
  6361. 'type' => 'object',
  6362. 'properties' => array(
  6363. 'Confidence' => array(
  6364. 'type' => 'integer',
  6365. ),
  6366. 'Name' => array(
  6367. 'type' => 'string',
  6368. ),
  6369. ),
  6370. ),
  6371. ),
  6372. ),
  6373. ),
  6374. 'PutBucketImageStyleOutput' => array(
  6375. 'type' => 'object',
  6376. 'additionalProperties' => true,
  6377. 'properties' => array(
  6378. 'RequestId' => array(
  6379. 'location' => 'header',
  6380. 'sentAs' => 'x-cos-request-id',
  6381. ),
  6382. ),
  6383. ),
  6384. 'GetBucketImageStyleOutput' => array(
  6385. 'type' => 'object',
  6386. 'additionalProperties' => true,
  6387. 'properties' => array(
  6388. 'RequestId' => array(
  6389. 'location' => 'header',
  6390. 'sentAs' => 'x-cos-request-id',
  6391. ),
  6392. 'StyleRule' => array(
  6393. 'type' => 'array',
  6394. 'location' => 'xml',
  6395. 'items' => array(
  6396. 'type' => 'object',
  6397. 'properties' => array(
  6398. 'StyleName' => array(
  6399. 'type' => 'string',
  6400. ),
  6401. 'StyleBody' => array(
  6402. 'type' => 'string',
  6403. ),
  6404. ),
  6405. ),
  6406. ),
  6407. ),
  6408. ),
  6409. 'DeleteBucketImageStyleOutput' => array(
  6410. 'type' => 'object',
  6411. 'additionalProperties' => true,
  6412. 'properties' => array(
  6413. 'RequestId' => array(
  6414. 'location' => 'header',
  6415. 'sentAs' => 'x-cos-request-id',
  6416. ),
  6417. ),
  6418. ),
  6419. 'PutBucketGuetzliOutput' => array(
  6420. 'type' => 'object',
  6421. 'additionalProperties' => true,
  6422. 'properties' => array(
  6423. 'RequestId' => array(
  6424. 'location' => 'header',
  6425. 'sentAs' => 'x-cos-request-id',
  6426. ),
  6427. ),
  6428. ),
  6429. 'GetBucketGuetzliOutput' => array(
  6430. 'type' => 'object',
  6431. 'additionalProperties' => true,
  6432. 'properties' => array(
  6433. 'RequestId' => array(
  6434. 'location' => 'header',
  6435. 'sentAs' => 'x-cos-request-id',
  6436. ),
  6437. 'ContentLength' => array(
  6438. 'type' => 'numeric',
  6439. 'minimum'=> 0,
  6440. 'location' => 'header',
  6441. 'sentAs' => 'Content-Length',
  6442. ),
  6443. 'Body' => array(
  6444. 'type' => 'string',
  6445. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6446. 'location' => 'body',
  6447. ),
  6448. ),
  6449. ),
  6450. 'DeleteBucketGuetzliOutput' => array(
  6451. 'type' => 'object',
  6452. 'additionalProperties' => true,
  6453. 'properties' => array(
  6454. 'RequestId' => array(
  6455. 'location' => 'header',
  6456. 'sentAs' => 'x-cos-request-id',
  6457. ),
  6458. ),
  6459. ),
  6460. 'GetObjectSensitiveContentRecognitionOutput' => array(
  6461. 'type' => 'object',
  6462. 'additionalProperties' => true,
  6463. 'properties' => array(
  6464. 'RequestId' => array(
  6465. 'location' => 'header',
  6466. 'sentAs' => 'x-cos-request-id',
  6467. ),
  6468. 'PornInfo' => array(
  6469. 'type' => 'array',
  6470. 'location' => 'xml',
  6471. 'items' => array(
  6472. 'type' => 'object',
  6473. 'properties' => array(
  6474. 'Code' => array(
  6475. 'type' => 'integer',
  6476. ),
  6477. 'Msg' => array(
  6478. 'type' => 'string',
  6479. ),
  6480. 'HitFlag' => array(
  6481. 'type' => 'integer',
  6482. ),
  6483. 'Score' => array(
  6484. 'type' => 'integer',
  6485. ),
  6486. 'Label' => array(
  6487. 'type' => 'string',
  6488. )
  6489. ),
  6490. ),
  6491. ),
  6492. 'TerroristInfo' => array(
  6493. 'type' => 'array',
  6494. 'location' => 'xml',
  6495. 'items' => array(
  6496. 'type' => 'object',
  6497. 'properties' => array(
  6498. 'Code' => array(
  6499. 'type' => 'integer',
  6500. ),
  6501. 'Msg' => array(
  6502. 'type' => 'string',
  6503. ),
  6504. 'HitFlag' => array(
  6505. 'type' => 'integer',
  6506. ),
  6507. 'Score' => array(
  6508. 'type' => 'integer',
  6509. ),
  6510. 'Label' => array(
  6511. 'type' => 'string',
  6512. )
  6513. ),
  6514. ),
  6515. ),
  6516. 'PoliticsInfo' => array(
  6517. 'type' => 'array',
  6518. 'location' => 'xml',
  6519. 'items' => array(
  6520. 'type' => 'object',
  6521. 'properties' => array(
  6522. 'Code' => array(
  6523. 'type' => 'integer',
  6524. ),
  6525. 'Msg' => array(
  6526. 'type' => 'string',
  6527. ),
  6528. 'HitFlag' => array(
  6529. 'type' => 'integer',
  6530. ),
  6531. 'Score' => array(
  6532. 'type' => 'integer',
  6533. ),
  6534. 'Label' => array(
  6535. 'type' => 'string',
  6536. )
  6537. ),
  6538. ),
  6539. ),
  6540. 'AdsInfo' => array(
  6541. 'type' => 'array',
  6542. 'location' => 'xml',
  6543. 'items' => array(
  6544. 'type' => 'object',
  6545. 'properties' => array(
  6546. 'Code' => array(
  6547. 'type' => 'integer',
  6548. ),
  6549. 'Msg' => array(
  6550. 'type' => 'string',
  6551. ),
  6552. 'HitFlag' => array(
  6553. 'type' => 'integer',
  6554. ),
  6555. 'Score' => array(
  6556. 'type' => 'integer',
  6557. ),
  6558. 'Label' => array(
  6559. 'type' => 'string',
  6560. )
  6561. ),
  6562. ),
  6563. ),
  6564. )
  6565. ),
  6566. 'DetectTextOutput' => array(
  6567. 'type' => 'object',
  6568. 'additionalProperties' => true,
  6569. 'properties' => array(
  6570. 'RequestId' => array(
  6571. 'type' => 'string',
  6572. 'location' => 'header',
  6573. 'sentAs' => 'x-ci-request-id',
  6574. ),
  6575. 'ContentType' => array(
  6576. 'type' => 'string',
  6577. 'location' => 'header',
  6578. 'sentAs' => 'Content-Type',
  6579. ),
  6580. 'ContentLength' => array(
  6581. 'type' => 'numeric',
  6582. 'minimum'=> 0,
  6583. 'location' => 'header',
  6584. 'sentAs' => 'Content-Length',
  6585. ),
  6586. 'JobsDetail' => array(
  6587. 'type' => 'object',
  6588. 'location' => 'xml',
  6589. 'properties' => array(
  6590. 'Code' => array( 'type' => 'string', 'location' => 'xml',),
  6591. 'DataId' => array( 'type' => 'string', 'location' => 'xml',),
  6592. 'Message' => array( 'type' => 'string', 'location' => 'xml',),
  6593. 'JobId' => array( 'type' => 'string', 'location' => 'xml',),
  6594. 'State' => array( 'type' => 'string', 'location' => 'xml',),
  6595. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml',),
  6596. 'Content' => array( 'type' => 'string', 'location' => 'xml',),
  6597. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  6598. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  6599. 'Result' => array( 'type' => 'integer', 'location' => 'xml',),
  6600. 'SectionCount' => array( 'type' => 'integer', 'location' => 'xml',),
  6601. 'PornInfo' => array(
  6602. 'type' => 'object',
  6603. 'location' => 'xml',
  6604. 'properties' => array(
  6605. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6606. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6607. ),
  6608. ),
  6609. 'TerrorismInfo' => array(
  6610. 'type' => 'object',
  6611. 'location' => 'xml',
  6612. 'properties' => array(
  6613. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6614. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6615. ),
  6616. ),
  6617. 'PoliticsInfo' => array(
  6618. 'type' => 'object',
  6619. 'location' => 'xml',
  6620. 'properties' => array(
  6621. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6622. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6623. ),
  6624. ),
  6625. 'AdsInfo' => array(
  6626. 'type' => 'object',
  6627. 'location' => 'xml',
  6628. 'properties' => array(
  6629. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6630. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6631. ),
  6632. ),
  6633. 'IllegalInfo' => array(
  6634. 'type' => 'object',
  6635. 'location' => 'xml',
  6636. 'properties' => array(
  6637. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6638. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6639. ),
  6640. ),
  6641. 'AbuseInfo' => array(
  6642. 'type' => 'object',
  6643. 'location' => 'xml',
  6644. 'properties' => array(
  6645. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6646. 'Count' => array( 'type' => 'integer', 'location' => 'xml',),
  6647. ),
  6648. ),
  6649. 'Section' => array(
  6650. 'type' => 'array',
  6651. 'location' => 'xml',
  6652. 'items' => array(
  6653. 'type' => 'object',
  6654. 'properties' => array(
  6655. 'StartByte' => array( 'type' => 'integer', 'location' => 'xml',),
  6656. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  6657. 'Result' => array( 'type' => 'integer', 'location' => 'xml',),
  6658. 'PornInfo' => array(
  6659. 'type' => 'object',
  6660. 'location' => 'xml',
  6661. 'properties' => array(
  6662. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6663. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6664. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6665. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  6666. 'LibResults' => array(
  6667. 'type' => 'array',
  6668. 'location' => 'xml',
  6669. 'items' => array(
  6670. 'type' => 'object',
  6671. 'location' => 'xml',
  6672. 'properties' => array(
  6673. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6674. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6675. 'Keywords' => array(
  6676. 'type' => 'array',
  6677. 'location' => 'xml',
  6678. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6679. ),
  6680. ),
  6681. ),
  6682. ),
  6683. ),
  6684. ),
  6685. 'TerrorismInfo' => array(
  6686. 'type' => 'object',
  6687. 'location' => 'xml',
  6688. 'properties' => array(
  6689. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6690. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6691. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6692. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  6693. 'LibResults' => array(
  6694. 'type' => 'array',
  6695. 'location' => 'xml',
  6696. 'items' => array(
  6697. 'type' => 'object',
  6698. 'location' => 'xml',
  6699. 'properties' => array(
  6700. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6701. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6702. 'Keywords' => array(
  6703. 'type' => 'array',
  6704. 'location' => 'xml',
  6705. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6706. ),
  6707. ),
  6708. ),
  6709. ),
  6710. ),
  6711. ),
  6712. 'PoliticsInfo' => array(
  6713. 'type' => 'object',
  6714. 'location' => 'xml',
  6715. 'properties' => array(
  6716. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6717. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6718. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6719. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  6720. 'LibResults' => array(
  6721. 'type' => 'array',
  6722. 'location' => 'xml',
  6723. 'items' => array(
  6724. 'type' => 'object',
  6725. 'location' => 'xml',
  6726. 'properties' => array(
  6727. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6728. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6729. 'Keywords' => array(
  6730. 'type' => 'array',
  6731. 'location' => 'xml',
  6732. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6733. ),
  6734. ),
  6735. ),
  6736. ),
  6737. ),
  6738. ),
  6739. 'AdsInfo' => array(
  6740. 'type' => 'object',
  6741. 'location' => 'xml',
  6742. 'properties' => array(
  6743. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6744. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6745. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6746. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  6747. 'LibResults' => array(
  6748. 'type' => 'array',
  6749. 'location' => 'xml',
  6750. 'items' => array(
  6751. 'type' => 'object',
  6752. 'location' => 'xml',
  6753. 'properties' => array(
  6754. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6755. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6756. 'Keywords' => array(
  6757. 'type' => 'array',
  6758. 'location' => 'xml',
  6759. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6760. ),
  6761. ),
  6762. ),
  6763. ),
  6764. ),
  6765. ),
  6766. 'IllegalInfo' => array(
  6767. 'type' => 'object',
  6768. 'location' => 'xml',
  6769. 'properties' => array(
  6770. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6771. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6772. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6773. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  6774. 'LibResults' => array(
  6775. 'type' => 'array',
  6776. 'location' => 'xml',
  6777. 'items' => array(
  6778. 'type' => 'object',
  6779. 'location' => 'xml',
  6780. 'properties' => array(
  6781. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6782. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6783. 'Keywords' => array(
  6784. 'type' => 'array',
  6785. 'location' => 'xml',
  6786. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6787. ),
  6788. ),
  6789. ),
  6790. ),
  6791. ),
  6792. ),
  6793. 'AbuseInfo' => array(
  6794. 'type' => 'object',
  6795. 'location' => 'xml',
  6796. 'properties' => array(
  6797. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  6798. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6799. 'Keywords' => array( 'type' => 'string', 'location' => 'xml',),
  6800. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  6801. 'LibResults' => array(
  6802. 'type' => 'array',
  6803. 'location' => 'xml',
  6804. 'items' => array(
  6805. 'type' => 'object',
  6806. 'location' => 'xml',
  6807. 'properties' => array(
  6808. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6809. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6810. 'Keywords' => array(
  6811. 'type' => 'array',
  6812. 'location' => 'xml',
  6813. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6814. ),
  6815. ),
  6816. ),
  6817. ),
  6818. ),
  6819. ),
  6820. ),
  6821. ),
  6822. ),
  6823. 'UserInfo' => array(
  6824. 'type' => 'object',
  6825. 'location' => 'xml',
  6826. 'properties' => array(
  6827. 'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
  6828. 'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
  6829. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
  6830. 'AppId' => array( 'type' => 'string', 'location' => 'xml',),
  6831. 'Room' => array( 'type' => 'string', 'location' => 'xml',),
  6832. 'IP' => array( 'type' => 'string', 'location' => 'xml',),
  6833. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  6834. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml',),
  6835. 'Gender' => array( 'type' => 'string', 'location' => 'xml',),
  6836. 'Level' => array( 'type' => 'string', 'location' => 'xml',),
  6837. 'Role' => array( 'type' => 'string', 'location' => 'xml',),
  6838. ),
  6839. ),
  6840. 'ListInfo' => array(
  6841. 'type' => 'object',
  6842. 'location' => 'xml',
  6843. 'properties' => array(
  6844. 'ListResults' => array(
  6845. 'type' => 'array',
  6846. 'location' => 'xml',
  6847. 'items' => array(
  6848. 'type' => 'object',
  6849. 'location' => 'xml',
  6850. 'properties' => array(
  6851. 'ListType' => array( 'type' => 'integer', 'location' => 'xml',),
  6852. 'ListName' => array( 'type' => 'string', 'location' => 'xml',),
  6853. 'Entity' => array( 'type' => 'string', 'location' => 'xml',),
  6854. ),
  6855. ),
  6856. ),
  6857. ),
  6858. ),
  6859. ),
  6860. ),
  6861. ),
  6862. ),
  6863. 'GetSnapshotOutput' => array(
  6864. 'type' => 'object',
  6865. 'additionalProperties' => true,
  6866. 'properties' => array(
  6867. 'Body' => array(
  6868. 'type' => 'string',
  6869. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6870. 'location' => 'body',
  6871. ),
  6872. 'DeleteMarker' => array(
  6873. 'type' => 'boolean',
  6874. 'location' => 'header',
  6875. 'sentAs' => 'x-cos-delete-marker',
  6876. ),
  6877. 'AcceptRanges' => array(
  6878. 'type' => 'string',
  6879. 'location' => 'header',
  6880. 'sentAs' => 'accept-ranges',
  6881. ),
  6882. 'Expiration' => array(
  6883. 'type' => 'string',
  6884. 'location' => 'header',
  6885. 'sentAs' => 'x-cos-expiration',
  6886. ),
  6887. 'Restore' => array(
  6888. 'type' => 'string',
  6889. 'location' => 'header',
  6890. 'sentAs' => 'x-cos-restore',
  6891. ),
  6892. 'LastModified' => array(
  6893. 'type' => 'string',
  6894. 'location' => 'header',
  6895. 'sentAs' => 'Last-Modified',
  6896. ),
  6897. 'ContentLength' => array(
  6898. 'type' => 'numeric',
  6899. 'minimum'=> 0,
  6900. 'location' => 'header',
  6901. 'sentAs' => 'Content-Length',
  6902. ),
  6903. 'ETag' => array(
  6904. 'type' => 'string',
  6905. 'location' => 'header',
  6906. ),
  6907. 'MissingMeta' => array(
  6908. 'type' => 'numeric',
  6909. 'location' => 'header',
  6910. 'sentAs' => 'x-cos-missing-meta',
  6911. ),
  6912. 'VersionId' => array(
  6913. 'type' => 'string',
  6914. 'location' => 'header',
  6915. 'sentAs' => 'x-cos-version-id',
  6916. ),
  6917. 'CacheControl' => array(
  6918. 'type' => 'string',
  6919. 'location' => 'header',
  6920. 'sentAs' => 'Cache-Control',
  6921. ),
  6922. 'ContentDisposition' => array(
  6923. 'type' => 'string',
  6924. 'location' => 'header',
  6925. 'sentAs' => 'Content-Disposition',
  6926. ),
  6927. 'ContentEncoding' => array(
  6928. 'type' => 'string',
  6929. 'location' => 'header',
  6930. 'sentAs' => 'Content-Encoding',
  6931. ),
  6932. 'ContentLanguage' => array(
  6933. 'type' => 'string',
  6934. 'location' => 'header',
  6935. 'sentAs' => 'Content-Language',
  6936. ),
  6937. 'ContentRange' => array(
  6938. 'type' => 'string',
  6939. 'location' => 'header',
  6940. 'sentAs' => 'Content-Range',
  6941. ),
  6942. 'ContentType' => array(
  6943. 'type' => 'string',
  6944. 'location' => 'header',
  6945. 'sentAs' => 'Content-Type',
  6946. ),
  6947. 'Expires' => array(
  6948. 'type' => 'string',
  6949. 'location' => 'header',
  6950. ),
  6951. 'WebsiteRedirectLocation' => array(
  6952. 'type' => 'string',
  6953. 'location' => 'header',
  6954. 'sentAs' => 'x-cos-website-redirect-location',
  6955. ),
  6956. 'ServerSideEncryption' => array(
  6957. 'type' => 'string',
  6958. 'location' => 'header',
  6959. 'sentAs' => 'x-cos-server-side-encryption',
  6960. ),
  6961. 'SSECustomerAlgorithm' => array(
  6962. 'type' => 'string',
  6963. 'location' => 'header',
  6964. 'sentAs' => 'x-cos-server-side-encryption-customer-algorithm',
  6965. ),
  6966. 'SSECustomerKeyMD5' => array(
  6967. 'type' => 'string',
  6968. 'location' => 'header',
  6969. 'sentAs' => 'x-cos-server-side-encryption-customer-key-MD5',
  6970. ),
  6971. 'SSEKMSKeyId' => array(
  6972. 'type' => 'string',
  6973. 'location' => 'header',
  6974. 'sentAs' => 'x-cos-server-side-encryption-aws-kms-key-id',
  6975. ),
  6976. 'StorageClass' => array(
  6977. 'type' => 'string',
  6978. 'location' => 'header',
  6979. 'sentAs' => 'x-cos-storage-class',
  6980. ),
  6981. 'RequestCharged' => array(
  6982. 'type' => 'string',
  6983. 'location' => 'header',
  6984. 'sentAs' => 'x-cos-request-charged',
  6985. ),
  6986. 'ReplicationStatus' => array(
  6987. 'type' => 'string',
  6988. 'location' => 'header',
  6989. 'sentAs' => 'x-cos-replication-status',
  6990. ),
  6991. 'RequestId' => array(
  6992. 'location' => 'header',
  6993. 'sentAs' => 'x-cos-request-id',
  6994. )
  6995. )
  6996. ),
  6997. 'PutBucketRefererOutput' => array(
  6998. 'type' => 'object',
  6999. 'additionalProperties' => true,
  7000. 'properties' => array(
  7001. 'ContentLength' => array(
  7002. 'type' => 'numeric',
  7003. 'minimum'=> 0,
  7004. 'location' => 'header',
  7005. 'sentAs' => 'Content-Length',
  7006. ),
  7007. 'ETag' => array(
  7008. 'type' => 'string',
  7009. 'location' => 'header',
  7010. ),
  7011. 'RequestId' => array(
  7012. 'location' => 'header',
  7013. 'sentAs' => 'x-cos-request-id',
  7014. )
  7015. )
  7016. ),
  7017. 'GetBucketRefererOutput' => array(
  7018. 'type' => 'object',
  7019. 'additionalProperties' => true,
  7020. 'properties' => array(
  7021. 'RequestId' => array(
  7022. 'location' => 'header',
  7023. 'sentAs' => 'x-cos-request-id'
  7024. ),
  7025. 'ContentType' => array(
  7026. 'type' => 'string',
  7027. 'location' => 'header',
  7028. 'sentAs' => 'Content-Type',
  7029. ),
  7030. 'ContentLength' => array(
  7031. 'type' => 'numeric',
  7032. 'minimum'=> 0,
  7033. 'location' => 'header',
  7034. 'sentAs' => 'Content-Length',
  7035. ),
  7036. 'Status' => array(
  7037. 'type' => 'string',
  7038. 'location' => 'xml'
  7039. ),
  7040. 'RefererType' => array(
  7041. 'type' => 'string',
  7042. 'location' => 'xml'
  7043. ),
  7044. 'EmptyReferConfiguration' => array(
  7045. 'type' => 'string',
  7046. 'location' => 'xml'
  7047. ),
  7048. 'DomainList' => array(
  7049. 'location' => 'xml',
  7050. 'type' => 'object',
  7051. 'properties' => array(
  7052. 'Domains' => array(
  7053. 'type' => 'array',
  7054. 'data' => array(
  7055. 'xmlFlattened' => true,
  7056. ),
  7057. 'items' => array(
  7058. 'name' => 'Domain',
  7059. 'type' => 'string',
  7060. 'sentAs' => 'Domain',
  7061. ),
  7062. )
  7063. )
  7064. )
  7065. )
  7066. ),
  7067. 'GetMediaInfoOutput' => array(
  7068. 'type' => 'object',
  7069. 'additionalProperties' => true,
  7070. 'properties' => array(
  7071. 'RequestId' => array(
  7072. 'type' => 'string',
  7073. 'location' => 'header',
  7074. 'sentAs' => 'x-cos-request-id',
  7075. ),
  7076. 'ContentType' => array(
  7077. 'type' => 'string',
  7078. 'location' => 'header',
  7079. 'sentAs' => 'Content-Type',
  7080. ),
  7081. 'ContentLength' => array(
  7082. 'type' => 'numeric',
  7083. 'minimum'=> 0,
  7084. 'location' => 'header',
  7085. 'sentAs' => 'Content-Length',
  7086. ),
  7087. 'MediaInfo' => array(
  7088. 'type' => 'object',
  7089. 'location' => 'xml',
  7090. 'properties' => array(
  7091. 'Stream' => array(
  7092. 'type' => 'object',
  7093. 'location' => 'xml',
  7094. 'properties' => array(
  7095. 'JobId' => array(
  7096. 'type' => 'string',
  7097. ),
  7098. 'State' => array(
  7099. 'type' => 'string',
  7100. ),
  7101. 'Video' => array(
  7102. 'type' => 'object',
  7103. 'location' => 'xml',
  7104. 'properties' => array(
  7105. 'Index' => array(
  7106. 'type' => 'integer',
  7107. ),
  7108. 'CodecName' => array(
  7109. 'type' => 'string',
  7110. ),
  7111. 'CodecLongName' => array(
  7112. 'type' => 'string',
  7113. ),
  7114. 'CodecTimeBase' => array(
  7115. 'type' => 'string',
  7116. ),
  7117. 'CodecTag' => array(
  7118. 'type' => 'string',
  7119. ),
  7120. 'Profile' => array(
  7121. 'type' => 'string',
  7122. ),
  7123. 'Height' => array(
  7124. 'type' => 'integer',
  7125. ),
  7126. 'Width' => array(
  7127. 'type' => 'integer',
  7128. ),
  7129. 'HasBFrame' => array(
  7130. 'type' => 'integer',
  7131. ),
  7132. 'RefFrames' => array(
  7133. 'type' => 'integer',
  7134. ),
  7135. 'Sar' => array(
  7136. 'type' => 'string',
  7137. ),
  7138. 'Dar' => array(
  7139. 'type' => 'string',
  7140. ),
  7141. 'PixFormat' => array(
  7142. 'type' => 'string',
  7143. ),
  7144. 'FieldOrder' => array(
  7145. 'type' => 'string',
  7146. ),
  7147. 'Level' => array(
  7148. 'type' => 'integer',
  7149. ),
  7150. 'Fps' => array(
  7151. 'type' => 'integer',
  7152. ),
  7153. 'AvgFps' => array(
  7154. 'type' => 'string',
  7155. ),
  7156. 'Timebase' => array(
  7157. 'type' => 'string',
  7158. ),
  7159. 'StartTime' => array(
  7160. 'type' => 'numeric',
  7161. ),
  7162. 'Duration' => array(
  7163. 'type' => 'numeric',
  7164. ),
  7165. 'Bitrate' => array(
  7166. 'type' => 'numeric',
  7167. ),
  7168. 'NumFrames' => array(
  7169. 'type' => 'integer',
  7170. ),
  7171. 'Language' => array(
  7172. 'type' => 'string',
  7173. )
  7174. ),
  7175. 'Audio' => array(
  7176. 'type' => 'object',
  7177. 'location' => 'xml',
  7178. 'properties' => array(
  7179. 'Index' => array(
  7180. 'type' => 'integer',
  7181. ),
  7182. 'CodecName' => array(
  7183. 'type' => 'string',
  7184. ),
  7185. 'CodecLongName' => array(
  7186. 'type' => 'string',
  7187. ),
  7188. 'CodecTimeBase' => array(
  7189. 'type' => 'string',
  7190. ),
  7191. 'CodecTagString' => array(
  7192. 'type' => 'string',
  7193. ),
  7194. 'CodecTag' => array(
  7195. 'type' => 'string',
  7196. ),
  7197. 'SampleFmt' => array(
  7198. 'type' => 'string',
  7199. ),
  7200. 'SampleRate' => array(
  7201. 'type' => 'integer',
  7202. ),
  7203. 'Channel' => array(
  7204. 'type' => 'integer',
  7205. ),
  7206. 'ChannelLayout' => array(
  7207. 'type' => 'string',
  7208. ),
  7209. 'Timebase' => array(
  7210. 'type' => 'string',
  7211. ),
  7212. 'StartTime' => array(
  7213. 'type' => 'numeric',
  7214. ),
  7215. 'Duration' => array(
  7216. 'type' => 'numeric',
  7217. ),
  7218. 'Bitrate' => array(
  7219. 'type' => 'numeric',
  7220. ),
  7221. 'Language' => array(
  7222. 'type' => 'string',
  7223. )
  7224. )
  7225. ),
  7226. 'Subtitle' => array(
  7227. 'type' => 'object',
  7228. 'location' => 'xml',
  7229. 'properties' => array(
  7230. 'Index' => array(
  7231. 'type' => 'integer',
  7232. ),
  7233. 'Language' => array(
  7234. 'type' => 'string',
  7235. )
  7236. )
  7237. )
  7238. ),
  7239. )
  7240. ),
  7241. 'Format' => array(
  7242. 'type' => 'object',
  7243. 'location' => 'xml',
  7244. 'properties' => array(
  7245. 'NumStream' => array(
  7246. 'type' => 'integer',
  7247. ),
  7248. 'NumProgram' => array(
  7249. 'type' => 'integer',
  7250. ),
  7251. 'FormatName' => array(
  7252. 'type' => 'string',
  7253. ),
  7254. 'FormatLongName' => array(
  7255. 'type' => 'string',
  7256. ),
  7257. 'StartTime' => array(
  7258. 'type' => 'numeric',
  7259. ),
  7260. 'Duration' => array(
  7261. 'type' => 'numeric',
  7262. ),
  7263. 'Bitrate' => array(
  7264. 'type' => 'integer',
  7265. ),
  7266. 'Size' => array(
  7267. 'type' => 'integer',
  7268. )
  7269. )
  7270. )
  7271. )
  7272. )
  7273. )
  7274. ),
  7275. 'CreateMediaTranscodeJobsOutput' => Descriptions::CreateMediaTranscodeJobsOutput(),
  7276. 'DescribeMediaJobOutput' => Descriptions::DescribeMediaJobOutput(),
  7277. 'DescribeMediaJobsOutput' => Descriptions::DescribeMediaJobsOutput(),
  7278. 'CreateMediaJobsOutput' => Descriptions::CreateMediaJobsOutput(),
  7279. 'CreateMediaSnapshotJobsOutput' => Descriptions::CreateMediaSnapshotJobsOutput(),
  7280. 'CreateMediaConcatJobsOutput' => Descriptions::CreateMediaConcatJobsOutput(),
  7281. 'DetectAudioOutput' => Descriptions::DetectAudioOutput(),
  7282. 'GetDetectAudioResultOutput' => Descriptions::GetDetectAudioResultOutput(),
  7283. 'GetDetectTextResultOutput' => Descriptions::GetDetectTextResultOutput(),
  7284. 'DetectVideoOutput' => Descriptions::DetectVideoOutput(),
  7285. 'GetDetectVideoResultOutput' => Descriptions::GetDetectVideoResultOutput(),
  7286. 'DetectDocumentOutput' => Descriptions::DetectDocumentOutput(),
  7287. 'GetDetectDocumentResultOutput' => Descriptions::GetDetectDocumentResultOutput(),
  7288. 'CreateDocProcessJobsOutput' => Descriptions::CreateDocProcessJobsOutput(),
  7289. 'DescribeDocProcessQueuesOutput' => Descriptions::DescribeDocProcessQueuesOutput(),
  7290. 'DescribeDocProcessJobOutput' => Descriptions::DescribeDocProcessJobOutput(),
  7291. 'GetDescribeDocProcessJobsOutput' => Descriptions::GetDescribeDocProcessJobsOutput(),
  7292. 'DetectImageOutput' => Descriptions::DetectImageOutput(),
  7293. 'DetectImagesOutput' => Descriptions::DetectImagesOutput(),
  7294. 'DetectVirusOutput' => Descriptions::DetectVirusOutput(),
  7295. 'GetDetectVirusResultOutput' => Descriptions::GetDetectVirusResultOutput(),
  7296. 'GetDetectImageResultOutput' => Descriptions::GetDetectImageResultOutput(),
  7297. 'CreateMediaVoiceSeparateJobsOutput' => Descriptions::CreateMediaVoiceSeparateJobsOutput(),
  7298. 'DescribeMediaVoiceSeparateJobOutput' => Descriptions::DescribeMediaVoiceSeparateJobOutput(),
  7299. 'DetectWebpageOutput' => Descriptions::DetectWebpageOutput(),
  7300. 'GetDetectWebpageResultOutput' => Descriptions::GetDetectWebpageResultOutput(),
  7301. 'DescribeMediaBucketsOutput' => Descriptions::DescribeMediaBucketsOutput(),
  7302. 'GetPrivateM3U8Output' => Descriptions::GetPrivateM3U8Output(),
  7303. 'DescribeMediaQueuesOutput' => Descriptions::DescribeMediaQueuesOutput(),
  7304. 'UpdateMediaQueueOutput' => Descriptions::UpdateMediaQueueOutput(),
  7305. 'CreateMediaSmartCoverJobsOutput' => Descriptions::CreateMediaSmartCoverJobsOutput(),
  7306. 'CreateMediaVideoProcessJobsOutput' => Descriptions::CreateMediaVideoProcessJobsOutput(),
  7307. 'CreateMediaVideoMontageJobsOutput' => Descriptions::CreateMediaVideoMontageJobsOutput(),
  7308. 'CreateMediaAnimationJobsOutput' => Descriptions::CreateMediaAnimationJobsOutput(),
  7309. 'CreateMediaPicProcessJobsOutput' => Descriptions::CreateMediaPicProcessJobsOutput(),
  7310. 'CreateMediaSegmentJobsOutput' => Descriptions::CreateMediaSegmentJobsOutput(),
  7311. 'CreateMediaVideoTagJobsOutput' => Descriptions::CreateMediaVideoTagJobsOutput(),
  7312. 'CreateMediaSuperResolutionJobsOutput' => Descriptions::CreateMediaSuperResolutionJobsOutput(),
  7313. 'CreateMediaSDRtoHDRJobsOutput' => Descriptions::CreateMediaSDRtoHDRJobsOutput(),
  7314. 'CreateMediaDigitalWatermarkJobsOutput' => Descriptions::CreateMediaDigitalWatermarkJobsOutput(),
  7315. 'CreateMediaExtractDigitalWatermarkJobsOutput' => Descriptions::CreateMediaExtractDigitalWatermarkJobsOutput(),
  7316. 'DetectLiveVideoOutput' => Descriptions::DetectLiveVideoOutput(),
  7317. 'CancelLiveVideoAuditingOutput' => Descriptions::CancelLiveVideoAuditingOutput(),
  7318. 'OpticalOcrRecognitionOutput' => Descriptions::OpticalOcrRecognitionOutput(),
  7319. 'TriggerWorkflowOutput' => Descriptions::TriggerWorkflowOutput(),
  7320. 'GetWorkflowInstancesOutput' => Descriptions::GetWorkflowInstancesOutput(),
  7321. 'GetWorkflowInstanceOutput' => Descriptions::GetWorkflowInstanceOutput(),
  7322. 'CreateMediaSnapshotTemplateOutput' => Descriptions::CreateMediaSnapshotTemplateOutput(),
  7323. 'UpdateMediaSnapshotTemplateOutput' => Descriptions::UpdateMediaSnapshotTemplateOutput(),
  7324. 'CreateMediaTranscodeTemplateOutput' => Descriptions::CreateMediaTranscodeTemplateOutput(),
  7325. 'UpdateMediaTranscodeTemplateOutput' => Descriptions::UpdateMediaTranscodeTemplateOutput(),
  7326. 'CreateMediaHighSpeedHdTemplateOutput' => Descriptions::CreateMediaHighSpeedHdTemplateOutput(),
  7327. 'UpdateMediaHighSpeedHdTemplateOutput' => Descriptions::UpdateMediaHighSpeedHdTemplateOutput(),
  7328. 'CreateMediaAnimationTemplateOutput' => Descriptions::CreateMediaAnimationTemplateOutput(),
  7329. 'UpdateMediaAnimationTemplateOutput' => Descriptions::UpdateMediaAnimationTemplateOutput(),
  7330. 'CreateMediaConcatTemplateOutput' => Descriptions::CreateMediaConcatTemplateOutput(),
  7331. 'UpdateMediaConcatTemplateOutput' => Descriptions::UpdateMediaConcatTemplateOutput(),
  7332. 'CreateMediaVideoProcessTemplateOutput' => Descriptions::CreateMediaVideoProcessTemplateOutput(),
  7333. 'UpdateMediaVideoProcessTemplateOutput' => Descriptions::UpdateMediaVideoProcessTemplateOutput(),
  7334. 'CreateMediaVideoMontageTemplateOutput' => Descriptions::CreateMediaVideoMontageTemplateOutput(),
  7335. 'UpdateMediaVideoMontageTemplateOutput' => Descriptions::UpdateMediaVideoMontageTemplateOutput(),
  7336. 'CreateMediaVoiceSeparateTemplateOutput' => Descriptions::CreateMediaVoiceSeparateTemplateOutput(),
  7337. 'UpdateMediaVoiceSeparateTemplateOutput' => Descriptions::UpdateMediaVoiceSeparateTemplateOutput(),
  7338. 'CreateMediaSuperResolutionTemplateOutput' => Descriptions::CreateMediaSuperResolutionTemplateOutput(),
  7339. 'UpdateMediaSuperResolutionTemplateOutput' => Descriptions::UpdateMediaSuperResolutionTemplateOutput(),
  7340. 'CreateMediaPicProcessTemplateOutput' => Descriptions::CreateMediaPicProcessTemplateOutput(),
  7341. 'UpdateMediaPicProcessTemplateOutput' => Descriptions::UpdateMediaPicProcessTemplateOutput(),
  7342. 'CreateMediaWatermarkTemplateOutput' => Descriptions::CreateMediaWatermarkTemplateOutput(),
  7343. 'UpdateMediaWatermarkTemplateOutput' => Descriptions::UpdateMediaWatermarkTemplateOutput(),
  7344. 'DescribeMediaTemplatesOutput' => Descriptions::DescribeMediaTemplatesOutput(),
  7345. 'DescribeWorkflowOutput' => Descriptions::DescribeWorkflowOutput(),
  7346. 'DeleteWorkflowOutput' => Descriptions::DeleteWorkflowOutput(),
  7347. 'CreateInventoryTriggerJobOutput' => Descriptions::CreateInventoryTriggerJobOutput(),
  7348. 'DescribeInventoryTriggerJobsOutput' => Descriptions::DescribeInventoryTriggerJobsOutput(),
  7349. 'DescribeInventoryTriggerJobOutput' => Descriptions::DescribeInventoryTriggerJobOutput(),
  7350. 'CancelInventoryTriggerJobOutput' => Descriptions::CancelInventoryTriggerJobOutput(),
  7351. 'CreateMediaNoiseReductionJobsOutput' => Descriptions::CreateMediaNoiseReductionJobsOutput(),
  7352. 'ImageRepairProcessOutput' => Descriptions::ImageRepairProcessOutput(),
  7353. 'ImageDetectCarProcessOutput' => Descriptions::ImageDetectCarProcessOutput(),
  7354. 'ImageAssessQualityProcessOutput' => Descriptions::ImageAssessQualityProcessOutput(),
  7355. 'ImageSearchOpenOutput' => Descriptions::ImageSearchOpenOutput(),
  7356. 'ImageSearchAddOutput' => Descriptions::ImageSearchAddOutput(),
  7357. 'ImageSearchOutput' => Descriptions::ImageSearchOutput(),
  7358. 'ImageSearchDeleteOutput' => Descriptions::ImageSearchDeleteOutput(),
  7359. 'BindCiServiceOutput' => Descriptions::BindCiServiceOutput(),
  7360. 'GetCiServiceOutput' => Descriptions::GetCiServiceOutput(),
  7361. 'UnBindCiServiceOutput' => Descriptions::UnBindCiServiceOutput(),
  7362. 'GetHotLinkOutput' => Descriptions::GetHotLinkOutput(),
  7363. 'AddHotLinkOutput' => Descriptions::AddHotLinkOutput(),
  7364. 'OpenOriginProtectOutput' => Descriptions::OpenOriginProtectOutput(),
  7365. 'GetOriginProtectOutput' => Descriptions::GetOriginProtectOutput(),
  7366. 'CloseOriginProtectOutput' => Descriptions::CloseOriginProtectOutput(),
  7367. 'ImageDetectFaceOutput' => Descriptions::ImageDetectFaceOutput(),
  7368. 'ImageFaceEffectOutput' => Descriptions::ImageFaceEffectOutput(),
  7369. 'IDCardOCROutput' => Descriptions::IDCardOCROutput(),
  7370. 'IDCardOCRByUploadOutput' => Descriptions::IDCardOCRByUploadOutput(),
  7371. 'GetLiveCodeOutput' => Descriptions::GetLiveCodeOutput(),
  7372. 'GetActionSequenceOutput' => Descriptions::GetActionSequenceOutput(),
  7373. 'DescribeDocProcessBucketsOutput' => Descriptions::DescribeDocProcessBucketsOutput(),
  7374. 'UpdateDocProcessQueueOutput' => Descriptions::UpdateDocProcessQueueOutput(),
  7375. 'CreateMediaQualityEstimateJobsOutput' => Descriptions::CreateMediaQualityEstimateJobsOutput(),
  7376. 'CreateMediaStreamExtractJobsOutput' => Descriptions::CreateMediaStreamExtractJobsOutput(),
  7377. )
  7378. );
  7379. }
  7380. }