Descriptions.php 650 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918
  1. <?php
  2. namespace Qcloud\Cos;
  3. /**
  4. * 为 src/Qcloud/Cos/Service.php 服务,视觉上区分各方法的参数\输出描述
  5. * 原service的参数描述可不改动
  6. * Class Descriptions
  7. * @package Qcloud\Cos
  8. */
  9. class Descriptions {
  10. /**
  11. * 视频转码
  12. * @return array
  13. */
  14. public static function CreateMediaTranscodeJobs() {
  15. return array(
  16. 'httpMethod' => 'POST',
  17. 'uri' => '/{Bucket}jobs',
  18. 'class' => 'Qcloud\\Cos\\Command',
  19. 'responseClass' => 'CreateMediaTranscodeJobsOutput',
  20. 'responseType' => 'model',
  21. 'data' => array(
  22. 'xmlRoot' => array(
  23. 'name' => 'Request',
  24. ),
  25. ),
  26. 'parameters' => array(
  27. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  28. 'Tag' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
  29. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  30. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  31. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  32. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  33. 'Input' => array(
  34. 'required' => true,
  35. 'type' => 'object',
  36. 'location' => 'xml',
  37. 'properties' => array(
  38. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  39. ),
  40. ),
  41. 'Operation' => array(
  42. 'required' => true,
  43. 'type' => 'object',
  44. 'location' => 'xml',
  45. 'properties' => array(
  46. 'Tag' => array('location' => 'xml', 'type' => 'string', ),
  47. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  48. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  49. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  50. 'WatermarkTemplateId' => array(
  51. 'type' => 'array',
  52. 'location' => 'xml',
  53. 'data' => array(
  54. 'xmlFlattened' => true,
  55. ),
  56. 'items' => array(
  57. 'name' => 'WatermarkTemplateId',
  58. 'type' => 'string',
  59. 'location' => 'xml',
  60. 'sentAs' => 'WatermarkTemplateId',
  61. ),
  62. ),
  63. 'Transcode' => array(
  64. 'type' => 'object',
  65. 'location' => 'xml',
  66. 'properties' => array(
  67. 'Container' => array(
  68. 'type' => 'object',
  69. 'location' => 'xml',
  70. 'properties' => array(
  71. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  72. ),
  73. ),
  74. 'Video' => array(
  75. 'type' => 'object',
  76. 'location' => 'xml',
  77. 'properties' => array(
  78. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  79. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  80. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  81. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  82. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  83. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  84. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  85. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  86. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  87. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  88. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  89. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  90. 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
  91. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  92. 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
  93. ),
  94. ),
  95. 'TimeInterval' => array(
  96. 'type' => 'object',
  97. 'location' => 'xml',
  98. 'properties' => array(
  99. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  100. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  101. ),
  102. ),
  103. 'Audio' => array(
  104. 'type' => 'object',
  105. 'location' => 'xml',
  106. 'properties' => array(
  107. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  108. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  109. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  110. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  111. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  112. 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
  113. 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
  114. 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
  115. ),
  116. ),
  117. 'TransConfig' => array(
  118. 'type' => 'object',
  119. 'location' => 'xml',
  120. 'properties' => array(
  121. 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  122. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  123. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  124. 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  125. 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  126. 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  127. 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  128. 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
  129. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  130. 'HlsEncrypt' => array(
  131. 'type' => 'object',
  132. 'location' => 'xml',
  133. 'properties' => array(
  134. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  135. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  136. ),
  137. ),
  138. ),
  139. ),
  140. ),
  141. ),
  142. 'Watermark' => array(
  143. 'type' => 'array',
  144. 'location' => 'xml',
  145. 'data' => array(
  146. 'xmlFlattened' => true,
  147. ),
  148. 'items' => array(
  149. 'name' => 'Watermark',
  150. 'type' => 'object',
  151. 'sentAs' => 'Watermark',
  152. 'properties' => array(
  153. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  154. 'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
  155. 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
  156. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  157. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  158. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  159. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  160. 'Image' => array(
  161. 'type' => 'object',
  162. 'location' => 'xml',
  163. 'properties' => array(
  164. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  165. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  166. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  167. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  168. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  169. 'Background' => array( 'type' => 'string', 'location' => 'xml', ),
  170. ),
  171. ),
  172. 'Text' => array(
  173. 'type' => 'object',
  174. 'location' => 'xml',
  175. 'properties' => array(
  176. 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
  177. 'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
  178. 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
  179. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  180. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  181. ),
  182. ),
  183. ),
  184. )
  185. ),
  186. 'RemoveWatermark' => array(
  187. 'type' => 'object',
  188. 'location' => 'xml',
  189. 'properties' => array(
  190. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  191. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  192. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  193. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  194. ),
  195. ),
  196. 'Output' => array(
  197. 'type' => 'object',
  198. 'location' => 'xml',
  199. 'properties' => array(
  200. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  201. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  202. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  203. ),
  204. ),
  205. 'DigitalWatermark' => array(
  206. 'type' => 'object',
  207. 'location' => 'xml',
  208. 'properties' => array(
  209. 'Message' => array( 'type' => 'string', 'location' => 'xml', ),
  210. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  211. 'Version' => array( 'type' => 'string', 'location' => 'xml', ),
  212. 'IgnoreError' => array( 'type' => 'string', 'location' => 'xml', ),
  213. ),
  214. ),
  215. ),
  216. ),
  217. 'CallBackMqConfig' => array(
  218. 'type' => 'object',
  219. 'location' => 'xml',
  220. 'properties' => array(
  221. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  222. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  223. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  224. ),
  225. ),
  226. ),
  227. );
  228. }
  229. public static function CreateMediaTranscodeJobsOutput() {
  230. return array(
  231. 'type' => 'object',
  232. 'additionalProperties' => true,
  233. 'properties' => array(
  234. 'Body' => array(
  235. 'type' => 'string',
  236. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  237. 'location' => 'body',
  238. ),
  239. 'RequestId' => array(
  240. 'type' => 'string',
  241. 'location' => 'header',
  242. 'sentAs' => 'x-ci-request-id',
  243. ),
  244. 'ContentType' => array(
  245. 'type' => 'string',
  246. 'location' => 'header',
  247. 'sentAs' => 'Content-Type',
  248. ),
  249. 'ContentLength' => array(
  250. 'type' => 'numeric',
  251. 'minimum'=> 0,
  252. 'location' => 'header',
  253. 'sentAs' => 'Content-Length',
  254. ),
  255. ),
  256. );
  257. }
  258. public static function CreateMediaJobs() {
  259. return array(
  260. 'httpMethod' => 'POST',
  261. 'uri' => '/{Bucket}jobs',
  262. 'class' => 'Qcloud\\Cos\\Command',
  263. 'responseClass' => 'CreateMediaJobsOutput',
  264. 'responseType' => 'model',
  265. 'data' => array(
  266. 'xmlRoot' => array(
  267. 'name' => 'Request',
  268. ),
  269. ),
  270. 'parameters' => array(
  271. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  272. 'Tag' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
  273. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  274. 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
  275. 'Input' => array(
  276. 'required' => true,
  277. 'type' => 'object',
  278. 'location' => 'xml',
  279. 'properties' => array(
  280. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  281. ),
  282. ),
  283. 'Operation' => array(
  284. 'required' => true,
  285. 'type' => 'array',
  286. 'location' => 'xml',
  287. 'data' => array(
  288. 'xmlFlattened' => true,
  289. ),
  290. 'items' => array(
  291. 'name' => 'Operation',
  292. 'type' => 'object',
  293. 'sentAs' => 'Operation',
  294. 'properties' => array(
  295. 'Tag' => array('location' => 'xml', 'type' => 'string', ),
  296. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  297. 'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  298. 'VideoProcess' => array(
  299. 'type' => 'object',
  300. 'location' => 'xml',
  301. 'properties' => array(
  302. 'ColorEnhance' => array(
  303. 'type' => 'object',
  304. 'location' => 'xml',
  305. 'properties' => array(
  306. 'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
  307. 'Contrast' => array( 'type' => 'string', 'location' => 'xml', ),
  308. 'Correction' => array( 'type' => 'string', 'location' => 'xml', ),
  309. 'Saturation' => array( 'type' => 'string', 'location' => 'xml', ),
  310. ),
  311. ),
  312. 'MsSharpen' => array(
  313. 'type' => 'object',
  314. 'location' => 'xml',
  315. 'properties' => array(
  316. 'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
  317. 'SharpenLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  318. ),
  319. ),
  320. ),
  321. ),
  322. 'VideoMontage' => array(
  323. 'type' => 'object',
  324. 'location' => 'xml',
  325. 'properties' => array(
  326. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  327. 'Container' => array(
  328. 'type' => 'object',
  329. 'location' => 'xml',
  330. 'properties' => array(
  331. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  332. ),
  333. ),
  334. 'Video' => array(
  335. 'type' => 'object',
  336. 'location' => 'xml',
  337. 'properties' => array(
  338. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  339. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  340. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  341. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  342. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  343. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  344. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  345. ),
  346. ),
  347. 'Audio' => array(
  348. 'type' => 'object',
  349. 'location' => 'xml',
  350. 'properties' => array(
  351. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  352. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  353. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  354. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  355. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  356. ),
  357. ),
  358. ),
  359. ),
  360. 'Animation' => array(
  361. 'type' => 'object',
  362. 'location' => 'xml',
  363. 'properties' => array(
  364. 'Container' => array(
  365. 'type' => 'object',
  366. 'location' => 'xml',
  367. 'properties' => array(
  368. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  369. ),
  370. ),
  371. 'Video' => array(
  372. 'type' => 'object',
  373. 'location' => 'xml',
  374. 'properties' => array(
  375. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  376. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  377. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  378. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  379. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  380. 'AnimateOnlyKeepKeyFrame' => array( 'type' => 'string', 'location' => 'xml', ),
  381. 'AnimateTimeIntervalOfFrame' => array( 'type' => 'string', 'location' => 'xml', ),
  382. 'AnimateFramesPerSecond' => array( 'type' => 'string', 'location' => 'xml', ),
  383. 'Quality' => array( 'type' => 'string', 'location' => 'xml', ),
  384. ),
  385. ),
  386. 'TimeInterval' => array(
  387. 'type' => 'object',
  388. 'location' => 'xml',
  389. 'properties' => array(
  390. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  391. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  392. ),
  393. ),
  394. ),
  395. ),
  396. 'Snapshot' => array(
  397. 'type' => 'object',
  398. 'location' => 'xml',
  399. 'properties' => array(
  400. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  401. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  402. 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
  403. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  404. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  405. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  406. ),
  407. ),
  408. 'VoiceSeparate' => array(
  409. 'type' => 'object',
  410. 'location' => 'xml',
  411. 'properties' => array(
  412. 'AudioMode' => array( 'type' => 'string', 'location' => 'xml', ),
  413. 'AudioConfig' => array(
  414. 'type' => 'object',
  415. 'location' => 'xml',
  416. 'properties' => array(
  417. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  418. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  419. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  420. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  421. ),
  422. ),
  423. ),
  424. ),
  425. 'Segment' => array(
  426. 'type' => 'object',
  427. 'location' => 'xml',
  428. 'properties' => array(
  429. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  430. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  431. ),
  432. ),
  433. 'SDRtoHDR' => array(
  434. 'type' => 'object',
  435. 'location' => 'xml',
  436. 'properties' => array(
  437. 'HdrMode' => array( 'type' => 'string', 'location' => 'xml', ),
  438. ),
  439. ),
  440. 'SuperResolution' => array(
  441. 'type' => 'object',
  442. 'location' => 'xml',
  443. 'properties' => array(
  444. 'Resolution' => array( 'type' => 'string', 'location' => 'xml', ),
  445. 'EnableScaleUp' => array( 'type' => 'string', 'location' => 'xml', ),
  446. ),
  447. ),
  448. 'WatermarkTemplateId' => array(
  449. 'type' => 'array',
  450. 'location' => 'xml',
  451. 'data' => array(
  452. 'xmlFlattened' => true,
  453. ),
  454. 'items' => array(
  455. 'name' => 'WatermarkTemplateId',
  456. 'type' => 'string',
  457. 'location' => 'xml',
  458. 'sentAs' => 'WatermarkTemplateId',
  459. ),
  460. ),
  461. 'Transcode' => array(
  462. 'type' => 'object',
  463. 'location' => 'xml',
  464. 'properties' => array(
  465. 'Container' => array(
  466. 'type' => 'object',
  467. 'location' => 'xml',
  468. 'properties' => array(
  469. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  470. ),
  471. ),
  472. 'Video' => array(
  473. 'type' => 'object',
  474. 'location' => 'xml',
  475. 'properties' => array(
  476. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  477. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  478. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  479. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  480. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  481. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  482. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  483. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  484. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  485. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  486. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  487. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  488. 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
  489. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  490. 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
  491. ),
  492. ),
  493. 'TimeInterval' => array(
  494. 'type' => 'object',
  495. 'location' => 'xml',
  496. 'properties' => array(
  497. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  498. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  499. ),
  500. ),
  501. 'Audio' => array(
  502. 'type' => 'object',
  503. 'location' => 'xml',
  504. 'properties' => array(
  505. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  506. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  507. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  508. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  509. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  510. 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
  511. 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
  512. 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
  513. ),
  514. ),
  515. 'TransConfig' => array(
  516. 'type' => 'object',
  517. 'location' => 'xml',
  518. 'properties' => array(
  519. 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  520. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  521. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  522. 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  523. 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  524. 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  525. 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  526. 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
  527. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  528. 'HlsEncrypt' => array(
  529. 'type' => 'object',
  530. 'location' => 'xml',
  531. 'properties' => array(
  532. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  533. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  534. ),
  535. ),
  536. ),
  537. ),
  538. ),
  539. ),
  540. 'Watermark' => array(
  541. 'type' => 'array',
  542. 'location' => 'xml',
  543. 'data' => array(
  544. 'xmlFlattened' => true,
  545. ),
  546. 'items' => array(
  547. 'name' => 'Watermark',
  548. 'type' => 'object',
  549. 'sentAs' => 'Watermark',
  550. 'properties' => array(
  551. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  552. 'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
  553. 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
  554. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  555. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  556. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  557. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  558. 'Image' => array(
  559. 'type' => 'object',
  560. 'location' => 'xml',
  561. 'properties' => array(
  562. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  563. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  564. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  565. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  566. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  567. 'Background' => array( 'type' => 'string', 'location' => 'xml', ),
  568. ),
  569. ),
  570. 'Text' => array(
  571. 'type' => 'object',
  572. 'location' => 'xml',
  573. 'properties' => array(
  574. 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
  575. 'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
  576. 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
  577. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  578. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  579. ),
  580. ),
  581. ),
  582. )
  583. ),
  584. 'RemoveWatermark' => array(
  585. 'type' => 'object',
  586. 'location' => 'xml',
  587. 'properties' => array(
  588. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  589. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  590. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  591. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  592. ),
  593. ),
  594. 'Output' => array(
  595. 'required' => true,
  596. 'type' => 'object',
  597. 'location' => 'xml',
  598. 'properties' => array(
  599. 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  600. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  601. 'Object' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
  602. 'AuObject' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
  603. 'SpriteObject' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
  604. ),
  605. ),
  606. ),
  607. ),
  608. ),
  609. ),
  610. );
  611. }
  612. public static function CreateMediaJobsOutput() {
  613. return array(
  614. 'type' => 'object',
  615. 'additionalProperties' => true,
  616. 'properties' => array(
  617. 'Body' => array(
  618. 'type' => 'string',
  619. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  620. 'location' => 'body',
  621. ),
  622. 'RequestId' => array(
  623. 'type' => 'string',
  624. 'location' => 'header',
  625. 'sentAs' => 'x-ci-request-id',
  626. ),
  627. 'ContentType' => array(
  628. 'type' => 'string',
  629. 'location' => 'header',
  630. 'sentAs' => 'Content-Type',
  631. ),
  632. 'ContentLength' => array(
  633. 'type' => 'numeric',
  634. 'minimum'=> 0,
  635. 'location' => 'header',
  636. 'sentAs' => 'Content-Length',
  637. ),
  638. ),
  639. );
  640. }
  641. public static function DescribeMediaJob() {
  642. return array(
  643. 'httpMethod' => 'GET',
  644. 'uri' => '/{Bucket}jobs/{/Key*}',
  645. 'class' => 'Qcloud\\Cos\\Command',
  646. 'responseClass' => 'DescribeMediaJobOutput',
  647. 'responseType' => 'model',
  648. 'parameters' => array(
  649. 'Bucket' => array(
  650. 'required' => true,
  651. 'type' => 'string',
  652. 'location' => 'uri',
  653. ),
  654. 'Key' => array(
  655. 'required' => true,
  656. 'type' => 'string',
  657. 'location' => 'uri',
  658. ),
  659. ),
  660. );
  661. }
  662. public static function DescribeMediaJobOutput() {
  663. return array(
  664. 'type' => 'object',
  665. 'additionalProperties' => true,
  666. 'properties' => array(
  667. 'Body' => array(
  668. 'type' => 'string',
  669. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  670. 'location' => 'body',
  671. ),
  672. 'RequestId' => array(
  673. 'type' => 'string',
  674. 'location' => 'header',
  675. 'sentAs' => 'x-ci-request-id',
  676. ),
  677. 'ContentType' => array(
  678. 'type' => 'string',
  679. 'location' => 'header',
  680. 'sentAs' => 'Content-Type',
  681. ),
  682. 'ContentLength' => array(
  683. 'type' => 'numeric',
  684. 'minimum'=> 0,
  685. 'location' => 'header',
  686. 'sentAs' => 'Content-Length',
  687. ),
  688. ),
  689. );
  690. }
  691. public static function DescribeMediaJobs() {
  692. return array(
  693. 'httpMethod' => 'GET',
  694. 'uri' => '/{Bucket}jobs',
  695. 'class' => 'Qcloud\\Cos\\Command',
  696. 'responseClass' => 'DescribeMediaJobsOutput',
  697. 'responseType' => 'model',
  698. 'parameters' => array(
  699. 'Bucket' => array(
  700. 'required' => true,
  701. 'type' => 'string',
  702. 'location' => 'uri',
  703. ),
  704. 'Tag' => array(
  705. 'required' => true,
  706. 'type' => 'string',
  707. 'location' => 'query',
  708. 'sentAs' => 'tag',
  709. ),
  710. 'QueueId' => array(
  711. 'required' => true,
  712. 'type' => 'string',
  713. 'location' => 'query',
  714. 'sentAs' => 'queueId',
  715. ),
  716. 'OrderByTime' => array(
  717. 'type' => 'string',
  718. 'location' => 'query',
  719. 'sentAs' => 'orderByTime',
  720. ),
  721. 'NextToken' => array(
  722. 'type' => 'string',
  723. 'location' => 'query',
  724. 'sentAs' => 'nextToken',
  725. ),
  726. 'Size' => array(
  727. 'type' => 'integer',
  728. 'location' => 'query',
  729. 'sentAs' => 'size',
  730. ),
  731. 'States' => array(
  732. 'type' => 'string',
  733. 'location' => 'query',
  734. 'sentAs' => 'states',
  735. ),
  736. 'StartCreationTime' => array(
  737. 'type' => 'string',
  738. 'location' => 'query',
  739. 'sentAs' => 'startCreationTime',
  740. ),
  741. 'EndCreationTime' => array(
  742. 'type' => 'string',
  743. 'location' => 'query',
  744. 'sentAs' => 'endCreationTime',
  745. ),
  746. ),
  747. );
  748. }
  749. public static function DescribeMediaJobsOutput() {
  750. return array(
  751. 'type' => 'object',
  752. 'additionalProperties' => true,
  753. 'properties' => array(
  754. 'Body' => array(
  755. 'type' => 'string',
  756. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  757. 'location' => 'body',
  758. ),
  759. 'RequestId' => array(
  760. 'type' => 'string',
  761. 'location' => 'header',
  762. 'sentAs' => 'x-ci-request-id',
  763. ),
  764. 'ContentType' => array(
  765. 'type' => 'string',
  766. 'location' => 'header',
  767. 'sentAs' => 'Content-Type',
  768. ),
  769. 'ContentLength' => array(
  770. 'type' => 'numeric',
  771. 'minimum'=> 0,
  772. 'location' => 'header',
  773. 'sentAs' => 'Content-Length',
  774. ),
  775. ),
  776. );
  777. }
  778. public static function CreateMediaSnapshotJobs() {
  779. return array(
  780. 'httpMethod' => 'POST',
  781. 'uri' => '/{Bucket}jobs',
  782. 'class' => 'Qcloud\\Cos\\Command',
  783. 'responseClass' => 'CreateMediaSnapshotJobsOutput',
  784. 'responseType' => 'model',
  785. 'data' => array(
  786. 'xmlRoot' => array(
  787. 'name' => 'Request',
  788. ),
  789. ),
  790. 'parameters' => array(
  791. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  792. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  793. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  794. 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
  795. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  796. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  797. 'Input' => array(
  798. 'required' => true,
  799. 'type' => 'object',
  800. 'location' => 'xml',
  801. 'properties' => array(
  802. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  803. ),
  804. ),
  805. 'Operation' => array(
  806. 'required' => true,
  807. 'type' => 'object',
  808. 'location' => 'xml',
  809. 'properties' => array(
  810. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  811. 'Output' => array(
  812. 'required' => true,
  813. 'type' => 'object',
  814. 'location' => 'xml',
  815. 'properties' => array(
  816. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  817. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  818. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  819. 'SpriteObject' => array( 'type' => 'string', 'location' => 'xml', ),
  820. ),
  821. ),
  822. 'Snapshot' => array(
  823. 'type' => 'object',
  824. 'location' => 'xml',
  825. 'properties' => array(
  826. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  827. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  828. 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
  829. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  830. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  831. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  832. ),
  833. ),
  834. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  835. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  836. ),
  837. ),
  838. 'CallBackMqConfig' => array(
  839. 'type' => 'object',
  840. 'location' => 'xml',
  841. 'properties' => array(
  842. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  843. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  844. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  845. ),
  846. ),
  847. ),
  848. );
  849. }
  850. public static function CreateMediaSnapshotJobsOutput() {
  851. return array(
  852. 'type' => 'object',
  853. 'additionalProperties' => true,
  854. 'properties' => array(
  855. 'Body' => array(
  856. 'type' => 'string',
  857. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  858. 'location' => 'body',
  859. ),
  860. 'RequestId' => array(
  861. 'type' => 'string',
  862. 'location' => 'header',
  863. 'sentAs' => 'x-ci-request-id',
  864. ),
  865. 'ContentType' => array(
  866. 'type' => 'string',
  867. 'location' => 'header',
  868. 'sentAs' => 'Content-Type',
  869. ),
  870. 'ContentLength' => array(
  871. 'type' => 'numeric',
  872. 'minimum'=> 0,
  873. 'location' => 'header',
  874. 'sentAs' => 'Content-Length',
  875. ),
  876. ),
  877. );
  878. }
  879. public static function CreateMediaConcatJobs() {
  880. return array(
  881. 'httpMethod' => 'POST',
  882. 'uri' => '/{Bucket}jobs',
  883. 'class' => 'Qcloud\\Cos\\Command',
  884. 'responseClass' => 'CreateMediaConcatJobsOutput',
  885. 'responseType' => 'model',
  886. 'data' => array(
  887. 'xmlRoot' => array(
  888. 'name' => 'Request',
  889. ),
  890. ),
  891. 'parameters' => array(
  892. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  893. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  894. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  895. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  896. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  897. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  898. 'Input' => array(
  899. 'required' => true,
  900. 'type' => 'object',
  901. 'location' => 'xml',
  902. 'properties' => array(
  903. 'Object' => array( 'required' =>false, 'type' => 'string', 'location' => 'xml', ), // 拼接任务Input可以为空,完全用数组内的元素拼接
  904. ),
  905. ),
  906. 'Operation' => array(
  907. 'required' => true,
  908. 'type' => 'object',
  909. 'location' => 'xml',
  910. 'properties' => array(
  911. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  912. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  913. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  914. 'Output' => array(
  915. 'required' => true,
  916. 'type' => 'object',
  917. 'location' => 'xml',
  918. 'properties' => array(
  919. 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  920. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  921. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  922. ),
  923. ),
  924. 'ConcatTemplate' => array(
  925. 'type' => 'object',
  926. 'location' => 'xml',
  927. 'properties' => array(
  928. 'Audio' => array(
  929. 'type' => 'object',
  930. 'location' => 'xml',
  931. 'properties' => array(
  932. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  933. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  934. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  935. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  936. ),
  937. ),
  938. 'Index' => array( 'type' => 'string', 'location' => 'xml', ),
  939. 'DirectConcat' => array( 'type' => 'string', 'location' => 'xml', ),
  940. 'ConcatFragments' => array(
  941. 'type' => 'array',
  942. 'location' => 'xml',
  943. 'data' => array(
  944. 'xmlFlattened' => true,
  945. ),
  946. 'items' => array(
  947. 'name' => 'ConcatFragment',
  948. 'type' => 'object',
  949. 'sentAs' => 'ConcatFragment',
  950. 'properties' => array(
  951. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  952. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  953. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  954. // 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), 拼接接口不需要Mode参数
  955. ),
  956. ),
  957. ),
  958. 'Video' => array(
  959. 'type' => 'object',
  960. 'location' => 'xml',
  961. 'properties' => array(
  962. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  963. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  964. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  965. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  966. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  967. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  968. ),
  969. ),
  970. 'Container' => array(
  971. 'type' => 'object',
  972. 'location' => 'xml',
  973. 'properties' => array(
  974. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  975. ),
  976. ),
  977. ),
  978. ),
  979. ),
  980. ),
  981. 'CallBackMqConfig' => array(
  982. 'type' => 'object',
  983. 'location' => 'xml',
  984. 'properties' => array(
  985. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  986. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  987. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  988. ),
  989. ),
  990. ),
  991. );
  992. }
  993. public static function CreateMediaConcatJobsOutput() {
  994. return array(
  995. 'type' => 'object',
  996. 'additionalProperties' => true,
  997. 'properties' => array(
  998. 'Body' => array(
  999. 'type' => 'string',
  1000. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  1001. 'location' => 'body',
  1002. ),
  1003. 'RequestId' => array(
  1004. 'type' => 'string',
  1005. 'location' => 'header',
  1006. 'sentAs' => 'x-ci-request-id',
  1007. ),
  1008. 'ContentType' => array(
  1009. 'type' => 'string',
  1010. 'location' => 'header',
  1011. 'sentAs' => 'Content-Type',
  1012. ),
  1013. 'ContentLength' => array(
  1014. 'type' => 'numeric',
  1015. 'minimum'=> 0,
  1016. 'location' => 'header',
  1017. 'sentAs' => 'Content-Length',
  1018. ),
  1019. ),
  1020. );
  1021. }
  1022. public static function DetectAudio() {
  1023. return array(
  1024. 'httpMethod' => 'POST',
  1025. 'uri' => '/{Bucket}audio/auditing',
  1026. 'class' => 'Qcloud\\Cos\\Command',
  1027. 'responseClass' => 'DetectAudioOutput',
  1028. 'responseType' => 'model',
  1029. 'data' => array(
  1030. 'xmlRoot' => array(
  1031. 'name' => 'Request',
  1032. ),
  1033. ),
  1034. 'parameters' => array(
  1035. 'Bucket' => array(
  1036. 'required' => true,
  1037. 'type' => 'string',
  1038. 'location' => 'uri',
  1039. ),
  1040. 'Input' => array(
  1041. 'location' => 'xml',
  1042. 'type' => 'object',
  1043. 'properties' => array(
  1044. 'Url' => array(
  1045. 'type' => 'string',
  1046. 'location' => 'xml',
  1047. ),
  1048. 'Object' => array(
  1049. 'type' => 'string',
  1050. 'location' => 'xml',
  1051. ),
  1052. 'DataId' => array(
  1053. 'type' => 'string',
  1054. 'location' => 'xml',
  1055. ),
  1056. 'UserInfo' => array(
  1057. 'location' => 'xml',
  1058. 'type' => 'object',
  1059. 'properties' => array(
  1060. 'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  1061. 'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
  1062. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
  1063. 'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
  1064. 'Room' => array( 'type' => 'string', 'location' => 'xml', ),
  1065. 'IP' => array( 'type' => 'string', 'location' => 'xml', ),
  1066. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  1067. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  1068. 'Gender' => array( 'type' => 'string', 'location' => 'xml', ),
  1069. 'Level' => array( 'type' => 'string', 'location' => 'xml', ),
  1070. 'Role' => array( 'type' => 'string', 'location' => 'xml', ),
  1071. ),
  1072. ),
  1073. ),
  1074. ),
  1075. 'Conf' => array(
  1076. 'location' => 'xml',
  1077. 'type' => 'object',
  1078. 'properties' => array(
  1079. 'DetectType' => array(
  1080. 'type' => 'string',
  1081. 'location' => 'xml',
  1082. ),
  1083. 'Callback' => array(
  1084. 'type' => 'string',
  1085. 'location' => 'xml',
  1086. ),
  1087. 'BizType' => array(
  1088. 'type' => 'string',
  1089. 'location' => 'xml',
  1090. ),
  1091. 'CallbackVersion' => array(
  1092. 'type' => 'string',
  1093. 'location' => 'xml',
  1094. ),
  1095. 'CallbackType' => array(
  1096. 'type' => 'integer',
  1097. 'location' => 'xml',
  1098. ),
  1099. ),
  1100. ),
  1101. ),
  1102. );
  1103. }
  1104. public static function DetectAudioOutput() {
  1105. return array(
  1106. 'type' => 'object',
  1107. 'additionalProperties' => true,
  1108. 'properties' => array(
  1109. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  1110. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  1111. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  1112. 'JobsDetail' => array(
  1113. 'type' => 'object',
  1114. 'location' => 'xml',
  1115. 'properties' => array(
  1116. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  1117. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  1118. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  1119. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  1120. ),
  1121. ),
  1122. ),
  1123. );
  1124. }
  1125. public static function GetDetectAudioResult() {
  1126. return array(
  1127. 'httpMethod' => 'GET',
  1128. 'uri' => '/{Bucket}audio/auditing/{/Key*}',
  1129. 'class' => 'Qcloud\\Cos\\Command',
  1130. 'responseClass' => 'GetDetectAudioResultOutput',
  1131. 'responseType' => 'model',
  1132. 'parameters' => array(
  1133. 'Bucket' => array(
  1134. 'required' => true,
  1135. 'type' => 'string',
  1136. 'location' => 'uri',
  1137. ),
  1138. 'Key' => array(
  1139. 'required' => true,
  1140. 'type' => 'string',
  1141. 'location' => 'uri',
  1142. ),
  1143. ),
  1144. );
  1145. }
  1146. public static function GetDetectAudioResultOutput() {
  1147. return array(
  1148. 'type' => 'object',
  1149. 'additionalProperties' => true,
  1150. 'properties' => array(
  1151. 'RequestId' => array(
  1152. 'type' => 'string',
  1153. 'location' => 'header',
  1154. 'sentAs' => 'x-ci-request-id',
  1155. ),
  1156. 'ContentType' => array(
  1157. 'type' => 'string',
  1158. 'location' => 'header',
  1159. 'sentAs' => 'Content-Type',
  1160. ),
  1161. 'ContentLength' => array(
  1162. 'type' => 'numeric',
  1163. 'minimum'=> 0,
  1164. 'location' => 'header',
  1165. 'sentAs' => 'Content-Length',
  1166. ),
  1167. 'JobsDetail' => array(
  1168. 'type' => 'object',
  1169. 'location' => 'xml',
  1170. 'properties' => array(
  1171. 'Code' => array( 'type' => 'string', 'location' => 'xml', ),
  1172. 'Message' => array( 'type' => 'string', 'location' => 'xml', ),
  1173. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  1174. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  1175. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  1176. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  1177. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  1178. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  1179. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1180. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1181. 'BucketId' => array( 'type' => 'string', 'location' => 'xml', ),
  1182. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  1183. 'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
  1184. 'ForbidState' => array( 'type' => 'integer', 'location' => 'xml', ),
  1185. 'AudioText' => array( 'type' => 'string', 'location' => 'xml', ),
  1186. 'PornInfo' => array(
  1187. 'type' => 'object',
  1188. 'location' => 'xml',
  1189. 'properties' => array(
  1190. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1191. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1192. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1193. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1194. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1195. ),
  1196. ),
  1197. 'TerrorismInfo' => array(
  1198. 'type' => 'object',
  1199. 'location' => 'xml',
  1200. 'properties' => array(
  1201. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1202. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1203. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1204. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1205. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1206. ),
  1207. ),
  1208. 'PoliticsInfo' => array(
  1209. 'type' => 'object',
  1210. 'location' => 'xml',
  1211. 'properties' => array(
  1212. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1213. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1214. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1215. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1216. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1217. ),
  1218. ),
  1219. 'AdsInfo' => array(
  1220. 'type' => 'object',
  1221. 'location' => 'xml',
  1222. 'properties' => array(
  1223. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1224. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1225. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1226. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1227. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1228. ),
  1229. ),
  1230. 'TeenagerInfo' => array(
  1231. 'type' => 'object',
  1232. 'location' => 'xml',
  1233. 'properties' => array(
  1234. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1235. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1236. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1237. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1238. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1239. ),
  1240. ),
  1241. 'Section' => array(
  1242. 'type' => 'array',
  1243. 'location' => 'xml',
  1244. 'items' => array(
  1245. 'type' => 'object',
  1246. 'properties' => array(
  1247. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  1248. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  1249. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1250. 'OffsetTime' => array( 'type' => 'integer', 'location' => 'xml', ),
  1251. 'Duration' => array( 'type' => 'integer', 'location' => 'xml', ),
  1252. 'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
  1253. 'PornInfo' => array(
  1254. 'type' => 'object',
  1255. 'location' => 'xml',
  1256. 'properties' => array(
  1257. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1258. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1259. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1260. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1261. 'Keywords' => array(
  1262. 'type' => 'array',
  1263. 'location' => 'xml',
  1264. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  1265. ),
  1266. 'LibResults' => array(
  1267. 'type' => 'array',
  1268. 'location' => 'xml',
  1269. 'items' => array(
  1270. 'type' => 'object',
  1271. 'location' => 'xml',
  1272. 'properties' => array(
  1273. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1274. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1275. 'Keywords' => array(
  1276. 'type' => 'array',
  1277. 'location' => 'xml',
  1278. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1279. ),
  1280. ),
  1281. ),
  1282. ),
  1283. 'SpeakerResults' => array(
  1284. 'type' => 'array',
  1285. 'location' => 'xml',
  1286. 'items' => array(
  1287. 'type' => 'object',
  1288. 'location' => 'xml',
  1289. 'properties' => array(
  1290. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1291. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1292. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1293. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1294. ),
  1295. ),
  1296. ),
  1297. 'RecognitionResults' => array(
  1298. 'type' => 'array',
  1299. 'location' => 'xml',
  1300. 'items' => array(
  1301. 'type' => 'object',
  1302. 'location' => 'xml',
  1303. 'properties' => array(
  1304. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1305. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1306. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1307. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1308. ),
  1309. ),
  1310. ),
  1311. ),
  1312. ),
  1313. 'TerrorismInfo' => array(
  1314. 'type' => 'object',
  1315. 'location' => 'xml',
  1316. 'properties' => array(
  1317. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1318. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1319. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1320. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1321. 'Keywords' => array(
  1322. 'type' => 'array',
  1323. 'location' => 'xml',
  1324. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  1325. ),
  1326. 'LibResults' => array(
  1327. 'type' => 'array',
  1328. 'location' => 'xml',
  1329. 'items' => array(
  1330. 'type' => 'object',
  1331. 'location' => 'xml',
  1332. 'properties' => array(
  1333. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1334. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1335. 'Keywords' => array(
  1336. 'type' => 'array',
  1337. 'location' => 'xml',
  1338. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1339. ),
  1340. ),
  1341. ),
  1342. ),
  1343. 'SpeakerResults' => array(
  1344. 'type' => 'array',
  1345. 'location' => 'xml',
  1346. 'items' => array(
  1347. 'type' => 'object',
  1348. 'location' => 'xml',
  1349. 'properties' => array(
  1350. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1351. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1352. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1353. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1354. ),
  1355. ),
  1356. ),
  1357. 'RecognitionResults' => array(
  1358. 'type' => 'array',
  1359. 'location' => 'xml',
  1360. 'items' => array(
  1361. 'type' => 'object',
  1362. 'location' => 'xml',
  1363. 'properties' => array(
  1364. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1365. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1366. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1367. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1368. ),
  1369. ),
  1370. ),
  1371. ),
  1372. ),
  1373. 'PoliticsInfo' => array(
  1374. 'type' => 'object',
  1375. 'location' => 'xml',
  1376. 'properties' => array(
  1377. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1378. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1379. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1380. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1381. 'Keywords' => array(
  1382. 'type' => 'array',
  1383. 'location' => 'xml',
  1384. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  1385. ),
  1386. 'LibResults' => array(
  1387. 'type' => 'array',
  1388. 'location' => 'xml',
  1389. 'items' => array(
  1390. 'type' => 'object',
  1391. 'location' => 'xml',
  1392. 'properties' => array(
  1393. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1394. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1395. 'Keywords' => array(
  1396. 'type' => 'array',
  1397. 'location' => 'xml',
  1398. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1399. ),
  1400. ),
  1401. ),
  1402. ),
  1403. 'SpeakerResults' => array(
  1404. 'type' => 'array',
  1405. 'location' => 'xml',
  1406. 'items' => array(
  1407. 'type' => 'object',
  1408. 'location' => 'xml',
  1409. 'properties' => array(
  1410. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1411. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1412. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1413. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1414. ),
  1415. ),
  1416. ),
  1417. 'RecognitionResults' => array(
  1418. 'type' => 'array',
  1419. 'location' => 'xml',
  1420. 'items' => array(
  1421. 'type' => 'object',
  1422. 'location' => 'xml',
  1423. 'properties' => array(
  1424. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1425. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1426. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1427. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1428. ),
  1429. ),
  1430. ),
  1431. ),
  1432. ),
  1433. 'AdsInfo' => array(
  1434. 'type' => 'object',
  1435. 'location' => 'xml',
  1436. 'properties' => array(
  1437. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1438. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1439. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1440. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1441. 'Keywords' => array(
  1442. 'type' => 'array',
  1443. 'location' => 'xml',
  1444. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  1445. ),
  1446. 'LibResults' => array(
  1447. 'type' => 'array',
  1448. 'location' => 'xml',
  1449. 'items' => array(
  1450. 'type' => 'object',
  1451. 'location' => 'xml',
  1452. 'properties' => array(
  1453. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1454. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1455. 'Keywords' => array(
  1456. 'type' => 'array',
  1457. 'location' => 'xml',
  1458. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1459. ),
  1460. ),
  1461. ),
  1462. ),
  1463. 'SpeakerResults' => array(
  1464. 'type' => 'array',
  1465. 'location' => 'xml',
  1466. 'items' => array(
  1467. 'type' => 'object',
  1468. 'location' => 'xml',
  1469. 'properties' => array(
  1470. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1471. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1472. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1473. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1474. ),
  1475. ),
  1476. ),
  1477. 'RecognitionResults' => array(
  1478. 'type' => 'array',
  1479. 'location' => 'xml',
  1480. 'items' => array(
  1481. 'type' => 'object',
  1482. 'location' => 'xml',
  1483. 'properties' => array(
  1484. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1485. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1486. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1487. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1488. ),
  1489. ),
  1490. ),
  1491. ),
  1492. ),
  1493. 'TeenagerInfo' => array(
  1494. 'type' => 'object',
  1495. 'location' => 'xml',
  1496. 'properties' => array(
  1497. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1498. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1499. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  1500. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1501. 'Keywords' => array(
  1502. 'type' => 'array',
  1503. 'location' => 'xml',
  1504. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  1505. ),
  1506. 'LibResults' => array(
  1507. 'type' => 'array',
  1508. 'location' => 'xml',
  1509. 'items' => array(
  1510. 'type' => 'object',
  1511. 'location' => 'xml',
  1512. 'properties' => array(
  1513. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1514. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1515. 'Keywords' => array(
  1516. 'type' => 'array',
  1517. 'location' => 'xml',
  1518. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1519. ),
  1520. ),
  1521. ),
  1522. ),
  1523. 'SpeakerResults' => array(
  1524. 'type' => 'array',
  1525. 'location' => 'xml',
  1526. 'items' => array(
  1527. 'type' => 'object',
  1528. 'location' => 'xml',
  1529. 'properties' => array(
  1530. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1531. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1532. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1533. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1534. ),
  1535. ),
  1536. ),
  1537. 'RecognitionResults' => array(
  1538. 'type' => 'array',
  1539. 'location' => 'xml',
  1540. 'items' => array(
  1541. 'type' => 'object',
  1542. 'location' => 'xml',
  1543. 'properties' => array(
  1544. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1545. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1546. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1547. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1548. ),
  1549. ),
  1550. ),
  1551. ),
  1552. ),
  1553. 'LanguageResults' => array(
  1554. 'type' => 'array',
  1555. 'location' => 'xml',
  1556. 'items' => array(
  1557. 'type' => 'object',
  1558. 'location' => 'xml',
  1559. 'properties' => array(
  1560. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  1561. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  1562. 'StartTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1563. 'EndTime' => array( 'type' => 'integer', 'location' => 'xml',),
  1564. ),
  1565. ),
  1566. ),
  1567. ),
  1568. ),
  1569. ),
  1570. 'UserInfo' => array(
  1571. 'type' => 'object',
  1572. 'location' => 'xml',
  1573. 'properties' => array(
  1574. 'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
  1575. 'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
  1576. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
  1577. 'AppId' => array( 'type' => 'string', 'location' => 'xml',),
  1578. 'Room' => array( 'type' => 'string', 'location' => 'xml',),
  1579. 'IP' => array( 'type' => 'string', 'location' => 'xml',),
  1580. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  1581. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml',),
  1582. 'Gender' => array( 'type' => 'string', 'location' => 'xml',),
  1583. 'Level' => array( 'type' => 'string', 'location' => 'xml',),
  1584. 'Role' => array( 'type' => 'string', 'location' => 'xml',),
  1585. ),
  1586. ),
  1587. 'ListInfo' => array(
  1588. 'type' => 'object',
  1589. 'location' => 'xml',
  1590. 'properties' => array(
  1591. 'ListResults' => array(
  1592. 'type' => 'array',
  1593. 'location' => 'xml',
  1594. 'items' => array(
  1595. 'type' => 'object',
  1596. 'location' => 'xml',
  1597. 'properties' => array(
  1598. 'ListType' => array( 'type' => 'integer', 'location' => 'xml',),
  1599. 'ListName' => array( 'type' => 'string', 'location' => 'xml',),
  1600. 'Entity' => array( 'type' => 'string', 'location' => 'xml',),
  1601. ),
  1602. ),
  1603. ),
  1604. ),
  1605. ),
  1606. 'CosHeaders' => array(
  1607. 'type' => 'object',
  1608. 'location' => 'xml',
  1609. ),
  1610. ),
  1611. ),
  1612. ),
  1613. );
  1614. }
  1615. public static function GetDetectTextResult() {
  1616. return array(
  1617. 'httpMethod' => 'GET',
  1618. 'uri' => '/{Bucket}text/auditing/{/Key*}',
  1619. 'class' => 'Qcloud\\Cos\\Command',
  1620. 'responseClass' => 'GetDetectTextResultOutput',
  1621. 'responseType' => 'model',
  1622. 'parameters' => array(
  1623. 'Bucket' => array(
  1624. 'required' => true,
  1625. 'type' => 'string',
  1626. 'location' => 'uri',
  1627. ),
  1628. 'Key' => array(
  1629. 'required' => true,
  1630. 'type' => 'string',
  1631. 'location' => 'uri',
  1632. ),
  1633. ),
  1634. );
  1635. }
  1636. public static function GetDetectTextResultOutput() {
  1637. return array(
  1638. 'type' => 'object',
  1639. 'additionalProperties' => true,
  1640. 'properties' => array(
  1641. 'RequestId' => array(
  1642. 'type' => 'string',
  1643. 'location' => 'header',
  1644. 'sentAs' => 'x-ci-request-id',
  1645. ),
  1646. 'ContentType' => array(
  1647. 'type' => 'string',
  1648. 'location' => 'header',
  1649. 'sentAs' => 'Content-Type',
  1650. ),
  1651. 'ContentLength' => array(
  1652. 'type' => 'numeric',
  1653. 'minimum'=> 0,
  1654. 'location' => 'header',
  1655. 'sentAs' => 'Content-Length',
  1656. ),
  1657. 'JobsDetail' => array(
  1658. 'type' => 'object',
  1659. 'location' => 'xml',
  1660. 'properties' => array(
  1661. 'Code' => array( 'type' => 'string', 'location' => 'xml', ),
  1662. 'Message' => array( 'type' => 'string', 'location' => 'xml', ),
  1663. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  1664. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  1665. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  1666. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  1667. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  1668. 'Content' => array( 'type' => 'string', 'location' => 'xml', ),
  1669. 'SectionCount' => array( 'type' => 'integer', 'location' => 'xml', ),
  1670. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1671. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  1672. 'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
  1673. 'PornInfo' => array(
  1674. 'type' => 'object',
  1675. 'location' => 'xml',
  1676. 'properties' => array(
  1677. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1678. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  1679. ),
  1680. ),
  1681. 'TerrorismInfo' => array(
  1682. 'type' => 'object',
  1683. 'location' => 'xml',
  1684. 'properties' => array(
  1685. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1686. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  1687. ),
  1688. ),
  1689. 'PoliticsInfo' => array(
  1690. 'type' => 'object',
  1691. 'location' => 'xml',
  1692. 'properties' => array(
  1693. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1694. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  1695. ),
  1696. ),
  1697. 'AdsInfo' => array(
  1698. 'type' => 'object',
  1699. 'location' => 'xml',
  1700. 'properties' => array(
  1701. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1702. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  1703. ),
  1704. ),
  1705. 'IllegalInfo' => array(
  1706. 'type' => 'object',
  1707. 'location' => 'xml',
  1708. 'properties' => array(
  1709. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1710. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  1711. ),
  1712. ),
  1713. 'AbuseInfo' => array(
  1714. 'type' => 'object',
  1715. 'location' => 'xml',
  1716. 'properties' => array(
  1717. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1718. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  1719. ),
  1720. ),
  1721. 'Section' => array(
  1722. 'type' => 'array',
  1723. 'location' => 'xml',
  1724. 'items' => array(
  1725. 'type' => 'object',
  1726. 'properties' => array(
  1727. 'StartByte' => array( 'type' => 'integer', 'location' => 'xml', ),
  1728. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  1729. 'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
  1730. 'PornInfo' => array(
  1731. 'type' => 'object',
  1732. 'location' => 'xml',
  1733. 'properties' => array(
  1734. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1735. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1736. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  1737. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  1738. 'LibResults' => array(
  1739. 'type' => 'array',
  1740. 'location' => 'xml',
  1741. 'items' => array(
  1742. 'type' => 'object',
  1743. 'location' => 'xml',
  1744. 'properties' => array(
  1745. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1746. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1747. 'Keywords' => array(
  1748. 'type' => 'array',
  1749. 'location' => 'xml',
  1750. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1751. ),
  1752. ),
  1753. ),
  1754. ),
  1755. ),
  1756. ),
  1757. 'TerrorismInfo' => array(
  1758. 'type' => 'object',
  1759. 'location' => 'xml',
  1760. 'properties' => array(
  1761. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1762. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1763. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  1764. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  1765. 'LibResults' => array(
  1766. 'type' => 'array',
  1767. 'location' => 'xml',
  1768. 'items' => array(
  1769. 'type' => 'object',
  1770. 'location' => 'xml',
  1771. 'properties' => array(
  1772. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1773. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1774. 'Keywords' => array(
  1775. 'type' => 'array',
  1776. 'location' => 'xml',
  1777. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1778. ),
  1779. ),
  1780. ),
  1781. ),
  1782. ),
  1783. ),
  1784. 'PoliticsInfo' => array(
  1785. 'type' => 'object',
  1786. 'location' => 'xml',
  1787. 'properties' => array(
  1788. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1789. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1790. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  1791. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  1792. 'LibResults' => array(
  1793. 'type' => 'array',
  1794. 'location' => 'xml',
  1795. 'items' => array(
  1796. 'type' => 'object',
  1797. 'location' => 'xml',
  1798. 'properties' => array(
  1799. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1800. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1801. 'Keywords' => array(
  1802. 'type' => 'array',
  1803. 'location' => 'xml',
  1804. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1805. ),
  1806. ),
  1807. ),
  1808. ),
  1809. ),
  1810. ),
  1811. 'AdsInfo' => array(
  1812. 'type' => 'object',
  1813. 'location' => 'xml',
  1814. 'properties' => array(
  1815. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1816. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1817. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  1818. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  1819. 'LibResults' => array(
  1820. 'type' => 'array',
  1821. 'location' => 'xml',
  1822. 'items' => array(
  1823. 'type' => 'object',
  1824. 'location' => 'xml',
  1825. 'properties' => array(
  1826. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1827. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1828. 'Keywords' => array(
  1829. 'type' => 'array',
  1830. 'location' => 'xml',
  1831. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1832. ),
  1833. ),
  1834. ),
  1835. ),
  1836. ),
  1837. ),
  1838. 'IllegalInfo' => array(
  1839. 'type' => 'object',
  1840. 'location' => 'xml',
  1841. 'properties' => array(
  1842. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1843. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1844. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  1845. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  1846. 'LibResults' => array(
  1847. 'type' => 'array',
  1848. 'location' => 'xml',
  1849. 'items' => array(
  1850. 'type' => 'object',
  1851. 'location' => 'xml',
  1852. 'properties' => array(
  1853. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1854. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1855. 'Keywords' => array(
  1856. 'type' => 'array',
  1857. 'location' => 'xml',
  1858. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1859. ),
  1860. ),
  1861. ),
  1862. ),
  1863. ),
  1864. ),
  1865. 'AbuseInfo' => array(
  1866. 'type' => 'object',
  1867. 'location' => 'xml',
  1868. 'properties' => array(
  1869. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  1870. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  1871. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  1872. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  1873. 'LibResults' => array(
  1874. 'type' => 'array',
  1875. 'location' => 'xml',
  1876. 'items' => array(
  1877. 'type' => 'object',
  1878. 'location' => 'xml',
  1879. 'properties' => array(
  1880. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  1881. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  1882. 'Keywords' => array(
  1883. 'type' => 'array',
  1884. 'location' => 'xml',
  1885. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  1886. ),
  1887. ),
  1888. ),
  1889. ),
  1890. ),
  1891. ),
  1892. ),
  1893. ),
  1894. ),
  1895. 'UserInfo' => array(
  1896. 'type' => 'object',
  1897. 'location' => 'xml',
  1898. 'properties' => array(
  1899. 'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
  1900. 'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
  1901. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
  1902. 'AppId' => array( 'type' => 'string', 'location' => 'xml',),
  1903. 'Room' => array( 'type' => 'string', 'location' => 'xml',),
  1904. 'IP' => array( 'type' => 'string', 'location' => 'xml',),
  1905. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  1906. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml',),
  1907. 'Gender' => array( 'type' => 'string', 'location' => 'xml',),
  1908. 'Level' => array( 'type' => 'string', 'location' => 'xml',),
  1909. 'Role' => array( 'type' => 'string', 'location' => 'xml',),
  1910. ),
  1911. ),
  1912. 'ListInfo' => array(
  1913. 'type' => 'object',
  1914. 'location' => 'xml',
  1915. 'properties' => array(
  1916. 'ListResults' => array(
  1917. 'type' => 'array',
  1918. 'location' => 'xml',
  1919. 'items' => array(
  1920. 'type' => 'object',
  1921. 'location' => 'xml',
  1922. 'properties' => array(
  1923. 'ListType' => array( 'type' => 'integer', 'location' => 'xml',),
  1924. 'ListName' => array( 'type' => 'string', 'location' => 'xml',),
  1925. 'Entity' => array( 'type' => 'string', 'location' => 'xml',),
  1926. ),
  1927. ),
  1928. ),
  1929. ),
  1930. ),
  1931. ),
  1932. ),
  1933. ),
  1934. );
  1935. }
  1936. public static function DetectVideo() {
  1937. return array(
  1938. 'httpMethod' => 'POST',
  1939. 'uri' => '/{Bucket}video/auditing',
  1940. 'class' => 'Qcloud\\Cos\\Command',
  1941. 'responseClass' => 'DetectVideoOutput',
  1942. 'responseType' => 'model',
  1943. 'data' => array(
  1944. 'xmlRoot' => array(
  1945. 'name' => 'Request',
  1946. ),
  1947. ),
  1948. 'parameters' => array(
  1949. 'Bucket' => array(
  1950. 'required' => true,
  1951. 'type' => 'string',
  1952. 'location' => 'uri',
  1953. ),
  1954. 'Input' => array(
  1955. 'location' => 'xml',
  1956. 'type' => 'object',
  1957. 'properties' => array(
  1958. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  1959. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  1960. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  1961. 'UserInfo' => array(
  1962. 'location' => 'xml',
  1963. 'type' => 'object',
  1964. 'properties' => array(
  1965. 'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  1966. 'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
  1967. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
  1968. 'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
  1969. 'Room' => array( 'type' => 'string', 'location' => 'xml', ),
  1970. 'IP' => array( 'type' => 'string', 'location' => 'xml', ),
  1971. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  1972. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  1973. 'Gender' => array( 'type' => 'string', 'location' => 'xml', ),
  1974. 'Level' => array( 'type' => 'string', 'location' => 'xml', ),
  1975. 'Role' => array( 'type' => 'string', 'location' => 'xml', ),
  1976. ),
  1977. ),
  1978. ),
  1979. ),
  1980. 'Conf' => array(
  1981. 'location' => 'xml',
  1982. 'type' => 'object',
  1983. 'properties' => array(
  1984. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  1985. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  1986. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  1987. 'CallbackVersion' => array( 'type' => 'string', 'location' => 'xml', ),
  1988. 'DetectContent' => array( 'type' => 'integer', 'location' => 'xml', ),
  1989. 'CallbackType' => array( 'type' => 'integer', 'location' => 'xml', ),
  1990. 'Snapshot' => array(
  1991. 'location' => 'xml',
  1992. 'type' => 'object',
  1993. 'properties' => array(
  1994. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  1995. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  1996. 'TimeInterval' => array( 'type' => 'numeric', 'location' => 'xml', ),
  1997. ),
  1998. ),
  1999. ),
  2000. ),
  2001. ),
  2002. );
  2003. }
  2004. public static function DetectVideoOutput() {
  2005. return array(
  2006. 'type' => 'object',
  2007. 'additionalProperties' => true,
  2008. 'properties' => array(
  2009. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  2010. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  2011. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  2012. 'JobsDetail' => array(
  2013. 'type' => 'object',
  2014. 'location' => 'xml',
  2015. 'properties' => array(
  2016. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  2017. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  2018. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  2019. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  2020. ),
  2021. ),
  2022. ),
  2023. );
  2024. }
  2025. public static function GetDetectVideoResult() {
  2026. return array(
  2027. 'httpMethod' => 'GET',
  2028. 'uri' => '/{Bucket}video/auditing/{/Key*}',
  2029. 'class' => 'Qcloud\\Cos\\Command',
  2030. 'responseClass' => 'GetDetectVideoResultOutput',
  2031. 'responseType' => 'model',
  2032. 'parameters' => array(
  2033. 'Bucket' => array(
  2034. 'required' => true,
  2035. 'type' => 'string',
  2036. 'location' => 'uri',
  2037. ),
  2038. 'Key' => array(
  2039. 'required' => true,
  2040. 'type' => 'string',
  2041. 'location' => 'uri',
  2042. ),
  2043. ),
  2044. );
  2045. }
  2046. public static function GetDetectVideoResultOutput() {
  2047. return array(
  2048. 'type' => 'object',
  2049. 'additionalProperties' => true,
  2050. 'properties' => array(
  2051. 'RequestId' => array(
  2052. 'type' => 'string',
  2053. 'location' => 'header',
  2054. 'sentAs' => 'x-ci-request-id',
  2055. ),
  2056. 'ContentType' => array(
  2057. 'type' => 'string',
  2058. 'location' => 'header',
  2059. 'sentAs' => 'Content-Type',
  2060. ),
  2061. 'ContentLength' => array(
  2062. 'type' => 'numeric',
  2063. 'minimum'=> 0,
  2064. 'location' => 'header',
  2065. 'sentAs' => 'Content-Length',
  2066. ),
  2067. 'JobsDetail' => array(
  2068. 'type' => 'object',
  2069. 'location' => 'xml',
  2070. 'properties' => array(
  2071. 'Code' => array('type' => 'string', 'location' => 'xml',),
  2072. 'Message' => array('type' => 'string', 'location' => 'xml',),
  2073. 'DataId' => array('type' => 'string', 'location' => 'xml',),
  2074. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  2075. 'State' => array('type' => 'string', 'location' => 'xml',),
  2076. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  2077. 'Object' => array('type' => 'string', 'location' => 'xml',),
  2078. 'Url' => array('type' => 'string', 'location' => 'xml',),
  2079. 'SnapshotCount' => array('type' => 'string', 'location' => 'xml',),
  2080. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2081. 'Result' => array('type' => 'integer', 'location' => 'xml',),
  2082. 'PornInfo' => array(
  2083. 'type' => 'object',
  2084. 'location' => 'xml',
  2085. 'properties' => array(
  2086. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2087. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  2088. )
  2089. ),
  2090. 'TerrorismInfo' => array(
  2091. 'type' => 'object',
  2092. 'location' => 'xml',
  2093. 'properties' => array(
  2094. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2095. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  2096. )
  2097. ),
  2098. 'PoliticsInfo' => array(
  2099. 'type' => 'object',
  2100. 'location' => 'xml',
  2101. 'properties' => array(
  2102. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2103. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  2104. )
  2105. ),
  2106. 'AdsInfo' => array(
  2107. 'type' => 'object',
  2108. 'location' => 'xml',
  2109. 'properties' => array(
  2110. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2111. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  2112. )
  2113. ),
  2114. 'TeenagerInfo' => array(
  2115. 'type' => 'object',
  2116. 'location' => 'xml',
  2117. 'properties' => array(
  2118. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2119. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  2120. )
  2121. ),
  2122. 'Snapshot' => array(
  2123. 'type' => 'array',
  2124. 'location' => 'xml',
  2125. 'items' => array(
  2126. 'type' => 'object',
  2127. 'properties' => array(
  2128. 'Url' => array('type' => 'string', 'location' => 'xml',),
  2129. 'SnapshotTime' => array('type' => 'integer', 'location' => 'xml',),
  2130. 'Text' => array('type' => 'string', 'location' => 'xml',),
  2131. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2132. 'Result' => array('type' => 'integer', 'location' => 'xml',),
  2133. 'PornInfo' => array(
  2134. 'type' => 'object',
  2135. 'location' => 'xml',
  2136. 'properties' => array(
  2137. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2138. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2139. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2140. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2141. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  2142. 'OcrResults' => array(
  2143. 'type' => 'array',
  2144. 'location' => 'xml',
  2145. 'items' => array(
  2146. 'type' => 'object',
  2147. 'location' => 'xml',
  2148. 'properties' => array(
  2149. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  2150. 'Keywords' => array(
  2151. 'type' => 'array',
  2152. 'location' => 'xml',
  2153. 'items' => array('type' => 'string', 'location' => 'xml',),
  2154. ),
  2155. 'Location' => array(
  2156. 'type' => 'object',
  2157. 'location' => 'xml',
  2158. 'properties' => array(
  2159. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2160. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2161. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2162. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2163. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2164. )
  2165. ),
  2166. )
  2167. ),
  2168. ),
  2169. 'ObjectResults' => array(
  2170. 'type' => 'array',
  2171. 'location' => 'xml',
  2172. 'items' => array(
  2173. 'type' => 'object',
  2174. 'location' => 'xml',
  2175. 'properties' => array(
  2176. 'Name' => array('type' => 'string', 'location' => 'xml',),
  2177. 'Location' => array(
  2178. 'type' => 'object',
  2179. 'location' => 'xml',
  2180. 'properties' => array(
  2181. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2182. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2183. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2184. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2185. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2186. )
  2187. ),
  2188. )
  2189. ),
  2190. ),
  2191. 'LibResults' => array(
  2192. 'type' => 'array',
  2193. 'location' => 'xml',
  2194. 'items' => array(
  2195. 'type' => 'object',
  2196. 'location' => 'xml',
  2197. 'properties' => array(
  2198. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  2199. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2200. ),
  2201. ),
  2202. ),
  2203. )
  2204. ),
  2205. 'TerrorismInfo' => array(
  2206. 'type' => 'object',
  2207. 'location' => 'xml',
  2208. 'properties' => array(
  2209. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2210. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2211. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2212. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2213. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  2214. 'OcrResults' => array(
  2215. 'type' => 'array',
  2216. 'location' => 'xml',
  2217. 'items' => array(
  2218. 'type' => 'object',
  2219. 'location' => 'xml',
  2220. 'properties' => array(
  2221. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  2222. 'Keywords' => array(
  2223. 'type' => 'array',
  2224. 'location' => 'xml',
  2225. 'items' => array('type' => 'string', 'location' => 'xml',),
  2226. ),
  2227. 'Location' => array(
  2228. 'type' => 'object',
  2229. 'location' => 'xml',
  2230. 'properties' => array(
  2231. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2232. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2233. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2234. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2235. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2236. )
  2237. ),
  2238. )
  2239. ),
  2240. ),
  2241. 'ObjectResults' => array(
  2242. 'type' => 'array',
  2243. 'location' => 'xml',
  2244. 'items' => array(
  2245. 'type' => 'object',
  2246. 'location' => 'xml',
  2247. 'properties' => array(
  2248. 'Name' => array('type' => 'string', 'location' => 'xml',),
  2249. 'Location' => array(
  2250. 'type' => 'object',
  2251. 'location' => 'xml',
  2252. 'properties' => array(
  2253. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2254. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2255. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2256. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2257. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2258. )
  2259. ),
  2260. )
  2261. ),
  2262. ),
  2263. 'LibResults' => array(
  2264. 'type' => 'array',
  2265. 'location' => 'xml',
  2266. 'items' => array(
  2267. 'type' => 'object',
  2268. 'location' => 'xml',
  2269. 'properties' => array(
  2270. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  2271. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2272. ),
  2273. ),
  2274. ),
  2275. )
  2276. ),
  2277. 'PoliticsInfo' => array(
  2278. 'type' => 'object',
  2279. 'location' => 'xml',
  2280. 'properties' => array(
  2281. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2282. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2283. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2284. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2285. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  2286. 'OcrResults' => array(
  2287. 'type' => 'array',
  2288. 'location' => 'xml',
  2289. 'items' => array(
  2290. 'type' => 'object',
  2291. 'location' => 'xml',
  2292. 'properties' => array(
  2293. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  2294. 'Keywords' => array(
  2295. 'type' => 'array',
  2296. 'location' => 'xml',
  2297. 'items' => array('type' => 'string', 'location' => 'xml',),
  2298. ),
  2299. 'Location' => array(
  2300. 'type' => 'object',
  2301. 'location' => 'xml',
  2302. 'properties' => array(
  2303. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2304. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2305. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2306. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2307. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2308. )
  2309. ),
  2310. )
  2311. ),
  2312. ),
  2313. 'ObjectResults' => array(
  2314. 'type' => 'array',
  2315. 'location' => 'xml',
  2316. 'items' => array(
  2317. 'type' => 'object',
  2318. 'location' => 'xml',
  2319. 'properties' => array(
  2320. 'Name' => array('type' => 'string', 'location' => 'xml',),
  2321. 'Location' => array(
  2322. 'type' => 'object',
  2323. 'location' => 'xml',
  2324. 'properties' => array(
  2325. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2326. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2327. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2328. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2329. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2330. )
  2331. ),
  2332. )
  2333. ),
  2334. ),
  2335. 'LibResults' => array(
  2336. 'type' => 'array',
  2337. 'location' => 'xml',
  2338. 'items' => array(
  2339. 'type' => 'object',
  2340. 'location' => 'xml',
  2341. 'properties' => array(
  2342. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  2343. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2344. ),
  2345. ),
  2346. ),
  2347. )
  2348. ),
  2349. 'AdsInfo' => array(
  2350. 'type' => 'object',
  2351. 'location' => 'xml',
  2352. 'properties' => array(
  2353. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2354. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2355. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2356. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2357. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  2358. 'OcrResults' => array(
  2359. 'type' => 'array',
  2360. 'location' => 'xml',
  2361. 'items' => array(
  2362. 'type' => 'object',
  2363. 'location' => 'xml',
  2364. 'properties' => array(
  2365. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  2366. 'Keywords' => array(
  2367. 'type' => 'array',
  2368. 'location' => 'xml',
  2369. 'items' => array('type' => 'string', 'location' => 'xml',),
  2370. ),
  2371. 'Location' => array(
  2372. 'type' => 'object',
  2373. 'location' => 'xml',
  2374. 'properties' => array(
  2375. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2376. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2377. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2378. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2379. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2380. )
  2381. ),
  2382. )
  2383. ),
  2384. ),
  2385. 'ObjectResults' => array(
  2386. 'type' => 'array',
  2387. 'location' => 'xml',
  2388. 'items' => array(
  2389. 'type' => 'object',
  2390. 'location' => 'xml',
  2391. 'properties' => array(
  2392. 'Name' => array('type' => 'string', 'location' => 'xml',),
  2393. 'Location' => array(
  2394. 'type' => 'object',
  2395. 'location' => 'xml',
  2396. 'properties' => array(
  2397. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2398. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2399. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2400. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2401. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2402. )
  2403. ),
  2404. )
  2405. ),
  2406. ),
  2407. 'LibResults' => array(
  2408. 'type' => 'array',
  2409. 'location' => 'xml',
  2410. 'items' => array(
  2411. 'type' => 'object',
  2412. 'location' => 'xml',
  2413. 'properties' => array(
  2414. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  2415. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2416. ),
  2417. ),
  2418. ),
  2419. )
  2420. ),
  2421. 'TeenagerInfo' => array(
  2422. 'type' => 'object',
  2423. 'location' => 'xml',
  2424. 'properties' => array(
  2425. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2426. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2427. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2428. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2429. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  2430. 'OcrResults' => array(
  2431. 'type' => 'array',
  2432. 'location' => 'xml',
  2433. 'items' => array(
  2434. 'type' => 'object',
  2435. 'location' => 'xml',
  2436. 'properties' => array(
  2437. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  2438. 'Keywords' => array(
  2439. 'type' => 'array',
  2440. 'location' => 'xml',
  2441. 'items' => array('type' => 'string', 'location' => 'xml',),
  2442. ),
  2443. 'Location' => array(
  2444. 'type' => 'object',
  2445. 'location' => 'xml',
  2446. 'properties' => array(
  2447. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2448. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2449. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2450. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2451. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2452. )
  2453. ),
  2454. )
  2455. ),
  2456. ),
  2457. 'ObjectResults' => array(
  2458. 'type' => 'array',
  2459. 'location' => 'xml',
  2460. 'items' => array(
  2461. 'type' => 'object',
  2462. 'location' => 'xml',
  2463. 'properties' => array(
  2464. 'Name' => array('type' => 'string', 'location' => 'xml',),
  2465. 'Location' => array(
  2466. 'type' => 'object',
  2467. 'location' => 'xml',
  2468. 'properties' => array(
  2469. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2470. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2471. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2472. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2473. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2474. )
  2475. ),
  2476. )
  2477. ),
  2478. ),
  2479. 'LibResults' => array(
  2480. 'type' => 'array',
  2481. 'location' => 'xml',
  2482. 'items' => array(
  2483. 'type' => 'object',
  2484. 'location' => 'xml',
  2485. 'properties' => array(
  2486. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  2487. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2488. ),
  2489. ),
  2490. ),
  2491. )
  2492. ),
  2493. )
  2494. ),
  2495. ),
  2496. 'AudioSection' => array(
  2497. 'type' => 'array',
  2498. 'location' => 'xml',
  2499. 'items' => array(
  2500. 'type' => 'object',
  2501. 'properties' => array(
  2502. 'Url' => array('type' => 'string', 'location' => 'xml',),
  2503. 'Text' => array('type' => 'string', 'location' => 'xml',),
  2504. 'OffsetTime' => array('type' => 'integer', 'location' => 'xml',),
  2505. 'Duration' => array('type' => 'integer', 'location' => 'xml',),
  2506. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2507. 'Result' => array('type' => 'integer', 'location' => 'xml',),
  2508. 'PornInfo' => array(
  2509. 'type' => 'object',
  2510. 'location' => 'xml',
  2511. 'properties' => array(
  2512. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  2513. 'Score' => array('type' => 'string', 'location' => 'xml',),
  2514. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2515. 'Keywords' => array(
  2516. 'type' => 'array',
  2517. 'location' => 'xml',
  2518. 'items' => array('type' => 'string', 'location' => 'xml',),
  2519. ),
  2520. 'LibResults' => array(
  2521. 'type' => 'array',
  2522. 'location' => 'xml',
  2523. 'items' => array(
  2524. 'type' => 'object',
  2525. 'location' => 'xml',
  2526. 'properties' => array(
  2527. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  2528. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  2529. 'Keywords' => array(
  2530. 'type' => 'array',
  2531. 'location' => 'xml',
  2532. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2533. ),
  2534. ),
  2535. ),
  2536. ),
  2537. )
  2538. ),
  2539. 'TerrorismInfo' => array(
  2540. 'type' => 'object',
  2541. 'location' => 'xml',
  2542. 'properties' => array(
  2543. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  2544. 'Score' => array('type' => 'string', 'location' => 'xml',),
  2545. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2546. 'Keywords' => array(
  2547. 'type' => 'array',
  2548. 'location' => 'xml',
  2549. 'items' => array('type' => 'string', 'location' => 'xml',),
  2550. ),
  2551. 'LibResults' => array(
  2552. 'type' => 'array',
  2553. 'location' => 'xml',
  2554. 'items' => array(
  2555. 'type' => 'object',
  2556. 'location' => 'xml',
  2557. 'properties' => array(
  2558. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  2559. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  2560. 'Keywords' => array(
  2561. 'type' => 'array',
  2562. 'location' => 'xml',
  2563. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2564. ),
  2565. ),
  2566. ),
  2567. ),
  2568. )
  2569. ),
  2570. 'PoliticsInfo' => array(
  2571. 'type' => 'object',
  2572. 'location' => 'xml',
  2573. 'properties' => array(
  2574. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  2575. 'Score' => array('type' => 'string', 'location' => 'xml',),
  2576. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2577. 'Keywords' => array(
  2578. 'type' => 'array',
  2579. 'location' => 'xml',
  2580. 'items' => array('type' => 'string', 'location' => 'xml',),
  2581. ),
  2582. 'LibResults' => array(
  2583. 'type' => 'array',
  2584. 'location' => 'xml',
  2585. 'items' => array(
  2586. 'type' => 'object',
  2587. 'location' => 'xml',
  2588. 'properties' => array(
  2589. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  2590. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  2591. 'Keywords' => array(
  2592. 'type' => 'array',
  2593. 'location' => 'xml',
  2594. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2595. ),
  2596. ),
  2597. ),
  2598. ),
  2599. )
  2600. ),
  2601. 'AdsInfo' => array(
  2602. 'type' => 'object',
  2603. 'location' => 'xml',
  2604. 'properties' => array(
  2605. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  2606. 'Score' => array('type' => 'string', 'location' => 'xml',),
  2607. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2608. 'Keywords' => array(
  2609. 'type' => 'array',
  2610. 'location' => 'xml',
  2611. 'items' => array('type' => 'string', 'location' => 'xml',),
  2612. ),
  2613. 'LibResults' => array(
  2614. 'type' => 'array',
  2615. 'location' => 'xml',
  2616. 'items' => array(
  2617. 'type' => 'object',
  2618. 'location' => 'xml',
  2619. 'properties' => array(
  2620. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  2621. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  2622. 'Keywords' => array(
  2623. 'type' => 'array',
  2624. 'location' => 'xml',
  2625. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2626. ),
  2627. ),
  2628. ),
  2629. ),
  2630. )
  2631. ),
  2632. 'TeenagerInfo' => array(
  2633. 'type' => 'object',
  2634. 'location' => 'xml',
  2635. 'properties' => array(
  2636. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  2637. 'Score' => array('type' => 'string', 'location' => 'xml',),
  2638. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2639. 'Keywords' => array(
  2640. 'type' => 'array',
  2641. 'location' => 'xml',
  2642. 'items' => array('type' => 'string', 'location' => 'xml',),
  2643. ),
  2644. 'LibResults' => array(
  2645. 'type' => 'array',
  2646. 'location' => 'xml',
  2647. 'items' => array(
  2648. 'type' => 'object',
  2649. 'location' => 'xml',
  2650. 'properties' => array(
  2651. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  2652. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  2653. 'Keywords' => array(
  2654. 'type' => 'array',
  2655. 'location' => 'xml',
  2656. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2657. ),
  2658. ),
  2659. ),
  2660. ),
  2661. )
  2662. ),
  2663. ),
  2664. ),
  2665. ),
  2666. 'UserInfo' => array(
  2667. 'type' => 'object',
  2668. 'location' => 'xml',
  2669. 'properties' => array(
  2670. 'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
  2671. 'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
  2672. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
  2673. 'AppId' => array( 'type' => 'string', 'location' => 'xml',),
  2674. 'Room' => array( 'type' => 'string', 'location' => 'xml',),
  2675. 'IP' => array( 'type' => 'string', 'location' => 'xml',),
  2676. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  2677. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml',),
  2678. 'Gender' => array( 'type' => 'string', 'location' => 'xml',),
  2679. 'Level' => array( 'type' => 'string', 'location' => 'xml',),
  2680. 'Role' => array( 'type' => 'string', 'location' => 'xml',),
  2681. ),
  2682. ),
  2683. 'ListInfo' => array(
  2684. 'type' => 'object',
  2685. 'location' => 'xml',
  2686. 'properties' => array(
  2687. 'ListResults' => array(
  2688. 'type' => 'array',
  2689. 'location' => 'xml',
  2690. 'items' => array(
  2691. 'type' => 'object',
  2692. 'location' => 'xml',
  2693. 'properties' => array(
  2694. 'ListType' => array( 'type' => 'integer', 'location' => 'xml',),
  2695. 'ListName' => array( 'type' => 'string', 'location' => 'xml',),
  2696. 'Entity' => array( 'type' => 'string', 'location' => 'xml',),
  2697. ),
  2698. ),
  2699. ),
  2700. ),
  2701. ),
  2702. )
  2703. ),
  2704. 'NonExistJobIds' => array('type' => 'string', 'location' => 'xml',)
  2705. ),
  2706. );
  2707. }
  2708. public static function DetectDocument() {
  2709. return array(
  2710. 'httpMethod' => 'POST',
  2711. 'uri' => '/{Bucket}document/auditing',
  2712. 'class' => 'Qcloud\\Cos\\Command',
  2713. 'responseClass' => 'DetectDocumentOutput',
  2714. 'responseType' => 'model',
  2715. 'data' => array(
  2716. 'xmlRoot' => array(
  2717. 'name' => 'Request',
  2718. ),
  2719. ),
  2720. 'parameters' => array(
  2721. 'Bucket' => array(
  2722. 'required' => true,
  2723. 'type' => 'string',
  2724. 'location' => 'uri',
  2725. ),
  2726. 'Input' => array(
  2727. 'location' => 'xml',
  2728. 'type' => 'object',
  2729. 'properties' => array(
  2730. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  2731. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  2732. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  2733. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  2734. 'UserInfo' => array(
  2735. 'location' => 'xml',
  2736. 'type' => 'object',
  2737. 'properties' => array(
  2738. 'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  2739. 'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
  2740. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
  2741. 'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
  2742. 'Room' => array( 'type' => 'string', 'location' => 'xml', ),
  2743. 'IP' => array( 'type' => 'string', 'location' => 'xml', ),
  2744. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  2745. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  2746. 'Gender' => array( 'type' => 'string', 'location' => 'xml', ),
  2747. 'Level' => array( 'type' => 'string', 'location' => 'xml', ),
  2748. 'Role' => array( 'type' => 'string', 'location' => 'xml', ),
  2749. ),
  2750. ),
  2751. ),
  2752. ),
  2753. 'Conf' => array(
  2754. 'location' => 'xml',
  2755. 'type' => 'object',
  2756. 'properties' => array(
  2757. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  2758. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  2759. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  2760. 'CallbackType' => array( 'type' => 'integer', 'location' => 'xml', ),
  2761. ),
  2762. ),
  2763. ),
  2764. );
  2765. }
  2766. public static function DetectDocumentOutput() {
  2767. return array(
  2768. 'type' => 'object',
  2769. 'additionalProperties' => true,
  2770. 'properties' => array(
  2771. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  2772. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  2773. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  2774. 'JobsDetail' => array(
  2775. 'type' => 'object',
  2776. 'location' => 'xml',
  2777. 'properties' => array(
  2778. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  2779. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  2780. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  2781. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  2782. ),
  2783. ),
  2784. ),
  2785. );
  2786. }
  2787. public static function GetDetectDocumentResult() {
  2788. return array(
  2789. 'httpMethod' => 'GET',
  2790. 'uri' => '/{Bucket}document/auditing/{/Key*}',
  2791. 'class' => 'Qcloud\\Cos\\Command',
  2792. 'responseClass' => 'GetDetectDocumentResultOutput',
  2793. 'responseType' => 'model',
  2794. 'parameters' => array(
  2795. 'Bucket' => array(
  2796. 'required' => true,
  2797. 'type' => 'string',
  2798. 'location' => 'uri',
  2799. ),
  2800. 'Key' => array(
  2801. 'required' => true,
  2802. 'type' => 'string',
  2803. 'location' => 'uri',
  2804. ),
  2805. ),
  2806. );
  2807. }
  2808. public static function GetDetectDocumentResultOutput() {
  2809. return array(
  2810. 'type' => 'object',
  2811. 'additionalProperties' => true,
  2812. 'properties' => array(
  2813. 'RequestId' => array(
  2814. 'type' => 'string',
  2815. 'location' => 'header',
  2816. 'sentAs' => 'x-ci-request-id',
  2817. ),
  2818. 'ContentType' => array(
  2819. 'type' => 'string',
  2820. 'location' => 'header',
  2821. 'sentAs' => 'Content-Type',
  2822. ),
  2823. 'ContentLength' => array(
  2824. 'type' => 'numeric',
  2825. 'minimum'=> 0,
  2826. 'location' => 'header',
  2827. 'sentAs' => 'Content-Length',
  2828. ),
  2829. 'JobsDetail' => array(
  2830. 'type' => 'object',
  2831. 'location' => 'xml',
  2832. 'properties' => array(
  2833. 'Code' => array('type' => 'string', 'location' => 'xml',),
  2834. 'Message' => array('type' => 'string', 'location' => 'xml',),
  2835. 'DataId' => array('type' => 'string', 'location' => 'xml',),
  2836. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  2837. 'State' => array('type' => 'string', 'location' => 'xml',),
  2838. 'Suggestion' => array('type' => 'integer', 'location' => 'xml',),
  2839. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2840. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  2841. 'Object' => array('type' => 'string', 'location' => 'xml',),
  2842. 'Url' => array('type' => 'string', 'location' => 'xml',),
  2843. 'PageCount' => array('type' => 'integer', 'location' => 'xml',),
  2844. 'Labels' => array(
  2845. 'type' => 'object',
  2846. 'location' => 'xml',
  2847. 'properties' => array(
  2848. 'PornInfo' => array(
  2849. 'type' => 'object',
  2850. 'location' => 'xml',
  2851. 'properties' => array(
  2852. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2853. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2854. ),
  2855. ),
  2856. 'TerrorismInfo' => array(
  2857. 'type' => 'object',
  2858. 'location' => 'xml',
  2859. 'properties' => array(
  2860. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2861. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2862. ),
  2863. ),
  2864. 'PoliticsInfo' => array(
  2865. 'type' => 'object',
  2866. 'location' => 'xml',
  2867. 'properties' => array(
  2868. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2869. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2870. ),
  2871. ),
  2872. 'AdsInfo' => array(
  2873. 'type' => 'object',
  2874. 'location' => 'xml',
  2875. 'properties' => array(
  2876. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2877. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2878. ),
  2879. ),
  2880. ),
  2881. ),
  2882. 'PageSegment' => array(
  2883. 'type' => 'object',
  2884. 'location' => 'xml',
  2885. 'properties' => array(
  2886. 'Results' => array(
  2887. 'type' => 'array',
  2888. 'location' => 'xml',
  2889. 'items' => array(
  2890. 'type' => 'object',
  2891. 'location' => 'xml',
  2892. 'properties' => array(
  2893. 'Url' => array('type' => 'string', 'location' => 'xml',),
  2894. 'Text' => array('type' => 'string', 'location' => 'xml',),
  2895. 'PageNumber' => array('type' => 'integer', 'location' => 'xml',),
  2896. 'SheetNumber' => array('type' => 'integer', 'location' => 'xml',),
  2897. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2898. 'Suggestion' => array('type' => 'integer', 'location' => 'xml',),
  2899. 'PornInfo' => array(
  2900. 'type' => 'object',
  2901. 'location' => 'xml',
  2902. 'properties' => array(
  2903. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2904. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2905. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  2906. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2907. 'OcrResults' => array(
  2908. 'type' => 'array',
  2909. 'location' => 'xml',
  2910. 'items' => array(
  2911. 'type' => 'object',
  2912. 'location' => 'xml',
  2913. 'properties' => array(
  2914. 'Text' => array('type' => 'string', 'location' => 'xml',),
  2915. 'Keywords' => array(
  2916. 'type' => 'array',
  2917. 'location' => 'xml',
  2918. 'items' => array('type' => 'string', 'location' => 'xml',)
  2919. ),
  2920. 'Location' => array(
  2921. 'type' => 'object',
  2922. 'location' => 'xml',
  2923. 'properties' => array(
  2924. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2925. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2926. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2927. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2928. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2929. ),
  2930. ),
  2931. ),
  2932. ),
  2933. ),
  2934. 'ObjectResults' => array(
  2935. 'type' => 'array',
  2936. 'location' => 'xml',
  2937. 'items' => array(
  2938. 'type' => 'object',
  2939. 'location' => 'xml',
  2940. 'properties' => array(
  2941. 'Name' => array('type' => 'string', 'location' => 'xml',),
  2942. 'Location' => array(
  2943. 'type' => 'object',
  2944. 'location' => 'xml',
  2945. 'properties' => array(
  2946. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2947. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2948. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2949. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2950. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  2951. ),
  2952. ),
  2953. ),
  2954. ),
  2955. ),
  2956. 'LibResults' => array(
  2957. 'type' => 'array',
  2958. 'location' => 'xml',
  2959. 'items' => array(
  2960. 'type' => 'object',
  2961. 'location' => 'xml',
  2962. 'properties' => array(
  2963. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  2964. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2965. ),
  2966. ),
  2967. ),
  2968. ),
  2969. ),
  2970. 'TerrorismInfo' => array(
  2971. 'type' => 'object',
  2972. 'location' => 'xml',
  2973. 'properties' => array(
  2974. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  2975. 'Category' => array('type' => 'string', 'location' => 'xml',),
  2976. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  2977. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2978. 'OcrResults' => array(
  2979. 'type' => 'array',
  2980. 'location' => 'xml',
  2981. 'items' => array(
  2982. 'type' => 'object',
  2983. 'location' => 'xml',
  2984. 'properties' => array(
  2985. 'Text' => array('type' => 'string', 'location' => 'xml',),
  2986. 'Keywords' => array(
  2987. 'type' => 'array',
  2988. 'location' => 'xml',
  2989. 'items' => array('type' => 'string', 'location' => 'xml',)
  2990. ),
  2991. 'Location' => array(
  2992. 'type' => 'object',
  2993. 'location' => 'xml',
  2994. 'properties' => array(
  2995. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  2996. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  2997. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  2998. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  2999. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  3000. ),
  3001. ),
  3002. ),
  3003. ),
  3004. ),
  3005. 'ObjectResults' => array(
  3006. 'type' => 'array',
  3007. 'location' => 'xml',
  3008. 'items' => array(
  3009. 'type' => 'object',
  3010. 'location' => 'xml',
  3011. 'properties' => array(
  3012. 'Name' => array('type' => 'string', 'location' => 'xml',),
  3013. 'Location' => array(
  3014. 'type' => 'object',
  3015. 'location' => 'xml',
  3016. 'properties' => array(
  3017. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  3018. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  3019. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  3020. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  3021. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  3022. ),
  3023. ),
  3024. ),
  3025. ),
  3026. ),
  3027. 'LibResults' => array(
  3028. 'type' => 'array',
  3029. 'location' => 'xml',
  3030. 'items' => array(
  3031. 'type' => 'object',
  3032. 'location' => 'xml',
  3033. 'properties' => array(
  3034. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  3035. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  3036. ),
  3037. ),
  3038. ),
  3039. ),
  3040. ),
  3041. 'PoliticsInfo' => array(
  3042. 'type' => 'object',
  3043. 'location' => 'xml',
  3044. 'properties' => array(
  3045. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  3046. 'Category' => array('type' => 'string', 'location' => 'xml',),
  3047. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  3048. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  3049. 'OcrResults' => array(
  3050. 'type' => 'array',
  3051. 'location' => 'xml',
  3052. 'items' => array(
  3053. 'type' => 'object',
  3054. 'location' => 'xml',
  3055. 'properties' => array(
  3056. 'Text' => array('type' => 'string', 'location' => 'xml',),
  3057. 'Keywords' => array(
  3058. 'type' => 'array',
  3059. 'location' => 'xml',
  3060. 'items' => array('type' => 'string', 'location' => 'xml',)
  3061. ),
  3062. 'Location' => array(
  3063. 'type' => 'object',
  3064. 'location' => 'xml',
  3065. 'properties' => array(
  3066. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  3067. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  3068. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  3069. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  3070. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  3071. ),
  3072. ),
  3073. ),
  3074. ),
  3075. ),
  3076. 'ObjectResults' => array(
  3077. 'type' => 'array',
  3078. 'location' => 'xml',
  3079. 'items' => array(
  3080. 'type' => 'object',
  3081. 'location' => 'xml',
  3082. 'properties' => array(
  3083. 'Name' => array('type' => 'string', 'location' => 'xml',),
  3084. 'Location' => array(
  3085. 'type' => 'object',
  3086. 'location' => 'xml',
  3087. 'properties' => array(
  3088. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  3089. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  3090. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  3091. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  3092. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  3093. ),
  3094. ),
  3095. ),
  3096. ),
  3097. ),
  3098. 'LibResults' => array(
  3099. 'type' => 'array',
  3100. 'location' => 'xml',
  3101. 'items' => array(
  3102. 'type' => 'object',
  3103. 'location' => 'xml',
  3104. 'properties' => array(
  3105. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  3106. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  3107. ),
  3108. ),
  3109. ),
  3110. ),
  3111. ),
  3112. 'AdsInfo' => array(
  3113. 'type' => 'object',
  3114. 'location' => 'xml',
  3115. 'properties' => array(
  3116. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  3117. 'Category' => array('type' => 'string', 'location' => 'xml',),
  3118. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  3119. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  3120. 'OcrResults' => array(
  3121. 'type' => 'array',
  3122. 'location' => 'xml',
  3123. 'items' => array(
  3124. 'type' => 'object',
  3125. 'location' => 'xml',
  3126. 'properties' => array(
  3127. 'Text' => array('type' => 'string', 'location' => 'xml',),
  3128. 'Keywords' => array(
  3129. 'type' => 'array',
  3130. 'location' => 'xml',
  3131. 'items' => array('type' => 'string', 'location' => 'xml',)
  3132. ),
  3133. 'Location' => array(
  3134. 'type' => 'object',
  3135. 'location' => 'xml',
  3136. 'properties' => array(
  3137. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  3138. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  3139. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  3140. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  3141. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  3142. ),
  3143. ),
  3144. ),
  3145. ),
  3146. ),
  3147. 'ObjectResults' => array(
  3148. 'type' => 'array',
  3149. 'location' => 'xml',
  3150. 'items' => array(
  3151. 'type' => 'object',
  3152. 'location' => 'xml',
  3153. 'properties' => array(
  3154. 'Name' => array('type' => 'string', 'location' => 'xml',),
  3155. 'Location' => array(
  3156. 'type' => 'object',
  3157. 'location' => 'xml',
  3158. 'properties' => array(
  3159. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  3160. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  3161. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  3162. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  3163. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  3164. ),
  3165. ),
  3166. ),
  3167. ),
  3168. ),
  3169. 'LibResults' => array(
  3170. 'type' => 'array',
  3171. 'location' => 'xml',
  3172. 'items' => array(
  3173. 'type' => 'object',
  3174. 'location' => 'xml',
  3175. 'properties' => array(
  3176. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  3177. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  3178. ),
  3179. ),
  3180. ),
  3181. ),
  3182. ),
  3183. ),
  3184. ),
  3185. ),
  3186. ),
  3187. ),
  3188. 'UserInfo' => array(
  3189. 'type' => 'object',
  3190. 'location' => 'xml',
  3191. 'properties' => array(
  3192. 'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
  3193. 'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
  3194. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
  3195. 'AppId' => array( 'type' => 'string', 'location' => 'xml',),
  3196. 'Room' => array( 'type' => 'string', 'location' => 'xml',),
  3197. 'IP' => array( 'type' => 'string', 'location' => 'xml',),
  3198. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  3199. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml',),
  3200. 'Gender' => array( 'type' => 'string', 'location' => 'xml',),
  3201. 'Level' => array( 'type' => 'string', 'location' => 'xml',),
  3202. 'Role' => array( 'type' => 'string', 'location' => 'xml',),
  3203. ),
  3204. ),
  3205. 'ListInfo' => array(
  3206. 'type' => 'object',
  3207. 'location' => 'xml',
  3208. 'properties' => array(
  3209. 'ListResults' => array(
  3210. 'type' => 'array',
  3211. 'location' => 'xml',
  3212. 'items' => array(
  3213. 'type' => 'object',
  3214. 'location' => 'xml',
  3215. 'properties' => array(
  3216. 'ListType' => array( 'type' => 'integer', 'location' => 'xml',),
  3217. 'ListName' => array( 'type' => 'string', 'location' => 'xml',),
  3218. 'Entity' => array( 'type' => 'string', 'location' => 'xml',),
  3219. ),
  3220. ),
  3221. ),
  3222. ),
  3223. ),
  3224. ),
  3225. ),
  3226. ),
  3227. );
  3228. }
  3229. public static function CreateDocProcessJobs() {
  3230. return array(
  3231. 'httpMethod' => 'POST',
  3232. 'uri' => '/{Bucket}doc_jobs',
  3233. 'class' => 'Qcloud\\Cos\\Command',
  3234. 'responseClass' => 'CreateDocProcessJobsOutput',
  3235. 'responseType' => 'model',
  3236. 'data' => array(
  3237. 'xmlRoot' => array(
  3238. 'name' => 'Request',
  3239. ),
  3240. ),
  3241. 'parameters' => array(
  3242. 'Bucket' => array(
  3243. 'required' => true,
  3244. 'type' => 'string',
  3245. 'location' => 'uri',
  3246. ),
  3247. 'Tag' => array(
  3248. 'required' => true,
  3249. 'type' => 'string',
  3250. 'location' => 'xml',
  3251. ),
  3252. 'QueueId' => array(
  3253. 'required' => true,
  3254. 'type' => 'string',
  3255. 'location' => 'xml',
  3256. ),
  3257. 'Input' => array(
  3258. 'required' => true,
  3259. 'type' => 'object',
  3260. 'location' => 'xml',
  3261. 'properties' => array(
  3262. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  3263. ),
  3264. ),
  3265. 'Operation' => array(
  3266. 'required' => true,
  3267. 'type' => 'object',
  3268. 'location' => 'xml',
  3269. 'properties' => array(
  3270. 'Output' => array(
  3271. 'required' => true,
  3272. 'type' => 'object',
  3273. 'location' => 'xml',
  3274. 'properties' => array(
  3275. 'Region' => array(
  3276. 'type' => 'string','required' => true,'location' => 'xml',
  3277. ),
  3278. 'Bucket' => array(
  3279. 'type' => 'string','required' => true,'location' => 'xml',
  3280. ),
  3281. 'Object' => array(
  3282. 'type' => 'string','required' => true,'location' => 'xml',
  3283. ),
  3284. ),
  3285. ),
  3286. 'DocProcess' => array(
  3287. 'required' => true,
  3288. 'type' => 'object',
  3289. 'location' => 'xml',
  3290. 'properties' => array(
  3291. 'SrcType' => array(
  3292. 'type' => 'string',
  3293. ),
  3294. 'TgtType' => array(
  3295. 'type' => 'string',
  3296. ),
  3297. 'SheetId' => array(
  3298. 'type' => 'integer',
  3299. ),
  3300. 'StartPage' => array(
  3301. 'type' => 'integer',
  3302. ),
  3303. 'EndPage' => array(
  3304. 'type' => 'integer',
  3305. ),
  3306. 'ImageParams' => array(
  3307. 'type' => 'string',
  3308. ),
  3309. 'DocPassword' => array(
  3310. 'type' => 'string',
  3311. ),
  3312. 'Comments' => array(
  3313. 'type' => 'integer',
  3314. ),
  3315. 'PaperDirection' => array(
  3316. 'type' => 'integer',
  3317. ),
  3318. 'Quality' => array(
  3319. 'type' => 'integer',
  3320. ),
  3321. 'Zoom' => array(
  3322. 'type' => 'integer',
  3323. ),
  3324. ),
  3325. ),
  3326. ),
  3327. ),
  3328. ),
  3329. );
  3330. }
  3331. public static function CreateDocProcessJobsOutput()
  3332. {
  3333. return array(
  3334. 'type' => 'object',
  3335. 'additionalProperties' => true,
  3336. 'properties' => array(
  3337. 'RequestId' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id',),
  3338. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  3339. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  3340. 'JobsDetail' => array(
  3341. 'type' => 'object',
  3342. 'location' => 'xml',
  3343. 'properties' => array(
  3344. 'EndTime' => array('type' => 'string', 'location' => 'xml',),
  3345. 'StartTime' => array('type' => 'string', 'location' => 'xml',),
  3346. 'Code' => array('type' => 'string', 'location' => 'xml',),
  3347. 'Message' => array('type' => 'string', 'location' => 'xml',),
  3348. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  3349. 'Tag' => array('type' => 'string', 'location' => 'xml',),
  3350. 'State' => array('type' => 'string', 'location' => 'xml',),
  3351. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  3352. 'QueueId' => array('type' => 'string', 'location' => 'xml',),
  3353. 'Input' => array(
  3354. 'type' => 'object',
  3355. 'location' => 'xml',
  3356. 'properties' => array(
  3357. 'Object' => array('type' => 'string', 'location' => 'xml',),
  3358. ),
  3359. ),
  3360. 'Operation' => array(
  3361. 'type' => 'object',
  3362. 'location' => 'xml',
  3363. 'properties' => array(
  3364. 'Output' => array(
  3365. 'required' => true,
  3366. 'type' => 'object',
  3367. 'location' => 'xml',
  3368. 'properties' => array(
  3369. 'Region' => array(
  3370. 'type' => 'string','location' => 'xml',
  3371. ),
  3372. 'Bucket' => array(
  3373. 'type' => 'string','location' => 'xml',
  3374. ),
  3375. 'Object' => array(
  3376. 'type' => 'string','location' => 'xml',
  3377. ),
  3378. ),
  3379. ),
  3380. 'DocProcess' => array(
  3381. 'type' => 'object',
  3382. 'location' => 'xml',
  3383. 'properties' => array(
  3384. 'SrcType' => array(
  3385. 'type' => 'string',
  3386. ),
  3387. 'TgtType' => array(
  3388. 'type' => 'string',
  3389. ),
  3390. 'SheetId' => array(
  3391. 'type' => 'integer',
  3392. ),
  3393. 'StartPage' => array(
  3394. 'type' => 'integer',
  3395. ),
  3396. 'EndPage' => array(
  3397. 'type' => 'integer',
  3398. ),
  3399. 'ImageParams' => array(
  3400. 'type' => 'string',
  3401. ),
  3402. 'DocPassword' => array(
  3403. 'type' => 'string',
  3404. ),
  3405. 'Comments' => array(
  3406. 'type' => 'integer',
  3407. ),
  3408. 'PaperDirection' => array(
  3409. 'type' => 'integer',
  3410. ),
  3411. 'Quality' => array(
  3412. 'type' => 'integer',
  3413. ),
  3414. 'Zoom' => array(
  3415. 'type' => 'integer',
  3416. ),
  3417. ),
  3418. ),
  3419. ),
  3420. ),
  3421. ),
  3422. ),
  3423. ),
  3424. );
  3425. }
  3426. public static function DescribeDocProcessQueues() {
  3427. return array(
  3428. 'httpMethod' => 'GET',
  3429. 'uri' => '/{Bucket}docqueue',
  3430. 'class' => 'Qcloud\\Cos\\Command',
  3431. 'responseClass' => 'DescribeDocProcessQueuesOutput',
  3432. 'responseType' => 'model',
  3433. 'data' => array(
  3434. 'xmlRoot' => array(
  3435. 'name' => 'Request',
  3436. ),
  3437. ),
  3438. 'parameters' => array(
  3439. 'Bucket' => array(
  3440. 'required' => true,
  3441. 'type' => 'string',
  3442. 'location' => 'uri',
  3443. ),
  3444. 'queueIds' => array(
  3445. 'type' => 'string',
  3446. 'location' => 'xml',
  3447. ),
  3448. 'state' => array(
  3449. 'type' => 'string',
  3450. 'location' => 'xml',
  3451. ),
  3452. 'pageNumber' => array(
  3453. 'type' => 'string',
  3454. 'location' => 'query',
  3455. ),
  3456. 'pageSize' => array(
  3457. 'type' => 'string',
  3458. 'location' => 'query',
  3459. ),
  3460. ),
  3461. );
  3462. }
  3463. public static function DescribeDocProcessQueuesOutput() {
  3464. return array(
  3465. 'type' => 'object',
  3466. 'additionalProperties' => true,
  3467. 'properties' => array(
  3468. 'RequestId' => array('type' => 'string', 'location' => 'xml',),
  3469. 'TotalCount' => array('type' => 'integer', 'location' => 'xml',),
  3470. 'PageNumber' => array('type' => 'integer', 'location' => 'xml',),
  3471. 'PageSize' => array('type' => 'integer', 'location' => 'xml',),
  3472. 'QueueList' => array(
  3473. 'type' => 'object',
  3474. 'location' => 'xml',
  3475. 'properties' => array(
  3476. 'State' => array('type' => 'string', 'location' => 'xml',),
  3477. 'Name' => array('type' => 'string', 'location' => 'xml',),
  3478. 'MaxSize' => array('type' => 'integer', 'location' => 'xml',),
  3479. 'MaxConcurrent' => array('type' => 'integer', 'location' => 'xml',),
  3480. 'CreateTime' => array('type' => 'string', 'location' => 'xml',),
  3481. 'UpdateTime' => array('type' => 'string', 'location' => 'xml',),
  3482. 'BucketId' => array('type' => 'string', 'location' => 'xml',),
  3483. 'Category' => array('type' => 'string', 'location' => 'xml',),
  3484. 'QueueId' => array('type' => 'string', 'location' => 'xml',),
  3485. 'NotifyConfig' => array(
  3486. 'type' => 'object',
  3487. 'location' => 'xml',
  3488. 'properties' => array(
  3489. 'Url' => array('type' => 'string', 'location' => 'xml',),
  3490. 'Event' => array('type' => 'string', 'location' => 'xml',),
  3491. 'Type' => array('type' => 'string', 'location' => 'xml',),
  3492. 'State' => array('type' => 'string', 'location' => 'xml',),
  3493. ),
  3494. ),
  3495. ),
  3496. ),
  3497. ),
  3498. );
  3499. }
  3500. public static function DescribeDocProcessJob() {
  3501. return array(
  3502. 'httpMethod' => 'GET',
  3503. 'uri' => '/{Bucket}doc_jobs/{/Key*}',
  3504. 'class' => 'Qcloud\\Cos\\Command',
  3505. 'responseClass' => 'DescribeDocProcessJobOutput',
  3506. 'responseType' => 'model',
  3507. 'parameters' => array(
  3508. 'Bucket' => array(
  3509. 'required' => true,
  3510. 'type' => 'string',
  3511. 'location' => 'uri',
  3512. ),
  3513. 'Key' => array(
  3514. 'required' => true,
  3515. 'type' => 'string',
  3516. 'location' => 'uri',
  3517. ),
  3518. ),
  3519. );
  3520. }
  3521. public static function DescribeDocProcessJobOutput() {
  3522. return array(
  3523. 'type' => 'object',
  3524. 'additionalProperties' => true,
  3525. 'properties' => array(
  3526. 'Body' => array(
  3527. 'type' => 'string',
  3528. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  3529. 'location' => 'body',
  3530. ),
  3531. 'RequestId' => array(
  3532. 'type' => 'string',
  3533. 'location' => 'header',
  3534. 'sentAs' => 'x-ci-request-id',
  3535. ),
  3536. 'ContentType' => array(
  3537. 'type' => 'string',
  3538. 'location' => 'header',
  3539. 'sentAs' => 'Content-Type',
  3540. ),
  3541. 'ContentLength' => array(
  3542. 'type' => 'numeric',
  3543. 'minimum'=> 0,
  3544. 'location' => 'header',
  3545. 'sentAs' => 'Content-Length',
  3546. ),
  3547. 'JobsDetail' => array(
  3548. 'type' => 'object',
  3549. 'location' => 'xml',
  3550. 'properties' => array(
  3551. 'Code' => array(
  3552. 'type' => 'string',
  3553. ),
  3554. 'Message' => array(
  3555. 'type' => 'string',
  3556. ),
  3557. 'JobId' => array(
  3558. 'type' => 'string',
  3559. ),
  3560. 'State' => array(
  3561. 'type' => 'string',
  3562. ),
  3563. 'CreationTime' => array(
  3564. 'type' => 'string',
  3565. ),
  3566. 'QueueId' => array(
  3567. 'type' => 'string',
  3568. ),
  3569. 'Tag' => array(
  3570. 'type' => 'string',
  3571. ),
  3572. 'EndTime' => array(
  3573. 'type' => 'string',
  3574. ),
  3575. 'Input' => array(
  3576. 'type' => 'object',
  3577. 'location' => 'xml',
  3578. 'properties' => array(
  3579. 'Object' => array(
  3580. 'type' => 'string',
  3581. ),
  3582. ),
  3583. ),
  3584. 'Operation' => array(
  3585. 'type' => 'array',
  3586. 'location' => 'xml',
  3587. 'items' => array(
  3588. 'type' => 'object',
  3589. 'properties' => array(
  3590. 'DocProcess' => array(
  3591. 'type' => 'object',
  3592. 'location' => 'xml',
  3593. 'properties' => array(
  3594. 'SrcType' => array(
  3595. 'type' => 'string',
  3596. ),
  3597. 'TgtType' => array(
  3598. 'type' => 'string',
  3599. ),
  3600. 'SheetId' => array(
  3601. 'type' => 'integer',
  3602. ),
  3603. 'StartPage' => array(
  3604. 'type' => 'integer',
  3605. ),
  3606. 'EndPage' => array(
  3607. 'type' => 'integer',
  3608. ),
  3609. 'ImageParams' => array(
  3610. 'type' => 'string',
  3611. ),
  3612. 'DocPassword' => array(
  3613. 'type' => 'string',
  3614. ),
  3615. 'Comments' => array(
  3616. 'type' => 'integer',
  3617. ),
  3618. 'PaperDirection' => array(
  3619. 'type' => 'integer',
  3620. ),
  3621. 'Quality' => array(
  3622. 'type' => 'integer',
  3623. ),
  3624. 'Zoom' => array(
  3625. 'type' => 'integer',
  3626. ),
  3627. ),
  3628. ),
  3629. 'DocProcessResult' => array(
  3630. 'type' => 'object',
  3631. 'location' => 'xml',
  3632. 'properties' => array(
  3633. 'PageInfo' => array(
  3634. 'type' => 'object',
  3635. 'location' => 'xml',
  3636. 'properties' => array(
  3637. 'PageNo' => array(
  3638. 'type' => 'integer',
  3639. ),
  3640. 'TgtUri' => array(
  3641. 'type' => 'string',
  3642. ),
  3643. 'PicIndex' => array(
  3644. 'type' => 'integer',
  3645. ),
  3646. 'PicNum' => array(
  3647. 'type' => 'integer',
  3648. ),
  3649. 'X-SheetPics' => array(
  3650. 'type' => 'integer',
  3651. ),
  3652. ),
  3653. ),
  3654. 'SuccPageCount' => array(
  3655. 'type' => 'integer',
  3656. ),
  3657. 'FailPageCount' => array(
  3658. 'type' => 'integer',
  3659. ),
  3660. 'TaskId' => array(
  3661. 'type' => 'string',
  3662. ),
  3663. 'TgtType' => array(
  3664. 'type' => 'string',
  3665. ),
  3666. 'TotalPageCount' => array(
  3667. 'type' => 'integer',
  3668. ),
  3669. 'TotalSheetCount' => array(
  3670. 'type' => 'integer',
  3671. ),
  3672. ),
  3673. ),
  3674. 'Output' => array(
  3675. 'type' => 'object',
  3676. 'location' => 'xml',
  3677. 'properties' => array(
  3678. 'Bucket' => array(
  3679. 'type' => 'string',
  3680. ),
  3681. 'Object' => array(
  3682. 'type' => 'string',
  3683. ),
  3684. 'Region' => array(
  3685. 'type' => 'string',
  3686. ),
  3687. ),
  3688. ),
  3689. ),
  3690. ),
  3691. ),
  3692. ),
  3693. ),
  3694. ),
  3695. );
  3696. }
  3697. public static function GetDescribeDocProcessJobs() {
  3698. return array(
  3699. 'httpMethod' => 'GET',
  3700. 'uri' => '/{Bucket}doc_jobs',
  3701. 'class' => 'Qcloud\\Cos\\Command',
  3702. 'responseClass' => 'GetDescribeDocProcessJobsOutput',
  3703. 'responseType' => 'model',
  3704. 'parameters' => array(
  3705. 'Bucket' => array(
  3706. 'required' => true,
  3707. 'type' => 'string',
  3708. 'location' => 'uri',
  3709. ),
  3710. 'Tag' => array(
  3711. 'required' => true,
  3712. 'type' => 'string',
  3713. 'location' => 'query',
  3714. 'sentAs' => 'tag',
  3715. ),
  3716. 'QueueId' => array(
  3717. 'required' => true,
  3718. 'type' => 'string',
  3719. 'location' => 'query',
  3720. 'sentAs' => 'queueId',
  3721. ),
  3722. 'OrderByTime' => array(
  3723. 'type' => 'string',
  3724. 'location' => 'query',
  3725. 'sentAs' => 'orderByTime',
  3726. ),
  3727. 'NextToken' => array(
  3728. 'type' => 'string',
  3729. 'location' => 'query',
  3730. 'sentAs' => 'nextToken',
  3731. ),
  3732. 'Size' => array(
  3733. 'type' => 'integer',
  3734. 'location' => 'query',
  3735. 'sentAs' => 'size',
  3736. ),
  3737. 'States' => array(
  3738. 'type' => 'string',
  3739. 'location' => 'query',
  3740. 'sentAs' => 'states',
  3741. ),
  3742. 'StartCreationTime' => array(
  3743. 'type' => 'string',
  3744. 'location' => 'query',
  3745. 'sentAs' => 'startCreationTime',
  3746. ),
  3747. 'EndCreationTime' => array(
  3748. 'type' => 'string',
  3749. 'location' => 'query',
  3750. 'sentAs' => 'endCreationTime',
  3751. ),
  3752. ),
  3753. );
  3754. }
  3755. public static function GetDescribeDocProcessJobsOutput() {
  3756. return array(
  3757. 'type' => 'object',
  3758. 'additionalProperties' => true,
  3759. 'properties' => array(
  3760. 'RequestId' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id',),
  3761. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  3762. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  3763. 'NextToken' => array('type' => 'string','location' => 'xml',),
  3764. 'JobsDetail' => array(
  3765. 'type' => 'array',
  3766. 'location' => 'xml',
  3767. 'data' => array(
  3768. 'xmlFlattened' => true,
  3769. ),
  3770. 'items' => array(
  3771. 'type' => 'object',
  3772. 'properties' => array(
  3773. 'Code' => array('type' => 'string', 'location' => 'xml',),
  3774. 'Message' => array('type' => 'string', 'location' => 'xml',),
  3775. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  3776. 'Tag' => array('type' => 'string', 'location' => 'xml',),
  3777. 'State' => array('type' => 'string', 'location' => 'xml',),
  3778. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  3779. 'QueueId' => array('type' => 'string', 'location' => 'xml',),
  3780. 'Input' => array(
  3781. 'type' => 'object',
  3782. 'location' => 'xml',
  3783. 'properties' => array(
  3784. 'Object' => array('type' => 'string', 'location' => 'xml',),
  3785. ),
  3786. ),
  3787. 'Operation' => array(
  3788. 'type' => 'object',
  3789. 'location' => 'xml',
  3790. 'properties' => array(
  3791. 'Output' => array(
  3792. 'required' => true,
  3793. 'type' => 'object',
  3794. 'location' => 'xml',
  3795. 'properties' => array(
  3796. 'Region' => array(
  3797. 'type' => 'string','location' => 'xml',
  3798. ),
  3799. 'Bucket' => array(
  3800. 'type' => 'string','location' => 'xml',
  3801. ),
  3802. 'Object' => array(
  3803. 'type' => 'string','location' => 'xml',
  3804. ),
  3805. ),
  3806. ),
  3807. 'DocProcess' => array(
  3808. 'type' => 'object',
  3809. 'location' => 'xml',
  3810. 'properties' => array(
  3811. 'SrcType' => array(
  3812. 'type' => 'string',
  3813. ),
  3814. 'TgtType' => array(
  3815. 'type' => 'string',
  3816. ),
  3817. 'SheetId' => array(
  3818. 'type' => 'integer',
  3819. ),
  3820. 'StartPage' => array(
  3821. 'type' => 'integer',
  3822. ),
  3823. 'EndPage' => array(
  3824. 'type' => 'integer',
  3825. ),
  3826. 'ImageParams' => array(
  3827. 'type' => 'string',
  3828. ),
  3829. 'DocPassword' => array(
  3830. 'type' => 'string',
  3831. ),
  3832. 'Comments' => array(
  3833. 'type' => 'integer',
  3834. ),
  3835. 'PaperDirection' => array(
  3836. 'type' => 'integer',
  3837. ),
  3838. 'Quality' => array(
  3839. 'type' => 'integer',
  3840. ),
  3841. 'Zoom' => array(
  3842. 'type' => 'integer',
  3843. ),
  3844. ),
  3845. ),
  3846. ),
  3847. ),
  3848. ),
  3849. ),
  3850. ),
  3851. ),
  3852. );
  3853. }
  3854. public static function DetectImage() {
  3855. return array(
  3856. 'httpMethod' => 'GET',
  3857. 'uri' => '/{Bucket}{/Key*}',
  3858. 'class' => 'Qcloud\\Cos\\Command',
  3859. 'responseClass' => 'DetectImageOutput',
  3860. 'responseType' => 'model',
  3861. 'parameters' => array(
  3862. 'Bucket' => array(
  3863. 'required' => true,
  3864. 'type' => 'string',
  3865. 'location' => 'uri',
  3866. ),
  3867. 'Key' => array(
  3868. 'required' => true,
  3869. 'type' => 'string',
  3870. 'location' => 'uri',
  3871. 'minLength' => 1,
  3872. 'filters' => array(
  3873. 'Qcloud\\Cos\\Client::explodeKey'
  3874. )
  3875. ),
  3876. 'ci-process' => array(
  3877. 'required' => true,
  3878. 'type' => 'string',
  3879. 'location' => 'query'
  3880. ),
  3881. 'DetectType' => array(
  3882. 'type' => 'string',
  3883. 'location' => 'query',
  3884. 'sentAs' => 'detect-type'
  3885. ),
  3886. 'DetectUrl' => array(
  3887. 'type' => 'string',
  3888. 'location' => 'query',
  3889. 'sentAs' => 'detect-url'
  3890. ),
  3891. 'Interval' => array(
  3892. 'type' => 'integer',
  3893. 'location' => 'query',
  3894. 'sentAs' => 'interval'
  3895. ),
  3896. 'MaxFrames' => array(
  3897. 'type' => 'integer',
  3898. 'location' => 'query',
  3899. 'sentAs' => 'max-frames'
  3900. ),
  3901. 'BizType' => array(
  3902. 'type' => 'string',
  3903. 'location' => 'query',
  3904. 'sentAs' => 'biz-type'
  3905. ),
  3906. 'LargeImageDetect' => array(
  3907. 'type' => 'integer',
  3908. 'location' => 'query',
  3909. 'sentAs' => 'large-image-detect'
  3910. ),
  3911. 'DataId' => array(
  3912. 'type' => 'string',
  3913. 'location' => 'query',
  3914. 'sentAs' => 'dataid'
  3915. ),
  3916. 'Async' => array(
  3917. 'type' => 'integer',
  3918. 'location' => 'query',
  3919. 'sentAs' => 'async'
  3920. ),
  3921. 'Callback' => array(
  3922. 'type' => 'string',
  3923. 'location' => 'query',
  3924. 'sentAs' => 'callback'
  3925. ),
  3926. ),
  3927. );
  3928. }
  3929. public static function DetectImageOutput() {
  3930. return array(
  3931. 'type' => 'object',
  3932. 'additionalProperties' => true,
  3933. 'properties' => array(
  3934. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  3935. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  3936. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  3937. 'Result' => array('type' => 'integer', 'location' => 'xml',),
  3938. 'Label' => array('type' => 'string', 'location' => 'xml',),
  3939. 'Category' => array('type' => 'string', 'location' => 'xml',),
  3940. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  3941. 'CompressionResult' => array('type' => 'integer', 'location' => 'xml',),
  3942. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  3943. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  3944. 'Text' => array('type' => 'string', 'location' => 'xml',),
  3945. 'DataId' => array('type' => 'string', 'location' => 'xml',),
  3946. 'PornInfo' => array(
  3947. 'type' => 'object',
  3948. 'location' => 'xml',
  3949. 'properties' => array(
  3950. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  3951. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  3952. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  3953. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  3954. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  3955. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  3956. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  3957. 'OcrResults' => array(
  3958. 'type' => 'array',
  3959. 'location' => 'xml',
  3960. 'items' => array(
  3961. 'type' => 'object',
  3962. 'location' => 'xml',
  3963. 'properties' => array(
  3964. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  3965. 'Keywords' => array(
  3966. 'type' => 'array',
  3967. 'location' => 'xml',
  3968. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  3969. ),
  3970. 'Location' => array(
  3971. 'type' => 'object',
  3972. 'location' => 'xml',
  3973. 'properties' => array(
  3974. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  3975. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  3976. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  3977. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  3978. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  3979. ),
  3980. ),
  3981. ),
  3982. ),
  3983. ),
  3984. 'ObjectResults' => array(
  3985. 'type' => 'array',
  3986. 'location' => 'xml',
  3987. 'items' => array(
  3988. 'type' => 'object',
  3989. 'location' => 'xml',
  3990. 'properties' => array(
  3991. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  3992. 'Location' => array(
  3993. 'type' => 'object',
  3994. 'location' => 'xml',
  3995. 'properties' => array(
  3996. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  3997. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  3998. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  3999. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4000. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4001. ),
  4002. ),
  4003. ),
  4004. ),
  4005. ),
  4006. 'LibResults' => array(
  4007. 'type' => 'array',
  4008. 'location' => 'xml',
  4009. 'items' => array(
  4010. 'type' => 'object',
  4011. 'location' => 'xml',
  4012. 'properties' => array(
  4013. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4014. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4015. ),
  4016. ),
  4017. ),
  4018. ),
  4019. ),
  4020. 'TerroristInfo' => array(
  4021. 'type' => 'object',
  4022. 'location' => 'xml',
  4023. 'properties' => array(
  4024. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4025. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4026. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4027. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4028. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4029. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4030. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4031. 'OcrResults' => array(
  4032. 'type' => 'array',
  4033. 'location' => 'xml',
  4034. 'items' => array(
  4035. 'type' => 'object',
  4036. 'location' => 'xml',
  4037. 'properties' => array(
  4038. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4039. 'Keywords' => array(
  4040. 'type' => 'array',
  4041. 'location' => 'xml',
  4042. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4043. ),
  4044. 'Location' => array(
  4045. 'type' => 'object',
  4046. 'location' => 'xml',
  4047. 'properties' => array(
  4048. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4049. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4050. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4051. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4052. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4053. ),
  4054. ),
  4055. ),
  4056. ),
  4057. ),
  4058. 'ObjectResults' => array(
  4059. 'type' => 'array',
  4060. 'location' => 'xml',
  4061. 'items' => array(
  4062. 'type' => 'object',
  4063. 'location' => 'xml',
  4064. 'properties' => array(
  4065. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4066. 'Location' => array(
  4067. 'type' => 'object',
  4068. 'location' => 'xml',
  4069. 'properties' => array(
  4070. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4071. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4072. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4073. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4074. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4075. ),
  4076. ),
  4077. ),
  4078. ),
  4079. ),
  4080. 'LibResults' => array(
  4081. 'type' => 'array',
  4082. 'location' => 'xml',
  4083. 'items' => array(
  4084. 'type' => 'object',
  4085. 'location' => 'xml',
  4086. 'properties' => array(
  4087. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4088. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4089. ),
  4090. ),
  4091. ),
  4092. ),
  4093. ),
  4094. 'TerrorismInfo' => array(
  4095. 'type' => 'object',
  4096. 'location' => 'xml',
  4097. 'properties' => array(
  4098. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4099. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4100. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4101. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4102. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4103. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4104. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4105. 'OcrResults' => array(
  4106. 'type' => 'array',
  4107. 'location' => 'xml',
  4108. 'items' => array(
  4109. 'type' => 'object',
  4110. 'location' => 'xml',
  4111. 'properties' => array(
  4112. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4113. 'Keywords' => array(
  4114. 'type' => 'array',
  4115. 'location' => 'xml',
  4116. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4117. ),
  4118. 'Location' => array(
  4119. 'type' => 'object',
  4120. 'location' => 'xml',
  4121. 'properties' => array(
  4122. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4123. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4124. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4125. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4126. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4127. ),
  4128. ),
  4129. ),
  4130. ),
  4131. ),
  4132. 'ObjectResults' => array(
  4133. 'type' => 'array',
  4134. 'location' => 'xml',
  4135. 'items' => array(
  4136. 'type' => 'object',
  4137. 'location' => 'xml',
  4138. 'properties' => array(
  4139. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4140. 'Location' => array(
  4141. 'type' => 'object',
  4142. 'location' => 'xml',
  4143. 'properties' => array(
  4144. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4145. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4146. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4147. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4148. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4149. ),
  4150. ),
  4151. ),
  4152. ),
  4153. ),
  4154. 'LibResults' => array(
  4155. 'type' => 'array',
  4156. 'location' => 'xml',
  4157. 'items' => array(
  4158. 'type' => 'object',
  4159. 'location' => 'xml',
  4160. 'properties' => array(
  4161. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4162. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4163. ),
  4164. ),
  4165. ),
  4166. ),
  4167. ),
  4168. 'PoliticsInfo' => array(
  4169. 'type' => 'object',
  4170. 'location' => 'xml',
  4171. 'properties' => array(
  4172. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4173. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4174. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4175. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4176. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4177. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4178. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4179. 'OcrResults' => array(
  4180. 'type' => 'array',
  4181. 'location' => 'xml',
  4182. 'items' => array(
  4183. 'type' => 'object',
  4184. 'location' => 'xml',
  4185. 'properties' => array(
  4186. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4187. 'Keywords' => array(
  4188. 'type' => 'array',
  4189. 'location' => 'xml',
  4190. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4191. ),
  4192. 'Location' => array(
  4193. 'type' => 'object',
  4194. 'location' => 'xml',
  4195. 'properties' => array(
  4196. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4197. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4198. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4199. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4200. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4201. ),
  4202. ),
  4203. ),
  4204. ),
  4205. ),
  4206. 'ObjectResults' => array(
  4207. 'type' => 'array',
  4208. 'location' => 'xml',
  4209. 'items' => array(
  4210. 'type' => 'object',
  4211. 'location' => 'xml',
  4212. 'properties' => array(
  4213. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4214. 'Location' => array(
  4215. 'type' => 'object',
  4216. 'location' => 'xml',
  4217. 'properties' => array(
  4218. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4219. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4220. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4221. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4222. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4223. ),
  4224. ),
  4225. ),
  4226. ),
  4227. ),
  4228. 'LibResults' => array(
  4229. 'type' => 'array',
  4230. 'location' => 'xml',
  4231. 'items' => array(
  4232. 'type' => 'object',
  4233. 'location' => 'xml',
  4234. 'properties' => array(
  4235. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4236. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4237. ),
  4238. ),
  4239. ),
  4240. ),
  4241. ),
  4242. 'AdsInfo' => array(
  4243. 'type' => 'object',
  4244. 'location' => 'xml',
  4245. 'properties' => array(
  4246. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4247. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4248. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4249. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4250. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4251. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4252. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4253. 'OcrResults' => array(
  4254. 'type' => 'array',
  4255. 'location' => 'xml',
  4256. 'items' => array(
  4257. 'type' => 'object',
  4258. 'location' => 'xml',
  4259. 'properties' => array(
  4260. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4261. 'Keywords' => array(
  4262. 'type' => 'array',
  4263. 'location' => 'xml',
  4264. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4265. ),
  4266. 'Location' => array(
  4267. 'type' => 'object',
  4268. 'location' => 'xml',
  4269. 'properties' => array(
  4270. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4271. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4272. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4273. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4274. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4275. ),
  4276. ),
  4277. ),
  4278. ),
  4279. ),
  4280. 'ObjectResults' => array(
  4281. 'type' => 'array',
  4282. 'location' => 'xml',
  4283. 'items' => array(
  4284. 'type' => 'object',
  4285. 'location' => 'xml',
  4286. 'properties' => array(
  4287. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4288. 'Location' => array(
  4289. 'type' => 'object',
  4290. 'location' => 'xml',
  4291. 'properties' => array(
  4292. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4293. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4294. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4295. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4296. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4297. ),
  4298. ),
  4299. ),
  4300. ),
  4301. ),
  4302. 'LibResults' => array(
  4303. 'type' => 'array',
  4304. 'location' => 'xml',
  4305. 'items' => array(
  4306. 'type' => 'object',
  4307. 'location' => 'xml',
  4308. 'properties' => array(
  4309. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4310. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4311. ),
  4312. ),
  4313. ),
  4314. ),
  4315. ),
  4316. 'TeenagerInfo' => array(
  4317. 'type' => 'object',
  4318. 'location' => 'xml',
  4319. 'properties' => array(
  4320. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4321. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4322. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4323. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4324. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4325. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4326. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4327. 'OcrResults' => array(
  4328. 'type' => 'array',
  4329. 'location' => 'xml',
  4330. 'items' => array(
  4331. 'type' => 'object',
  4332. 'location' => 'xml',
  4333. 'properties' => array(
  4334. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4335. 'Keywords' => array(
  4336. 'type' => 'array',
  4337. 'location' => 'xml',
  4338. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4339. ),
  4340. 'Location' => array(
  4341. 'type' => 'object',
  4342. 'location' => 'xml',
  4343. 'properties' => array(
  4344. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4345. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4346. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4347. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4348. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4349. ),
  4350. ),
  4351. ),
  4352. ),
  4353. ),
  4354. 'ObjectResults' => array(
  4355. 'type' => 'array',
  4356. 'location' => 'xml',
  4357. 'items' => array(
  4358. 'type' => 'object',
  4359. 'location' => 'xml',
  4360. 'properties' => array(
  4361. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4362. 'Location' => array(
  4363. 'type' => 'object',
  4364. 'location' => 'xml',
  4365. 'properties' => array(
  4366. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4367. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4368. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4369. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4370. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4371. ),
  4372. ),
  4373. ),
  4374. ),
  4375. ),
  4376. 'LibResults' => array(
  4377. 'type' => 'array',
  4378. 'location' => 'xml',
  4379. 'items' => array(
  4380. 'type' => 'object',
  4381. 'location' => 'xml',
  4382. 'properties' => array(
  4383. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4384. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4385. ),
  4386. ),
  4387. ),
  4388. ),
  4389. ),
  4390. )
  4391. );
  4392. }
  4393. public static function DetectImages() {
  4394. return array(
  4395. 'httpMethod' => 'POST',
  4396. 'uri' => '/{Bucket}image/auditing',
  4397. 'class' => 'Qcloud\\Cos\\Command',
  4398. 'responseClass' => 'DetectImagesOutput',
  4399. 'responseType' => 'model',
  4400. 'data' => array(
  4401. 'xmlRoot' => array(
  4402. 'name' => 'Request',
  4403. ),
  4404. ),
  4405. 'parameters' => array(
  4406. 'Bucket' => array(
  4407. 'required' => true,
  4408. 'type' => 'string',
  4409. 'location' => 'uri',
  4410. ),
  4411. 'Inputs' => array(
  4412. 'type' => 'array',
  4413. 'location' => 'xml',
  4414. 'data' => array(
  4415. 'xmlFlattened' => true,
  4416. ),
  4417. 'items' => array(
  4418. 'name' => 'Input',
  4419. 'type' => 'object',
  4420. 'location' => 'xml',
  4421. 'sentAs' => 'Input',
  4422. 'properties' => array(
  4423. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  4424. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  4425. 'Content' => array( 'type' => 'string', 'location' => 'xml', ),
  4426. 'Interval' => array( 'type' => 'integer', 'location' => 'xml', ),
  4427. 'MaxFrames' => array( 'type' => 'integer', 'location' => 'xml', ),
  4428. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  4429. 'LargeImageDetect' => array( 'type' => 'integer', 'location' => 'xml', ),
  4430. 'UserInfo' => array(
  4431. 'location' => 'xml',
  4432. 'type' => 'object',
  4433. 'properties' => array(
  4434. 'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  4435. 'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
  4436. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
  4437. 'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
  4438. 'Room' => array( 'type' => 'string', 'location' => 'xml', ),
  4439. 'IP' => array( 'type' => 'string', 'location' => 'xml', ),
  4440. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  4441. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  4442. 'Gender' => array( 'type' => 'string', 'location' => 'xml', ),
  4443. 'Level' => array( 'type' => 'string', 'location' => 'xml', ),
  4444. 'Role' => array( 'type' => 'string', 'location' => 'xml', ),
  4445. ),
  4446. ),
  4447. ),
  4448. ),
  4449. ),
  4450. 'Conf' => array(
  4451. 'type' => 'object',
  4452. 'location' => 'xml',
  4453. 'properties' => array(
  4454. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  4455. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  4456. 'Async' => array( 'type' => 'integer', 'location' => 'xml', ),
  4457. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  4458. ),
  4459. ),
  4460. ),
  4461. );
  4462. }
  4463. public static function DetectImagesOutput() {
  4464. return array(
  4465. 'type' => 'object',
  4466. 'additionalProperties' => true,
  4467. 'properties' => array(
  4468. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  4469. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  4470. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  4471. 'JobsDetail' => array(
  4472. 'type' => 'array',
  4473. 'location' => 'xml',
  4474. 'items' => array(
  4475. 'type' => 'object',
  4476. 'location' => 'xml',
  4477. 'properties' => array(
  4478. 'Code' => array( 'type' => 'string', 'location' => 'xml',),
  4479. 'Message' => array( 'type' => 'string', 'location' => 'xml',),
  4480. 'JobId' => array( 'type' => 'string', 'location' => 'xml',),
  4481. 'DataId' => array( 'type' => 'string', 'location' => 'xml',),
  4482. 'CompressionResult' => array( 'type' => 'integer', 'location' => 'xml',),
  4483. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4484. 'Result' => array( 'type' => 'integer', 'location' => 'xml',),
  4485. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4486. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4487. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4488. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4489. 'Object' => array( 'type' => 'string', 'location' => 'xml',),
  4490. 'Url' => array( 'type' => 'string', 'location' => 'xml',),
  4491. 'PornInfo' => array(
  4492. 'type' => 'object',
  4493. 'location' => 'xml',
  4494. 'properties' => array(
  4495. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4496. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4497. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4498. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4499. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4500. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4501. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4502. 'OcrResults' => array(
  4503. 'type' => 'array',
  4504. 'location' => 'xml',
  4505. 'items' => array(
  4506. 'type' => 'object',
  4507. 'location' => 'xml',
  4508. 'properties' => array(
  4509. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4510. 'Keywords' => array(
  4511. 'type' => 'array',
  4512. 'location' => 'xml',
  4513. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4514. ),
  4515. 'Location' => array(
  4516. 'type' => 'object',
  4517. 'location' => 'xml',
  4518. 'properties' => array(
  4519. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4520. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4521. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4522. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4523. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4524. ),
  4525. ),
  4526. ),
  4527. ),
  4528. ),
  4529. 'ObjectResults' => array(
  4530. 'type' => 'array',
  4531. 'location' => 'xml',
  4532. 'items' => array(
  4533. 'type' => 'object',
  4534. 'location' => 'xml',
  4535. 'properties' => array(
  4536. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4537. 'Location' => array(
  4538. 'type' => 'object',
  4539. 'location' => 'xml',
  4540. 'properties' => array(
  4541. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4542. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4543. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4544. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4545. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4546. ),
  4547. ),
  4548. ),
  4549. ),
  4550. ),
  4551. 'LibResults' => array(
  4552. 'type' => 'array',
  4553. 'location' => 'xml',
  4554. 'items' => array(
  4555. 'type' => 'object',
  4556. 'location' => 'xml',
  4557. 'properties' => array(
  4558. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4559. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4560. ),
  4561. ),
  4562. ),
  4563. ),
  4564. ),
  4565. 'TerrorismInfo' => array(
  4566. 'type' => 'object',
  4567. 'location' => 'xml',
  4568. 'properties' => array(
  4569. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4570. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4571. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4572. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4573. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4574. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4575. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4576. 'OcrResults' => array(
  4577. 'type' => 'array',
  4578. 'location' => 'xml',
  4579. 'items' => array(
  4580. 'type' => 'object',
  4581. 'location' => 'xml',
  4582. 'properties' => array(
  4583. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4584. 'Keywords' => array(
  4585. 'type' => 'array',
  4586. 'location' => 'xml',
  4587. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4588. ),
  4589. 'Location' => array(
  4590. 'type' => 'object',
  4591. 'location' => 'xml',
  4592. 'properties' => array(
  4593. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4594. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4595. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4596. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4597. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4598. ),
  4599. ),
  4600. ),
  4601. ),
  4602. ),
  4603. 'ObjectResults' => array(
  4604. 'type' => 'array',
  4605. 'location' => 'xml',
  4606. 'items' => array(
  4607. 'type' => 'object',
  4608. 'location' => 'xml',
  4609. 'properties' => array(
  4610. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4611. 'Location' => array(
  4612. 'type' => 'object',
  4613. 'location' => 'xml',
  4614. 'properties' => array(
  4615. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4616. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4617. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4618. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4619. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4620. ),
  4621. ),
  4622. ),
  4623. ),
  4624. ),
  4625. 'LibResults' => array(
  4626. 'type' => 'array',
  4627. 'location' => 'xml',
  4628. 'items' => array(
  4629. 'type' => 'object',
  4630. 'location' => 'xml',
  4631. 'properties' => array(
  4632. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4633. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4634. ),
  4635. ),
  4636. ),
  4637. ),
  4638. ),
  4639. 'PoliticsInfo' => array(
  4640. 'type' => 'object',
  4641. 'location' => 'xml',
  4642. 'properties' => array(
  4643. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4644. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4645. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4646. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4647. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4648. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4649. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4650. 'OcrResults' => array(
  4651. 'type' => 'array',
  4652. 'location' => 'xml',
  4653. 'items' => array(
  4654. 'type' => 'object',
  4655. 'location' => 'xml',
  4656. 'properties' => array(
  4657. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4658. 'Keywords' => array(
  4659. 'type' => 'array',
  4660. 'location' => 'xml',
  4661. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4662. ),
  4663. 'Location' => array(
  4664. 'type' => 'object',
  4665. 'location' => 'xml',
  4666. 'properties' => array(
  4667. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4668. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4669. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4670. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4671. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4672. ),
  4673. ),
  4674. ),
  4675. ),
  4676. ),
  4677. 'ObjectResults' => array(
  4678. 'type' => 'array',
  4679. 'location' => 'xml',
  4680. 'items' => array(
  4681. 'type' => 'object',
  4682. 'location' => 'xml',
  4683. 'properties' => array(
  4684. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4685. 'Location' => array(
  4686. 'type' => 'object',
  4687. 'location' => 'xml',
  4688. 'properties' => array(
  4689. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4690. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4691. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4692. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4693. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4694. ),
  4695. ),
  4696. ),
  4697. ),
  4698. ),
  4699. 'LibResults' => array(
  4700. 'type' => 'array',
  4701. 'location' => 'xml',
  4702. 'items' => array(
  4703. 'type' => 'object',
  4704. 'location' => 'xml',
  4705. 'properties' => array(
  4706. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4707. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4708. ),
  4709. ),
  4710. ),
  4711. ),
  4712. ),
  4713. 'AdsInfo' => array(
  4714. 'type' => 'object',
  4715. 'location' => 'xml',
  4716. 'properties' => array(
  4717. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4718. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4719. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4720. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4721. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4722. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4723. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4724. 'OcrResults' => array(
  4725. 'type' => 'array',
  4726. 'location' => 'xml',
  4727. 'items' => array(
  4728. 'type' => 'object',
  4729. 'location' => 'xml',
  4730. 'properties' => array(
  4731. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4732. 'Keywords' => array(
  4733. 'type' => 'array',
  4734. 'location' => 'xml',
  4735. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4736. ),
  4737. 'Location' => array(
  4738. 'type' => 'object',
  4739. 'location' => 'xml',
  4740. 'properties' => array(
  4741. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4742. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4743. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4744. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4745. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4746. ),
  4747. ),
  4748. ),
  4749. ),
  4750. ),
  4751. 'ObjectResults' => array(
  4752. 'type' => 'array',
  4753. 'location' => 'xml',
  4754. 'items' => array(
  4755. 'type' => 'object',
  4756. 'location' => 'xml',
  4757. 'properties' => array(
  4758. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4759. 'Location' => array(
  4760. 'type' => 'object',
  4761. 'location' => 'xml',
  4762. 'properties' => array(
  4763. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4764. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4765. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4766. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4767. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4768. ),
  4769. ),
  4770. ),
  4771. ),
  4772. ),
  4773. 'LibResults' => array(
  4774. 'type' => 'array',
  4775. 'location' => 'xml',
  4776. 'items' => array(
  4777. 'type' => 'object',
  4778. 'location' => 'xml',
  4779. 'properties' => array(
  4780. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4781. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4782. ),
  4783. ),
  4784. ),
  4785. ),
  4786. ),
  4787. 'TeenagerInfo' => array(
  4788. 'type' => 'object',
  4789. 'location' => 'xml',
  4790. 'properties' => array(
  4791. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  4792. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  4793. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  4794. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4795. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  4796. 'Category' => array( 'type' => 'string', 'location' => 'xml',),
  4797. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  4798. 'OcrResults' => array(
  4799. 'type' => 'array',
  4800. 'location' => 'xml',
  4801. 'items' => array(
  4802. 'type' => 'object',
  4803. 'location' => 'xml',
  4804. 'properties' => array(
  4805. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  4806. 'Keywords' => array(
  4807. 'type' => 'array',
  4808. 'location' => 'xml',
  4809. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  4810. ),
  4811. 'Location' => array(
  4812. 'type' => 'object',
  4813. 'location' => 'xml',
  4814. 'properties' => array(
  4815. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4816. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4817. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4818. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4819. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4820. ),
  4821. ),
  4822. ),
  4823. ),
  4824. ),
  4825. 'ObjectResults' => array(
  4826. 'type' => 'array',
  4827. 'location' => 'xml',
  4828. 'items' => array(
  4829. 'type' => 'object',
  4830. 'location' => 'xml',
  4831. 'properties' => array(
  4832. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  4833. 'Location' => array(
  4834. 'type' => 'object',
  4835. 'location' => 'xml',
  4836. 'properties' => array(
  4837. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  4838. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  4839. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  4840. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  4841. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  4842. ),
  4843. ),
  4844. ),
  4845. ),
  4846. ),
  4847. 'LibResults' => array(
  4848. 'type' => 'array',
  4849. 'location' => 'xml',
  4850. 'items' => array(
  4851. 'type' => 'object',
  4852. 'location' => 'xml',
  4853. 'properties' => array(
  4854. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  4855. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  4856. ),
  4857. ),
  4858. ),
  4859. ),
  4860. ),
  4861. 'UserInfo' => array(
  4862. 'type' => 'object',
  4863. 'location' => 'xml',
  4864. 'properties' => array(
  4865. 'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
  4866. 'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
  4867. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
  4868. 'AppId' => array( 'type' => 'string', 'location' => 'xml',),
  4869. 'Room' => array( 'type' => 'string', 'location' => 'xml',),
  4870. 'IP' => array( 'type' => 'string', 'location' => 'xml',),
  4871. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  4872. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml',),
  4873. 'Gender' => array( 'type' => 'string', 'location' => 'xml',),
  4874. 'Level' => array( 'type' => 'string', 'location' => 'xml',),
  4875. 'Role' => array( 'type' => 'string', 'location' => 'xml',),
  4876. ),
  4877. ),
  4878. 'ListInfo' => array(
  4879. 'type' => 'object',
  4880. 'location' => 'xml',
  4881. 'properties' => array(
  4882. 'ListResults' => array(
  4883. 'type' => 'array',
  4884. 'location' => 'xml',
  4885. 'items' => array(
  4886. 'type' => 'object',
  4887. 'location' => 'xml',
  4888. 'properties' => array(
  4889. 'ListType' => array( 'type' => 'integer', 'location' => 'xml',),
  4890. 'ListName' => array( 'type' => 'string', 'location' => 'xml',),
  4891. 'Entity' => array( 'type' => 'string', 'location' => 'xml',),
  4892. ),
  4893. ),
  4894. ),
  4895. ),
  4896. ),
  4897. ),
  4898. ),
  4899. ),
  4900. )
  4901. );
  4902. }
  4903. public static function DetectVirus() {
  4904. return array(
  4905. 'httpMethod' => 'POST',
  4906. 'uri' => '/{Bucket}virus/detect',
  4907. 'class' => 'Qcloud\\Cos\\Command',
  4908. 'responseClass' => 'DetectVirusOutput',
  4909. 'responseType' => 'model',
  4910. 'data' => array(
  4911. 'xmlRoot' => array(
  4912. 'name' => 'Request',
  4913. ),
  4914. ),
  4915. 'parameters' => array(
  4916. 'Bucket' => array(
  4917. 'required' => true,
  4918. 'type' => 'string',
  4919. 'location' => 'uri',
  4920. ),
  4921. 'Input' => array(
  4922. 'location' => 'xml',
  4923. 'type' => 'object',
  4924. 'properties' => array(
  4925. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  4926. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  4927. ),
  4928. ),
  4929. 'Conf' => array(
  4930. 'location' => 'xml',
  4931. 'type' => 'object',
  4932. 'properties' => array(
  4933. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  4934. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  4935. ),
  4936. ),
  4937. ),
  4938. );
  4939. }
  4940. public static function DetectVirusOutput() {
  4941. return array(
  4942. 'type' => 'object',
  4943. 'additionalProperties' => true,
  4944. 'properties' => array(
  4945. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  4946. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  4947. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  4948. 'JobsDetail' => array(
  4949. 'type' => 'object',
  4950. 'location' => 'xml',
  4951. 'properties' => array(
  4952. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  4953. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  4954. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  4955. ),
  4956. ),
  4957. ),
  4958. );
  4959. }
  4960. public static function GetDetectVirusResult() {
  4961. return array(
  4962. 'httpMethod' => 'GET',
  4963. 'uri' => '/{Bucket}virus/detect/{/Key*}',
  4964. 'class' => 'Qcloud\\Cos\\Command',
  4965. 'responseClass' => 'GetDetectVirusResultOutput',
  4966. 'responseType' => 'model',
  4967. 'parameters' => array(
  4968. 'Bucket' => array(
  4969. 'required' => true,
  4970. 'type' => 'string',
  4971. 'location' => 'uri',
  4972. ),
  4973. 'Key' => array(
  4974. 'required' => true,
  4975. 'type' => 'string',
  4976. 'location' => 'uri',
  4977. ),
  4978. ),
  4979. );
  4980. }
  4981. public static function GetDetectVirusResultOutput() {
  4982. return array(
  4983. 'type' => 'object',
  4984. 'additionalProperties' => true,
  4985. 'properties' => array(
  4986. 'RequestId' => array(
  4987. 'type' => 'string',
  4988. 'location' => 'header',
  4989. 'sentAs' => 'x-ci-request-id',
  4990. ),
  4991. 'ContentType' => array(
  4992. 'type' => 'string',
  4993. 'location' => 'header',
  4994. 'sentAs' => 'Content-Type',
  4995. ),
  4996. 'ContentLength' => array(
  4997. 'type' => 'numeric',
  4998. 'minimum'=> 0,
  4999. 'location' => 'header',
  5000. 'sentAs' => 'Content-Length',
  5001. ),
  5002. 'JobsDetail' => array(
  5003. 'type' => 'object',
  5004. 'location' => 'xml',
  5005. 'properties' => array(
  5006. 'Code' => array('type' => 'string', 'location' => 'xml',),
  5007. 'Message' => array('type' => 'string', 'location' => 'xml',),
  5008. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  5009. 'State' => array('type' => 'string', 'location' => 'xml',),
  5010. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  5011. 'Object' => array('type' => 'string', 'location' => 'xml',),
  5012. 'Url' => array('type' => 'string', 'location' => 'xml',),
  5013. 'Suggestion' => array('type' => 'string', 'location' => 'xml',),
  5014. 'DetectDetail' => array(
  5015. 'type' => 'array',
  5016. 'location' => 'xml',
  5017. 'items' => array(
  5018. 'type' => 'object',
  5019. 'location' => 'xml',
  5020. 'properties' => array(
  5021. 'Result' => array(
  5022. 'type' => 'array',
  5023. 'location' => 'xml',
  5024. 'items' => array(
  5025. 'type' => 'object',
  5026. 'location' => 'xml',
  5027. 'properties' => array(
  5028. 'FileName' => array( 'type' => 'string', 'location' => 'xml', ),
  5029. 'VirusName' => array( 'type' => 'string', 'location' => 'xml', ),
  5030. ),
  5031. ),
  5032. ),
  5033. ),
  5034. ),
  5035. ),
  5036. ),
  5037. ),
  5038. ),
  5039. );
  5040. }
  5041. public static function GetDetectImageResult() {
  5042. return array(
  5043. 'httpMethod' => 'GET',
  5044. 'uri' => '/{Bucket}image/auditing/{/Key*}',
  5045. 'class' => 'Qcloud\\Cos\\Command',
  5046. 'responseClass' => 'GetDetectImageResultOutput',
  5047. 'responseType' => 'model',
  5048. 'parameters' => array(
  5049. 'Bucket' => array(
  5050. 'required' => true,
  5051. 'type' => 'string',
  5052. 'location' => 'uri',
  5053. ),
  5054. 'Key' => array(
  5055. 'required' => true,
  5056. 'type' => 'string',
  5057. 'location' => 'uri',
  5058. ),
  5059. ),
  5060. );
  5061. }
  5062. public static function GetDetectImageResultOutput() {
  5063. return array(
  5064. 'type' => 'object',
  5065. 'additionalProperties' => true,
  5066. 'properties' => array(
  5067. 'RequestId' => array(
  5068. 'type' => 'string',
  5069. 'location' => 'header',
  5070. 'sentAs' => 'x-ci-request-id',
  5071. ),
  5072. 'ContentType' => array(
  5073. 'type' => 'string',
  5074. 'location' => 'header',
  5075. 'sentAs' => 'Content-Type',
  5076. ),
  5077. 'ContentLength' => array(
  5078. 'type' => 'numeric',
  5079. 'minimum'=> 0,
  5080. 'location' => 'header',
  5081. 'sentAs' => 'Content-Length',
  5082. ),
  5083. 'JobsDetail' => array(
  5084. 'type' => 'object',
  5085. 'location' => 'xml',
  5086. 'properties' => array(
  5087. 'Code' => array('type' => 'string', 'location' => 'xml',),
  5088. 'Message' => array('type' => 'string', 'location' => 'xml',),
  5089. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  5090. 'State' => array('type' => 'string', 'location' => 'xml',),
  5091. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  5092. 'Object' => array('type' => 'string', 'location' => 'xml',),
  5093. 'Url' => array('type' => 'string', 'location' => 'xml',),
  5094. 'CompressionResult' => array('type' => 'integer', 'location' => 'xml',),
  5095. 'Text' => array('type' => 'string', 'location' => 'xml',),
  5096. 'Label' => array('type' => 'string', 'location' => 'xml',),
  5097. 'Category' => array('type' => 'string', 'location' => 'xml',),
  5098. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  5099. 'Result' => array('type' => 'integer', 'location' => 'xml',),
  5100. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  5101. 'PornInfo' => array(
  5102. 'type' => 'object',
  5103. 'location' => 'xml',
  5104. 'properties' => array(
  5105. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  5106. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  5107. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  5108. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  5109. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  5110. 'OcrResults' => array(
  5111. 'type' => 'array',
  5112. 'location' => 'xml',
  5113. 'items' => array(
  5114. 'type' => 'object',
  5115. 'location' => 'xml',
  5116. 'properties' => array(
  5117. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  5118. 'Keywords' => array(
  5119. 'type' => 'array',
  5120. 'location' => 'xml',
  5121. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  5122. ),
  5123. 'Location' => array(
  5124. 'type' => 'object',
  5125. 'location' => 'xml',
  5126. 'properties' => array(
  5127. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5128. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5129. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5130. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5131. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5132. ),
  5133. ),
  5134. ),
  5135. ),
  5136. ),
  5137. 'ObjectResults' => array(
  5138. 'type' => 'array',
  5139. 'location' => 'xml',
  5140. 'items' => array(
  5141. 'type' => 'object',
  5142. 'location' => 'xml',
  5143. 'properties' => array(
  5144. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  5145. 'Location' => array(
  5146. 'type' => 'object',
  5147. 'location' => 'xml',
  5148. 'properties' => array(
  5149. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5150. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5151. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5152. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5153. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5154. ),
  5155. ),
  5156. ),
  5157. ),
  5158. ),
  5159. 'LibResults' => array(
  5160. 'type' => 'array',
  5161. 'location' => 'xml',
  5162. 'items' => array(
  5163. 'type' => 'object',
  5164. 'location' => 'xml',
  5165. 'properties' => array(
  5166. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  5167. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  5168. ),
  5169. ),
  5170. ),
  5171. ),
  5172. ),
  5173. 'AdsInfo' => array(
  5174. 'type' => 'object',
  5175. 'location' => 'xml',
  5176. 'properties' => array(
  5177. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  5178. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  5179. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  5180. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  5181. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  5182. 'OcrResults' => array(
  5183. 'type' => 'array',
  5184. 'location' => 'xml',
  5185. 'items' => array(
  5186. 'type' => 'object',
  5187. 'location' => 'xml',
  5188. 'properties' => array(
  5189. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  5190. 'Keywords' => array(
  5191. 'type' => 'array',
  5192. 'location' => 'xml',
  5193. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  5194. ),
  5195. 'Location' => array(
  5196. 'type' => 'object',
  5197. 'location' => 'xml',
  5198. 'properties' => array(
  5199. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5200. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5201. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5202. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5203. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5204. ),
  5205. ),
  5206. ),
  5207. ),
  5208. ),
  5209. 'ObjectResults' => array(
  5210. 'type' => 'array',
  5211. 'location' => 'xml',
  5212. 'items' => array(
  5213. 'type' => 'object',
  5214. 'location' => 'xml',
  5215. 'properties' => array(
  5216. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  5217. 'Location' => array(
  5218. 'type' => 'object',
  5219. 'location' => 'xml',
  5220. 'properties' => array(
  5221. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5222. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5223. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5224. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5225. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5226. ),
  5227. ),
  5228. ),
  5229. ),
  5230. ),
  5231. 'LibResults' => array(
  5232. 'type' => 'array',
  5233. 'location' => 'xml',
  5234. 'items' => array(
  5235. 'type' => 'object',
  5236. 'location' => 'xml',
  5237. 'properties' => array(
  5238. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  5239. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  5240. ),
  5241. ),
  5242. ),
  5243. ),
  5244. ),
  5245. 'PoliticsInfo' => array(
  5246. 'type' => 'object',
  5247. 'location' => 'xml',
  5248. 'properties' => array(
  5249. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  5250. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  5251. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  5252. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  5253. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  5254. 'OcrResults' => array(
  5255. 'type' => 'array',
  5256. 'location' => 'xml',
  5257. 'items' => array(
  5258. 'type' => 'object',
  5259. 'location' => 'xml',
  5260. 'properties' => array(
  5261. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  5262. 'Keywords' => array(
  5263. 'type' => 'array',
  5264. 'location' => 'xml',
  5265. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  5266. ),
  5267. 'Location' => array(
  5268. 'type' => 'object',
  5269. 'location' => 'xml',
  5270. 'properties' => array(
  5271. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5272. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5273. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5274. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5275. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5276. ),
  5277. ),
  5278. ),
  5279. ),
  5280. ),
  5281. 'ObjectResults' => array(
  5282. 'type' => 'array',
  5283. 'location' => 'xml',
  5284. 'items' => array(
  5285. 'type' => 'object',
  5286. 'location' => 'xml',
  5287. 'properties' => array(
  5288. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  5289. 'Location' => array(
  5290. 'type' => 'object',
  5291. 'location' => 'xml',
  5292. 'properties' => array(
  5293. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5294. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5295. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5296. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5297. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5298. ),
  5299. ),
  5300. ),
  5301. ),
  5302. ),
  5303. 'LibResults' => array(
  5304. 'type' => 'array',
  5305. 'location' => 'xml',
  5306. 'items' => array(
  5307. 'type' => 'object',
  5308. 'location' => 'xml',
  5309. 'properties' => array(
  5310. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  5311. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  5312. ),
  5313. ),
  5314. ),
  5315. ),
  5316. ),
  5317. 'TerrorismInfo' => array(
  5318. 'type' => 'object',
  5319. 'location' => 'xml',
  5320. 'properties' => array(
  5321. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  5322. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  5323. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  5324. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  5325. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  5326. 'OcrResults' => array(
  5327. 'type' => 'array',
  5328. 'location' => 'xml',
  5329. 'items' => array(
  5330. 'type' => 'object',
  5331. 'location' => 'xml',
  5332. 'properties' => array(
  5333. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  5334. 'Keywords' => array(
  5335. 'type' => 'array',
  5336. 'location' => 'xml',
  5337. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  5338. ),
  5339. 'Location' => array(
  5340. 'type' => 'object',
  5341. 'location' => 'xml',
  5342. 'properties' => array(
  5343. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5344. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5345. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5346. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5347. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5348. ),
  5349. ),
  5350. ),
  5351. ),
  5352. ),
  5353. 'ObjectResults' => array(
  5354. 'type' => 'array',
  5355. 'location' => 'xml',
  5356. 'items' => array(
  5357. 'type' => 'object',
  5358. 'location' => 'xml',
  5359. 'properties' => array(
  5360. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  5361. 'Location' => array(
  5362. 'type' => 'object',
  5363. 'location' => 'xml',
  5364. 'properties' => array(
  5365. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5366. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5367. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5368. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5369. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5370. ),
  5371. ),
  5372. ),
  5373. ),
  5374. ),
  5375. 'LibResults' => array(
  5376. 'type' => 'array',
  5377. 'location' => 'xml',
  5378. 'items' => array(
  5379. 'type' => 'object',
  5380. 'location' => 'xml',
  5381. 'properties' => array(
  5382. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  5383. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  5384. ),
  5385. ),
  5386. ),
  5387. ),
  5388. ),
  5389. 'TeenagerInfo' => array(
  5390. 'type' => 'object',
  5391. 'location' => 'xml',
  5392. 'properties' => array(
  5393. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  5394. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  5395. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  5396. 'Category' => array( 'type' => 'string', 'location' => 'xml', ),
  5397. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ),
  5398. 'OcrResults' => array(
  5399. 'type' => 'array',
  5400. 'location' => 'xml',
  5401. 'items' => array(
  5402. 'type' => 'object',
  5403. 'location' => 'xml',
  5404. 'properties' => array(
  5405. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  5406. 'Keywords' => array(
  5407. 'type' => 'array',
  5408. 'location' => 'xml',
  5409. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  5410. ),
  5411. 'Location' => array(
  5412. 'type' => 'object',
  5413. 'location' => 'xml',
  5414. 'properties' => array(
  5415. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5416. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5417. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5418. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5419. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5420. ),
  5421. ),
  5422. ),
  5423. ),
  5424. ),
  5425. 'ObjectResults' => array(
  5426. 'type' => 'array',
  5427. 'location' => 'xml',
  5428. 'items' => array(
  5429. 'type' => 'object',
  5430. 'location' => 'xml',
  5431. 'properties' => array(
  5432. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  5433. 'Location' => array(
  5434. 'type' => 'object',
  5435. 'location' => 'xml',
  5436. 'properties' => array(
  5437. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5438. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5439. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5440. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5441. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5442. ),
  5443. ),
  5444. ),
  5445. ),
  5446. ),
  5447. 'LibResults' => array(
  5448. 'type' => 'array',
  5449. 'location' => 'xml',
  5450. 'items' => array(
  5451. 'type' => 'object',
  5452. 'location' => 'xml',
  5453. 'properties' => array(
  5454. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  5455. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  5456. ),
  5457. ),
  5458. ),
  5459. ),
  5460. ),
  5461. 'UserInfo' => array(
  5462. 'type' => 'object',
  5463. 'location' => 'xml',
  5464. 'properties' => array(
  5465. 'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
  5466. 'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
  5467. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
  5468. 'AppId' => array( 'type' => 'string', 'location' => 'xml',),
  5469. 'Room' => array( 'type' => 'string', 'location' => 'xml',),
  5470. 'IP' => array( 'type' => 'string', 'location' => 'xml',),
  5471. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  5472. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml',),
  5473. 'Gender' => array( 'type' => 'string', 'location' => 'xml',),
  5474. 'Level' => array( 'type' => 'string', 'location' => 'xml',),
  5475. 'Role' => array( 'type' => 'string', 'location' => 'xml',),
  5476. ),
  5477. ),
  5478. 'ListInfo' => array(
  5479. 'type' => 'object',
  5480. 'location' => 'xml',
  5481. 'properties' => array(
  5482. 'ListResults' => array(
  5483. 'type' => 'array',
  5484. 'location' => 'xml',
  5485. 'items' => array(
  5486. 'type' => 'object',
  5487. 'location' => 'xml',
  5488. 'properties' => array(
  5489. 'ListType' => array( 'type' => 'integer', 'location' => 'xml',),
  5490. 'ListName' => array( 'type' => 'string', 'location' => 'xml',),
  5491. 'Entity' => array( 'type' => 'string', 'location' => 'xml',),
  5492. ),
  5493. ),
  5494. ),
  5495. ),
  5496. ),
  5497. ),
  5498. ),
  5499. ),
  5500. );
  5501. }
  5502. public static function CreateMediaVoiceSeparateJobs() {
  5503. return array(
  5504. 'httpMethod' => 'POST',
  5505. 'uri' => '/{Bucket}jobs',
  5506. 'class' => 'Qcloud\\Cos\\Command',
  5507. 'responseClass' => 'CreateMediaVoiceSeparateJobsOutput',
  5508. 'responseType' => 'model',
  5509. 'data' => array(
  5510. 'xmlRoot' => array(
  5511. 'name' => 'Request',
  5512. ),
  5513. ),
  5514. 'parameters' => array(
  5515. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  5516. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  5517. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  5518. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  5519. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  5520. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  5521. 'Input' => array(
  5522. 'required' => true,
  5523. 'type' => 'object',
  5524. 'location' => 'xml',
  5525. 'properties' => array(
  5526. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  5527. ),
  5528. ),
  5529. 'Operation' => array(
  5530. 'required' => true,
  5531. 'type' => 'object',
  5532. 'location' => 'xml',
  5533. 'properties' => array(
  5534. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  5535. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  5536. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  5537. 'VoiceSeparate' => array(
  5538. 'type' => 'object',
  5539. 'location' => 'xml',
  5540. 'properties' => array(
  5541. 'AudioMode' => array( 'type' => 'string', 'location' => 'xml', ),
  5542. 'AudioConfig' => array(
  5543. 'type' => 'object',
  5544. 'location' => 'xml',
  5545. 'properties' => array(
  5546. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  5547. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  5548. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  5549. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  5550. ),
  5551. ),
  5552. ),
  5553. ),
  5554. 'Output' => array(
  5555. 'type' => 'object',
  5556. 'location' => 'xml',
  5557. 'properties' => array(
  5558. 'Region' => array('type' => 'string', 'location' => 'xml', ),
  5559. 'Bucket' => array('type' => 'string', 'location' => 'xml', ),
  5560. 'Object' => array('type' => 'string', 'location' => 'xml', ),
  5561. 'AuObject' => array('type' => 'string', 'location' => 'xml', ),
  5562. ),
  5563. ),
  5564. ),
  5565. ),
  5566. 'CallBackMqConfig' => array(
  5567. 'type' => 'object',
  5568. 'location' => 'xml',
  5569. 'properties' => array(
  5570. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  5571. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  5572. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  5573. ),
  5574. ),
  5575. ),
  5576. );
  5577. }
  5578. public static function CreateMediaVoiceSeparateJobsOutput() {
  5579. return array(
  5580. 'type' => 'object',
  5581. 'additionalProperties' => true,
  5582. 'properties' => array(
  5583. 'Body' => array(
  5584. 'type' => 'string',
  5585. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  5586. 'location' => 'body',
  5587. ),
  5588. 'RequestId' => array(
  5589. 'type' => 'string',
  5590. 'location' => 'header',
  5591. 'sentAs' => 'x-ci-request-id',
  5592. ),
  5593. 'ContentType' => array(
  5594. 'type' => 'string',
  5595. 'location' => 'header',
  5596. 'sentAs' => 'Content-Type',
  5597. ),
  5598. 'ContentLength' => array(
  5599. 'type' => 'numeric',
  5600. 'minimum'=> 0,
  5601. 'location' => 'header',
  5602. 'sentAs' => 'Content-Length',
  5603. ),
  5604. ),
  5605. );
  5606. }
  5607. public static function DescribeMediaVoiceSeparateJob() {
  5608. return array(
  5609. 'httpMethod' => 'GET',
  5610. 'uri' => '/{Bucket}jobs/{/Key*}',
  5611. 'class' => 'Qcloud\\Cos\\Command',
  5612. 'responseClass' => 'DescribeMediaVoiceSeparateJobOutput',
  5613. 'responseType' => 'model',
  5614. 'parameters' => array(
  5615. 'Bucket' => array(
  5616. 'required' => true,
  5617. 'type' => 'string',
  5618. 'location' => 'uri',
  5619. ),
  5620. 'Key' => array(
  5621. 'required' => true,
  5622. 'type' => 'string',
  5623. 'location' => 'uri',
  5624. ),
  5625. ),
  5626. );
  5627. }
  5628. public static function DescribeMediaVoiceSeparateJobOutput() {
  5629. return array(
  5630. 'type' => 'object',
  5631. 'additionalProperties' => true,
  5632. 'properties' => array(
  5633. 'Body' => array(
  5634. 'type' => 'string',
  5635. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  5636. 'location' => 'body',
  5637. ),
  5638. 'RequestId' => array(
  5639. 'type' => 'string',
  5640. 'location' => 'header',
  5641. 'sentAs' => 'x-ci-request-id',
  5642. ),
  5643. 'ContentType' => array(
  5644. 'type' => 'string',
  5645. 'location' => 'header',
  5646. 'sentAs' => 'Content-Type',
  5647. ),
  5648. 'ContentLength' => array(
  5649. 'type' => 'numeric',
  5650. 'minimum'=> 0,
  5651. 'location' => 'header',
  5652. 'sentAs' => 'Content-Length',
  5653. ),
  5654. ),
  5655. );
  5656. }
  5657. public static function DetectWebpage() {
  5658. return array(
  5659. 'httpMethod' => 'POST',
  5660. 'uri' => '/{Bucket}webpage/auditing',
  5661. 'class' => 'Qcloud\\Cos\\Command',
  5662. 'responseClass' => 'DetectWebpageOutput',
  5663. 'responseType' => 'model',
  5664. 'data' => array(
  5665. 'xmlRoot' => array(
  5666. 'name' => 'Request',
  5667. ),
  5668. ),
  5669. 'parameters' => array(
  5670. 'Bucket' => array(
  5671. 'required' => true,
  5672. 'type' => 'string',
  5673. 'location' => 'uri',
  5674. ),
  5675. 'Input' => array(
  5676. 'location' => 'xml',
  5677. 'type' => 'object',
  5678. 'properties' => array(
  5679. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  5680. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  5681. 'UserInfo' => array(
  5682. 'location' => 'xml',
  5683. 'type' => 'object',
  5684. 'properties' => array(
  5685. 'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  5686. 'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
  5687. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
  5688. 'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
  5689. 'Room' => array( 'type' => 'string', 'location' => 'xml', ),
  5690. 'IP' => array( 'type' => 'string', 'location' => 'xml', ),
  5691. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  5692. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  5693. 'Gender' => array( 'type' => 'string', 'location' => 'xml', ),
  5694. 'Level' => array( 'type' => 'string', 'location' => 'xml', ),
  5695. 'Role' => array( 'type' => 'string', 'location' => 'xml', ),
  5696. ),
  5697. ),
  5698. ),
  5699. ),
  5700. 'Conf' => array(
  5701. 'location' => 'xml',
  5702. 'type' => 'object',
  5703. 'properties' => array(
  5704. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  5705. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  5706. 'ReturnHighlightHtml' => array( 'type' => 'string', 'location' => 'xml', ),
  5707. 'CallbackType' => array( 'type' => 'integer', 'location' => 'xml', ),
  5708. ),
  5709. ),
  5710. ),
  5711. );
  5712. }
  5713. public static function DetectWebpageOutput() {
  5714. return array(
  5715. 'type' => 'object',
  5716. 'additionalProperties' => true,
  5717. 'properties' => array(
  5718. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  5719. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  5720. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  5721. 'JobsDetail' => array(
  5722. 'type' => 'object',
  5723. 'location' => 'xml',
  5724. 'properties' => array(
  5725. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  5726. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  5727. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  5728. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  5729. ),
  5730. ),
  5731. ),
  5732. );
  5733. }
  5734. public static function GetDetectWebpageResult() {
  5735. return array(
  5736. 'httpMethod' => 'GET',
  5737. 'uri' => '/{Bucket}webpage/auditing/{/Key*}',
  5738. 'class' => 'Qcloud\\Cos\\Command',
  5739. 'responseClass' => 'GetDetectWebpageResultOutput',
  5740. 'responseType' => 'model',
  5741. 'parameters' => array(
  5742. 'Bucket' => array(
  5743. 'required' => true,
  5744. 'type' => 'string',
  5745. 'location' => 'uri',
  5746. ),
  5747. 'Key' => array(
  5748. 'required' => true,
  5749. 'type' => 'string',
  5750. 'location' => 'uri',
  5751. ),
  5752. ),
  5753. );
  5754. }
  5755. public static function GetDetectWebpageResultOutput() {
  5756. return array(
  5757. 'type' => 'object',
  5758. 'additionalProperties' => true,
  5759. 'properties' => array(
  5760. 'RequestId' => array(
  5761. 'type' => 'string',
  5762. 'location' => 'header',
  5763. 'sentAs' => 'x-ci-request-id',
  5764. ),
  5765. 'ContentType' => array(
  5766. 'type' => 'string',
  5767. 'location' => 'header',
  5768. 'sentAs' => 'Content-Type',
  5769. ),
  5770. 'ContentLength' => array(
  5771. 'type' => 'numeric',
  5772. 'minimum'=> 0,
  5773. 'location' => 'header',
  5774. 'sentAs' => 'Content-Length',
  5775. ),
  5776. 'JobsDetail' => array(
  5777. 'type' => 'object',
  5778. 'location' => 'xml',
  5779. 'properties' => array(
  5780. 'Code' => array('type' => 'string', 'location' => 'xml',),
  5781. 'Message' => array('type' => 'string', 'location' => 'xml',),
  5782. 'DataId' => array('type' => 'string', 'location' => 'xml',),
  5783. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  5784. 'State' => array('type' => 'string', 'location' => 'xml',),
  5785. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  5786. 'Url' => array('type' => 'string', 'location' => 'xml',),
  5787. 'Suggestion' => array('type' => 'integer', 'location' => 'xml',),
  5788. 'Label' => array('type' => 'string', 'location' => 'xml',),
  5789. 'PageCount' => array('type' => 'integer', 'location' => 'xml',),
  5790. 'HighlightHtml' => array('type' => 'string', 'location' => 'xml',),
  5791. 'Labels' => array(
  5792. 'type' => 'object',
  5793. 'location' => 'xml',
  5794. 'properties' => array(
  5795. 'PornInfo' => array(
  5796. 'type' => 'object',
  5797. 'location' => 'xml',
  5798. 'properties' => array(
  5799. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  5800. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  5801. ),
  5802. ),
  5803. 'AdsInfo' => array(
  5804. 'type' => 'object',
  5805. 'location' => 'xml',
  5806. 'properties' => array(
  5807. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  5808. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  5809. ),
  5810. ),
  5811. 'PoliticsInfo' => array(
  5812. 'type' => 'object',
  5813. 'location' => 'xml',
  5814. 'properties' => array(
  5815. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  5816. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  5817. ),
  5818. ),
  5819. 'TerrorismInfo' => array(
  5820. 'type' => 'object',
  5821. 'location' => 'xml',
  5822. 'properties' => array(
  5823. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  5824. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  5825. ),
  5826. ),
  5827. ),
  5828. ),
  5829. 'ImageResults' => array(
  5830. 'type' => 'object',
  5831. 'location' => 'xml',
  5832. 'properties' => array(
  5833. 'Results' => array(
  5834. 'type' => 'array',
  5835. 'location' => 'xml',
  5836. 'items' => array(
  5837. 'type' => 'object',
  5838. 'location' => 'xml',
  5839. 'properties' => array(
  5840. 'Url' => array( 'type' => 'string', 'location' => 'xml',),
  5841. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  5842. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  5843. 'Suggestion' => array( 'type' => 'integer', 'location' => 'xml',),
  5844. 'PornInfo' => array(
  5845. 'type' => 'object',
  5846. 'location' => 'xml',
  5847. 'properties' => array(
  5848. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  5849. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  5850. 'Category' => array('type' => 'string', 'location' => 'xml',),
  5851. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  5852. 'OcrResults' => array(
  5853. 'type' => 'array',
  5854. 'location' => 'xml',
  5855. 'items' => array(
  5856. 'type' => 'object',
  5857. 'location' => 'xml',
  5858. 'properties' => array(
  5859. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  5860. 'Keywords' => array(
  5861. 'type' => 'array',
  5862. 'location' => 'xml',
  5863. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  5864. ),
  5865. 'Location' => array(
  5866. 'type' => 'object',
  5867. 'location' => 'xml',
  5868. 'properties' => array(
  5869. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5870. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5871. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5872. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5873. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5874. ),
  5875. ),
  5876. ),
  5877. ),
  5878. ),
  5879. 'ObjectResults' => array(
  5880. 'type' => 'array',
  5881. 'location' => 'xml',
  5882. 'items' => array(
  5883. 'type' => 'object',
  5884. 'location' => 'xml',
  5885. 'properties' => array(
  5886. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  5887. 'Location' => array(
  5888. 'type' => 'object',
  5889. 'location' => 'xml',
  5890. 'properties' => array(
  5891. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5892. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5893. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5894. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5895. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5896. ),
  5897. ),
  5898. ),
  5899. ),
  5900. ),
  5901. 'LibResults' => array(
  5902. 'type' => 'array',
  5903. 'location' => 'xml',
  5904. 'items' => array(
  5905. 'type' => 'object',
  5906. 'location' => 'xml',
  5907. 'properties' => array(
  5908. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  5909. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  5910. ),
  5911. ),
  5912. ),
  5913. ),
  5914. ),
  5915. 'AdsInfo' => array(
  5916. 'type' => 'object',
  5917. 'location' => 'xml',
  5918. 'properties' => array(
  5919. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  5920. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  5921. 'Category' => array('type' => 'string', 'location' => 'xml',),
  5922. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  5923. 'OcrResults' => array(
  5924. 'type' => 'array',
  5925. 'location' => 'xml',
  5926. 'items' => array(
  5927. 'type' => 'object',
  5928. 'location' => 'xml',
  5929. 'properties' => array(
  5930. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  5931. 'Keywords' => array(
  5932. 'type' => 'array',
  5933. 'location' => 'xml',
  5934. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  5935. ),
  5936. 'Location' => array(
  5937. 'type' => 'object',
  5938. 'location' => 'xml',
  5939. 'properties' => array(
  5940. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5941. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5942. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5943. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5944. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5945. ),
  5946. ),
  5947. ),
  5948. ),
  5949. ),
  5950. 'ObjectResults' => array(
  5951. 'type' => 'array',
  5952. 'location' => 'xml',
  5953. 'items' => array(
  5954. 'type' => 'object',
  5955. 'location' => 'xml',
  5956. 'properties' => array(
  5957. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  5958. 'Location' => array(
  5959. 'type' => 'object',
  5960. 'location' => 'xml',
  5961. 'properties' => array(
  5962. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  5963. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  5964. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  5965. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  5966. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  5967. ),
  5968. ),
  5969. ),
  5970. ),
  5971. ),
  5972. 'LibResults' => array(
  5973. 'type' => 'array',
  5974. 'location' => 'xml',
  5975. 'items' => array(
  5976. 'type' => 'object',
  5977. 'location' => 'xml',
  5978. 'properties' => array(
  5979. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  5980. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  5981. ),
  5982. ),
  5983. ),
  5984. ),
  5985. ),
  5986. 'PoliticsInfo' => array(
  5987. 'type' => 'object',
  5988. 'location' => 'xml',
  5989. 'properties' => array(
  5990. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  5991. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  5992. 'Category' => array('type' => 'string', 'location' => 'xml',),
  5993. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  5994. 'OcrResults' => array(
  5995. 'type' => 'array',
  5996. 'location' => 'xml',
  5997. 'items' => array(
  5998. 'type' => 'object',
  5999. 'location' => 'xml',
  6000. 'properties' => array(
  6001. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  6002. 'Keywords' => array(
  6003. 'type' => 'array',
  6004. 'location' => 'xml',
  6005. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6006. ),
  6007. 'Location' => array(
  6008. 'type' => 'object',
  6009. 'location' => 'xml',
  6010. 'properties' => array(
  6011. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  6012. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  6013. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  6014. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  6015. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  6016. ),
  6017. ),
  6018. ),
  6019. ),
  6020. ),
  6021. 'ObjectResults' => array(
  6022. 'type' => 'array',
  6023. 'location' => 'xml',
  6024. 'items' => array(
  6025. 'type' => 'object',
  6026. 'location' => 'xml',
  6027. 'properties' => array(
  6028. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  6029. 'Location' => array(
  6030. 'type' => 'object',
  6031. 'location' => 'xml',
  6032. 'properties' => array(
  6033. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  6034. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  6035. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  6036. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  6037. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  6038. ),
  6039. ),
  6040. ),
  6041. ),
  6042. ),
  6043. 'LibResults' => array(
  6044. 'type' => 'array',
  6045. 'location' => 'xml',
  6046. 'items' => array(
  6047. 'type' => 'object',
  6048. 'location' => 'xml',
  6049. 'properties' => array(
  6050. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  6051. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6052. ),
  6053. ),
  6054. ),
  6055. ),
  6056. ),
  6057. 'TerrorismInfo' => array(
  6058. 'type' => 'object',
  6059. 'location' => 'xml',
  6060. 'properties' => array(
  6061. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  6062. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  6063. 'Category' => array('type' => 'string', 'location' => 'xml',),
  6064. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  6065. 'OcrResults' => array(
  6066. 'type' => 'array',
  6067. 'location' => 'xml',
  6068. 'items' => array(
  6069. 'type' => 'object',
  6070. 'location' => 'xml',
  6071. 'properties' => array(
  6072. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  6073. 'Keywords' => array(
  6074. 'type' => 'array',
  6075. 'location' => 'xml',
  6076. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6077. ),
  6078. 'Location' => array(
  6079. 'type' => 'object',
  6080. 'location' => 'xml',
  6081. 'properties' => array(
  6082. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  6083. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  6084. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  6085. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  6086. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  6087. ),
  6088. ),
  6089. ),
  6090. ),
  6091. ),
  6092. 'ObjectResults' => array(
  6093. 'type' => 'array',
  6094. 'location' => 'xml',
  6095. 'items' => array(
  6096. 'type' => 'object',
  6097. 'location' => 'xml',
  6098. 'properties' => array(
  6099. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  6100. 'Location' => array(
  6101. 'type' => 'object',
  6102. 'location' => 'xml',
  6103. 'properties' => array(
  6104. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  6105. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  6106. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  6107. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  6108. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  6109. ),
  6110. ),
  6111. ),
  6112. ),
  6113. ),
  6114. 'LibResults' => array(
  6115. 'type' => 'array',
  6116. 'location' => 'xml',
  6117. 'items' => array(
  6118. 'type' => 'object',
  6119. 'location' => 'xml',
  6120. 'properties' => array(
  6121. 'ImageId' => array( 'type' => 'string', 'location' => 'xml',),
  6122. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  6123. ),
  6124. ),
  6125. ),
  6126. ),
  6127. ),
  6128. ),
  6129. ),
  6130. ),
  6131. ),
  6132. ),
  6133. 'TextResults' => array(
  6134. 'type' => 'object',
  6135. 'location' => 'xml',
  6136. 'properties' => array(
  6137. 'Results' => array(
  6138. 'type' => 'array',
  6139. 'location' => 'xml',
  6140. 'items' => array(
  6141. 'type' => 'object',
  6142. 'location' => 'xml',
  6143. 'properties' => array(
  6144. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  6145. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  6146. 'Suggestion' => array( 'type' => 'integer', 'location' => 'xml',),
  6147. 'PornInfo' => array(
  6148. 'type' => 'object',
  6149. 'location' => 'xml',
  6150. 'properties' => array(
  6151. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  6152. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  6153. 'Keywords' => array('type' => 'string', 'location' => 'xml',),
  6154. 'LibResults' => array(
  6155. 'type' => 'array',
  6156. 'location' => 'xml',
  6157. 'items' => array(
  6158. 'type' => 'object',
  6159. 'location' => 'xml',
  6160. 'properties' => array(
  6161. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6162. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6163. 'Keywords' => array(
  6164. 'type' => 'array',
  6165. 'location' => 'xml',
  6166. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6167. ),
  6168. ),
  6169. ),
  6170. ),
  6171. ),
  6172. ),
  6173. 'AdsInfo' => array(
  6174. 'type' => 'object',
  6175. 'location' => 'xml',
  6176. 'properties' => array(
  6177. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  6178. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  6179. 'Keywords' => array('type' => 'string', 'location' => 'xml',),
  6180. 'LibResults' => array(
  6181. 'type' => 'array',
  6182. 'location' => 'xml',
  6183. 'items' => array(
  6184. 'type' => 'object',
  6185. 'location' => 'xml',
  6186. 'properties' => array(
  6187. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6188. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6189. 'Keywords' => array(
  6190. 'type' => 'array',
  6191. 'location' => 'xml',
  6192. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6193. ),
  6194. ),
  6195. ),
  6196. ),
  6197. ),
  6198. ),
  6199. 'PoliticsInfo' => array(
  6200. 'type' => 'object',
  6201. 'location' => 'xml',
  6202. 'properties' => array(
  6203. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  6204. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  6205. 'Keywords' => array('type' => 'string', 'location' => 'xml',),
  6206. 'LibResults' => array(
  6207. 'type' => 'array',
  6208. 'location' => 'xml',
  6209. 'items' => array(
  6210. 'type' => 'object',
  6211. 'location' => 'xml',
  6212. 'properties' => array(
  6213. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6214. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6215. 'Keywords' => array(
  6216. 'type' => 'array',
  6217. 'location' => 'xml',
  6218. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6219. ),
  6220. ),
  6221. ),
  6222. ),
  6223. ),
  6224. ),
  6225. 'TerrorismInfo' => array(
  6226. 'type' => 'object',
  6227. 'location' => 'xml',
  6228. 'properties' => array(
  6229. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  6230. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  6231. 'Keywords' => array('type' => 'string', 'location' => 'xml',),
  6232. 'LibResults' => array(
  6233. 'type' => 'array',
  6234. 'location' => 'xml',
  6235. 'items' => array(
  6236. 'type' => 'object',
  6237. 'location' => 'xml',
  6238. 'properties' => array(
  6239. 'LibType' => array( 'type' => 'integer', 'location' => 'xml',),
  6240. 'LibName' => array( 'type' => 'string', 'location' => 'xml',),
  6241. 'Keywords' => array(
  6242. 'type' => 'array',
  6243. 'location' => 'xml',
  6244. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  6245. ),
  6246. ),
  6247. ),
  6248. ),
  6249. ),
  6250. ),
  6251. ),
  6252. ),
  6253. ),
  6254. ),
  6255. ),
  6256. 'UserInfo' => array(
  6257. 'type' => 'object',
  6258. 'location' => 'xml',
  6259. 'properties' => array(
  6260. 'TokenId' => array( 'type' => 'string', 'location' => 'xml',),
  6261. 'Nickname' => array( 'type' => 'string', 'location' => 'xml',),
  6262. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml',),
  6263. 'AppId' => array( 'type' => 'string', 'location' => 'xml',),
  6264. 'Room' => array( 'type' => 'string', 'location' => 'xml',),
  6265. 'IP' => array( 'type' => 'string', 'location' => 'xml',),
  6266. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  6267. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml',),
  6268. 'Gender' => array( 'type' => 'string', 'location' => 'xml',),
  6269. 'Level' => array( 'type' => 'string', 'location' => 'xml',),
  6270. 'Role' => array( 'type' => 'string', 'location' => 'xml',),
  6271. ),
  6272. ),
  6273. 'ListInfo' => array(
  6274. 'type' => 'object',
  6275. 'location' => 'xml',
  6276. 'properties' => array(
  6277. 'ListResults' => array(
  6278. 'type' => 'array',
  6279. 'location' => 'xml',
  6280. 'items' => array(
  6281. 'type' => 'object',
  6282. 'location' => 'xml',
  6283. 'properties' => array(
  6284. 'ListType' => array( 'type' => 'integer', 'location' => 'xml',),
  6285. 'ListName' => array( 'type' => 'string', 'location' => 'xml',),
  6286. 'Entity' => array( 'type' => 'string', 'location' => 'xml',),
  6287. ),
  6288. ),
  6289. ),
  6290. ),
  6291. ),
  6292. ),
  6293. ),
  6294. ),
  6295. );
  6296. }
  6297. public static function DescribeMediaBuckets() {
  6298. return array(
  6299. 'httpMethod' => 'GET',
  6300. 'uri' => '/mediabucket',
  6301. 'class' => 'Qcloud\\Cos\\Command',
  6302. 'responseClass' => 'DescribeMediaBucketsOutput',
  6303. 'responseType' => 'model',
  6304. 'parameters' => array(
  6305. 'Regions' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'regions' ),
  6306. 'BucketNames' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketNames' ),
  6307. 'BucketName' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketName' ),
  6308. 'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ),
  6309. 'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ),
  6310. ),
  6311. );
  6312. }
  6313. public static function DescribeMediaBucketsOutput() {
  6314. return array(
  6315. 'type' => 'object',
  6316. 'additionalProperties' => true,
  6317. 'properties' => array(
  6318. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  6319. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  6320. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  6321. 'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ),
  6322. 'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ),
  6323. 'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ),
  6324. 'MediaBucketList' => array(
  6325. 'type' => 'array',
  6326. 'location' => 'xml',
  6327. 'items' => array(
  6328. 'type' => 'object',
  6329. 'location' => 'xml',
  6330. 'properties' => array(
  6331. 'BucketId' => array( 'type' => 'string', 'location' => 'xml',),
  6332. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  6333. 'Region' => array( 'type' => 'string', 'location' => 'xml',),
  6334. 'CreateTime' => array( 'type' => 'string', 'location' => 'xml',),
  6335. ),
  6336. ),
  6337. ),
  6338. ),
  6339. );
  6340. }
  6341. public static function GetPrivateM3U8() {
  6342. return array(
  6343. 'httpMethod' => 'GET',
  6344. 'uri' => '/{Bucket}{/Key*}',
  6345. 'class' => 'Qcloud\\Cos\\Command',
  6346. 'responseClass' => 'GetPrivateM3U8Output',
  6347. 'responseType' => 'model',
  6348. 'parameters' => array(
  6349. 'Bucket' => array(
  6350. 'required' => true,
  6351. 'type' => 'string',
  6352. 'location' => 'uri',
  6353. ),
  6354. 'Key' => array(
  6355. 'required' => true,
  6356. 'type' => 'string',
  6357. 'location' => 'uri',
  6358. ),
  6359. 'ci-process' => array(
  6360. 'required' => true,
  6361. 'type' => 'string',
  6362. 'location' => 'query'
  6363. ),
  6364. 'expires' => array(
  6365. 'required' => true,
  6366. 'type' => 'string',
  6367. 'location' => 'query'
  6368. )
  6369. ),
  6370. );
  6371. }
  6372. public static function GetPrivateM3U8Output() {
  6373. return array(
  6374. 'type' => 'object',
  6375. 'additionalProperties' => true,
  6376. 'properties' => array(
  6377. 'Body' => array(
  6378. 'type' => 'string',
  6379. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6380. 'location' => 'body',
  6381. ),
  6382. 'RequestId' => array(
  6383. 'type' => 'string',
  6384. 'location' => 'header',
  6385. 'sentAs' => 'x-cos-request-id',
  6386. ),
  6387. 'ContentType' => array(
  6388. 'type' => 'string',
  6389. 'location' => 'header',
  6390. 'sentAs' => 'Content-Type',
  6391. ),
  6392. 'ContentLength' => array(
  6393. 'type' => 'numeric',
  6394. 'minimum'=> 0,
  6395. 'location' => 'header',
  6396. 'sentAs' => 'Content-Length',
  6397. ),
  6398. ),
  6399. );
  6400. }
  6401. public static function DescribeMediaQueues() {
  6402. return array(
  6403. 'httpMethod' => 'GET',
  6404. 'uri' => '/{Bucket}queue',
  6405. 'class' => 'Qcloud\\Cos\\Command',
  6406. 'responseClass' => 'DescribeMediaQueuesOutput',
  6407. 'responseType' => 'model',
  6408. 'parameters' => array(
  6409. 'Bucket' => array(
  6410. 'required' => true,
  6411. 'type' => 'string',
  6412. 'location' => 'uri',
  6413. ),
  6414. 'QueueIds' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'queueIds' ),
  6415. 'State' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'state' ),
  6416. 'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ),
  6417. 'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ),
  6418. ),
  6419. );
  6420. }
  6421. public static function DescribeMediaQueuesOutput() {
  6422. return array(
  6423. 'type' => 'object',
  6424. 'additionalProperties' => true,
  6425. 'properties' => array(
  6426. 'RequestId' => array(
  6427. 'type' => 'string',
  6428. 'location' => 'header',
  6429. 'sentAs' => 'x-ci-request-id',
  6430. ),
  6431. 'ContentType' => array(
  6432. 'type' => 'string',
  6433. 'location' => 'header',
  6434. 'sentAs' => 'Content-Type',
  6435. ),
  6436. 'ContentLength' => array(
  6437. 'type' => 'numeric',
  6438. 'minimum'=> 0,
  6439. 'location' => 'header',
  6440. 'sentAs' => 'Content-Length',
  6441. ),
  6442. 'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ),
  6443. 'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ),
  6444. 'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ),
  6445. 'QueueList' => array(
  6446. 'type' => 'array', 'location' => 'xml',
  6447. 'items' => array(
  6448. 'type' => 'object', 'location' => 'xml',
  6449. 'properties' => array(
  6450. 'QueueId' => array( 'type' => 'string', 'location' => 'xml',),
  6451. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  6452. 'State' => array( 'type' => 'string', 'location' => 'xml',),
  6453. 'MaxSize' => array( 'type' => 'integer', 'location' => 'xml',),
  6454. 'MaxConcurrent' => array( 'type' => 'integer', 'location' => 'xml',),
  6455. 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml',),
  6456. 'CreateTime' => array( 'type' => 'string', 'location' => 'xml',),
  6457. 'NotifyConfig' => array(
  6458. 'type' => 'object', 'location' => 'xml',
  6459. 'properties' => array(
  6460. 'Url' => array( 'type' => 'string', 'location' => 'xml',),
  6461. 'State' => array( 'type' => 'string', 'location' => 'xml',),
  6462. 'Type' => array( 'type' => 'string', 'location' => 'xml',),
  6463. 'Event' => array( 'type' => 'string', 'location' => 'xml',),
  6464. ),
  6465. ),
  6466. ),
  6467. ),
  6468. ),
  6469. 'NonExistPIDs' => array(
  6470. 'type' => 'array', 'location' => 'xml',
  6471. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  6472. ),
  6473. ),
  6474. );
  6475. }
  6476. public static function UpdateMediaQueue() {
  6477. return array(
  6478. 'httpMethod' => 'PUT',
  6479. 'uri' => '/{Bucket}queue/{/Key*}',
  6480. 'class' => 'Qcloud\\Cos\\Command',
  6481. 'responseClass' => 'UpdateMediaQueueOutput',
  6482. 'responseType' => 'model',
  6483. 'data' => array(
  6484. 'xmlRoot' => array(
  6485. 'name' => 'Request',
  6486. ),
  6487. ),
  6488. 'parameters' => array(
  6489. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  6490. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  6491. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6492. 'QueueID' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6493. 'State' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6494. 'NotifyConfig' => array(
  6495. 'required' => true,
  6496. 'type' => 'object',
  6497. 'location' => 'xml',
  6498. 'properties' => array(
  6499. 'Url' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
  6500. 'Type' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
  6501. 'Event' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
  6502. 'State' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ),
  6503. ),
  6504. ),
  6505. ),
  6506. );
  6507. }
  6508. public static function UpdateMediaQueueOutput() {
  6509. return array(
  6510. 'type' => 'object',
  6511. 'additionalProperties' => true,
  6512. 'properties' => array(
  6513. 'Body' => array(
  6514. 'type' => 'string',
  6515. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6516. 'location' => 'body',
  6517. ),
  6518. 'RequestId' => array(
  6519. 'type' => 'string',
  6520. 'location' => 'header',
  6521. 'sentAs' => 'x-ci-request-id',
  6522. ),
  6523. 'ContentType' => array(
  6524. 'type' => 'string',
  6525. 'location' => 'header',
  6526. 'sentAs' => 'Content-Type',
  6527. ),
  6528. 'ContentLength' => array(
  6529. 'type' => 'numeric',
  6530. 'minimum'=> 0,
  6531. 'location' => 'header',
  6532. 'sentAs' => 'Content-Length',
  6533. ),
  6534. ),
  6535. );
  6536. }
  6537. public static function CreateMediaSmartCoverJobs() {
  6538. return array(
  6539. 'httpMethod' => 'POST',
  6540. 'uri' => '/{Bucket}jobs',
  6541. 'class' => 'Qcloud\\Cos\\Command',
  6542. 'responseClass' => 'CreateMediaSmartCoverJobsOutput',
  6543. 'responseType' => 'model',
  6544. 'data' => array(
  6545. 'xmlRoot' => array(
  6546. 'name' => 'Request',
  6547. ),
  6548. ),
  6549. 'parameters' => array(
  6550. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  6551. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6552. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6553. 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
  6554. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  6555. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  6556. 'Input' => array(
  6557. 'required' => true,
  6558. 'type' => 'object',
  6559. 'location' => 'xml',
  6560. 'properties' => array(
  6561. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  6562. ),
  6563. ),
  6564. 'Operation' => array(
  6565. 'required' => true,
  6566. 'type' => 'object',
  6567. 'location' => 'xml',
  6568. 'properties' => array(
  6569. 'TemplateId' => array( 'location' => 'xml', 'type' => 'string', ),
  6570. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  6571. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  6572. 'SmartCover' => array(
  6573. 'type' => 'object',
  6574. 'location' => 'xml',
  6575. 'properties' => array(
  6576. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  6577. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  6578. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  6579. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  6580. 'DeleteDuplicates' => array( 'type' => 'string', 'location' => 'xml', ),
  6581. ),
  6582. ),
  6583. 'Output' => array(
  6584. 'required' => true,
  6585. 'type' => 'object',
  6586. 'location' => 'xml',
  6587. 'properties' => array(
  6588. 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  6589. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  6590. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  6591. ),
  6592. ),
  6593. ),
  6594. ),
  6595. 'CallBackMqConfig' => array(
  6596. 'type' => 'object',
  6597. 'location' => 'xml',
  6598. 'properties' => array(
  6599. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  6600. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  6601. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  6602. ),
  6603. ),
  6604. ),
  6605. );
  6606. }
  6607. public static function CreateMediaSmartCoverJobsOutput() {
  6608. return array(
  6609. 'type' => 'object',
  6610. 'additionalProperties' => true,
  6611. 'properties' => array(
  6612. 'Body' => array(
  6613. 'type' => 'string',
  6614. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6615. 'location' => 'body',
  6616. ),
  6617. 'RequestId' => array(
  6618. 'type' => 'string',
  6619. 'location' => 'header',
  6620. 'sentAs' => 'x-ci-request-id',
  6621. ),
  6622. 'ContentType' => array(
  6623. 'type' => 'string',
  6624. 'location' => 'header',
  6625. 'sentAs' => 'Content-Type',
  6626. ),
  6627. 'ContentLength' => array(
  6628. 'type' => 'numeric',
  6629. 'minimum'=> 0,
  6630. 'location' => 'header',
  6631. 'sentAs' => 'Content-Length',
  6632. ),
  6633. ),
  6634. );
  6635. }
  6636. public static function CreateMediaVideoProcessJobs() {
  6637. return array(
  6638. 'httpMethod' => 'POST',
  6639. 'uri' => '/{Bucket}jobs',
  6640. 'class' => 'Qcloud\\Cos\\Command',
  6641. 'responseClass' => 'CreateMediaVideoProcessJobsOutput',
  6642. 'responseType' => 'model',
  6643. 'data' => array(
  6644. 'xmlRoot' => array(
  6645. 'name' => 'Request',
  6646. ),
  6647. ),
  6648. 'parameters' => array(
  6649. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  6650. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6651. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6652. 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
  6653. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  6654. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  6655. 'Input' => array(
  6656. 'required' => true,
  6657. 'type' => 'object',
  6658. 'location' => 'xml',
  6659. 'properties' => array(
  6660. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  6661. ),
  6662. ),
  6663. 'Operation' => array(
  6664. 'required' => true,
  6665. 'type' => 'object',
  6666. 'location' => 'xml',
  6667. 'properties' => array(
  6668. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  6669. 'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  6670. 'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  6671. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  6672. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  6673. 'VideoProcess' => array(
  6674. 'type' => 'object',
  6675. 'location' => 'xml',
  6676. 'properties' => array(
  6677. 'ColorEnhance' => array(
  6678. 'type' => 'object',
  6679. 'location' => 'xml',
  6680. 'properties' => array(
  6681. 'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
  6682. 'Contrast' => array( 'type' => 'string', 'location' => 'xml', ),
  6683. 'Correction' => array( 'type' => 'string', 'location' => 'xml', ),
  6684. 'Saturation' => array( 'type' => 'string', 'location' => 'xml', ),
  6685. ),
  6686. ),
  6687. 'MsSharpen' => array(
  6688. 'type' => 'object',
  6689. 'location' => 'xml',
  6690. 'properties' => array(
  6691. 'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
  6692. 'SharpenLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  6693. ),
  6694. ),
  6695. ),
  6696. ),
  6697. 'Transcode' => array(
  6698. 'type' => 'object',
  6699. 'location' => 'xml',
  6700. 'properties' => array(
  6701. 'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
  6702. 'Name' => array( 'type' => 'string', 'location' => 'xml', ),
  6703. 'Container' => array(
  6704. 'type' => 'object',
  6705. 'location' => 'xml',
  6706. 'properties' => array(
  6707. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  6708. ),
  6709. ),
  6710. 'Video' => array(
  6711. 'type' => 'object',
  6712. 'location' => 'xml',
  6713. 'properties' => array(
  6714. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  6715. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  6716. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  6717. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  6718. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  6719. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  6720. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  6721. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  6722. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  6723. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  6724. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  6725. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  6726. 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
  6727. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  6728. 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
  6729. ),
  6730. ),
  6731. 'TimeInterval' => array(
  6732. 'type' => 'object',
  6733. 'location' => 'xml',
  6734. 'properties' => array(
  6735. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  6736. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  6737. ),
  6738. ),
  6739. 'Audio' => array(
  6740. 'type' => 'object',
  6741. 'location' => 'xml',
  6742. 'properties' => array(
  6743. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  6744. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  6745. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  6746. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  6747. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  6748. 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
  6749. 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
  6750. 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
  6751. ),
  6752. ),
  6753. 'TransConfig' => array(
  6754. 'type' => 'object',
  6755. 'location' => 'xml',
  6756. 'properties' => array(
  6757. 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  6758. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  6759. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  6760. 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  6761. 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  6762. 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  6763. 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  6764. 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
  6765. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  6766. 'HlsEncrypt' => array(
  6767. 'type' => 'object',
  6768. 'location' => 'xml',
  6769. 'properties' => array(
  6770. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  6771. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  6772. ),
  6773. ),
  6774. ),
  6775. ),
  6776. ),
  6777. ),
  6778. 'Watermark' => array(
  6779. 'type' => 'object',
  6780. 'location' => 'xml',
  6781. 'properties' => array(
  6782. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  6783. 'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
  6784. 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
  6785. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  6786. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  6787. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  6788. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  6789. 'Image' => array(
  6790. 'type' => 'object',
  6791. 'location' => 'xml',
  6792. 'properties' => array(
  6793. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  6794. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  6795. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  6796. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  6797. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  6798. 'Background' => array( 'type' => 'string', 'location' => 'xml', ),
  6799. ),
  6800. ),
  6801. 'Text' => array(
  6802. 'type' => 'object',
  6803. 'location' => 'xml',
  6804. 'properties' => array(
  6805. 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
  6806. 'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
  6807. 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
  6808. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  6809. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  6810. ),
  6811. ),
  6812. ),
  6813. ),
  6814. 'DigitalWatermark' => array(
  6815. 'type' => 'object',
  6816. 'location' => 'xml',
  6817. 'properties' => array(
  6818. 'Message' => array( 'type' => 'string', 'location' => 'xml', ),
  6819. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  6820. 'Version' => array( 'type' => 'string', 'location' => 'xml', ),
  6821. 'IgnoreError' => array( 'type' => 'string', 'location' => 'xml', ),
  6822. ),
  6823. ),
  6824. 'Output' => array(
  6825. 'type' => 'object',
  6826. 'location' => 'xml',
  6827. 'properties' => array(
  6828. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  6829. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  6830. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  6831. ),
  6832. ),
  6833. ),
  6834. ),
  6835. 'CallBackMqConfig' => array(
  6836. 'type' => 'object',
  6837. 'location' => 'xml',
  6838. 'properties' => array(
  6839. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  6840. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  6841. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  6842. ),
  6843. ),
  6844. ),
  6845. );
  6846. }
  6847. public static function CreateMediaVideoProcessJobsOutput() {
  6848. return array(
  6849. 'type' => 'object',
  6850. 'additionalProperties' => true,
  6851. 'properties' => array(
  6852. 'Body' => array(
  6853. 'type' => 'string',
  6854. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  6855. 'location' => 'body',
  6856. ),
  6857. 'RequestId' => array(
  6858. 'type' => 'string',
  6859. 'location' => 'header',
  6860. 'sentAs' => 'x-ci-request-id',
  6861. ),
  6862. 'ContentType' => array(
  6863. 'type' => 'string',
  6864. 'location' => 'header',
  6865. 'sentAs' => 'Content-Type',
  6866. ),
  6867. 'ContentLength' => array(
  6868. 'type' => 'numeric',
  6869. 'minimum'=> 0,
  6870. 'location' => 'header',
  6871. 'sentAs' => 'Content-Length',
  6872. ),
  6873. ),
  6874. );
  6875. }
  6876. public static function CreateMediaVideoMontageJobs() {
  6877. return array(
  6878. 'httpMethod' => 'POST',
  6879. 'uri' => '/{Bucket}jobs',
  6880. 'class' => 'Qcloud\\Cos\\Command',
  6881. 'responseClass' => 'CreateMediaVideoMontageJobsOutput',
  6882. 'responseType' => 'model',
  6883. 'data' => array(
  6884. 'xmlRoot' => array(
  6885. 'name' => 'Request',
  6886. ),
  6887. ),
  6888. 'parameters' => array(
  6889. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  6890. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6891. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  6892. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  6893. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  6894. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  6895. 'Input' => array(
  6896. 'required' => true,
  6897. 'type' => 'object',
  6898. 'location' => 'xml',
  6899. 'properties' => array(
  6900. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  6901. ),
  6902. ),
  6903. 'Operation' => array(
  6904. 'required' => true,
  6905. 'type' => 'object',
  6906. 'location' => 'xml',
  6907. 'properties' => array(
  6908. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  6909. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  6910. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  6911. 'VideoMontage' => array(
  6912. 'type' => 'object',
  6913. 'location' => 'xml',
  6914. 'properties' => array(
  6915. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  6916. 'Container' => array(
  6917. 'type' => 'object',
  6918. 'location' => 'xml',
  6919. 'properties' => array(
  6920. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  6921. ),
  6922. ),
  6923. 'Video' => array(
  6924. 'type' => 'object',
  6925. 'location' => 'xml',
  6926. 'properties' => array(
  6927. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  6928. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  6929. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  6930. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  6931. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  6932. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  6933. 'Rotate' => array( 'type' => 'string', 'location' => 'xml', ),
  6934. ),
  6935. ),
  6936. 'Audio' => array(
  6937. 'type' => 'object',
  6938. 'location' => 'xml',
  6939. 'properties' => array(
  6940. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  6941. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  6942. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  6943. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  6944. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  6945. ),
  6946. ),
  6947. 'AudioMix' => array(
  6948. 'type' => 'array',
  6949. 'location' => 'xml',
  6950. 'items' => array(
  6951. 'type' => 'object',
  6952. 'location' => 'xml',
  6953. 'properties' => array(
  6954. 'AudioSource' => array( 'type' => 'string', 'location' => 'xml', ),
  6955. 'MixMode' => array( 'type' => 'string', 'location' => 'xml', ),
  6956. 'Replace' => array( 'type' => 'string', 'location' => 'xml', ),
  6957. 'EffectConfig' => array(
  6958. 'type' => 'object',
  6959. 'location' => 'xml',
  6960. 'properties' => array(
  6961. 'EnableStartFadein' => array( 'type' => 'string', 'location' => 'xml', ),
  6962. 'StartFadeinTime' => array( 'type' => 'string', 'location' => 'xml', ),
  6963. 'EnableEndFadeout' => array( 'type' => 'string', 'location' => 'xml', ),
  6964. 'EndFadeoutTime' => array( 'type' => 'string', 'location' => 'xml', ),
  6965. 'EnableBgmFade' => array( 'type' => 'string', 'location' => 'xml', ),
  6966. 'BgmFadeTime' => array( 'type' => 'string', 'location' => 'xml', ),
  6967. ),
  6968. ),
  6969. ),
  6970. ),
  6971. ),
  6972. ),
  6973. ),
  6974. 'Output' => array(
  6975. 'type' => 'object',
  6976. 'location' => 'xml',
  6977. 'properties' => array(
  6978. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  6979. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  6980. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  6981. ),
  6982. ),
  6983. ),
  6984. ),
  6985. 'CallBackMqConfig' => array(
  6986. 'type' => 'object',
  6987. 'location' => 'xml',
  6988. 'properties' => array(
  6989. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  6990. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  6991. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  6992. ),
  6993. ),
  6994. ),
  6995. );
  6996. }
  6997. public static function CreateMediaVideoMontageJobsOutput() {
  6998. return array(
  6999. 'type' => 'object',
  7000. 'additionalProperties' => true,
  7001. 'properties' => array(
  7002. 'Body' => array(
  7003. 'type' => 'string',
  7004. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  7005. 'location' => 'body',
  7006. ),
  7007. 'RequestId' => array(
  7008. 'type' => 'string',
  7009. 'location' => 'header',
  7010. 'sentAs' => 'x-ci-request-id',
  7011. ),
  7012. 'ContentType' => array(
  7013. 'type' => 'string',
  7014. 'location' => 'header',
  7015. 'sentAs' => 'Content-Type',
  7016. ),
  7017. 'ContentLength' => array(
  7018. 'type' => 'numeric',
  7019. 'minimum'=> 0,
  7020. 'location' => 'header',
  7021. 'sentAs' => 'Content-Length',
  7022. ),
  7023. ),
  7024. );
  7025. }
  7026. public static function CreateMediaAnimationJobs() {
  7027. return array(
  7028. 'httpMethod' => 'POST',
  7029. 'uri' => '/{Bucket}jobs',
  7030. 'class' => 'Qcloud\\Cos\\Command',
  7031. 'responseClass' => 'CreateMediaAnimationJobsOutput',
  7032. 'responseType' => 'model',
  7033. 'data' => array(
  7034. 'xmlRoot' => array(
  7035. 'name' => 'Request',
  7036. ),
  7037. ),
  7038. 'parameters' => array(
  7039. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  7040. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7041. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7042. 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ),
  7043. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  7044. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  7045. 'Input' => array(
  7046. 'required' => true,
  7047. 'type' => 'object',
  7048. 'location' => 'xml',
  7049. 'properties' => array(
  7050. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7051. ),
  7052. ),
  7053. 'Operation' => array(
  7054. 'required' => true,
  7055. 'type' => 'object',
  7056. 'location' => 'xml',
  7057. 'properties' => array(
  7058. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  7059. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  7060. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  7061. 'Animation' => array(
  7062. 'type' => 'object',
  7063. 'location' => 'xml',
  7064. 'properties' => array(
  7065. 'Container' => array(
  7066. 'type' => 'object',
  7067. 'location' => 'xml',
  7068. 'properties' => array(
  7069. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  7070. ),
  7071. ),
  7072. 'Video' => array(
  7073. 'type' => 'object',
  7074. 'location' => 'xml',
  7075. 'properties' => array(
  7076. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  7077. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  7078. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  7079. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  7080. 'AnimateOnlyKeepKeyFrame' => array( 'type' => 'string', 'location' => 'xml', ),
  7081. 'AnimateTimeIntervalOfFrame' => array( 'type' => 'string', 'location' => 'xml', ),
  7082. 'AnimateFramesPerSecond' => array( 'type' => 'string', 'location' => 'xml', ),
  7083. 'Quality' => array( 'type' => 'string', 'location' => 'xml', ),
  7084. ),
  7085. ),
  7086. 'TimeInterval' => array(
  7087. 'type' => 'object',
  7088. 'location' => 'xml',
  7089. 'properties' => array(
  7090. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  7091. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  7092. ),
  7093. ),
  7094. ),
  7095. ),
  7096. 'Output' => array(
  7097. 'type' => 'object',
  7098. 'location' => 'xml',
  7099. 'properties' => array(
  7100. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  7101. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  7102. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  7103. ),
  7104. ),
  7105. ),
  7106. ),
  7107. 'CallBackMqConfig' => array(
  7108. 'type' => 'object',
  7109. 'location' => 'xml',
  7110. 'properties' => array(
  7111. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  7112. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7113. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  7114. ),
  7115. ),
  7116. ),
  7117. );
  7118. }
  7119. public static function CreateMediaAnimationJobsOutput() {
  7120. return array(
  7121. 'type' => 'object',
  7122. 'additionalProperties' => true,
  7123. 'properties' => array(
  7124. 'Body' => array(
  7125. 'type' => 'string',
  7126. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  7127. 'location' => 'body',
  7128. ),
  7129. 'RequestId' => array(
  7130. 'type' => 'string',
  7131. 'location' => 'header',
  7132. 'sentAs' => 'x-ci-request-id',
  7133. ),
  7134. 'ContentType' => array(
  7135. 'type' => 'string',
  7136. 'location' => 'header',
  7137. 'sentAs' => 'Content-Type',
  7138. ),
  7139. 'ContentLength' => array(
  7140. 'type' => 'numeric',
  7141. 'minimum'=> 0,
  7142. 'location' => 'header',
  7143. 'sentAs' => 'Content-Length',
  7144. ),
  7145. ),
  7146. );
  7147. }
  7148. public static function CreateMediaPicProcessJobs() {
  7149. return array(
  7150. 'httpMethod' => 'POST',
  7151. 'uri' => '/{Bucket}pic_jobs',
  7152. 'class' => 'Qcloud\\Cos\\Command',
  7153. 'responseClass' => 'CreateMediaPicProcessJobsOutput',
  7154. 'responseType' => 'model',
  7155. 'data' => array(
  7156. 'xmlRoot' => array(
  7157. 'name' => 'Request',
  7158. ),
  7159. ),
  7160. 'parameters' => array(
  7161. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  7162. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7163. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7164. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  7165. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  7166. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  7167. 'Input' => array(
  7168. 'required' => true,
  7169. 'type' => 'object',
  7170. 'location' => 'xml',
  7171. 'properties' => array(
  7172. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7173. ),
  7174. ),
  7175. 'Operation' => array(
  7176. 'required' => true,
  7177. 'type' => 'object',
  7178. 'location' => 'xml',
  7179. 'properties' => array(
  7180. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  7181. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  7182. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  7183. 'PicProcess' => array(
  7184. 'type' => 'object',
  7185. 'location' => 'xml',
  7186. 'properties' => array(
  7187. 'IsPicInfo' => array( 'type' => 'string', 'location' => 'xml', ),
  7188. 'ProcessRule' => array( 'type' => 'string', 'location' => 'xml', ),
  7189. ),
  7190. ),
  7191. 'Output' => array(
  7192. 'type' => 'object',
  7193. 'location' => 'xml',
  7194. 'properties' => array(
  7195. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  7196. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  7197. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  7198. ),
  7199. ),
  7200. ),
  7201. ),
  7202. 'CallBackMqConfig' => array(
  7203. 'type' => 'object',
  7204. 'location' => 'xml',
  7205. 'properties' => array(
  7206. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  7207. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7208. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  7209. ),
  7210. ),
  7211. ),
  7212. );
  7213. }
  7214. public static function CreateMediaPicProcessJobsOutput() {
  7215. return array(
  7216. 'type' => 'object',
  7217. 'additionalProperties' => true,
  7218. 'properties' => array(
  7219. 'Body' => array(
  7220. 'type' => 'string',
  7221. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  7222. 'location' => 'body',
  7223. ),
  7224. 'RequestId' => array(
  7225. 'type' => 'string',
  7226. 'location' => 'header',
  7227. 'sentAs' => 'x-ci-request-id',
  7228. ),
  7229. 'ContentType' => array(
  7230. 'type' => 'string',
  7231. 'location' => 'header',
  7232. 'sentAs' => 'Content-Type',
  7233. ),
  7234. 'ContentLength' => array(
  7235. 'type' => 'numeric',
  7236. 'minimum'=> 0,
  7237. 'location' => 'header',
  7238. 'sentAs' => 'Content-Length',
  7239. ),
  7240. ),
  7241. );
  7242. }
  7243. public static function CreateMediaSegmentJobs() {
  7244. return array(
  7245. 'httpMethod' => 'POST',
  7246. 'uri' => '/{Bucket}jobs',
  7247. 'class' => 'Qcloud\\Cos\\Command',
  7248. 'responseClass' => 'CreateMediaSegmentJobsOutput',
  7249. 'responseType' => 'model',
  7250. 'data' => array(
  7251. 'xmlRoot' => array(
  7252. 'name' => 'Request',
  7253. ),
  7254. ),
  7255. 'parameters' => array(
  7256. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  7257. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7258. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7259. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  7260. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  7261. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  7262. 'Input' => array(
  7263. 'required' => true,
  7264. 'type' => 'object',
  7265. 'location' => 'xml',
  7266. 'properties' => array(
  7267. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7268. ),
  7269. ),
  7270. 'Operation' => array(
  7271. 'type' => 'object',
  7272. 'location' => 'xml',
  7273. 'properties' => array(
  7274. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  7275. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  7276. 'Segment' => array(
  7277. 'type' => 'object',
  7278. 'location' => 'xml',
  7279. 'properties' => array(
  7280. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  7281. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  7282. 'HlsEncrypt' => array(
  7283. 'type' => 'object',
  7284. 'location' => 'xml',
  7285. 'properties' => array(
  7286. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  7287. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  7288. ),
  7289. ),
  7290. ),
  7291. ),
  7292. 'Output' => array(
  7293. 'type' => 'object',
  7294. 'location' => 'xml',
  7295. 'properties' => array(
  7296. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  7297. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  7298. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  7299. ),
  7300. ),
  7301. ),
  7302. ),
  7303. 'CallBackMqConfig' => array(
  7304. 'type' => 'object',
  7305. 'location' => 'xml',
  7306. 'properties' => array(
  7307. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  7308. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7309. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  7310. ),
  7311. ),
  7312. ),
  7313. );
  7314. }
  7315. public static function CreateMediaSegmentJobsOutput() {
  7316. return array(
  7317. 'type' => 'object',
  7318. 'additionalProperties' => true,
  7319. 'properties' => array(
  7320. 'Body' => array(
  7321. 'type' => 'string',
  7322. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  7323. 'location' => 'body',
  7324. ),
  7325. 'RequestId' => array(
  7326. 'type' => 'string',
  7327. 'location' => 'header',
  7328. 'sentAs' => 'x-ci-request-id',
  7329. ),
  7330. 'ContentType' => array(
  7331. 'type' => 'string',
  7332. 'location' => 'header',
  7333. 'sentAs' => 'Content-Type',
  7334. ),
  7335. 'ContentLength' => array(
  7336. 'type' => 'numeric',
  7337. 'minimum'=> 0,
  7338. 'location' => 'header',
  7339. 'sentAs' => 'Content-Length',
  7340. ),
  7341. ),
  7342. );
  7343. }
  7344. public static function CreateMediaVideoTagJobs() {
  7345. return array(
  7346. 'httpMethod' => 'POST',
  7347. 'uri' => '/{Bucket}jobs',
  7348. 'class' => 'Qcloud\\Cos\\Command',
  7349. 'responseClass' => 'CreateMediaVideoTagJobsOutput',
  7350. 'responseType' => 'model',
  7351. 'data' => array(
  7352. 'xmlRoot' => array(
  7353. 'name' => 'Request',
  7354. ),
  7355. ),
  7356. 'parameters' => array(
  7357. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  7358. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7359. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7360. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  7361. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  7362. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  7363. 'Input' => array(
  7364. 'required' => true,
  7365. 'type' => 'object',
  7366. 'location' => 'xml',
  7367. 'properties' => array(
  7368. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7369. ),
  7370. ),
  7371. 'Operation' => array(
  7372. 'required' => true,
  7373. 'type' => 'object',
  7374. 'location' => 'xml',
  7375. 'properties' => array(
  7376. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  7377. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  7378. 'VideoTag' => array(
  7379. 'required' => true,
  7380. 'type' => 'object',
  7381. 'location' => 'xml',
  7382. 'properties' => array(
  7383. 'Scenario' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7384. ),
  7385. ),
  7386. ),
  7387. ),
  7388. 'CallBackMqConfig' => array(
  7389. 'type' => 'object',
  7390. 'location' => 'xml',
  7391. 'properties' => array(
  7392. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  7393. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7394. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  7395. ),
  7396. ),
  7397. ),
  7398. );
  7399. }
  7400. public static function CreateMediaVideoTagJobsOutput() {
  7401. return array(
  7402. 'type' => 'object',
  7403. 'additionalProperties' => true,
  7404. 'properties' => array(
  7405. 'Body' => array(
  7406. 'type' => 'string',
  7407. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  7408. 'location' => 'body',
  7409. ),
  7410. 'RequestId' => array(
  7411. 'type' => 'string',
  7412. 'location' => 'header',
  7413. 'sentAs' => 'x-ci-request-id',
  7414. ),
  7415. 'ContentType' => array(
  7416. 'type' => 'string',
  7417. 'location' => 'header',
  7418. 'sentAs' => 'Content-Type',
  7419. ),
  7420. 'ContentLength' => array(
  7421. 'type' => 'numeric',
  7422. 'minimum'=> 0,
  7423. 'location' => 'header',
  7424. 'sentAs' => 'Content-Length',
  7425. ),
  7426. ),
  7427. );
  7428. }
  7429. public static function CreateMediaSuperResolutionJobs() {
  7430. return array(
  7431. 'httpMethod' => 'POST',
  7432. 'uri' => '/{Bucket}jobs',
  7433. 'class' => 'Qcloud\\Cos\\Command',
  7434. 'responseClass' => 'CreateMediaSuperResolutionJobsOutput',
  7435. 'responseType' => 'model',
  7436. 'data' => array(
  7437. 'xmlRoot' => array(
  7438. 'name' => 'Request',
  7439. ),
  7440. ),
  7441. 'parameters' => array(
  7442. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  7443. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7444. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7445. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  7446. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  7447. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  7448. 'Input' => array(
  7449. 'required' => true,
  7450. 'type' => 'object',
  7451. 'location' => 'xml',
  7452. 'properties' => array(
  7453. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7454. ),
  7455. ),
  7456. 'Operation' => array(
  7457. 'required' => true,
  7458. 'type' => 'object',
  7459. 'location' => 'xml',
  7460. 'properties' => array(
  7461. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  7462. 'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  7463. 'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  7464. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  7465. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  7466. 'SuperResolution' => array(
  7467. 'type' => 'object',
  7468. 'location' => 'xml',
  7469. 'properties' => array(
  7470. 'Resolution' => array( 'type' => 'string', 'location' => 'xml', ),
  7471. 'EnableScaleUp' => array( 'type' => 'string', 'location' => 'xml', ),
  7472. ),
  7473. ),
  7474. 'Transcode' => array(
  7475. 'type' => 'object',
  7476. 'location' => 'xml',
  7477. 'properties' => array(
  7478. 'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
  7479. 'Name' => array( 'type' => 'string', 'location' => 'xml', ),
  7480. 'Container' => array(
  7481. 'type' => 'object',
  7482. 'location' => 'xml',
  7483. 'properties' => array(
  7484. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  7485. ),
  7486. ),
  7487. 'Video' => array(
  7488. 'type' => 'object',
  7489. 'location' => 'xml',
  7490. 'properties' => array(
  7491. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  7492. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  7493. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  7494. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  7495. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  7496. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  7497. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7498. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  7499. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  7500. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  7501. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  7502. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7503. 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
  7504. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  7505. 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7506. ),
  7507. ),
  7508. 'TimeInterval' => array(
  7509. 'type' => 'object',
  7510. 'location' => 'xml',
  7511. 'properties' => array(
  7512. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  7513. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  7514. ),
  7515. ),
  7516. 'Audio' => array(
  7517. 'type' => 'object',
  7518. 'location' => 'xml',
  7519. 'properties' => array(
  7520. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  7521. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  7522. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7523. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  7524. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  7525. 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
  7526. 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
  7527. 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
  7528. ),
  7529. ),
  7530. 'TransConfig' => array(
  7531. 'type' => 'object',
  7532. 'location' => 'xml',
  7533. 'properties' => array(
  7534. 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  7535. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  7536. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  7537. 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7538. 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  7539. 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7540. 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  7541. 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
  7542. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  7543. 'HlsEncrypt' => array(
  7544. 'type' => 'object',
  7545. 'location' => 'xml',
  7546. 'properties' => array(
  7547. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  7548. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  7549. ),
  7550. ),
  7551. ),
  7552. ),
  7553. ),
  7554. ),
  7555. 'Watermark' => array(
  7556. 'type' => 'object',
  7557. 'location' => 'xml',
  7558. 'properties' => array(
  7559. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  7560. 'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
  7561. 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7562. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  7563. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  7564. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  7565. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  7566. 'Image' => array(
  7567. 'type' => 'object',
  7568. 'location' => 'xml',
  7569. 'properties' => array(
  7570. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  7571. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  7572. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  7573. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  7574. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  7575. 'Background' => array( 'type' => 'string', 'location' => 'xml', ),
  7576. ),
  7577. ),
  7578. 'Text' => array(
  7579. 'type' => 'object',
  7580. 'location' => 'xml',
  7581. 'properties' => array(
  7582. 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
  7583. 'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
  7584. 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
  7585. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  7586. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  7587. ),
  7588. ),
  7589. ),
  7590. ),
  7591. 'DigitalWatermark' => array(
  7592. 'type' => 'object',
  7593. 'location' => 'xml',
  7594. 'properties' => array(
  7595. 'Message' => array( 'type' => 'string', 'location' => 'xml', ),
  7596. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  7597. 'Version' => array( 'type' => 'string', 'location' => 'xml', ),
  7598. 'IgnoreError' => array( 'type' => 'string', 'location' => 'xml', ),
  7599. ),
  7600. ),
  7601. 'Output' => array(
  7602. 'type' => 'object',
  7603. 'location' => 'xml',
  7604. 'properties' => array(
  7605. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  7606. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  7607. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  7608. ),
  7609. ),
  7610. ),
  7611. ),
  7612. 'CallBackMqConfig' => array(
  7613. 'type' => 'object',
  7614. 'location' => 'xml',
  7615. 'properties' => array(
  7616. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  7617. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7618. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  7619. ),
  7620. ),
  7621. ),
  7622. );
  7623. }
  7624. public static function CreateMediaSuperResolutionJobsOutput() {
  7625. return array(
  7626. 'type' => 'object',
  7627. 'additionalProperties' => true,
  7628. 'properties' => array(
  7629. 'Body' => array(
  7630. 'type' => 'string',
  7631. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  7632. 'location' => 'body',
  7633. ),
  7634. 'RequestId' => array(
  7635. 'type' => 'string',
  7636. 'location' => 'header',
  7637. 'sentAs' => 'x-ci-request-id',
  7638. ),
  7639. 'ContentType' => array(
  7640. 'type' => 'string',
  7641. 'location' => 'header',
  7642. 'sentAs' => 'Content-Type',
  7643. ),
  7644. 'ContentLength' => array(
  7645. 'type' => 'numeric',
  7646. 'minimum'=> 0,
  7647. 'location' => 'header',
  7648. 'sentAs' => 'Content-Length',
  7649. ),
  7650. ),
  7651. );
  7652. }
  7653. public static function CreateMediaSDRtoHDRJobs() {
  7654. return array(
  7655. 'httpMethod' => 'POST',
  7656. 'uri' => '/{Bucket}jobs',
  7657. 'class' => 'Qcloud\\Cos\\Command',
  7658. 'responseClass' => 'CreateMediaSDRtoHDRJobsOutput',
  7659. 'responseType' => 'model',
  7660. 'data' => array(
  7661. 'xmlRoot' => array(
  7662. 'name' => 'Request',
  7663. ),
  7664. ),
  7665. 'parameters' => array(
  7666. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  7667. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7668. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7669. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  7670. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  7671. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  7672. 'Input' => array(
  7673. 'required' => true,
  7674. 'type' => 'object',
  7675. 'location' => 'xml',
  7676. 'properties' => array(
  7677. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7678. ),
  7679. ),
  7680. 'Operation' => array(
  7681. 'required' => true,
  7682. 'type' => 'object',
  7683. 'location' => 'xml',
  7684. 'properties' => array(
  7685. 'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  7686. 'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  7687. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  7688. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  7689. 'SDRtoHDR' => array(
  7690. 'type' => 'object',
  7691. 'location' => 'xml',
  7692. 'properties' => array(
  7693. 'HdrMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7694. ),
  7695. ),
  7696. 'Transcode' => array(
  7697. 'type' => 'object',
  7698. 'location' => 'xml',
  7699. 'properties' => array(
  7700. 'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
  7701. 'Name' => array( 'type' => 'string', 'location' => 'xml', ),
  7702. 'Container' => array(
  7703. 'type' => 'object',
  7704. 'location' => 'xml',
  7705. 'properties' => array(
  7706. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  7707. ),
  7708. ),
  7709. 'Video' => array(
  7710. 'type' => 'object',
  7711. 'location' => 'xml',
  7712. 'properties' => array(
  7713. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  7714. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  7715. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  7716. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  7717. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  7718. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  7719. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7720. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  7721. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  7722. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  7723. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  7724. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7725. 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
  7726. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  7727. 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7728. ),
  7729. ),
  7730. 'TimeInterval' => array(
  7731. 'type' => 'object',
  7732. 'location' => 'xml',
  7733. 'properties' => array(
  7734. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  7735. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  7736. ),
  7737. ),
  7738. 'Audio' => array(
  7739. 'type' => 'object',
  7740. 'location' => 'xml',
  7741. 'properties' => array(
  7742. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  7743. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  7744. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7745. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  7746. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  7747. 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
  7748. 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
  7749. 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
  7750. ),
  7751. ),
  7752. 'TransConfig' => array(
  7753. 'type' => 'object',
  7754. 'location' => 'xml',
  7755. 'properties' => array(
  7756. 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  7757. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  7758. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  7759. 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7760. 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  7761. 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  7762. 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  7763. 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
  7764. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  7765. 'HlsEncrypt' => array(
  7766. 'type' => 'object',
  7767. 'location' => 'xml',
  7768. 'properties' => array(
  7769. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  7770. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  7771. ),
  7772. ),
  7773. ),
  7774. ),
  7775. ),
  7776. ),
  7777. 'Watermark' => array(
  7778. 'type' => 'object',
  7779. 'location' => 'xml',
  7780. 'properties' => array(
  7781. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  7782. 'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
  7783. 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7784. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  7785. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  7786. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  7787. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  7788. 'Image' => array(
  7789. 'type' => 'object',
  7790. 'location' => 'xml',
  7791. 'properties' => array(
  7792. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  7793. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  7794. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  7795. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  7796. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  7797. 'Background' => array( 'type' => 'string', 'location' => 'xml', ),
  7798. ),
  7799. ),
  7800. 'Text' => array(
  7801. 'type' => 'object',
  7802. 'location' => 'xml',
  7803. 'properties' => array(
  7804. 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
  7805. 'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
  7806. 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
  7807. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  7808. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  7809. ),
  7810. ),
  7811. ),
  7812. ),
  7813. 'Output' => array(
  7814. 'type' => 'object',
  7815. 'location' => 'xml',
  7816. 'properties' => array(
  7817. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  7818. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  7819. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  7820. ),
  7821. ),
  7822. ),
  7823. ),
  7824. 'CallBackMqConfig' => array(
  7825. 'type' => 'object',
  7826. 'location' => 'xml',
  7827. 'properties' => array(
  7828. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  7829. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7830. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  7831. ),
  7832. ),
  7833. ),
  7834. );
  7835. }
  7836. public static function CreateMediaSDRtoHDRJobsOutput() {
  7837. return array(
  7838. 'type' => 'object',
  7839. 'additionalProperties' => true,
  7840. 'properties' => array(
  7841. 'Body' => array(
  7842. 'type' => 'string',
  7843. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  7844. 'location' => 'body',
  7845. ),
  7846. 'RequestId' => array(
  7847. 'type' => 'string',
  7848. 'location' => 'header',
  7849. 'sentAs' => 'x-ci-request-id',
  7850. ),
  7851. 'ContentType' => array(
  7852. 'type' => 'string',
  7853. 'location' => 'header',
  7854. 'sentAs' => 'Content-Type',
  7855. ),
  7856. 'ContentLength' => array(
  7857. 'type' => 'numeric',
  7858. 'minimum'=> 0,
  7859. 'location' => 'header',
  7860. 'sentAs' => 'Content-Length',
  7861. ),
  7862. ),
  7863. );
  7864. }
  7865. public static function CreateMediaDigitalWatermarkJobs() {
  7866. return array(
  7867. 'httpMethod' => 'POST',
  7868. 'uri' => '/{Bucket}jobs',
  7869. 'class' => 'Qcloud\\Cos\\Command',
  7870. 'responseClass' => 'CreateMediaDigitalWatermarkJobsOutput',
  7871. 'responseType' => 'model',
  7872. 'data' => array(
  7873. 'xmlRoot' => array(
  7874. 'name' => 'Request',
  7875. ),
  7876. ),
  7877. 'parameters' => array(
  7878. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  7879. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7880. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7881. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  7882. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  7883. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  7884. 'Input' => array(
  7885. 'required' => true,
  7886. 'type' => 'object',
  7887. 'location' => 'xml',
  7888. 'properties' => array(
  7889. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7890. ),
  7891. ),
  7892. 'Operation' => array(
  7893. 'required' => true,
  7894. 'type' => 'object',
  7895. 'location' => 'xml',
  7896. 'properties' => array(
  7897. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  7898. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  7899. 'DigitalWatermark' => array(
  7900. 'type' => 'object',
  7901. 'location' => 'xml',
  7902. 'properties' => array(
  7903. 'Message' => array( 'type' => 'string', 'location' => 'xml', ),
  7904. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  7905. 'Version' => array( 'type' => 'string', 'location' => 'xml', ),
  7906. ),
  7907. ),
  7908. 'Output' => array(
  7909. 'type' => 'object',
  7910. 'location' => 'xml',
  7911. 'properties' => array(
  7912. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  7913. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  7914. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  7915. ),
  7916. ),
  7917. ),
  7918. ),
  7919. 'CallBackMqConfig' => array(
  7920. 'type' => 'object',
  7921. 'location' => 'xml',
  7922. 'properties' => array(
  7923. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  7924. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  7925. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  7926. ),
  7927. ),
  7928. ),
  7929. );
  7930. }
  7931. public static function CreateMediaDigitalWatermarkJobsOutput() {
  7932. return array(
  7933. 'type' => 'object',
  7934. 'additionalProperties' => true,
  7935. 'properties' => array(
  7936. 'Body' => array(
  7937. 'type' => 'string',
  7938. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  7939. 'location' => 'body',
  7940. ),
  7941. 'RequestId' => array(
  7942. 'type' => 'string',
  7943. 'location' => 'header',
  7944. 'sentAs' => 'x-ci-request-id',
  7945. ),
  7946. 'ContentType' => array(
  7947. 'type' => 'string',
  7948. 'location' => 'header',
  7949. 'sentAs' => 'Content-Type',
  7950. ),
  7951. 'ContentLength' => array(
  7952. 'type' => 'numeric',
  7953. 'minimum'=> 0,
  7954. 'location' => 'header',
  7955. 'sentAs' => 'Content-Length',
  7956. ),
  7957. ),
  7958. );
  7959. }
  7960. public static function CreateMediaExtractDigitalWatermarkJobs() {
  7961. return array(
  7962. 'httpMethod' => 'POST',
  7963. 'uri' => '/{Bucket}jobs',
  7964. 'class' => 'Qcloud\\Cos\\Command',
  7965. 'responseClass' => 'CreateMediaExtractDigitalWatermarkJobsOutput',
  7966. 'responseType' => 'model',
  7967. 'data' => array(
  7968. 'xmlRoot' => array(
  7969. 'name' => 'Request',
  7970. ),
  7971. ),
  7972. 'parameters' => array(
  7973. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  7974. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7975. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  7976. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  7977. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  7978. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  7979. 'Input' => array(
  7980. 'required' => true,
  7981. 'type' => 'object',
  7982. 'location' => 'xml',
  7983. 'properties' => array(
  7984. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  7985. ),
  7986. ),
  7987. 'Operation' => array(
  7988. 'required' => true,
  7989. 'type' => 'object',
  7990. 'location' => 'xml',
  7991. 'properties' => array(
  7992. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  7993. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  7994. 'ExtractDigitalWatermark' => array(
  7995. 'type' => 'object',
  7996. 'location' => 'xml',
  7997. 'properties' => array(
  7998. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  7999. 'Version' => array( 'type' => 'string', 'location' => 'xml', ),
  8000. ),
  8001. ),
  8002. ),
  8003. ),
  8004. 'CallBackMqConfig' => array(
  8005. 'type' => 'object',
  8006. 'location' => 'xml',
  8007. 'properties' => array(
  8008. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  8009. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  8010. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  8011. ),
  8012. ),
  8013. ),
  8014. );
  8015. }
  8016. public static function CreateMediaExtractDigitalWatermarkJobsOutput() {
  8017. return array(
  8018. 'type' => 'object',
  8019. 'additionalProperties' => true,
  8020. 'properties' => array(
  8021. 'Body' => array(
  8022. 'type' => 'string',
  8023. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  8024. 'location' => 'body',
  8025. ),
  8026. 'RequestId' => array(
  8027. 'type' => 'string',
  8028. 'location' => 'header',
  8029. 'sentAs' => 'x-ci-request-id',
  8030. ),
  8031. 'ContentType' => array(
  8032. 'type' => 'string',
  8033. 'location' => 'header',
  8034. 'sentAs' => 'Content-Type',
  8035. ),
  8036. 'ContentLength' => array(
  8037. 'type' => 'numeric',
  8038. 'minimum'=> 0,
  8039. 'location' => 'header',
  8040. 'sentAs' => 'Content-Length',
  8041. ),
  8042. ),
  8043. );
  8044. }
  8045. public static function DetectLiveVideo() {
  8046. return array(
  8047. 'httpMethod' => 'POST',
  8048. 'uri' => '/{Bucket}video/auditing',
  8049. 'class' => 'Qcloud\\Cos\\Command',
  8050. 'responseClass' => 'DetectLiveVideoOutput',
  8051. 'responseType' => 'model',
  8052. 'data' => array(
  8053. 'xmlRoot' => array(
  8054. 'name' => 'Request',
  8055. ),
  8056. ),
  8057. 'parameters' => array(
  8058. 'Bucket' => array(
  8059. 'required' => true,
  8060. 'type' => 'string',
  8061. 'location' => 'uri',
  8062. ),
  8063. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  8064. 'Input' => array(
  8065. 'location' => 'xml',
  8066. 'type' => 'object',
  8067. 'properties' => array(
  8068. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  8069. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  8070. 'UserInfo' => array(
  8071. 'location' => 'xml',
  8072. 'type' => 'object',
  8073. 'properties' => array(
  8074. 'TokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  8075. 'Nickname' => array( 'type' => 'string', 'location' => 'xml', ),
  8076. 'DeviceId' => array( 'type' => 'string', 'location' => 'xml', ),
  8077. 'AppId' => array( 'type' => 'string', 'location' => 'xml', ),
  8078. 'Room' => array( 'type' => 'string', 'location' => 'xml', ),
  8079. 'IP' => array( 'type' => 'string', 'location' => 'xml', ),
  8080. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  8081. 'ReceiveTokenId' => array( 'type' => 'string', 'location' => 'xml', ),
  8082. 'Gender' => array( 'type' => 'string', 'location' => 'xml', ),
  8083. 'Level' => array( 'type' => 'string', 'location' => 'xml', ),
  8084. 'Role' => array( 'type' => 'string', 'location' => 'xml', ),
  8085. ),
  8086. ),
  8087. ),
  8088. ),
  8089. 'Conf' => array(
  8090. 'location' => 'xml',
  8091. 'type' => 'object',
  8092. 'properties' => array(
  8093. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  8094. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  8095. 'CallbackType' => array( 'type' => 'integer', 'location' => 'xml', ),
  8096. ),
  8097. ),
  8098. ),
  8099. );
  8100. }
  8101. public static function DetectLiveVideoOutput() {
  8102. return array(
  8103. 'type' => 'object',
  8104. 'additionalProperties' => true,
  8105. 'properties' => array(
  8106. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  8107. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  8108. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  8109. 'JobsDetail' => array(
  8110. 'type' => 'object',
  8111. 'location' => 'xml',
  8112. 'properties' => array(
  8113. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  8114. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  8115. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  8116. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8117. ),
  8118. ),
  8119. ),
  8120. );
  8121. }
  8122. public static function CancelLiveVideoAuditing() {
  8123. return array(
  8124. 'httpMethod' => 'POST',
  8125. 'uri' => '/{Bucket}video/cancel_auditing/{/Key*}',
  8126. 'class' => 'Qcloud\\Cos\\Command',
  8127. 'responseClass' => 'CancelLiveVideoAuditingOutput',
  8128. 'responseType' => 'model',
  8129. 'parameters' => array(
  8130. 'Bucket' => array(
  8131. 'required' => true,
  8132. 'type' => 'string',
  8133. 'location' => 'uri',
  8134. ),
  8135. 'Key' => array(
  8136. 'required' => true,
  8137. 'type' => 'string',
  8138. 'location' => 'uri',
  8139. ),
  8140. ),
  8141. );
  8142. }
  8143. public static function CancelLiveVideoAuditingOutput() {
  8144. return array(
  8145. 'type' => 'object',
  8146. 'additionalProperties' => true,
  8147. 'properties' => array(
  8148. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  8149. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  8150. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  8151. 'JobsDetail' => array(
  8152. 'type' => 'object',
  8153. 'location' => 'xml',
  8154. 'properties' => array(
  8155. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  8156. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  8157. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  8158. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8159. ),
  8160. ),
  8161. ),
  8162. );
  8163. }
  8164. public static function OpticalOcrRecognition() {
  8165. return array(
  8166. 'httpMethod' => 'GET',
  8167. 'uri' => '/{Bucket}{/Key*}',
  8168. 'class' => 'Qcloud\\Cos\\Command',
  8169. 'responseClass' => 'OpticalOcrRecognitionOutput',
  8170. 'responseType' => 'model',
  8171. 'parameters' => array(
  8172. 'Bucket' => array(
  8173. 'required' => true,
  8174. 'type' => 'string',
  8175. 'location' => 'uri',
  8176. ),
  8177. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8178. 'CiProcess' => array( 'required' => true, 'type' => 'string', 'location' => 'query', 'sentAs' => 'ci-process' ),
  8179. 'Type' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'type' ),
  8180. 'LanguageType' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'language-type' ),
  8181. 'IsPDF' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'ispdf' ),
  8182. 'PdfPageNumber' => array( 'type' => 'integer', 'location' => 'query', 'sentAs' => 'pdf-pagenumber' ),
  8183. 'IsWord' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'isword' ),
  8184. 'EnableWordPolygon' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'enable-word-polygon' ),
  8185. ),
  8186. );
  8187. }
  8188. public static function OpticalOcrRecognitionOutput() {
  8189. return array(
  8190. 'type' => 'object',
  8191. 'additionalProperties' => true,
  8192. 'properties' => array(
  8193. 'Body' => array(
  8194. 'type' => 'string',
  8195. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  8196. 'location' => 'body',
  8197. ),
  8198. 'RequestId' => array(
  8199. 'type' => 'string',
  8200. 'location' => 'header',
  8201. 'sentAs' => 'x-cos-request-id',
  8202. ),
  8203. 'ContentType' => array(
  8204. 'type' => 'string',
  8205. 'location' => 'header',
  8206. 'sentAs' => 'Content-Type',
  8207. ),
  8208. 'ContentLength' => array(
  8209. 'type' => 'numeric',
  8210. 'minimum'=> 0,
  8211. 'location' => 'header',
  8212. 'sentAs' => 'Content-Length',
  8213. ),
  8214. ),
  8215. );
  8216. }
  8217. public static function TriggerWorkflow() {
  8218. return array(
  8219. 'httpMethod' => 'POST',
  8220. 'uri' => '/{Bucket}triggerworkflow',
  8221. 'class' => 'Qcloud\\Cos\\Command',
  8222. 'responseClass' => 'TriggerWorkflowOutput',
  8223. 'responseType' => 'model',
  8224. 'parameters' => array(
  8225. 'Bucket' => array(
  8226. 'required' => true,
  8227. 'type' => 'string',
  8228. 'location' => 'uri',
  8229. ),
  8230. 'workflowId' => array( 'required' => true, 'type' => 'string', 'location' => 'query', ),
  8231. 'object' => array( 'required' => true, 'type' => 'string', 'location' => 'query', ),
  8232. 'name' => array( 'required' => false, 'type' => 'string', 'location' => 'query', ),
  8233. ),
  8234. );
  8235. }
  8236. public static function TriggerWorkflowOutput() {
  8237. return array(
  8238. 'type' => 'object',
  8239. 'additionalProperties' => true,
  8240. 'properties' => array(
  8241. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  8242. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  8243. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  8244. 'InstanceId' => array( 'type' => 'string', 'location' => 'xml', ),
  8245. ),
  8246. );
  8247. }
  8248. public static function GetWorkflowInstances() {
  8249. return array(
  8250. 'httpMethod' => 'GET',
  8251. 'uri' => '/{Bucket}workflowexecution',
  8252. 'class' => 'Qcloud\\Cos\\Command',
  8253. 'responseClass' => 'GetWorkflowInstancesOutput',
  8254. 'responseType' => 'model',
  8255. 'parameters' => array(
  8256. 'Bucket' => array(
  8257. 'required' => true,
  8258. 'type' => 'string',
  8259. 'location' => 'uri',
  8260. ),
  8261. 'workflowId' => array( 'required' => true, 'type' => 'string', 'location' => 'query', ),
  8262. 'name' => array( 'required' => false, 'type' => 'string', 'location' => 'query', ),
  8263. 'orderByTime' => array( 'required' => false, 'type' => 'string', 'location' => 'query', ),
  8264. 'size' => array( 'required' => false, 'type' => 'string', 'location' => 'query', ),
  8265. 'states' => array( 'required' => false, 'type' => 'string', 'location' => 'query', ),
  8266. 'startCreationTime' => array( 'required' => false, 'type' => 'string', 'location' => 'query', ),
  8267. 'endCreationTime' => array( 'required' => false, 'type' => 'string', 'location' => 'query', ),
  8268. 'nextToken' => array( 'required' => false, 'type' => 'string', 'location' => 'query', ),
  8269. ),
  8270. );
  8271. }
  8272. public static function GetWorkflowInstancesOutput() {
  8273. return array(
  8274. 'type' => 'object',
  8275. 'additionalProperties' => true,
  8276. 'properties' => array(
  8277. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  8278. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  8279. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  8280. 'NextToken' => array( 'type' => 'string', 'location' => 'xml', ),
  8281. 'WorkflowExecutionList' => array(
  8282. 'type' => 'array',
  8283. 'location' => 'xml',
  8284. 'items' => array(
  8285. 'type' => 'object',
  8286. 'location' => 'xml',
  8287. 'properties' => array(
  8288. 'RunId' => array( 'type' => 'string', 'location' => 'xml', ),
  8289. 'WorkflowId' => array( 'type' => 'string', 'location' => 'xml', ),
  8290. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  8291. 'CreateTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8292. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  8293. ),
  8294. ),
  8295. ),
  8296. ),
  8297. );
  8298. }
  8299. public static function GetWorkflowInstance() {
  8300. return array(
  8301. 'httpMethod' => 'GET',
  8302. 'uri' => '/{Bucket}workflowexecution/{/Key*}',
  8303. 'class' => 'Qcloud\\Cos\\Command',
  8304. 'responseClass' => 'GetWorkflowInstanceOutput',
  8305. 'responseType' => 'model',
  8306. 'parameters' => array(
  8307. 'Bucket' => array(
  8308. 'required' => true,
  8309. 'type' => 'string',
  8310. 'location' => 'uri',
  8311. ),
  8312. 'Key' => array(
  8313. 'required' => true,
  8314. 'type' => 'string',
  8315. 'location' => 'uri',
  8316. ),
  8317. ),
  8318. );
  8319. }
  8320. public static function GetWorkflowInstanceOutput() {
  8321. return array(
  8322. 'type' => 'object',
  8323. 'additionalProperties' => true,
  8324. 'properties' => array(
  8325. 'Body' => array(
  8326. 'type' => 'string',
  8327. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  8328. 'location' => 'body',
  8329. ),
  8330. 'RequestId' => array(
  8331. 'type' => 'string',
  8332. 'location' => 'header',
  8333. 'sentAs' => 'x-ci-request-id',
  8334. ),
  8335. 'ContentType' => array(
  8336. 'type' => 'string',
  8337. 'location' => 'header',
  8338. 'sentAs' => 'Content-Type',
  8339. ),
  8340. 'ContentLength' => array(
  8341. 'type' => 'numeric',
  8342. 'minimum'=> 0,
  8343. 'location' => 'header',
  8344. 'sentAs' => 'Content-Length',
  8345. ),
  8346. ),
  8347. );
  8348. }
  8349. public static function CreateMediaSnapshotTemplate() {
  8350. return array(
  8351. 'httpMethod' => 'POST',
  8352. 'uri' => '/{Bucket}template',
  8353. 'class' => 'Qcloud\\Cos\\Command',
  8354. 'responseClass' => 'CreateMediaSnapshotTemplateOutput',
  8355. 'responseType' => 'model',
  8356. 'data' => array(
  8357. 'xmlRoot' => array(
  8358. 'name' => 'Request',
  8359. ),
  8360. ),
  8361. 'parameters' => array(
  8362. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8363. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8364. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8365. 'Snapshot' => array(
  8366. 'required' => true,
  8367. 'type' => 'object',
  8368. 'location' => 'xml',
  8369. 'properties' => array(
  8370. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  8371. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  8372. 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
  8373. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  8374. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8375. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8376. ),
  8377. ),
  8378. ),
  8379. );
  8380. }
  8381. public static function CreateMediaSnapshotTemplateOutput() {
  8382. return array(
  8383. 'type' => 'object',
  8384. 'additionalProperties' => true,
  8385. 'properties' => array(
  8386. 'RequestId' => array(
  8387. 'type' => 'string',
  8388. 'location' => 'header',
  8389. 'sentAs' => 'x-ci-request-id',
  8390. ),
  8391. 'ContentType' => array(
  8392. 'type' => 'string',
  8393. 'location' => 'header',
  8394. 'sentAs' => 'Content-Type',
  8395. ),
  8396. 'ContentLength' => array(
  8397. 'type' => 'numeric',
  8398. 'minimum'=> 0,
  8399. 'location' => 'header',
  8400. 'sentAs' => 'Content-Length',
  8401. ),
  8402. 'Template' => array(
  8403. 'type' => 'object',
  8404. 'location' => 'xml',
  8405. 'properties' => array(
  8406. 'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
  8407. 'Name' => array( 'type' => 'string', 'location' => 'xml', ),
  8408. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  8409. 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8410. 'CreateTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8411. 'Snapshot' => array(
  8412. 'type' => 'object',
  8413. 'location' => 'xml',
  8414. 'properties' => array(
  8415. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  8416. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  8417. 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
  8418. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  8419. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8420. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8421. ),
  8422. ),
  8423. ),
  8424. ),
  8425. ),
  8426. );
  8427. }
  8428. public static function UpdateMediaSnapshotTemplate() {
  8429. return array(
  8430. 'httpMethod' => 'PUT',
  8431. 'uri' => '/{Bucket}template/{/Key*}',
  8432. 'class' => 'Qcloud\\Cos\\Command',
  8433. 'responseClass' => 'UpdateMediaSnapshotTemplateOutput',
  8434. 'responseType' => 'model',
  8435. 'data' => array(
  8436. 'xmlRoot' => array(
  8437. 'name' => 'Request',
  8438. ),
  8439. ),
  8440. 'parameters' => array(
  8441. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8442. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8443. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8444. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  8445. 'Snapshot' => array(
  8446. 'type' => 'object',
  8447. 'location' => 'xml',
  8448. 'properties' => array(
  8449. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  8450. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  8451. 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
  8452. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  8453. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8454. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8455. ),
  8456. ),
  8457. ),
  8458. );
  8459. }
  8460. public static function UpdateMediaSnapshotTemplateOutput() {
  8461. return array(
  8462. 'type' => 'object',
  8463. 'additionalProperties' => true,
  8464. 'properties' => array(
  8465. 'RequestId' => array(
  8466. 'type' => 'string',
  8467. 'location' => 'header',
  8468. 'sentAs' => 'x-ci-request-id',
  8469. ),
  8470. 'ContentType' => array(
  8471. 'type' => 'string',
  8472. 'location' => 'header',
  8473. 'sentAs' => 'Content-Type',
  8474. ),
  8475. 'ContentLength' => array(
  8476. 'type' => 'numeric',
  8477. 'minimum'=> 0,
  8478. 'location' => 'header',
  8479. 'sentAs' => 'Content-Length',
  8480. ),
  8481. 'Template' => array(
  8482. 'type' => 'object',
  8483. 'location' => 'xml',
  8484. 'properties' => array(
  8485. 'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
  8486. 'Name' => array( 'type' => 'string', 'location' => 'xml', ),
  8487. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  8488. 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8489. 'CreateTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8490. 'Snapshot' => array(
  8491. 'type' => 'object',
  8492. 'location' => 'xml',
  8493. 'properties' => array(
  8494. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  8495. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  8496. 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
  8497. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  8498. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8499. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8500. ),
  8501. ),
  8502. ),
  8503. ),
  8504. ),
  8505. );
  8506. }
  8507. public static function CreateMediaTranscodeTemplate() {
  8508. return array(
  8509. 'httpMethod' => 'POST',
  8510. 'uri' => '/{Bucket}template',
  8511. 'class' => 'Qcloud\\Cos\\Command',
  8512. 'responseClass' => 'CreateMediaTranscodeTemplateOutput',
  8513. 'responseType' => 'model',
  8514. 'data' => array(
  8515. 'xmlRoot' => array(
  8516. 'name' => 'Request',
  8517. ),
  8518. ),
  8519. 'parameters' => array(
  8520. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8521. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8522. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8523. 'Container' => array(
  8524. 'type' => 'object',
  8525. 'location' => 'xml',
  8526. 'properties' => array(
  8527. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  8528. 'ClipConfig' => array(
  8529. 'type' => 'object',
  8530. 'location' => 'xml',
  8531. 'properties' => array(
  8532. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  8533. ),
  8534. ),
  8535. ),
  8536. ),
  8537. 'Video' => array(
  8538. 'type' => 'object',
  8539. 'location' => 'xml',
  8540. 'properties' => array(
  8541. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8542. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8543. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8544. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  8545. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  8546. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  8547. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8548. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  8549. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  8550. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  8551. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  8552. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8553. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  8554. 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
  8555. 'Rotate' => array( 'type' => 'string', 'location' => 'xml', ),
  8556. ),
  8557. ),
  8558. 'TimeInterval' => array(
  8559. 'type' => 'object',
  8560. 'location' => 'xml',
  8561. 'properties' => array(
  8562. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  8563. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  8564. ),
  8565. ),
  8566. 'Audio' => array(
  8567. 'type' => 'object',
  8568. 'location' => 'xml',
  8569. 'properties' => array(
  8570. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8571. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  8572. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8573. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  8574. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  8575. 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
  8576. 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
  8577. 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
  8578. ),
  8579. ),
  8580. 'TransConfig' => array(
  8581. 'type' => 'object',
  8582. 'location' => 'xml',
  8583. 'properties' => array(
  8584. 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8585. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  8586. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8587. 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8588. 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8589. 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8590. 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8591. 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
  8592. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  8593. 'HlsEncrypt' => array(
  8594. 'type' => 'object',
  8595. 'location' => 'xml',
  8596. 'properties' => array(
  8597. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  8598. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  8599. ),
  8600. ),
  8601. ),
  8602. ),
  8603. ),
  8604. );
  8605. }
  8606. public static function CreateMediaTranscodeTemplateOutput() {
  8607. return array(
  8608. 'type' => 'object',
  8609. 'additionalProperties' => true,
  8610. 'properties' => array(
  8611. 'Body' => array(
  8612. 'type' => 'string',
  8613. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  8614. 'location' => 'body',
  8615. ),
  8616. 'RequestId' => array(
  8617. 'type' => 'string',
  8618. 'location' => 'header',
  8619. 'sentAs' => 'x-ci-request-id',
  8620. ),
  8621. 'ContentType' => array(
  8622. 'type' => 'string',
  8623. 'location' => 'header',
  8624. 'sentAs' => 'Content-Type',
  8625. ),
  8626. 'ContentLength' => array(
  8627. 'type' => 'numeric',
  8628. 'minimum'=> 0,
  8629. 'location' => 'header',
  8630. 'sentAs' => 'Content-Length',
  8631. ),
  8632. ),
  8633. );
  8634. }
  8635. public static function UpdateMediaTranscodeTemplate() {
  8636. return array(
  8637. 'httpMethod' => 'PUT',
  8638. 'uri' => '/{Bucket}template/{/Key*}',
  8639. 'class' => 'Qcloud\\Cos\\Command',
  8640. 'responseClass' => 'UpdateMediaTranscodeTemplateOutput',
  8641. 'responseType' => 'model',
  8642. 'data' => array(
  8643. 'xmlRoot' => array(
  8644. 'name' => 'Request',
  8645. ),
  8646. ),
  8647. 'parameters' => array(
  8648. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8649. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8650. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8651. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  8652. 'Container' => array(
  8653. 'type' => 'object',
  8654. 'location' => 'xml',
  8655. 'properties' => array(
  8656. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  8657. 'ClipConfig' => array(
  8658. 'type' => 'object',
  8659. 'location' => 'xml',
  8660. 'properties' => array(
  8661. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  8662. ),
  8663. ),
  8664. ),
  8665. ),
  8666. 'Video' => array(
  8667. 'type' => 'object',
  8668. 'location' => 'xml',
  8669. 'properties' => array(
  8670. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8671. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8672. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8673. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  8674. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  8675. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  8676. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8677. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  8678. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  8679. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  8680. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  8681. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8682. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  8683. 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
  8684. 'Rotate' => array( 'type' => 'string', 'location' => 'xml', ),
  8685. ),
  8686. ),
  8687. 'TimeInterval' => array(
  8688. 'type' => 'object',
  8689. 'location' => 'xml',
  8690. 'properties' => array(
  8691. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  8692. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  8693. ),
  8694. ),
  8695. 'Audio' => array(
  8696. 'type' => 'object',
  8697. 'location' => 'xml',
  8698. 'properties' => array(
  8699. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8700. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  8701. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8702. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  8703. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  8704. 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
  8705. 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
  8706. 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
  8707. ),
  8708. ),
  8709. 'TransConfig' => array(
  8710. 'type' => 'object',
  8711. 'location' => 'xml',
  8712. 'properties' => array(
  8713. 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8714. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  8715. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8716. 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8717. 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8718. 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8719. 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8720. 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
  8721. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  8722. 'HlsEncrypt' => array(
  8723. 'type' => 'object',
  8724. 'location' => 'xml',
  8725. 'properties' => array(
  8726. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  8727. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  8728. ),
  8729. ),
  8730. ),
  8731. ),
  8732. ),
  8733. );
  8734. }
  8735. public static function UpdateMediaTranscodeTemplateOutput() {
  8736. return array(
  8737. 'type' => 'object',
  8738. 'additionalProperties' => true,
  8739. 'properties' => array(
  8740. 'Body' => array(
  8741. 'type' => 'string',
  8742. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  8743. 'location' => 'body',
  8744. ),
  8745. 'RequestId' => array(
  8746. 'type' => 'string',
  8747. 'location' => 'header',
  8748. 'sentAs' => 'x-ci-request-id',
  8749. ),
  8750. 'ContentType' => array(
  8751. 'type' => 'string',
  8752. 'location' => 'header',
  8753. 'sentAs' => 'Content-Type',
  8754. ),
  8755. 'ContentLength' => array(
  8756. 'type' => 'numeric',
  8757. 'minimum'=> 0,
  8758. 'location' => 'header',
  8759. 'sentAs' => 'Content-Length',
  8760. ),
  8761. ),
  8762. );
  8763. }
  8764. public static function CreateMediaHighSpeedHdTemplate() {
  8765. return array(
  8766. 'httpMethod' => 'POST',
  8767. 'uri' => '/{Bucket}template',
  8768. 'class' => 'Qcloud\\Cos\\Command',
  8769. 'responseClass' => 'CreateMediaHighSpeedHdTemplateOutput',
  8770. 'responseType' => 'model',
  8771. 'data' => array(
  8772. 'xmlRoot' => array(
  8773. 'name' => 'Request',
  8774. ),
  8775. ),
  8776. 'parameters' => array(
  8777. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8778. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8779. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8780. 'Container' => array(
  8781. 'type' => 'object',
  8782. 'location' => 'xml',
  8783. 'properties' => array(
  8784. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  8785. ),
  8786. ),
  8787. 'Video' => array(
  8788. 'type' => 'object',
  8789. 'location' => 'xml',
  8790. 'properties' => array(
  8791. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8792. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8793. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8794. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  8795. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  8796. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8797. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  8798. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  8799. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  8800. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  8801. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8802. 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8803. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  8804. ),
  8805. ),
  8806. 'TimeInterval' => array(
  8807. 'type' => 'object',
  8808. 'location' => 'xml',
  8809. 'properties' => array(
  8810. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  8811. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  8812. ),
  8813. ),
  8814. 'Audio' => array(
  8815. 'type' => 'object',
  8816. 'location' => 'xml',
  8817. 'properties' => array(
  8818. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8819. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  8820. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8821. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  8822. ),
  8823. ),
  8824. 'TransConfig' => array(
  8825. 'type' => 'object',
  8826. 'location' => 'xml',
  8827. 'properties' => array(
  8828. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  8829. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8830. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  8831. ),
  8832. ),
  8833. ),
  8834. );
  8835. }
  8836. public static function CreateMediaHighSpeedHdTemplateOutput() {
  8837. return array(
  8838. 'type' => 'object',
  8839. 'additionalProperties' => true,
  8840. 'properties' => array(
  8841. 'Body' => array(
  8842. 'type' => 'string',
  8843. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  8844. 'location' => 'body',
  8845. ),
  8846. 'RequestId' => array(
  8847. 'type' => 'string',
  8848. 'location' => 'header',
  8849. 'sentAs' => 'x-ci-request-id',
  8850. ),
  8851. 'ContentType' => array(
  8852. 'type' => 'string',
  8853. 'location' => 'header',
  8854. 'sentAs' => 'Content-Type',
  8855. ),
  8856. 'ContentLength' => array(
  8857. 'type' => 'numeric',
  8858. 'minimum'=> 0,
  8859. 'location' => 'header',
  8860. 'sentAs' => 'Content-Length',
  8861. ),
  8862. ),
  8863. );
  8864. }
  8865. public static function UpdateMediaHighSpeedHdTemplate() {
  8866. return array(
  8867. 'httpMethod' => 'PUT',
  8868. 'uri' => '/{Bucket}template/{/Key*}',
  8869. 'class' => 'Qcloud\\Cos\\Command',
  8870. 'responseClass' => 'UpdateMediaHighSpeedHdTemplateOutput',
  8871. 'responseType' => 'model',
  8872. 'data' => array(
  8873. 'xmlRoot' => array(
  8874. 'name' => 'Request',
  8875. ),
  8876. ),
  8877. 'parameters' => array(
  8878. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8879. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8880. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8881. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  8882. 'Container' => array(
  8883. 'type' => 'object',
  8884. 'location' => 'xml',
  8885. 'properties' => array(
  8886. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  8887. ),
  8888. ),
  8889. 'Video' => array(
  8890. 'type' => 'object',
  8891. 'location' => 'xml',
  8892. 'properties' => array(
  8893. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8894. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8895. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8896. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  8897. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  8898. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8899. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  8900. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  8901. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  8902. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  8903. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8904. 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
  8905. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  8906. ),
  8907. ),
  8908. 'TimeInterval' => array(
  8909. 'type' => 'object',
  8910. 'location' => 'xml',
  8911. 'properties' => array(
  8912. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  8913. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  8914. ),
  8915. ),
  8916. 'Audio' => array(
  8917. 'type' => 'object',
  8918. 'location' => 'xml',
  8919. 'properties' => array(
  8920. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8921. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  8922. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  8923. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  8924. ),
  8925. ),
  8926. 'TransConfig' => array(
  8927. 'type' => 'object',
  8928. 'location' => 'xml',
  8929. 'properties' => array(
  8930. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  8931. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  8932. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  8933. ),
  8934. ),
  8935. ),
  8936. );
  8937. }
  8938. public static function UpdateMediaHighSpeedHdTemplateOutput() {
  8939. return array(
  8940. 'type' => 'object',
  8941. 'additionalProperties' => true,
  8942. 'properties' => array(
  8943. 'Body' => array(
  8944. 'type' => 'string',
  8945. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  8946. 'location' => 'body',
  8947. ),
  8948. 'RequestId' => array(
  8949. 'type' => 'string',
  8950. 'location' => 'header',
  8951. 'sentAs' => 'x-ci-request-id',
  8952. ),
  8953. 'ContentType' => array(
  8954. 'type' => 'string',
  8955. 'location' => 'header',
  8956. 'sentAs' => 'Content-Type',
  8957. ),
  8958. 'ContentLength' => array(
  8959. 'type' => 'numeric',
  8960. 'minimum'=> 0,
  8961. 'location' => 'header',
  8962. 'sentAs' => 'Content-Length',
  8963. ),
  8964. ),
  8965. );
  8966. }
  8967. public static function CreateMediaAnimationTemplate() {
  8968. return array(
  8969. 'httpMethod' => 'POST',
  8970. 'uri' => '/{Bucket}template',
  8971. 'class' => 'Qcloud\\Cos\\Command',
  8972. 'responseClass' => 'CreateMediaAnimationTemplateOutput',
  8973. 'responseType' => 'model',
  8974. 'data' => array(
  8975. 'xmlRoot' => array(
  8976. 'name' => 'Request',
  8977. ),
  8978. ),
  8979. 'parameters' => array(
  8980. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  8981. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8982. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  8983. 'Container' => array(
  8984. 'type' => 'object',
  8985. 'location' => 'xml',
  8986. 'properties' => array(
  8987. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  8988. ),
  8989. ),
  8990. 'Video' => array(
  8991. 'type' => 'object',
  8992. 'location' => 'xml',
  8993. 'properties' => array(
  8994. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  8995. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  8996. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  8997. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  8998. 'AnimateOnlyKeepKeyFrame' => array( 'type' => 'string', 'location' => 'xml', ),
  8999. 'AnimateTimeIntervalOfFrame' => array( 'type' => 'string', 'location' => 'xml', ),
  9000. 'AnimateFramesPerSecond' => array( 'type' => 'string', 'location' => 'xml', ),
  9001. 'Quality' => array( 'type' => 'string', 'location' => 'xml', ),
  9002. ),
  9003. ),
  9004. 'TimeInterval' => array(
  9005. 'type' => 'object',
  9006. 'location' => 'xml',
  9007. 'properties' => array(
  9008. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  9009. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  9010. ),
  9011. ),
  9012. ),
  9013. );
  9014. }
  9015. public static function CreateMediaAnimationTemplateOutput() {
  9016. return array(
  9017. 'type' => 'object',
  9018. 'additionalProperties' => true,
  9019. 'properties' => array(
  9020. 'Body' => array(
  9021. 'type' => 'string',
  9022. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9023. 'location' => 'body',
  9024. ),
  9025. 'RequestId' => array(
  9026. 'type' => 'string',
  9027. 'location' => 'header',
  9028. 'sentAs' => 'x-ci-request-id',
  9029. ),
  9030. 'ContentType' => array(
  9031. 'type' => 'string',
  9032. 'location' => 'header',
  9033. 'sentAs' => 'Content-Type',
  9034. ),
  9035. 'ContentLength' => array(
  9036. 'type' => 'numeric',
  9037. 'minimum'=> 0,
  9038. 'location' => 'header',
  9039. 'sentAs' => 'Content-Length',
  9040. ),
  9041. ),
  9042. );
  9043. }
  9044. public static function UpdateMediaAnimationTemplate() {
  9045. return array(
  9046. 'httpMethod' => 'PUT',
  9047. 'uri' => '/{Bucket}template/{/Key*}',
  9048. 'class' => 'Qcloud\\Cos\\Command',
  9049. 'responseClass' => 'UpdateMediaAnimationTemplateOutput',
  9050. 'responseType' => 'model',
  9051. 'data' => array(
  9052. 'xmlRoot' => array(
  9053. 'name' => 'Request',
  9054. ),
  9055. ),
  9056. 'parameters' => array(
  9057. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9058. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9059. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9060. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  9061. 'Container' => array(
  9062. 'type' => 'object',
  9063. 'location' => 'xml',
  9064. 'properties' => array(
  9065. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  9066. ),
  9067. ),
  9068. 'Video' => array(
  9069. 'type' => 'object',
  9070. 'location' => 'xml',
  9071. 'properties' => array(
  9072. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9073. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  9074. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  9075. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  9076. 'AnimateOnlyKeepKeyFrame' => array( 'type' => 'string', 'location' => 'xml', ),
  9077. 'AnimateTimeIntervalOfFrame' => array( 'type' => 'string', 'location' => 'xml', ),
  9078. 'AnimateFramesPerSecond' => array( 'type' => 'string', 'location' => 'xml', ),
  9079. 'Quality' => array( 'type' => 'string', 'location' => 'xml', ),
  9080. ),
  9081. ),
  9082. 'TimeInterval' => array(
  9083. 'type' => 'object',
  9084. 'location' => 'xml',
  9085. 'properties' => array(
  9086. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  9087. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  9088. ),
  9089. ),
  9090. ),
  9091. );
  9092. }
  9093. public static function UpdateMediaAnimationTemplateOutput() {
  9094. return array(
  9095. 'type' => 'object',
  9096. 'additionalProperties' => true,
  9097. 'properties' => array(
  9098. 'Body' => array(
  9099. 'type' => 'string',
  9100. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9101. 'location' => 'body',
  9102. ),
  9103. 'RequestId' => array(
  9104. 'type' => 'string',
  9105. 'location' => 'header',
  9106. 'sentAs' => 'x-ci-request-id',
  9107. ),
  9108. 'ContentType' => array(
  9109. 'type' => 'string',
  9110. 'location' => 'header',
  9111. 'sentAs' => 'Content-Type',
  9112. ),
  9113. 'ContentLength' => array(
  9114. 'type' => 'numeric',
  9115. 'minimum'=> 0,
  9116. 'location' => 'header',
  9117. 'sentAs' => 'Content-Length',
  9118. ),
  9119. ),
  9120. );
  9121. }
  9122. public static function CreateMediaConcatTemplate() {
  9123. return array(
  9124. 'httpMethod' => 'POST',
  9125. 'uri' => '/{Bucket}template',
  9126. 'class' => 'Qcloud\\Cos\\Command',
  9127. 'responseClass' => 'CreateMediaConcatTemplateOutput',
  9128. 'responseType' => 'model',
  9129. 'data' => array(
  9130. 'xmlRoot' => array(
  9131. 'name' => 'Request',
  9132. ),
  9133. ),
  9134. 'parameters' => array(
  9135. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9136. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9137. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9138. 'ConcatTemplate' => array(
  9139. 'type' => 'object',
  9140. 'location' => 'xml',
  9141. 'properties' => array(
  9142. 'ConcatFragments' => array(
  9143. 'type' => 'array',
  9144. 'location' => 'xml',
  9145. 'data' => array(
  9146. 'xmlFlattened' => true,
  9147. ),
  9148. 'items' => array(
  9149. 'name' => 'ConcatFragment',
  9150. 'type' => 'object',
  9151. 'sentAs' => 'ConcatFragment',
  9152. 'properties' => array(
  9153. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  9154. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  9155. ),
  9156. ),
  9157. ),
  9158. 'Audio' => array(
  9159. 'type' => 'object',
  9160. 'location' => 'xml',
  9161. 'properties' => array(
  9162. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9163. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  9164. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9165. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  9166. ),
  9167. ),
  9168. 'Video' => array(
  9169. 'type' => 'object',
  9170. 'location' => 'xml',
  9171. 'properties' => array(
  9172. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9173. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  9174. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  9175. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  9176. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9177. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  9178. ),
  9179. ),
  9180. 'Container' => array(
  9181. 'type' => 'object',
  9182. 'location' => 'xml',
  9183. 'properties' => array(
  9184. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  9185. ),
  9186. ),
  9187. ),
  9188. ),
  9189. ),
  9190. );
  9191. }
  9192. public static function CreateMediaConcatTemplateOutput() {
  9193. return array(
  9194. 'type' => 'object',
  9195. 'additionalProperties' => true,
  9196. 'properties' => array(
  9197. 'Body' => array(
  9198. 'type' => 'string',
  9199. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9200. 'location' => 'body',
  9201. ),
  9202. 'RequestId' => array(
  9203. 'type' => 'string',
  9204. 'location' => 'header',
  9205. 'sentAs' => 'x-ci-request-id',
  9206. ),
  9207. 'ContentType' => array(
  9208. 'type' => 'string',
  9209. 'location' => 'header',
  9210. 'sentAs' => 'Content-Type',
  9211. ),
  9212. 'ContentLength' => array(
  9213. 'type' => 'numeric',
  9214. 'minimum'=> 0,
  9215. 'location' => 'header',
  9216. 'sentAs' => 'Content-Length',
  9217. ),
  9218. ),
  9219. );
  9220. }
  9221. public static function UpdateMediaConcatTemplate() {
  9222. return array(
  9223. 'httpMethod' => 'PUT',
  9224. 'uri' => '/{Bucket}template/{/Key*}',
  9225. 'class' => 'Qcloud\\Cos\\Command',
  9226. 'responseClass' => 'UpdateMediaConcatTemplateOutput',
  9227. 'responseType' => 'model',
  9228. 'data' => array(
  9229. 'xmlRoot' => array(
  9230. 'name' => 'Request',
  9231. ),
  9232. ),
  9233. 'parameters' => array(
  9234. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9235. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9236. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9237. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  9238. 'ConcatTemplate' => array(
  9239. 'type' => 'object',
  9240. 'location' => 'xml',
  9241. 'properties' => array(
  9242. 'ConcatFragments' => array(
  9243. 'type' => 'array',
  9244. 'location' => 'xml',
  9245. 'data' => array(
  9246. 'xmlFlattened' => true,
  9247. ),
  9248. 'items' => array(
  9249. 'name' => 'ConcatFragment',
  9250. 'type' => 'object',
  9251. 'sentAs' => 'ConcatFragment',
  9252. 'properties' => array(
  9253. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  9254. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  9255. ),
  9256. ),
  9257. ),
  9258. 'Audio' => array(
  9259. 'type' => 'object',
  9260. 'location' => 'xml',
  9261. 'properties' => array(
  9262. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9263. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  9264. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9265. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  9266. ),
  9267. ),
  9268. 'Video' => array(
  9269. 'type' => 'object',
  9270. 'location' => 'xml',
  9271. 'properties' => array(
  9272. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9273. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  9274. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  9275. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  9276. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9277. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  9278. ),
  9279. ),
  9280. 'Container' => array(
  9281. 'type' => 'object',
  9282. 'location' => 'xml',
  9283. 'properties' => array(
  9284. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  9285. ),
  9286. ),
  9287. ),
  9288. ),
  9289. ),
  9290. );
  9291. }
  9292. public static function UpdateMediaConcatTemplateOutput() {
  9293. return array(
  9294. 'type' => 'object',
  9295. 'additionalProperties' => true,
  9296. 'properties' => array(
  9297. 'Body' => array(
  9298. 'type' => 'string',
  9299. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9300. 'location' => 'body',
  9301. ),
  9302. 'RequestId' => array(
  9303. 'type' => 'string',
  9304. 'location' => 'header',
  9305. 'sentAs' => 'x-ci-request-id',
  9306. ),
  9307. 'ContentType' => array(
  9308. 'type' => 'string',
  9309. 'location' => 'header',
  9310. 'sentAs' => 'Content-Type',
  9311. ),
  9312. 'ContentLength' => array(
  9313. 'type' => 'numeric',
  9314. 'minimum'=> 0,
  9315. 'location' => 'header',
  9316. 'sentAs' => 'Content-Length',
  9317. ),
  9318. ),
  9319. );
  9320. }
  9321. public static function CreateMediaVideoProcessTemplate() {
  9322. return array(
  9323. 'httpMethod' => 'POST',
  9324. 'uri' => '/{Bucket}template',
  9325. 'class' => 'Qcloud\\Cos\\Command',
  9326. 'responseClass' => 'CreateMediaVideoProcessTemplateOutput',
  9327. 'responseType' => 'model',
  9328. 'data' => array(
  9329. 'xmlRoot' => array(
  9330. 'name' => 'Request',
  9331. ),
  9332. ),
  9333. 'parameters' => array(
  9334. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9335. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9336. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9337. 'ColorEnhance' => array(
  9338. 'type' => 'object',
  9339. 'location' => 'xml',
  9340. 'properties' => array(
  9341. 'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
  9342. 'Contrast' => array( 'type' => 'string', 'location' => 'xml', ),
  9343. 'Correction' => array( 'type' => 'string', 'location' => 'xml', ),
  9344. 'Saturation' => array( 'type' => 'string', 'location' => 'xml', ),
  9345. ),
  9346. ),
  9347. 'MsSharpen' => array(
  9348. 'type' => 'object',
  9349. 'location' => 'xml',
  9350. 'properties' => array(
  9351. 'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
  9352. 'SharpenLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  9353. ),
  9354. ),
  9355. ),
  9356. );
  9357. }
  9358. public static function CreateMediaVideoProcessTemplateOutput() {
  9359. return array(
  9360. 'type' => 'object',
  9361. 'additionalProperties' => true,
  9362. 'properties' => array(
  9363. 'Body' => array(
  9364. 'type' => 'string',
  9365. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9366. 'location' => 'body',
  9367. ),
  9368. 'RequestId' => array(
  9369. 'type' => 'string',
  9370. 'location' => 'header',
  9371. 'sentAs' => 'x-ci-request-id',
  9372. ),
  9373. 'ContentType' => array(
  9374. 'type' => 'string',
  9375. 'location' => 'header',
  9376. 'sentAs' => 'Content-Type',
  9377. ),
  9378. 'ContentLength' => array(
  9379. 'type' => 'numeric',
  9380. 'minimum'=> 0,
  9381. 'location' => 'header',
  9382. 'sentAs' => 'Content-Length',
  9383. ),
  9384. ),
  9385. );
  9386. }
  9387. public static function UpdateMediaVideoProcessTemplate() {
  9388. return array(
  9389. 'httpMethod' => 'PUT',
  9390. 'uri' => '/{Bucket}template/{/Key*}',
  9391. 'class' => 'Qcloud\\Cos\\Command',
  9392. 'responseClass' => 'UpdateMediaVideoProcessTemplateOutput',
  9393. 'responseType' => 'model',
  9394. 'data' => array(
  9395. 'xmlRoot' => array(
  9396. 'name' => 'Request',
  9397. ),
  9398. ),
  9399. 'parameters' => array(
  9400. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9401. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9402. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9403. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  9404. 'ColorEnhance' => array(
  9405. 'type' => 'object',
  9406. 'location' => 'xml',
  9407. 'properties' => array(
  9408. 'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
  9409. 'Contrast' => array( 'type' => 'string', 'location' => 'xml', ),
  9410. 'Correction' => array( 'type' => 'string', 'location' => 'xml', ),
  9411. 'Saturation' => array( 'type' => 'string', 'location' => 'xml', ),
  9412. ),
  9413. ),
  9414. 'MsSharpen' => array(
  9415. 'type' => 'object',
  9416. 'location' => 'xml',
  9417. 'properties' => array(
  9418. 'Enable' => array( 'type' => 'string', 'location' => 'xml', ),
  9419. 'SharpenLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  9420. ),
  9421. ),
  9422. ),
  9423. );
  9424. }
  9425. public static function UpdateMediaVideoProcessTemplateOutput() {
  9426. return array(
  9427. 'type' => 'object',
  9428. 'additionalProperties' => true,
  9429. 'properties' => array(
  9430. 'Body' => array(
  9431. 'type' => 'string',
  9432. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9433. 'location' => 'body',
  9434. ),
  9435. 'RequestId' => array(
  9436. 'type' => 'string',
  9437. 'location' => 'header',
  9438. 'sentAs' => 'x-ci-request-id',
  9439. ),
  9440. 'ContentType' => array(
  9441. 'type' => 'string',
  9442. 'location' => 'header',
  9443. 'sentAs' => 'Content-Type',
  9444. ),
  9445. 'ContentLength' => array(
  9446. 'type' => 'numeric',
  9447. 'minimum'=> 0,
  9448. 'location' => 'header',
  9449. 'sentAs' => 'Content-Length',
  9450. ),
  9451. ),
  9452. );
  9453. }
  9454. public static function CreateMediaVideoMontageTemplate() {
  9455. return array(
  9456. 'httpMethod' => 'POST',
  9457. 'uri' => '/{Bucket}template',
  9458. 'class' => 'Qcloud\\Cos\\Command',
  9459. 'responseClass' => 'CreateMediaVideoMontageTemplateOutput',
  9460. 'responseType' => 'model',
  9461. 'data' => array(
  9462. 'xmlRoot' => array(
  9463. 'name' => 'Request',
  9464. ),
  9465. ),
  9466. 'parameters' => array(
  9467. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9468. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9469. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9470. 'Duration' => array( 'location' => 'xml', 'type' => 'string', ),
  9471. 'Container' => array(
  9472. 'type' => 'object',
  9473. 'location' => 'xml',
  9474. 'properties' => array(
  9475. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  9476. ),
  9477. ),
  9478. 'Video' => array(
  9479. 'type' => 'object',
  9480. 'location' => 'xml',
  9481. 'properties' => array(
  9482. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9483. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  9484. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  9485. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  9486. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9487. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  9488. ),
  9489. ),
  9490. 'Audio' => array(
  9491. 'type' => 'object',
  9492. 'location' => 'xml',
  9493. 'properties' => array(
  9494. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9495. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  9496. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9497. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  9498. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  9499. ),
  9500. ),
  9501. 'AudioMix' => array(
  9502. 'type' => 'object',
  9503. 'location' => 'xml',
  9504. 'properties' => array(
  9505. 'AudioSource' => array( 'type' => 'string', 'location' => 'xml', ),
  9506. 'MixMode' => array( 'type' => 'string', 'location' => 'xml', ),
  9507. 'Replace' => array( 'type' => 'string', 'location' => 'xml', ),
  9508. ),
  9509. ),
  9510. ),
  9511. );
  9512. }
  9513. public static function CreateMediaVideoMontageTemplateOutput() {
  9514. return array(
  9515. 'type' => 'object',
  9516. 'additionalProperties' => true,
  9517. 'properties' => array(
  9518. 'Body' => array(
  9519. 'type' => 'string',
  9520. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9521. 'location' => 'body',
  9522. ),
  9523. 'RequestId' => array(
  9524. 'type' => 'string',
  9525. 'location' => 'header',
  9526. 'sentAs' => 'x-ci-request-id',
  9527. ),
  9528. 'ContentType' => array(
  9529. 'type' => 'string',
  9530. 'location' => 'header',
  9531. 'sentAs' => 'Content-Type',
  9532. ),
  9533. 'ContentLength' => array(
  9534. 'type' => 'numeric',
  9535. 'minimum'=> 0,
  9536. 'location' => 'header',
  9537. 'sentAs' => 'Content-Length',
  9538. ),
  9539. ),
  9540. );
  9541. }
  9542. public static function UpdateMediaVideoMontageTemplate() {
  9543. return array(
  9544. 'httpMethod' => 'PUT',
  9545. 'uri' => '/{Bucket}template/{/Key*}',
  9546. 'class' => 'Qcloud\\Cos\\Command',
  9547. 'responseClass' => 'UpdateMediaVideoMontageTemplateOutput',
  9548. 'responseType' => 'model',
  9549. 'data' => array(
  9550. 'xmlRoot' => array(
  9551. 'name' => 'Request',
  9552. ),
  9553. ),
  9554. 'parameters' => array(
  9555. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9556. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9557. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9558. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  9559. 'Duration' => array( 'location' => 'xml', 'type' => 'string', ),
  9560. 'Container' => array(
  9561. 'type' => 'object',
  9562. 'location' => 'xml',
  9563. 'properties' => array(
  9564. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  9565. ),
  9566. ),
  9567. 'Video' => array(
  9568. 'type' => 'object',
  9569. 'location' => 'xml',
  9570. 'properties' => array(
  9571. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9572. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  9573. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  9574. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  9575. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9576. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  9577. ),
  9578. ),
  9579. 'Audio' => array(
  9580. 'type' => 'object',
  9581. 'location' => 'xml',
  9582. 'properties' => array(
  9583. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9584. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  9585. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9586. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  9587. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  9588. ),
  9589. ),
  9590. 'AudioMix' => array(
  9591. 'type' => 'object',
  9592. 'location' => 'xml',
  9593. 'properties' => array(
  9594. 'AudioSource' => array( 'type' => 'string', 'location' => 'xml', ),
  9595. 'MixMode' => array( 'type' => 'string', 'location' => 'xml', ),
  9596. 'Replace' => array( 'type' => 'string', 'location' => 'xml', ),
  9597. ),
  9598. ),
  9599. ),
  9600. );
  9601. }
  9602. public static function UpdateMediaVideoMontageTemplateOutput() {
  9603. return array(
  9604. 'type' => 'object',
  9605. 'additionalProperties' => true,
  9606. 'properties' => array(
  9607. 'Body' => array(
  9608. 'type' => 'string',
  9609. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9610. 'location' => 'body',
  9611. ),
  9612. 'RequestId' => array(
  9613. 'type' => 'string',
  9614. 'location' => 'header',
  9615. 'sentAs' => 'x-ci-request-id',
  9616. ),
  9617. 'ContentType' => array(
  9618. 'type' => 'string',
  9619. 'location' => 'header',
  9620. 'sentAs' => 'Content-Type',
  9621. ),
  9622. 'ContentLength' => array(
  9623. 'type' => 'numeric',
  9624. 'minimum'=> 0,
  9625. 'location' => 'header',
  9626. 'sentAs' => 'Content-Length',
  9627. ),
  9628. ),
  9629. );
  9630. }
  9631. public static function CreateMediaVoiceSeparateTemplate() {
  9632. return array(
  9633. 'httpMethod' => 'POST',
  9634. 'uri' => '/{Bucket}template',
  9635. 'class' => 'Qcloud\\Cos\\Command',
  9636. 'responseClass' => 'CreateMediaVoiceSeparateTemplateOutput',
  9637. 'responseType' => 'model',
  9638. 'data' => array(
  9639. 'xmlRoot' => array(
  9640. 'name' => 'Request',
  9641. ),
  9642. ),
  9643. 'parameters' => array(
  9644. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9645. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9646. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9647. 'AudioMode' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9648. 'AudioConfig' => array(
  9649. 'type' => 'object',
  9650. 'location' => 'xml',
  9651. 'properties' => array(
  9652. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9653. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  9654. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9655. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  9656. ),
  9657. ),
  9658. ),
  9659. );
  9660. }
  9661. public static function CreateMediaVoiceSeparateTemplateOutput() {
  9662. return array(
  9663. 'type' => 'object',
  9664. 'additionalProperties' => true,
  9665. 'properties' => array(
  9666. 'Body' => array(
  9667. 'type' => 'string',
  9668. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9669. 'location' => 'body',
  9670. ),
  9671. 'RequestId' => array(
  9672. 'type' => 'string',
  9673. 'location' => 'header',
  9674. 'sentAs' => 'x-ci-request-id',
  9675. ),
  9676. 'ContentType' => array(
  9677. 'type' => 'string',
  9678. 'location' => 'header',
  9679. 'sentAs' => 'Content-Type',
  9680. ),
  9681. 'ContentLength' => array(
  9682. 'type' => 'numeric',
  9683. 'minimum'=> 0,
  9684. 'location' => 'header',
  9685. 'sentAs' => 'Content-Length',
  9686. ),
  9687. ),
  9688. );
  9689. }
  9690. public static function UpdateMediaVoiceSeparateTemplate() {
  9691. return array(
  9692. 'httpMethod' => 'PUT',
  9693. 'uri' => '/{Bucket}template/{/Key*}',
  9694. 'class' => 'Qcloud\\Cos\\Command',
  9695. 'responseClass' => 'UpdateMediaVoiceSeparateTemplateOutput',
  9696. 'responseType' => 'model',
  9697. 'data' => array(
  9698. 'xmlRoot' => array(
  9699. 'name' => 'Request',
  9700. ),
  9701. ),
  9702. 'parameters' => array(
  9703. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9704. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9705. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9706. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  9707. 'AudioMode' => array( 'location' => 'xml', 'type' => 'string', ),
  9708. 'AudioConfig' => array(
  9709. 'type' => 'object',
  9710. 'location' => 'xml',
  9711. 'properties' => array(
  9712. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  9713. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  9714. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  9715. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  9716. ),
  9717. ),
  9718. ),
  9719. );
  9720. }
  9721. public static function UpdateMediaVoiceSeparateTemplateOutput() {
  9722. return array(
  9723. 'type' => 'object',
  9724. 'additionalProperties' => true,
  9725. 'properties' => array(
  9726. 'Body' => array(
  9727. 'type' => 'string',
  9728. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9729. 'location' => 'body',
  9730. ),
  9731. 'RequestId' => array(
  9732. 'type' => 'string',
  9733. 'location' => 'header',
  9734. 'sentAs' => 'x-ci-request-id',
  9735. ),
  9736. 'ContentType' => array(
  9737. 'type' => 'string',
  9738. 'location' => 'header',
  9739. 'sentAs' => 'Content-Type',
  9740. ),
  9741. 'ContentLength' => array(
  9742. 'type' => 'numeric',
  9743. 'minimum'=> 0,
  9744. 'location' => 'header',
  9745. 'sentAs' => 'Content-Length',
  9746. ),
  9747. ),
  9748. );
  9749. }
  9750. public static function CreateMediaSuperResolutionTemplate() {
  9751. return array(
  9752. 'httpMethod' => 'POST',
  9753. 'uri' => '/{Bucket}template',
  9754. 'class' => 'Qcloud\\Cos\\Command',
  9755. 'responseClass' => 'CreateMediaSuperResolutionTemplateOutput',
  9756. 'responseType' => 'model',
  9757. 'data' => array(
  9758. 'xmlRoot' => array(
  9759. 'name' => 'Request',
  9760. ),
  9761. ),
  9762. 'parameters' => array(
  9763. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9764. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9765. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9766. 'Resolution' => array( 'location' => 'xml', 'type' => 'string', ),
  9767. 'EnableScaleUp' => array( 'location' => 'xml', 'type' => 'string', ),
  9768. 'Version' => array( 'location' => 'xml', 'type' => 'string', ),
  9769. ),
  9770. );
  9771. }
  9772. public static function CreateMediaSuperResolutionTemplateOutput() {
  9773. return array(
  9774. 'type' => 'object',
  9775. 'additionalProperties' => true,
  9776. 'properties' => array(
  9777. 'Body' => array(
  9778. 'type' => 'string',
  9779. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9780. 'location' => 'body',
  9781. ),
  9782. 'RequestId' => array(
  9783. 'type' => 'string',
  9784. 'location' => 'header',
  9785. 'sentAs' => 'x-ci-request-id',
  9786. ),
  9787. 'ContentType' => array(
  9788. 'type' => 'string',
  9789. 'location' => 'header',
  9790. 'sentAs' => 'Content-Type',
  9791. ),
  9792. 'ContentLength' => array(
  9793. 'type' => 'numeric',
  9794. 'minimum'=> 0,
  9795. 'location' => 'header',
  9796. 'sentAs' => 'Content-Length',
  9797. ),
  9798. ),
  9799. );
  9800. }
  9801. public static function UpdateMediaSuperResolutionTemplate() {
  9802. return array(
  9803. 'httpMethod' => 'PUT',
  9804. 'uri' => '/{Bucket}template/{/Key*}',
  9805. 'class' => 'Qcloud\\Cos\\Command',
  9806. 'responseClass' => 'UpdateMediaSuperResolutionTemplateOutput',
  9807. 'responseType' => 'model',
  9808. 'data' => array(
  9809. 'xmlRoot' => array(
  9810. 'name' => 'Request',
  9811. ),
  9812. ),
  9813. 'parameters' => array(
  9814. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9815. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9816. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9817. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  9818. 'Resolution' => array( 'location' => 'xml', 'type' => 'string', ),
  9819. 'EnableScaleUp' => array( 'location' => 'xml', 'type' => 'string', ),
  9820. 'Version' => array( 'location' => 'xml', 'type' => 'string', ),
  9821. ),
  9822. );
  9823. }
  9824. public static function UpdateMediaSuperResolutionTemplateOutput() {
  9825. return array(
  9826. 'type' => 'object',
  9827. 'additionalProperties' => true,
  9828. 'properties' => array(
  9829. 'Body' => array(
  9830. 'type' => 'string',
  9831. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9832. 'location' => 'body',
  9833. ),
  9834. 'RequestId' => array(
  9835. 'type' => 'string',
  9836. 'location' => 'header',
  9837. 'sentAs' => 'x-ci-request-id',
  9838. ),
  9839. 'ContentType' => array(
  9840. 'type' => 'string',
  9841. 'location' => 'header',
  9842. 'sentAs' => 'Content-Type',
  9843. ),
  9844. 'ContentLength' => array(
  9845. 'type' => 'numeric',
  9846. 'minimum'=> 0,
  9847. 'location' => 'header',
  9848. 'sentAs' => 'Content-Length',
  9849. ),
  9850. ),
  9851. );
  9852. }
  9853. public static function CreateMediaPicProcessTemplate() {
  9854. return array(
  9855. 'httpMethod' => 'POST',
  9856. 'uri' => '/{Bucket}template',
  9857. 'class' => 'Qcloud\\Cos\\Command',
  9858. 'responseClass' => 'CreateMediaPicProcessTemplateOutput',
  9859. 'responseType' => 'model',
  9860. 'data' => array(
  9861. 'xmlRoot' => array(
  9862. 'name' => 'Request',
  9863. ),
  9864. ),
  9865. 'parameters' => array(
  9866. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9867. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9868. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9869. 'PicProcess' => array(
  9870. 'type' => 'object',
  9871. 'location' => 'xml',
  9872. 'properties' => array(
  9873. 'IsPicInfo' => array( 'type' => 'string', 'location' => 'xml', ),
  9874. 'ProcessRule' => array( 'type' => 'string', 'location' => 'xml', ),
  9875. ),
  9876. ),
  9877. ),
  9878. );
  9879. }
  9880. public static function CreateMediaPicProcessTemplateOutput() {
  9881. return array(
  9882. 'type' => 'object',
  9883. 'additionalProperties' => true,
  9884. 'properties' => array(
  9885. 'Body' => array(
  9886. 'type' => 'string',
  9887. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9888. 'location' => 'body',
  9889. ),
  9890. 'RequestId' => array(
  9891. 'type' => 'string',
  9892. 'location' => 'header',
  9893. 'sentAs' => 'x-ci-request-id',
  9894. ),
  9895. 'ContentType' => array(
  9896. 'type' => 'string',
  9897. 'location' => 'header',
  9898. 'sentAs' => 'Content-Type',
  9899. ),
  9900. 'ContentLength' => array(
  9901. 'type' => 'numeric',
  9902. 'minimum'=> 0,
  9903. 'location' => 'header',
  9904. 'sentAs' => 'Content-Length',
  9905. ),
  9906. ),
  9907. );
  9908. }
  9909. public static function UpdateMediaPicProcessTemplate() {
  9910. return array(
  9911. 'httpMethod' => 'PUT',
  9912. 'uri' => '/{Bucket}template/{/Key*}',
  9913. 'class' => 'Qcloud\\Cos\\Command',
  9914. 'responseClass' => 'UpdateMediaPicProcessTemplateOutput',
  9915. 'responseType' => 'model',
  9916. 'data' => array(
  9917. 'xmlRoot' => array(
  9918. 'name' => 'Request',
  9919. ),
  9920. ),
  9921. 'parameters' => array(
  9922. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9923. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9924. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9925. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  9926. 'PicProcess' => array(
  9927. 'type' => 'object',
  9928. 'location' => 'xml',
  9929. 'properties' => array(
  9930. 'IsPicInfo' => array( 'type' => 'string', 'location' => 'xml', ),
  9931. 'ProcessRule' => array( 'type' => 'string', 'location' => 'xml', ),
  9932. ),
  9933. ),
  9934. ),
  9935. );
  9936. }
  9937. public static function UpdateMediaPicProcessTemplateOutput() {
  9938. return array(
  9939. 'type' => 'object',
  9940. 'additionalProperties' => true,
  9941. 'properties' => array(
  9942. 'Body' => array(
  9943. 'type' => 'string',
  9944. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  9945. 'location' => 'body',
  9946. ),
  9947. 'RequestId' => array(
  9948. 'type' => 'string',
  9949. 'location' => 'header',
  9950. 'sentAs' => 'x-ci-request-id',
  9951. ),
  9952. 'ContentType' => array(
  9953. 'type' => 'string',
  9954. 'location' => 'header',
  9955. 'sentAs' => 'Content-Type',
  9956. ),
  9957. 'ContentLength' => array(
  9958. 'type' => 'numeric',
  9959. 'minimum'=> 0,
  9960. 'location' => 'header',
  9961. 'sentAs' => 'Content-Length',
  9962. ),
  9963. ),
  9964. );
  9965. }
  9966. public static function CreateMediaWatermarkTemplate() {
  9967. return array(
  9968. 'httpMethod' => 'POST',
  9969. 'uri' => '/{Bucket}template',
  9970. 'class' => 'Qcloud\\Cos\\Command',
  9971. 'responseClass' => 'CreateMediaWatermarkTemplateOutput',
  9972. 'responseType' => 'model',
  9973. 'data' => array(
  9974. 'xmlRoot' => array(
  9975. 'name' => 'Request',
  9976. ),
  9977. ),
  9978. 'parameters' => array(
  9979. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  9980. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9981. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  9982. 'Watermark' => array(
  9983. 'type' => 'object',
  9984. 'location' => 'xml',
  9985. 'properties' => array(
  9986. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  9987. 'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
  9988. 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
  9989. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  9990. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  9991. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  9992. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  9993. 'Image' => array(
  9994. 'type' => 'object',
  9995. 'location' => 'xml',
  9996. 'properties' => array(
  9997. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  9998. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  9999. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  10000. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  10001. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  10002. 'Background' => array( 'type' => 'string', 'location' => 'xml', ),
  10003. ),
  10004. ),
  10005. 'Text' => array(
  10006. 'type' => 'object',
  10007. 'location' => 'xml',
  10008. 'properties' => array(
  10009. 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
  10010. 'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
  10011. 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
  10012. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  10013. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  10014. ),
  10015. ),
  10016. ),
  10017. ),
  10018. ),
  10019. );
  10020. }
  10021. public static function CreateMediaWatermarkTemplateOutput() {
  10022. return array(
  10023. 'type' => 'object',
  10024. 'additionalProperties' => true,
  10025. 'properties' => array(
  10026. 'Body' => array(
  10027. 'type' => 'string',
  10028. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  10029. 'location' => 'body',
  10030. ),
  10031. 'RequestId' => array(
  10032. 'type' => 'string',
  10033. 'location' => 'header',
  10034. 'sentAs' => 'x-ci-request-id',
  10035. ),
  10036. 'ContentType' => array(
  10037. 'type' => 'string',
  10038. 'location' => 'header',
  10039. 'sentAs' => 'Content-Type',
  10040. ),
  10041. 'ContentLength' => array(
  10042. 'type' => 'numeric',
  10043. 'minimum'=> 0,
  10044. 'location' => 'header',
  10045. 'sentAs' => 'Content-Length',
  10046. ),
  10047. ),
  10048. );
  10049. }
  10050. public static function UpdateMediaWatermarkTemplate() {
  10051. return array(
  10052. 'httpMethod' => 'PUT',
  10053. 'uri' => '/{Bucket}template/{/Key*}',
  10054. 'class' => 'Qcloud\\Cos\\Command',
  10055. 'responseClass' => 'UpdateMediaWatermarkTemplateOutput',
  10056. 'responseType' => 'model',
  10057. 'data' => array(
  10058. 'xmlRoot' => array(
  10059. 'name' => 'Request',
  10060. ),
  10061. ),
  10062. 'parameters' => array(
  10063. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10064. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10065. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  10066. 'Name' => array( 'location' => 'xml', 'type' => 'string', ),
  10067. 'Watermark' => array(
  10068. 'type' => 'object',
  10069. 'location' => 'xml',
  10070. 'properties' => array(
  10071. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  10072. 'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
  10073. 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
  10074. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  10075. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  10076. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  10077. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  10078. 'Image' => array(
  10079. 'type' => 'object',
  10080. 'location' => 'xml',
  10081. 'properties' => array(
  10082. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  10083. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  10084. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  10085. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  10086. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  10087. 'Background' => array( 'type' => 'string', 'location' => 'xml', ),
  10088. ),
  10089. ),
  10090. 'Text' => array(
  10091. 'type' => 'object',
  10092. 'location' => 'xml',
  10093. 'properties' => array(
  10094. 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
  10095. 'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
  10096. 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
  10097. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  10098. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  10099. ),
  10100. ),
  10101. ),
  10102. ),
  10103. ),
  10104. );
  10105. }
  10106. public static function UpdateMediaWatermarkTemplateOutput() {
  10107. return array(
  10108. 'type' => 'object',
  10109. 'additionalProperties' => true,
  10110. 'properties' => array(
  10111. 'Body' => array(
  10112. 'type' => 'string',
  10113. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  10114. 'location' => 'body',
  10115. ),
  10116. 'RequestId' => array(
  10117. 'type' => 'string',
  10118. 'location' => 'header',
  10119. 'sentAs' => 'x-ci-request-id',
  10120. ),
  10121. 'ContentType' => array(
  10122. 'type' => 'string',
  10123. 'location' => 'header',
  10124. 'sentAs' => 'Content-Type',
  10125. ),
  10126. 'ContentLength' => array(
  10127. 'type' => 'numeric',
  10128. 'minimum'=> 0,
  10129. 'location' => 'header',
  10130. 'sentAs' => 'Content-Length',
  10131. ),
  10132. ),
  10133. );
  10134. }
  10135. public static function DescribeMediaTemplates() {
  10136. return array(
  10137. 'httpMethod' => 'GET',
  10138. 'uri' => '/{Bucket}template',
  10139. 'class' => 'Qcloud\\Cos\\Command',
  10140. 'responseClass' => 'DescribeMediaTemplatesOutput',
  10141. 'responseType' => 'model',
  10142. 'parameters' => array(
  10143. 'Bucket' => array(
  10144. 'required' => true,
  10145. 'type' => 'string',
  10146. 'location' => 'uri',
  10147. ),
  10148. 'Tag' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'tag' ),
  10149. 'Category' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'category' ),
  10150. 'Ids' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'ids' ),
  10151. 'Name' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'name' ),
  10152. 'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ),
  10153. 'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ),
  10154. ),
  10155. );
  10156. }
  10157. public static function DescribeMediaTemplatesOutput() {
  10158. return array(
  10159. 'type' => 'object',
  10160. 'additionalProperties' => true,
  10161. 'properties' => array(
  10162. 'RequestId' => array(
  10163. 'type' => 'string',
  10164. 'location' => 'header',
  10165. 'sentAs' => 'x-ci-request-id',
  10166. ),
  10167. 'ContentType' => array(
  10168. 'type' => 'string',
  10169. 'location' => 'header',
  10170. 'sentAs' => 'Content-Type',
  10171. ),
  10172. 'ContentLength' => array(
  10173. 'type' => 'numeric',
  10174. 'minimum'=> 0,
  10175. 'location' => 'header',
  10176. 'sentAs' => 'Content-Length',
  10177. ),
  10178. 'TotalCount' => array( 'type' => 'string', 'location' => 'xml', ),
  10179. 'PageNumber' => array( 'type' => 'string', 'location' => 'xml', ),
  10180. 'PageSize' => array( 'type' => 'string', 'location' => 'xml', ),
  10181. 'TemplateList' => array(
  10182. 'type' => 'array',
  10183. 'location' => 'xml',
  10184. 'items' => array(
  10185. 'type' => 'object',
  10186. 'location' => 'xml',
  10187. ),
  10188. ),
  10189. ),
  10190. );
  10191. }
  10192. public static function DescribeWorkflow() {
  10193. return array(
  10194. 'httpMethod' => 'GET',
  10195. 'uri' => '/{Bucket}workflow',
  10196. 'class' => 'Qcloud\\Cos\\Command',
  10197. 'responseClass' => 'DescribeWorkflowOutput',
  10198. 'responseType' => 'model',
  10199. 'parameters' => array(
  10200. 'Bucket' => array(
  10201. 'required' => true,
  10202. 'type' => 'string',
  10203. 'location' => 'uri',
  10204. ),
  10205. 'Ids' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'ids' ),
  10206. 'Name' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'name' ),
  10207. 'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ),
  10208. 'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ),
  10209. ),
  10210. );
  10211. }
  10212. public static function DescribeWorkflowOutput() {
  10213. return array(
  10214. 'type' => 'object',
  10215. 'additionalProperties' => true,
  10216. 'properties' => array(
  10217. 'RequestId' => array(
  10218. 'type' => 'string',
  10219. 'location' => 'header',
  10220. 'sentAs' => 'x-ci-request-id',
  10221. ),
  10222. 'ContentType' => array(
  10223. 'type' => 'string',
  10224. 'location' => 'header',
  10225. 'sentAs' => 'Content-Type',
  10226. ),
  10227. 'ContentLength' => array(
  10228. 'type' => 'numeric',
  10229. 'minimum'=> 0,
  10230. 'location' => 'header',
  10231. 'sentAs' => 'Content-Length',
  10232. ),
  10233. 'TotalCount' => array( 'type' => 'string', 'location' => 'xml', ),
  10234. 'PageNumber' => array( 'type' => 'string', 'location' => 'xml', ),
  10235. 'PageSize' => array( 'type' => 'string', 'location' => 'xml', ),
  10236. 'MediaWorkflowList' => array(
  10237. 'type' => 'array',
  10238. 'location' => 'xml',
  10239. 'items' => array(
  10240. 'type' => 'object',
  10241. 'location' => 'xml',
  10242. ),
  10243. ),
  10244. ),
  10245. );
  10246. }
  10247. public static function DeleteWorkflow() {
  10248. return array(
  10249. 'httpMethod' => 'DELETE',
  10250. 'uri' => '/{Bucket}workflow/{/Key*}',
  10251. 'class' => 'Qcloud\\Cos\\Command',
  10252. 'responseClass' => 'DeleteWorkflowOutput',
  10253. 'responseType' => 'model',
  10254. 'parameters' => array(
  10255. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10256. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10257. ),
  10258. );
  10259. }
  10260. public static function DeleteWorkflowOutput() {
  10261. return array(
  10262. 'type' => 'object',
  10263. 'additionalProperties' => true,
  10264. 'properties' => array(
  10265. 'RequestId' => array(
  10266. 'type' => 'string',
  10267. 'location' => 'header',
  10268. 'sentAs' => 'x-ci-request-id',
  10269. ),
  10270. 'ContentType' => array(
  10271. 'type' => 'string',
  10272. 'location' => 'header',
  10273. 'sentAs' => 'Content-Type',
  10274. ),
  10275. 'ContentLength' => array(
  10276. 'type' => 'numeric',
  10277. 'minimum'=> 0,
  10278. 'location' => 'header',
  10279. 'sentAs' => 'Content-Length',
  10280. ),
  10281. 'WorkflowId' => array( 'type' => 'string', 'location' => 'xml' ),
  10282. ),
  10283. );
  10284. }
  10285. public static function CreateInventoryTriggerJob() {
  10286. return array(
  10287. 'httpMethod' => 'POST',
  10288. 'uri' => '/{Bucket}inventorytriggerjob',
  10289. 'class' => 'Qcloud\\Cos\\Command',
  10290. 'responseClass' => 'CreateInventoryTriggerJobOutput',
  10291. 'responseType' => 'model',
  10292. 'data' => array(
  10293. 'xmlRoot' => array(
  10294. 'name' => 'Request',
  10295. ),
  10296. ),
  10297. 'parameters' => array(
  10298. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10299. 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  10300. 'Input' => array(
  10301. 'type' => 'object',
  10302. 'location' => 'xml',
  10303. 'properties' => array(
  10304. 'Manifest' => array( 'type' => 'string', 'location' => 'xml', ),
  10305. 'UrlFile' => array( 'type' => 'string', 'location' => 'xml', ),
  10306. 'Prefix' => array( 'type' => 'string', 'location' => 'xml', ),
  10307. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  10308. ),
  10309. ),
  10310. 'Operation' => array(
  10311. 'type' => 'object',
  10312. 'location' => 'xml',
  10313. 'properties' => array(
  10314. 'WorkflowIds' => array( 'type' => 'string', 'location' => 'xml', ),
  10315. 'TimeInterval' => array(
  10316. 'type' => 'object',
  10317. 'location' => 'xml',
  10318. 'properties' => array(
  10319. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  10320. 'End' => array( 'type' => 'string', 'location' => 'xml', ),
  10321. ),
  10322. ),
  10323. ),
  10324. ),
  10325. ),
  10326. );
  10327. }
  10328. public static function CreateInventoryTriggerJobOutput() {
  10329. return array(
  10330. 'type' => 'object',
  10331. 'additionalProperties' => true,
  10332. 'properties' => array(
  10333. 'Body' => array(
  10334. 'type' => 'string',
  10335. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  10336. 'location' => 'body',
  10337. ),
  10338. 'RequestId' => array(
  10339. 'type' => 'string',
  10340. 'location' => 'header',
  10341. 'sentAs' => 'x-ci-request-id',
  10342. ),
  10343. 'ContentType' => array(
  10344. 'type' => 'string',
  10345. 'location' => 'header',
  10346. 'sentAs' => 'Content-Type',
  10347. ),
  10348. 'ContentLength' => array(
  10349. 'type' => 'numeric',
  10350. 'minimum'=> 0,
  10351. 'location' => 'header',
  10352. 'sentAs' => 'Content-Length',
  10353. ),
  10354. ),
  10355. );
  10356. }
  10357. public static function DescribeInventoryTriggerJobs() {
  10358. return array(
  10359. 'httpMethod' => 'GET',
  10360. 'uri' => '/{Bucket}inventorytriggerjob',
  10361. 'class' => 'Qcloud\\Cos\\Command',
  10362. 'responseClass' => 'DescribeInventoryTriggerJobsOutput',
  10363. 'responseType' => 'model',
  10364. 'parameters' => array(
  10365. 'Bucket' => array(
  10366. 'required' => true,
  10367. 'type' => 'string',
  10368. 'location' => 'uri',
  10369. ),
  10370. 'NextToken' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'nextToken' ),
  10371. 'Size' => array( 'type' => 'integer', 'location' => 'query', 'sentAs' => 'size' ),
  10372. 'OrderByTime' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'orderByTime' ),
  10373. 'States' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'states' ),
  10374. 'StartCreationTime' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'startCreationTime' ),
  10375. 'EndCreationTime' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'endCreationTime' ),
  10376. 'WorkflowId' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'workflowId' ),
  10377. 'JobId' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'jobId' ),
  10378. 'Name' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'name' ),
  10379. ),
  10380. );
  10381. }
  10382. public static function DescribeInventoryTriggerJobsOutput() {
  10383. return array(
  10384. 'type' => 'object',
  10385. 'additionalProperties' => true,
  10386. 'properties' => array(
  10387. 'Body' => array(
  10388. 'type' => 'string',
  10389. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  10390. 'location' => 'body',
  10391. ),
  10392. 'RequestId' => array(
  10393. 'type' => 'string',
  10394. 'location' => 'header',
  10395. 'sentAs' => 'x-ci-request-id',
  10396. ),
  10397. 'ContentType' => array(
  10398. 'type' => 'string',
  10399. 'location' => 'header',
  10400. 'sentAs' => 'Content-Type',
  10401. ),
  10402. 'ContentLength' => array(
  10403. 'type' => 'numeric',
  10404. 'minimum'=> 0,
  10405. 'location' => 'header',
  10406. 'sentAs' => 'Content-Length',
  10407. ),
  10408. ),
  10409. );
  10410. }
  10411. public static function DescribeInventoryTriggerJob() {
  10412. return array(
  10413. 'httpMethod' => 'GET',
  10414. 'uri' => '/{Bucket}inventorytriggerjob/{/Key*}',
  10415. 'class' => 'Qcloud\\Cos\\Command',
  10416. 'responseClass' => 'DescribeInventoryTriggerJobOutput',
  10417. 'responseType' => 'model',
  10418. 'parameters' => array(
  10419. 'Bucket' => array(
  10420. 'required' => true,
  10421. 'type' => 'string',
  10422. 'location' => 'uri',
  10423. ),
  10424. 'Key' => array(
  10425. 'required' => true,
  10426. 'type' => 'string',
  10427. 'location' => 'uri',
  10428. ),
  10429. ),
  10430. );
  10431. }
  10432. public static function DescribeInventoryTriggerJobOutput() {
  10433. return array(
  10434. 'type' => 'object',
  10435. 'additionalProperties' => true,
  10436. 'properties' => array(
  10437. 'Body' => array(
  10438. 'type' => 'string',
  10439. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  10440. 'location' => 'body',
  10441. ),
  10442. 'RequestId' => array(
  10443. 'type' => 'string',
  10444. 'location' => 'header',
  10445. 'sentAs' => 'x-ci-request-id',
  10446. ),
  10447. 'ContentType' => array(
  10448. 'type' => 'string',
  10449. 'location' => 'header',
  10450. 'sentAs' => 'Content-Type',
  10451. ),
  10452. 'ContentLength' => array(
  10453. 'type' => 'numeric',
  10454. 'minimum'=> 0,
  10455. 'location' => 'header',
  10456. 'sentAs' => 'Content-Length',
  10457. ),
  10458. ),
  10459. );
  10460. }
  10461. public static function CancelInventoryTriggerJob() {
  10462. return array(
  10463. 'httpMethod' => 'PUT',
  10464. 'uri' => '/{Bucket}inventorytriggerjob/{/Key*}?cancel',
  10465. 'class' => 'Qcloud\\Cos\\Command',
  10466. 'responseClass' => 'CancelInventoryTriggerJobOutput',
  10467. 'responseType' => 'model',
  10468. 'parameters' => array(
  10469. 'Bucket' => array(
  10470. 'required' => true,
  10471. 'type' => 'string',
  10472. 'location' => 'uri',
  10473. ),
  10474. 'Key' => array(
  10475. 'required' => true,
  10476. 'type' => 'string',
  10477. 'location' => 'uri',
  10478. ),
  10479. ),
  10480. );
  10481. }
  10482. public static function CancelInventoryTriggerJobOutput() {
  10483. return array(
  10484. 'type' => 'object',
  10485. 'additionalProperties' => true,
  10486. 'properties' => array(
  10487. 'RequestId' => array(
  10488. 'type' => 'string',
  10489. 'location' => 'header',
  10490. 'sentAs' => 'x-ci-request-id',
  10491. ),
  10492. 'ContentType' => array(
  10493. 'type' => 'string',
  10494. 'location' => 'header',
  10495. 'sentAs' => 'Content-Type',
  10496. ),
  10497. 'ContentLength' => array(
  10498. 'type' => 'numeric',
  10499. 'minimum'=> 0,
  10500. 'location' => 'header',
  10501. 'sentAs' => 'Content-Length',
  10502. ),
  10503. ),
  10504. );
  10505. }
  10506. public static function CreateMediaNoiseReductionJobs() {
  10507. return array(
  10508. 'httpMethod' => 'POST',
  10509. 'uri' => '/{Bucket}jobs',
  10510. 'class' => 'Qcloud\\Cos\\Command',
  10511. 'responseClass' => 'CreateMediaNoiseReductionJobsOutput',
  10512. 'responseType' => 'model',
  10513. 'data' => array(
  10514. 'xmlRoot' => array(
  10515. 'name' => 'Request',
  10516. ),
  10517. ),
  10518. 'parameters' => array(
  10519. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10520. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  10521. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  10522. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  10523. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  10524. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  10525. 'Input' => array(
  10526. 'required' => true,
  10527. 'type' => 'object',
  10528. 'location' => 'xml',
  10529. 'properties' => array(
  10530. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  10531. ),
  10532. ),
  10533. 'Operation' => array(
  10534. 'type' => 'object',
  10535. 'location' => 'xml',
  10536. 'properties' => array(
  10537. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  10538. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  10539. 'Output' => array(
  10540. 'type' => 'object',
  10541. 'location' => 'xml',
  10542. 'properties' => array(
  10543. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  10544. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  10545. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  10546. ),
  10547. ),
  10548. ),
  10549. ),
  10550. 'CallBackMqConfig' => array(
  10551. 'type' => 'object',
  10552. 'location' => 'xml',
  10553. 'properties' => array(
  10554. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  10555. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  10556. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  10557. ),
  10558. ),
  10559. ),
  10560. );
  10561. }
  10562. public static function CreateMediaNoiseReductionJobsOutput() {
  10563. return array(
  10564. 'type' => 'object',
  10565. 'additionalProperties' => true,
  10566. 'properties' => array(
  10567. 'Body' => array(
  10568. 'type' => 'string',
  10569. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  10570. 'location' => 'body',
  10571. ),
  10572. 'RequestId' => array(
  10573. 'type' => 'string',
  10574. 'location' => 'header',
  10575. 'sentAs' => 'x-ci-request-id',
  10576. ),
  10577. 'ContentType' => array(
  10578. 'type' => 'string',
  10579. 'location' => 'header',
  10580. 'sentAs' => 'Content-Type',
  10581. ),
  10582. 'ContentLength' => array(
  10583. 'type' => 'numeric',
  10584. 'minimum'=> 0,
  10585. 'location' => 'header',
  10586. 'sentAs' => 'Content-Length',
  10587. ),
  10588. ),
  10589. );
  10590. }
  10591. public static function ImageRepairProcess() {
  10592. return array(
  10593. 'httpMethod' => 'GET',
  10594. 'uri' => '/{Bucket}{/Key*}',
  10595. 'class' => 'Qcloud\\Cos\\Command',
  10596. 'responseClass' => 'ImageRepairProcessOutput',
  10597. 'responseType' => 'model',
  10598. 'parameters' => array(
  10599. 'Bucket' => array(
  10600. 'required' => true,
  10601. 'type' => 'string',
  10602. 'location' => 'uri',
  10603. ),
  10604. 'Key' => array(
  10605. 'required' => true,
  10606. 'type' => 'string',
  10607. 'location' => 'uri',
  10608. ),
  10609. 'ci-process' => array(
  10610. 'required' => true,
  10611. 'type' => 'string',
  10612. 'location' => 'query'
  10613. ),
  10614. 'MaskPic' => array(
  10615. 'type' => 'string',
  10616. 'location' => 'query',
  10617. ),
  10618. 'MaskPoly' => array(
  10619. 'type' => 'string',
  10620. 'location' => 'query',
  10621. ),
  10622. ),
  10623. );
  10624. }
  10625. public static function ImageRepairProcessOutput() {
  10626. return array(
  10627. 'type' => 'object',
  10628. 'additionalProperties' => true,
  10629. 'properties' => array(
  10630. 'Body' => array(
  10631. 'type' => 'string',
  10632. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  10633. 'location' => 'body',
  10634. ),
  10635. 'RequestId' => array(
  10636. 'type' => 'string',
  10637. 'location' => 'header',
  10638. 'sentAs' => 'x-cos-request-id',
  10639. ),
  10640. 'ContentType' => array(
  10641. 'type' => 'string',
  10642. 'location' => 'header',
  10643. 'sentAs' => 'Content-Type',
  10644. ),
  10645. 'ContentLength' => array(
  10646. 'type' => 'numeric',
  10647. 'minimum'=> 0,
  10648. 'location' => 'header',
  10649. 'sentAs' => 'Content-Length',
  10650. ),
  10651. ),
  10652. );
  10653. }
  10654. public static function ImageDetectCarProcess() {
  10655. return array(
  10656. 'httpMethod' => 'GET',
  10657. 'uri' => '/{Bucket}{/Key*}?ci-process=DetectCar',
  10658. 'class' => 'Qcloud\\Cos\\Command',
  10659. 'responseClass' => 'ImageDetectCarProcessOutput',
  10660. 'responseType' => 'model',
  10661. 'parameters' => array(
  10662. 'Bucket' => array(
  10663. 'required' => true,
  10664. 'type' => 'string',
  10665. 'location' => 'uri',
  10666. ),
  10667. 'Key' => array(
  10668. 'required' => true,
  10669. 'type' => 'string',
  10670. 'location' => 'uri',
  10671. ),
  10672. ),
  10673. );
  10674. }
  10675. public static function ImageDetectCarProcessOutput() {
  10676. return array(
  10677. 'type' => 'object',
  10678. 'additionalProperties' => true,
  10679. 'properties' => array(
  10680. 'RequestId' => array(
  10681. 'type' => 'string',
  10682. 'location' => 'header',
  10683. 'sentAs' => 'x-cos-request-id',
  10684. ),
  10685. 'ContentType' => array(
  10686. 'type' => 'string',
  10687. 'location' => 'header',
  10688. 'sentAs' => 'Content-Type',
  10689. ),
  10690. 'ContentLength' => array(
  10691. 'type' => 'numeric',
  10692. 'minimum'=> 0,
  10693. 'location' => 'header',
  10694. 'sentAs' => 'Content-Length',
  10695. ),
  10696. 'CarTags' => array(
  10697. 'type' => 'object',
  10698. 'location' => 'xml',
  10699. 'properties' => array(
  10700. 'Serial' => array( 'type' => 'string', 'location' => 'xml', ),
  10701. 'Brand' => array( 'type' => 'string', 'location' => 'xml', ),
  10702. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  10703. 'Color' => array( 'type' => 'string', 'location' => 'xml', ),
  10704. 'Confidence' => array( 'type' => 'numeric', 'location' => 'xml', ),
  10705. 'Year' => array( 'type' => 'numeric', 'location' => 'xml', ),
  10706. 'CarLocation' => array(
  10707. 'type' => 'object',
  10708. 'location' => 'xml',
  10709. 'properties' => array(
  10710. 'X' => array( 'type' => 'numeric', 'location' => 'xml', ),
  10711. 'Y' => array( 'type' => 'numeric', 'location' => 'xml', ),
  10712. ),
  10713. ),
  10714. 'PlateContent' => array(
  10715. 'type' => 'object',
  10716. 'location' => 'xml',
  10717. 'properties' => array(
  10718. 'Plate' => array( 'type' => 'string', 'location' => 'xml', ),
  10719. 'Color' => array( 'type' => 'string', 'location' => 'xml', ),
  10720. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  10721. 'PlateLocation' => array(
  10722. 'type' => 'object',
  10723. 'location' => 'xml',
  10724. 'properties' => array(
  10725. 'X' => array( 'type' => 'numeric', 'location' => 'xml', ),
  10726. 'Y' => array( 'type' => 'numeric', 'location' => 'xml', ),
  10727. ),
  10728. ),
  10729. ),
  10730. ),
  10731. ),
  10732. ),
  10733. ),
  10734. );
  10735. }
  10736. public static function ImageAssessQualityProcess() {
  10737. return array(
  10738. 'httpMethod' => 'GET',
  10739. 'uri' => '/{Bucket}{/Key*}?ci-process=AssessQuality',
  10740. 'class' => 'Qcloud\\Cos\\Command',
  10741. 'responseClass' => 'ImageAssessQualityProcessOutput',
  10742. 'responseType' => 'model',
  10743. 'parameters' => array(
  10744. 'Bucket' => array(
  10745. 'required' => true,
  10746. 'type' => 'string',
  10747. 'location' => 'uri',
  10748. ),
  10749. 'Key' => array(
  10750. 'required' => true,
  10751. 'type' => 'string',
  10752. 'location' => 'uri',
  10753. ),
  10754. ),
  10755. );
  10756. }
  10757. public static function ImageAssessQualityProcessOutput() {
  10758. return array(
  10759. 'type' => 'object',
  10760. 'additionalProperties' => true,
  10761. 'properties' => array(
  10762. 'RequestId' => array(
  10763. 'type' => 'string',
  10764. 'location' => 'header',
  10765. 'sentAs' => 'x-cos-request-id',
  10766. ),
  10767. 'ContentType' => array(
  10768. 'type' => 'string',
  10769. 'location' => 'header',
  10770. 'sentAs' => 'Content-Type',
  10771. ),
  10772. 'ContentLength' => array(
  10773. 'type' => 'numeric',
  10774. 'minimum'=> 0,
  10775. 'location' => 'header',
  10776. 'sentAs' => 'Content-Length',
  10777. ),
  10778. 'LongImage' => array( 'type' => 'string', 'location' => 'xml', ),
  10779. 'BlackAndWhite' => array( 'type' => 'string', 'location' => 'xml', ),
  10780. 'SmallImage' => array( 'type' => 'string', 'location' => 'xml', ),
  10781. 'BigImage' => array( 'type' => 'string', 'location' => 'xml', ),
  10782. 'PureImage' => array( 'type' => 'string', 'location' => 'xml', ),
  10783. 'ClarityScore' => array( 'type' => 'string', 'location' => 'xml', ),
  10784. 'AestheticScore' => array( 'type' => 'string', 'location' => 'xml', ),
  10785. ),
  10786. );
  10787. }
  10788. public static function ImageSearchOpen() {
  10789. return array(
  10790. 'httpMethod' => 'POST',
  10791. 'uri' => '/{Bucket}ImageSearchBucket',
  10792. 'class' => 'Qcloud\\Cos\\Command',
  10793. 'responseClass' => 'ImageSearchOpenOutput',
  10794. 'responseType' => 'model',
  10795. 'data' => array(
  10796. 'xmlRoot' => array(
  10797. 'name' => 'Request',
  10798. ),
  10799. ),
  10800. 'parameters' => array(
  10801. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10802. 'MaxCapacity' => array( 'location' => 'xml', 'type' => 'integer', ),
  10803. 'MaxQps' => array( 'location' => 'xml', 'type' => 'integer', ),
  10804. ),
  10805. );
  10806. }
  10807. public static function ImageSearchOpenOutput() {
  10808. return array(
  10809. 'type' => 'object',
  10810. 'additionalProperties' => true,
  10811. 'properties' => array(
  10812. 'RequestId' => array(
  10813. 'type' => 'string',
  10814. 'location' => 'header',
  10815. 'sentAs' => 'x-ci-request-id',
  10816. ),
  10817. 'ContentType' => array(
  10818. 'type' => 'string',
  10819. 'location' => 'header',
  10820. 'sentAs' => 'Content-Type',
  10821. ),
  10822. 'ContentLength' => array(
  10823. 'type' => 'numeric',
  10824. 'minimum'=> 0,
  10825. 'location' => 'header',
  10826. 'sentAs' => 'Content-Length',
  10827. ),
  10828. ),
  10829. );
  10830. }
  10831. public static function ImageSearchAdd() {
  10832. return array(
  10833. 'httpMethod' => 'POST',
  10834. 'uri' => '/{Bucket}{/Key*}?ci-process=ImageSearch&action=AddImage',
  10835. 'class' => 'Qcloud\\Cos\\Command',
  10836. 'responseClass' => 'ImageSearchAddOutput',
  10837. 'responseType' => 'model',
  10838. 'data' => array(
  10839. 'xmlRoot' => array(
  10840. 'name' => 'Request',
  10841. ),
  10842. ),
  10843. 'parameters' => array(
  10844. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10845. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10846. 'EntityId' => array( 'location' => 'xml', 'type' => 'string', ),
  10847. 'CustomContent' => array( 'location' => 'xml', 'type' => 'string', ),
  10848. 'Tags' => array( 'location' => 'xml', 'type' => 'string', ),
  10849. ),
  10850. );
  10851. }
  10852. public static function ImageSearchAddOutput() {
  10853. return array(
  10854. 'type' => 'object',
  10855. 'additionalProperties' => true,
  10856. 'properties' => array(
  10857. 'RequestId' => array(
  10858. 'type' => 'string',
  10859. 'location' => 'header',
  10860. 'sentAs' => 'x-cos-request-id',
  10861. ),
  10862. 'ContentType' => array(
  10863. 'type' => 'string',
  10864. 'location' => 'header',
  10865. 'sentAs' => 'Content-Type',
  10866. ),
  10867. 'ContentLength' => array(
  10868. 'type' => 'numeric',
  10869. 'minimum'=> 0,
  10870. 'location' => 'header',
  10871. 'sentAs' => 'Content-Length',
  10872. ),
  10873. ),
  10874. );
  10875. }
  10876. public static function ImageSearch() {
  10877. return array(
  10878. 'httpMethod' => 'GET',
  10879. 'uri' => '/{Bucket}{/Key*}?ci-process=ImageSearch&action=SearchImage',
  10880. 'class' => 'Qcloud\\Cos\\Command',
  10881. 'responseClass' => 'ImageSearchOutput',
  10882. 'responseType' => 'model',
  10883. 'parameters' => array(
  10884. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10885. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10886. 'MatchThreshold' => array( 'type' => 'integer', 'location' => 'query' ),
  10887. 'Offset' => array( 'type' => 'integer', 'location' => 'query' ),
  10888. 'Limit' => array( 'type' => 'integer', 'location' => 'query' ),
  10889. 'Filter' => array( 'type' => 'string', 'location' => 'query' ),
  10890. ),
  10891. );
  10892. }
  10893. public static function ImageSearchOutput() {
  10894. return array(
  10895. 'type' => 'object',
  10896. 'additionalProperties' => true,
  10897. 'properties' => array(
  10898. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  10899. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  10900. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  10901. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  10902. 'ImageInfos' => array(
  10903. 'type' => 'array',
  10904. 'location' => 'xml',
  10905. 'items' => array(
  10906. 'type' => 'object',
  10907. 'location' => 'xml',
  10908. 'properties' => array(
  10909. 'EntityId' => array( 'type' => 'string', 'location' => 'xml',),
  10910. 'CustomContent' => array( 'type' => 'string', 'location' => 'xml',),
  10911. 'Tags' => array( 'type' => 'string', 'location' => 'xml',),
  10912. 'PicName' => array( 'type' => 'string', 'location' => 'xml',),
  10913. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  10914. ),
  10915. ),
  10916. ),
  10917. )
  10918. );
  10919. }
  10920. public static function ImageSearchDelete() {
  10921. return array(
  10922. 'httpMethod' => 'POST',
  10923. 'uri' => '/{Bucket}{/Key*}?ci-process=ImageSearch&action=DeleteImage',
  10924. 'class' => 'Qcloud\\Cos\\Command',
  10925. 'responseClass' => 'ImageSearchDeleteOutput',
  10926. 'responseType' => 'model',
  10927. 'data' => array(
  10928. 'xmlRoot' => array(
  10929. 'name' => 'Request',
  10930. ),
  10931. ),
  10932. 'parameters' => array(
  10933. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10934. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10935. 'EntityId' => array( 'location' => 'xml', 'type' => 'string', ),
  10936. ),
  10937. );
  10938. }
  10939. public static function ImageSearchDeleteOutput() {
  10940. return array(
  10941. 'type' => 'object',
  10942. 'additionalProperties' => true,
  10943. 'properties' => array(
  10944. 'RequestId' => array(
  10945. 'type' => 'string',
  10946. 'location' => 'header',
  10947. 'sentAs' => 'x-cos-request-id',
  10948. ),
  10949. 'ContentType' => array(
  10950. 'type' => 'string',
  10951. 'location' => 'header',
  10952. 'sentAs' => 'Content-Type',
  10953. ),
  10954. 'ContentLength' => array(
  10955. 'type' => 'numeric',
  10956. 'minimum'=> 0,
  10957. 'location' => 'header',
  10958. 'sentAs' => 'Content-Length',
  10959. ),
  10960. ),
  10961. );
  10962. }
  10963. public static function BindCiService() {
  10964. return array(
  10965. 'httpMethod' => 'PUT',
  10966. 'uri' => '/{Bucket}',
  10967. 'class' => 'Qcloud\\Cos\\Command',
  10968. 'responseClass' => 'BindCiServiceOutput',
  10969. 'responseType' => 'model',
  10970. 'parameters' => array(
  10971. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  10972. ),
  10973. );
  10974. }
  10975. public static function BindCiServiceOutput() {
  10976. return array(
  10977. 'type' => 'object',
  10978. 'additionalProperties' => true,
  10979. 'properties' => array(
  10980. 'RequestId' => array(
  10981. 'type' => 'string',
  10982. 'location' => 'header',
  10983. 'sentAs' => 'x-cos-request-id',
  10984. ),
  10985. 'ContentType' => array(
  10986. 'type' => 'string',
  10987. 'location' => 'header',
  10988. 'sentAs' => 'Content-Type',
  10989. ),
  10990. 'ContentLength' => array(
  10991. 'type' => 'numeric',
  10992. 'minimum'=> 0,
  10993. 'location' => 'header',
  10994. 'sentAs' => 'Content-Length',
  10995. ),
  10996. ),
  10997. );
  10998. }
  10999. public static function GetCiService() {
  11000. return array(
  11001. 'httpMethod' => 'GET',
  11002. 'uri' => '/{Bucket}',
  11003. 'class' => 'Qcloud\\Cos\\Command',
  11004. 'responseClass' => 'GetCiServiceOutput',
  11005. 'responseType' => 'model',
  11006. 'parameters' => array(
  11007. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11008. ),
  11009. );
  11010. }
  11011. public static function GetCiServiceOutput() {
  11012. return array(
  11013. 'type' => 'object',
  11014. 'additionalProperties' => true,
  11015. 'properties' => array(
  11016. 'Body' => array(
  11017. 'type' => 'string',
  11018. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  11019. 'location' => 'body',
  11020. ),
  11021. 'RequestId' => array(
  11022. 'type' => 'string',
  11023. 'location' => 'header',
  11024. 'sentAs' => 'x-cos-request-id',
  11025. ),
  11026. 'ContentType' => array(
  11027. 'type' => 'string',
  11028. 'location' => 'header',
  11029. 'sentAs' => 'Content-Type',
  11030. ),
  11031. 'ContentLength' => array(
  11032. 'type' => 'numeric',
  11033. 'minimum'=> 0,
  11034. 'location' => 'header',
  11035. 'sentAs' => 'Content-Length',
  11036. ),
  11037. ),
  11038. );
  11039. }
  11040. public static function UnBindCiService() {
  11041. return array(
  11042. 'httpMethod' => 'PUT',
  11043. 'uri' => '/{Bucket}?unbind',
  11044. 'class' => 'Qcloud\\Cos\\Command',
  11045. 'responseClass' => 'UnBindCiServiceOutput',
  11046. 'responseType' => 'model',
  11047. 'parameters' => array(
  11048. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11049. ),
  11050. );
  11051. }
  11052. public static function UnBindCiServiceOutput() {
  11053. return array(
  11054. 'type' => 'object',
  11055. 'additionalProperties' => true,
  11056. 'properties' => array(
  11057. 'RequestId' => array(
  11058. 'type' => 'string',
  11059. 'location' => 'header',
  11060. 'sentAs' => 'x-cos-request-id',
  11061. ),
  11062. 'ContentType' => array(
  11063. 'type' => 'string',
  11064. 'location' => 'header',
  11065. 'sentAs' => 'Content-Type',
  11066. ),
  11067. 'ContentLength' => array(
  11068. 'type' => 'numeric',
  11069. 'minimum'=> 0,
  11070. 'location' => 'header',
  11071. 'sentAs' => 'Content-Length',
  11072. ),
  11073. ),
  11074. );
  11075. }
  11076. public static function GetHotLink() {
  11077. return array(
  11078. 'httpMethod' => 'GET',
  11079. 'uri' => '/{Bucket}?hotlink',
  11080. 'class' => 'Qcloud\\Cos\\Command',
  11081. 'responseClass' => 'GetHotLinkOutput',
  11082. 'responseType' => 'model',
  11083. 'parameters' => array(
  11084. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11085. ),
  11086. );
  11087. }
  11088. public static function GetHotLinkOutput() {
  11089. return array(
  11090. 'type' => 'object',
  11091. 'additionalProperties' => true,
  11092. 'properties' => array(
  11093. 'Body' => array(
  11094. 'type' => 'string',
  11095. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  11096. 'location' => 'body',
  11097. ),
  11098. 'RequestId' => array(
  11099. 'type' => 'string',
  11100. 'location' => 'header',
  11101. 'sentAs' => 'x-cos-request-id',
  11102. ),
  11103. 'ContentType' => array(
  11104. 'type' => 'string',
  11105. 'location' => 'header',
  11106. 'sentAs' => 'Content-Type',
  11107. ),
  11108. 'ContentLength' => array(
  11109. 'type' => 'numeric',
  11110. 'minimum'=> 0,
  11111. 'location' => 'header',
  11112. 'sentAs' => 'Content-Length',
  11113. ),
  11114. ),
  11115. );
  11116. }
  11117. public static function AddHotLink() {
  11118. return array(
  11119. 'httpMethod' => 'PUT',
  11120. 'uri' => '/{Bucket}?hotlink',
  11121. 'class' => 'Qcloud\\Cos\\Command',
  11122. 'responseClass' => 'AddHotLinkOutput',
  11123. 'responseType' => 'model',
  11124. 'data' => array(
  11125. 'xmlRoot' => array(
  11126. 'name' => 'Hotlink',
  11127. ),
  11128. ),
  11129. 'parameters' => array(
  11130. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11131. 'Type' => array( 'location' => 'xml', 'type' => 'string', ),
  11132. 'Urls' => array(
  11133. 'type' => 'array',
  11134. 'location' => 'xml',
  11135. 'data' => array(
  11136. 'xmlFlattened' => true,
  11137. ),
  11138. 'items' => array( 'name' => 'Url', 'type' => 'string', 'location' => 'xml', 'sentAs' => 'Url', ),
  11139. ),
  11140. ),
  11141. );
  11142. }
  11143. public static function AddHotLinkOutput() {
  11144. return array(
  11145. 'type' => 'object',
  11146. 'additionalProperties' => true,
  11147. 'properties' => array(
  11148. 'RequestId' => array(
  11149. 'type' => 'string',
  11150. 'location' => 'header',
  11151. 'sentAs' => 'x-cos-request-id',
  11152. ),
  11153. 'ContentType' => array(
  11154. 'type' => 'string',
  11155. 'location' => 'header',
  11156. 'sentAs' => 'Content-Type',
  11157. ),
  11158. 'ContentLength' => array(
  11159. 'type' => 'numeric',
  11160. 'minimum'=> 0,
  11161. 'location' => 'header',
  11162. 'sentAs' => 'Content-Length',
  11163. ),
  11164. ),
  11165. );
  11166. }
  11167. public static function OpenOriginProtect() {
  11168. return array(
  11169. 'httpMethod' => 'PUT',
  11170. 'uri' => '/{Bucket}?origin-protect',
  11171. 'class' => 'Qcloud\\Cos\\Command',
  11172. 'responseClass' => 'OpenOriginProtectOutput',
  11173. 'responseType' => 'model',
  11174. 'parameters' => array(
  11175. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11176. ),
  11177. );
  11178. }
  11179. public static function OpenOriginProtectOutput() {
  11180. return array(
  11181. 'type' => 'object',
  11182. 'additionalProperties' => true,
  11183. 'properties' => array(
  11184. 'RequestId' => array(
  11185. 'type' => 'string',
  11186. 'location' => 'header',
  11187. 'sentAs' => 'x-cos-request-id',
  11188. ),
  11189. 'ContentType' => array(
  11190. 'type' => 'string',
  11191. 'location' => 'header',
  11192. 'sentAs' => 'Content-Type',
  11193. ),
  11194. 'ContentLength' => array(
  11195. 'type' => 'numeric',
  11196. 'minimum'=> 0,
  11197. 'location' => 'header',
  11198. 'sentAs' => 'Content-Length',
  11199. ),
  11200. ),
  11201. );
  11202. }
  11203. public static function GetOriginProtect() {
  11204. return array(
  11205. 'httpMethod' => 'GET',
  11206. 'uri' => '/{Bucket}?origin-protect',
  11207. 'class' => 'Qcloud\\Cos\\Command',
  11208. 'responseClass' => 'GetOriginProtectOutput',
  11209. 'responseType' => 'model',
  11210. 'parameters' => array(
  11211. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11212. ),
  11213. );
  11214. }
  11215. public static function GetOriginProtectOutput() {
  11216. return array(
  11217. 'type' => 'object',
  11218. 'additionalProperties' => true,
  11219. 'properties' => array(
  11220. 'Body' => array(
  11221. 'type' => 'string',
  11222. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  11223. 'location' => 'body',
  11224. ),
  11225. 'RequestId' => array(
  11226. 'type' => 'string',
  11227. 'location' => 'header',
  11228. 'sentAs' => 'x-cos-request-id',
  11229. ),
  11230. 'ContentType' => array(
  11231. 'type' => 'string',
  11232. 'location' => 'header',
  11233. 'sentAs' => 'Content-Type',
  11234. ),
  11235. 'ContentLength' => array(
  11236. 'type' => 'numeric',
  11237. 'minimum'=> 0,
  11238. 'location' => 'header',
  11239. 'sentAs' => 'Content-Length',
  11240. ),
  11241. ),
  11242. );
  11243. }
  11244. public static function CloseOriginProtect() {
  11245. return array(
  11246. 'httpMethod' => 'DELETE',
  11247. 'uri' => '/{Bucket}?origin-protect',
  11248. 'class' => 'Qcloud\\Cos\\Command',
  11249. 'responseClass' => 'CloseOriginProtectOutput',
  11250. 'responseType' => 'model',
  11251. 'parameters' => array(
  11252. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11253. ),
  11254. );
  11255. }
  11256. public static function CloseOriginProtectOutput() {
  11257. return array(
  11258. 'type' => 'object',
  11259. 'additionalProperties' => true,
  11260. 'properties' => array(
  11261. 'RequestId' => array(
  11262. 'type' => 'string',
  11263. 'location' => 'header',
  11264. 'sentAs' => 'x-cos-request-id',
  11265. ),
  11266. 'ContentType' => array(
  11267. 'type' => 'string',
  11268. 'location' => 'header',
  11269. 'sentAs' => 'Content-Type',
  11270. ),
  11271. 'ContentLength' => array(
  11272. 'type' => 'numeric',
  11273. 'minimum'=> 0,
  11274. 'location' => 'header',
  11275. 'sentAs' => 'Content-Length',
  11276. ),
  11277. ),
  11278. );
  11279. }
  11280. public static function ImageDetectFace() {
  11281. return array(
  11282. 'httpMethod' => 'GET',
  11283. 'uri' => '/{Bucket}{/Key*}?ci-process=DetectFace',
  11284. 'class' => 'Qcloud\\Cos\\Command',
  11285. 'responseClass' => 'ImageDetectFaceOutput',
  11286. 'responseType' => 'model',
  11287. 'parameters' => array(
  11288. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11289. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11290. 'MaxFaceNum' => array( 'type' => 'integer', 'location' => 'query', 'sentAs' => 'max-face-num' ),
  11291. ),
  11292. );
  11293. }
  11294. public static function ImageDetectFaceOutput() {
  11295. return array(
  11296. 'type' => 'object',
  11297. 'additionalProperties' => true,
  11298. 'properties' => array(
  11299. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  11300. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  11301. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  11302. 'ImageWidth' => array('type' => 'integer', 'location' => 'xml',),
  11303. 'ImageHeight' => array('type' => 'integer', 'location' => 'xml',),
  11304. 'FaceModelVersion' => array('type' => 'string', 'location' => 'xml',),
  11305. 'FaceInfos' => array(
  11306. 'type' => 'array',
  11307. 'location' => 'xml',
  11308. 'items' => array(
  11309. 'type' => 'object',
  11310. 'location' => 'xml',
  11311. 'properties' => array(
  11312. 'X' => array( 'type' => 'integer', 'location' => 'xml',),
  11313. 'Y' => array( 'type' => 'integer', 'location' => 'xml',),
  11314. 'Width' => array( 'type' => 'integer', 'location' => 'xml',),
  11315. 'Height' => array( 'type' => 'integer', 'location' => 'xml',),
  11316. ),
  11317. ),
  11318. ),
  11319. )
  11320. );
  11321. }
  11322. public static function ImageFaceEffect() {
  11323. return array(
  11324. 'httpMethod' => 'GET',
  11325. 'uri' => '/{Bucket}{/Key*}?ci-process=face-effect',
  11326. 'class' => 'Qcloud\\Cos\\Command',
  11327. 'responseClass' => 'ImageFaceEffectOutput',
  11328. 'responseType' => 'model',
  11329. 'parameters' => array(
  11330. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11331. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11332. 'type' => array( 'type' => 'string', 'location' => 'query', ),
  11333. 'whitening' => array( 'type' => 'integer', 'location' => 'query', ),
  11334. 'smoothing' => array( 'type' => 'integer', 'location' => 'query', ),
  11335. 'faceLifting' => array( 'type' => 'integer', 'location' => 'query', ),
  11336. 'eyeEnlarging' => array( 'type' => 'integer', 'location' => 'query', ),
  11337. 'gender' => array( 'type' => 'integer', 'location' => 'query', ),
  11338. 'age' => array( 'type' => 'integer', 'location' => 'query', ),
  11339. ),
  11340. );
  11341. }
  11342. public static function ImageFaceEffectOutput() {
  11343. return array(
  11344. 'type' => 'object',
  11345. 'additionalProperties' => true,
  11346. 'properties' => array(
  11347. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  11348. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  11349. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  11350. 'ResultImage' => array('type' => 'string', 'location' => 'xml',),
  11351. 'ResultMask' => array('type' => 'string', 'location' => 'xml',),
  11352. )
  11353. );
  11354. }
  11355. public static function IDCardOCR() {
  11356. return array(
  11357. 'httpMethod' => 'GET',
  11358. 'uri' => '/{Bucket}{/Key*}?ci-process=IDCardOCR',
  11359. 'class' => 'Qcloud\\Cos\\Command',
  11360. 'responseClass' => 'IDCardOCROutput',
  11361. 'responseType' => 'model',
  11362. 'parameters' => array(
  11363. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11364. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11365. 'CardSide' => array( 'type' => 'string', 'location' => 'query', ),
  11366. 'Config' => array( 'type' => 'string', 'location' => 'query', ),
  11367. ),
  11368. );
  11369. }
  11370. public static function IDCardOCROutput() {
  11371. return array(
  11372. 'type' => 'object',
  11373. 'additionalProperties' => true,
  11374. 'properties' => array(
  11375. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  11376. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  11377. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  11378. 'ResultImage' => array('type' => 'string', 'location' => 'xml',),
  11379. 'IdInfo' => array(
  11380. 'type' => 'object',
  11381. 'location' => 'xml',
  11382. 'properties' => array(
  11383. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  11384. 'Sex' => array( 'type' => 'string', 'location' => 'xml',),
  11385. 'Nation' => array( 'type' => 'string', 'location' => 'xml',),
  11386. 'Birth' => array( 'type' => 'string', 'location' => 'xml',),
  11387. 'Address' => array( 'type' => 'string', 'location' => 'xml',),
  11388. 'IdNum' => array( 'type' => 'string', 'location' => 'xml',),
  11389. 'Authority' => array( 'type' => 'string', 'location' => 'xml',),
  11390. 'ValidDate' => array( 'type' => 'string', 'location' => 'xml',),
  11391. ),
  11392. ),
  11393. 'AdvancedInfo' => array(
  11394. 'type' => 'object',
  11395. 'location' => 'xml',
  11396. 'properties' => array(
  11397. 'IdCard' => array( 'type' => 'string', 'location' => 'xml',),
  11398. 'Portrait' => array( 'type' => 'string', 'location' => 'xml',),
  11399. 'Quality' => array( 'type' => 'string', 'location' => 'xml',),
  11400. 'BorderCodeValue' => array( 'type' => 'string', 'location' => 'xml',),
  11401. 'WarnInfos' => array(
  11402. 'type' => 'array',
  11403. 'location' => 'xml',
  11404. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  11405. ),
  11406. ),
  11407. ),
  11408. )
  11409. );
  11410. }
  11411. public static function IDCardOCRByUpload() {
  11412. return array(
  11413. 'httpMethod' => 'PUT',
  11414. 'uri' => '/{Bucket}{/Key*}?ci-process=IDCardOCR',
  11415. 'class' => 'Qcloud\\Cos\\Command',
  11416. 'responseClass' => 'IDCardOCRByUploadOutput',
  11417. 'responseType' => 'model',
  11418. 'parameters' => array(
  11419. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11420. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11421. 'CardSide' => array( 'type' => 'string', 'location' => 'query', ),
  11422. 'Config' => array( 'type' => 'string', 'location' => 'query', ),
  11423. 'Body' => array(
  11424. 'required' => true,
  11425. 'type' => array( 'any' ),
  11426. 'location' => 'body'
  11427. ),
  11428. ),
  11429. );
  11430. }
  11431. public static function IDCardOCRByUploadOutput() {
  11432. return array(
  11433. 'type' => 'object',
  11434. 'additionalProperties' => true,
  11435. 'properties' => array(
  11436. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  11437. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  11438. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  11439. 'ResultImage' => array('type' => 'string', 'location' => 'xml',),
  11440. 'IdInfo' => array(
  11441. 'type' => 'object',
  11442. 'location' => 'xml',
  11443. 'properties' => array(
  11444. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  11445. 'Sex' => array( 'type' => 'string', 'location' => 'xml',),
  11446. 'Nation' => array( 'type' => 'string', 'location' => 'xml',),
  11447. 'Birth' => array( 'type' => 'string', 'location' => 'xml',),
  11448. 'Address' => array( 'type' => 'string', 'location' => 'xml',),
  11449. 'IdNum' => array( 'type' => 'string', 'location' => 'xml',),
  11450. 'Authority' => array( 'type' => 'string', 'location' => 'xml',),
  11451. 'ValidDate' => array( 'type' => 'string', 'location' => 'xml',),
  11452. ),
  11453. ),
  11454. 'AdvancedInfo' => array(
  11455. 'type' => 'object',
  11456. 'location' => 'xml',
  11457. 'properties' => array(
  11458. 'IdCard' => array( 'type' => 'string', 'location' => 'xml',),
  11459. 'Portrait' => array( 'type' => 'string', 'location' => 'xml',),
  11460. 'Quality' => array( 'type' => 'string', 'location' => 'xml',),
  11461. 'BorderCodeValue' => array( 'type' => 'string', 'location' => 'xml',),
  11462. 'WarnInfos' => array(
  11463. 'type' => 'array',
  11464. 'location' => 'xml',
  11465. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  11466. ),
  11467. ),
  11468. ),
  11469. )
  11470. );
  11471. }
  11472. public static function GetLiveCode() {
  11473. return array(
  11474. 'httpMethod' => 'GET',
  11475. 'uri' => '/{Bucket}?ci-process=GetLiveCode',
  11476. 'class' => 'Qcloud\\Cos\\Command',
  11477. 'responseClass' => 'GetLiveCodeOutput',
  11478. 'responseType' => 'model',
  11479. 'parameters' => array(
  11480. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11481. ),
  11482. );
  11483. }
  11484. public static function GetLiveCodeOutput() {
  11485. return array(
  11486. 'type' => 'object',
  11487. 'additionalProperties' => true,
  11488. 'properties' => array(
  11489. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  11490. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  11491. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  11492. 'LiveCode' => array('type' => 'string', 'location' => 'xml',),
  11493. )
  11494. );
  11495. }
  11496. public static function GetActionSequence() {
  11497. return array(
  11498. 'httpMethod' => 'GET',
  11499. 'uri' => '/{Bucket}?ci-process=GetActionSequence',
  11500. 'class' => 'Qcloud\\Cos\\Command',
  11501. 'responseClass' => 'GetActionSequenceOutput',
  11502. 'responseType' => 'model',
  11503. 'parameters' => array(
  11504. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11505. ),
  11506. );
  11507. }
  11508. public static function GetActionSequenceOutput() {
  11509. return array(
  11510. 'type' => 'object',
  11511. 'additionalProperties' => true,
  11512. 'properties' => array(
  11513. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  11514. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  11515. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  11516. 'ActionSequence' => array('type' => 'string', 'location' => 'xml',),
  11517. )
  11518. );
  11519. }
  11520. public static function DescribeDocProcessBuckets() {
  11521. return array(
  11522. 'httpMethod' => 'GET',
  11523. 'uri' => '/docbucket',
  11524. 'class' => 'Qcloud\\Cos\\Command',
  11525. 'responseClass' => 'DescribeDocProcessBucketsOutput',
  11526. 'responseType' => 'model',
  11527. 'parameters' => array(
  11528. 'Regions' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'regions' ),
  11529. 'BucketNames' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketNames' ),
  11530. 'BucketName' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketName' ),
  11531. 'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ),
  11532. 'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ),
  11533. ),
  11534. );
  11535. }
  11536. public static function DescribeDocProcessBucketsOutput() {
  11537. return array(
  11538. 'type' => 'object',
  11539. 'additionalProperties' => true,
  11540. 'properties' => array(
  11541. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  11542. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  11543. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  11544. 'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ),
  11545. 'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ),
  11546. 'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ),
  11547. 'DocBucketList' => array(
  11548. 'type' => 'array',
  11549. 'location' => 'xml',
  11550. 'items' => array(
  11551. 'type' => 'object',
  11552. 'location' => 'xml',
  11553. 'properties' => array(
  11554. 'BucketId' => array( 'type' => 'string', 'location' => 'xml',),
  11555. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  11556. 'Region' => array( 'type' => 'string', 'location' => 'xml',),
  11557. 'CreateTime' => array( 'type' => 'string', 'location' => 'xml',),
  11558. 'AliasBucketId' => array( 'type' => 'string', 'location' => 'xml',),
  11559. ),
  11560. ),
  11561. ),
  11562. ),
  11563. );
  11564. }
  11565. public static function UpdateDocProcessQueue() {
  11566. return array(
  11567. 'httpMethod' => 'PUT',
  11568. 'uri' => '/{Bucket}docqueue/{/Key*}',
  11569. 'class' => 'Qcloud\\Cos\\Command',
  11570. 'responseClass' => 'UpdateDocProcessQueueOutput',
  11571. 'responseType' => 'model',
  11572. 'data' => array(
  11573. 'xmlRoot' => array(
  11574. 'name' => 'Request',
  11575. ),
  11576. ),
  11577. 'parameters' => array(
  11578. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11579. 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11580. 'Name' => array( 'type' => 'string', 'location' => 'xml', ),
  11581. 'QueueID' => array( 'type' => 'string', 'location' => 'xml', ),
  11582. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  11583. 'NotifyConfig' => array(
  11584. 'location' => 'xml',
  11585. 'type' => 'object',
  11586. 'properties' => array(
  11587. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  11588. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  11589. 'Event' => array( 'type' => 'string', 'location' => 'xml', ),
  11590. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  11591. ),
  11592. ),
  11593. ),
  11594. );
  11595. }
  11596. public static function UpdateDocProcessQueueOutput() {
  11597. return array(
  11598. 'type' => 'object',
  11599. 'additionalProperties' => true,
  11600. 'properties' => array(
  11601. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  11602. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  11603. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  11604. 'Queue' => array(
  11605. 'type' => 'object',
  11606. 'location' => 'xml',
  11607. 'properties' => array(
  11608. 'QueueId' => array( 'type' => 'string', 'location' => 'xml', ),
  11609. 'Name' => array( 'type' => 'string', 'location' => 'xml', ),
  11610. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  11611. 'CreateTime' => array( 'type' => 'string', 'location' => 'xml', ),
  11612. 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml', ),
  11613. 'MaxSize' => array( 'type' => 'integer', 'location' => 'xml', ),
  11614. 'MaxConcurrent' => array( 'type' => 'integer', 'location' => 'xml', ),
  11615. 'NotifyConfig' => array(
  11616. 'type' => 'object',
  11617. 'location' => 'xml',
  11618. 'properties' => array(
  11619. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  11620. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  11621. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  11622. 'Event' => array( 'type' => 'string', 'location' => 'xml', ),
  11623. ),
  11624. ),
  11625. ),
  11626. ),
  11627. ),
  11628. );
  11629. }
  11630. public static function CreateMediaQualityEstimateJobs() {
  11631. return array(
  11632. 'httpMethod' => 'POST',
  11633. 'uri' => '/{Bucket}jobs',
  11634. 'class' => 'Qcloud\\Cos\\Command',
  11635. 'responseClass' => 'CreateMediaQualityEstimateJobsOutput',
  11636. 'responseType' => 'model',
  11637. 'data' => array(
  11638. 'xmlRoot' => array(
  11639. 'name' => 'Request',
  11640. ),
  11641. ),
  11642. 'parameters' => array(
  11643. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11644. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  11645. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  11646. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  11647. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  11648. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  11649. 'Input' => array(
  11650. 'required' => true,
  11651. 'type' => 'object',
  11652. 'location' => 'xml',
  11653. 'properties' => array(
  11654. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  11655. ),
  11656. ),
  11657. 'Operation' => array(
  11658. 'type' => 'object',
  11659. 'location' => 'xml',
  11660. 'properties' => array(
  11661. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  11662. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  11663. ),
  11664. ),
  11665. 'CallBackMqConfig' => array(
  11666. 'type' => 'object',
  11667. 'location' => 'xml',
  11668. 'properties' => array(
  11669. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  11670. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  11671. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  11672. ),
  11673. ),
  11674. ),
  11675. );
  11676. }
  11677. public static function CreateMediaQualityEstimateJobsOutput() {
  11678. return array(
  11679. 'type' => 'object',
  11680. 'additionalProperties' => true,
  11681. 'properties' => array(
  11682. 'Body' => array(
  11683. 'type' => 'string',
  11684. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  11685. 'location' => 'body',
  11686. ),
  11687. 'RequestId' => array(
  11688. 'type' => 'string',
  11689. 'location' => 'header',
  11690. 'sentAs' => 'x-ci-request-id',
  11691. ),
  11692. 'ContentType' => array(
  11693. 'type' => 'string',
  11694. 'location' => 'header',
  11695. 'sentAs' => 'Content-Type',
  11696. ),
  11697. 'ContentLength' => array(
  11698. 'type' => 'numeric',
  11699. 'minimum'=> 0,
  11700. 'location' => 'header',
  11701. 'sentAs' => 'Content-Length',
  11702. ),
  11703. ),
  11704. );
  11705. }
  11706. public static function CreateMediaStreamExtractJobs() {
  11707. return array(
  11708. 'httpMethod' => 'POST',
  11709. 'uri' => '/{Bucket}jobs',
  11710. 'class' => 'Qcloud\\Cos\\Command',
  11711. 'responseClass' => 'CreateMediaStreamExtractJobsOutput',
  11712. 'responseType' => 'model',
  11713. 'data' => array(
  11714. 'xmlRoot' => array(
  11715. 'name' => 'Request',
  11716. ),
  11717. ),
  11718. 'parameters' => array(
  11719. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  11720. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  11721. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  11722. 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
  11723. 'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
  11724. 'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
  11725. 'Input' => array(
  11726. 'required' => true,
  11727. 'type' => 'object',
  11728. 'location' => 'xml',
  11729. 'properties' => array(
  11730. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  11731. ),
  11732. ),
  11733. 'Operation' => array(
  11734. 'type' => 'object',
  11735. 'location' => 'xml',
  11736. 'properties' => array(
  11737. 'UserData' => array( 'type' => 'string', 'location' => 'xml', ),
  11738. 'JobLevel' => array( 'type' => 'string', 'location' => 'xml', ),
  11739. 'Output' => array(
  11740. 'type' => 'object',
  11741. 'location' => 'xml',
  11742. 'properties' => array(
  11743. 'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
  11744. 'Region' => array( 'type' => 'string', 'location' => 'xml', ),
  11745. 'StreamExtracts' => array(
  11746. 'type' => 'array',
  11747. 'location' => 'xml',
  11748. 'data' => array(
  11749. 'xmlFlattened' => true,
  11750. ),
  11751. 'items' => array(
  11752. 'name' => 'StreamExtract',
  11753. 'type' => 'object',
  11754. 'sentAs' => 'StreamExtract',
  11755. 'properties' => array(
  11756. 'Index' => array( 'type' => 'string', 'location' => 'xml', ),
  11757. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  11758. ),
  11759. ),
  11760. ),
  11761. ),
  11762. ),
  11763. ),
  11764. ),
  11765. 'CallBackMqConfig' => array(
  11766. 'type' => 'object',
  11767. 'location' => 'xml',
  11768. 'properties' => array(
  11769. 'MqRegion' => array( 'type' => 'string', 'location' => 'xml', ),
  11770. 'MqMode' => array( 'type' => 'string', 'location' => 'xml', ),
  11771. 'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
  11772. ),
  11773. ),
  11774. ),
  11775. );
  11776. }
  11777. public static function CreateMediaStreamExtractJobsOutput() {
  11778. return array(
  11779. 'type' => 'object',
  11780. 'additionalProperties' => true,
  11781. 'properties' => array(
  11782. 'Body' => array(
  11783. 'type' => 'string',
  11784. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  11785. 'location' => 'body',
  11786. ),
  11787. 'RequestId' => array(
  11788. 'type' => 'string',
  11789. 'location' => 'header',
  11790. 'sentAs' => 'x-ci-request-id',
  11791. ),
  11792. 'ContentType' => array(
  11793. 'type' => 'string',
  11794. 'location' => 'header',
  11795. 'sentAs' => 'Content-Type',
  11796. ),
  11797. 'ContentLength' => array(
  11798. 'type' => 'numeric',
  11799. 'minimum'=> 0,
  11800. 'location' => 'header',
  11801. 'sentAs' => 'Content-Length',
  11802. ),
  11803. ),
  11804. );
  11805. }
  11806. }