Descriptions.php 174 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025
  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' => true, 'location' => 'xml', 'type' => 'string', ),
  29. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  30. 'CallBack' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  31. 'Input' => array(
  32. 'required' => true,
  33. 'type' => 'object',
  34. 'location' => 'xml',
  35. 'properties' => array(
  36. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  37. ),
  38. ),
  39. 'Operation' => array(
  40. 'required' => true,
  41. 'type' => 'object',
  42. 'location' => 'xml',
  43. 'properties' => array(
  44. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  45. 'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  46. 'Transcode' => array(
  47. 'type' => 'object',
  48. 'location' => 'xml',
  49. 'properties' => array(
  50. 'Container' => array(
  51. 'type' => 'object',
  52. 'location' => 'xml',
  53. 'properties' => array(
  54. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  55. ),
  56. ),
  57. 'Video' => array(
  58. 'type' => 'object',
  59. 'location' => 'xml',
  60. 'properties' => array(
  61. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  62. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  63. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  64. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  65. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  66. 'Profile' => array( 'type' => 'string', 'location' => 'xml', ),
  67. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  68. 'Crf' => array( 'type' => 'string', 'location' => 'xml', ),
  69. 'Gop' => array( 'type' => 'string', 'location' => 'xml', ),
  70. 'Preset' => array( 'type' => 'string', 'location' => 'xml', ),
  71. 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ),
  72. 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ),
  73. 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ),
  74. 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ),
  75. 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ),
  76. ),
  77. ),
  78. 'TimeInterval' => array(
  79. 'type' => 'object',
  80. 'location' => 'xml',
  81. 'properties' => array(
  82. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  83. 'Duration' => array( 'type' => 'string', 'location' => 'xml', ),
  84. ),
  85. ),
  86. 'Audio' => array(
  87. 'type' => 'object',
  88. 'location' => 'xml',
  89. 'properties' => array(
  90. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  91. 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ),
  92. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  93. 'Channels' => array( 'type' => 'string', 'location' => 'xml', ),
  94. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  95. 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ),
  96. 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ),
  97. 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ),
  98. ),
  99. ),
  100. 'TransConfig' => array(
  101. 'type' => 'object',
  102. 'location' => 'xml',
  103. 'properties' => array(
  104. 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  105. 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ),
  106. 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  107. 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  108. 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  109. 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  110. 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ),
  111. 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ),
  112. 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ),
  113. 'HlsEncrypt' => array(
  114. 'type' => 'object',
  115. 'location' => 'xml',
  116. 'properties' => array(
  117. 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ),
  118. 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ),
  119. ),
  120. ),
  121. ),
  122. ),
  123. ),
  124. ),
  125. 'Watermark' => array(
  126. 'type' => 'object',
  127. 'location' => 'xml',
  128. 'properties' => array(
  129. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  130. 'Pos' => array( 'type' => 'string', 'location' => 'xml', ),
  131. 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ),
  132. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  133. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  134. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  135. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  136. 'Image' => array(
  137. 'type' => 'object',
  138. 'location' => 'xml',
  139. 'properties' => array(
  140. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  141. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  142. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  143. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  144. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  145. 'Background' => array( 'type' => 'string', 'location' => 'xml', ),
  146. ),
  147. ),
  148. 'Text' => array(
  149. 'type' => 'object',
  150. 'location' => 'xml',
  151. 'properties' => array(
  152. 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
  153. 'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
  154. 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
  155. 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ),
  156. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  157. ),
  158. ),
  159. ),
  160. ),
  161. 'RemoveWatermark' => array(
  162. 'type' => 'object',
  163. 'location' => 'xml',
  164. 'properties' => array(
  165. 'Dx' => array( 'type' => 'string', 'location' => 'xml', ),
  166. 'Dy' => array( 'type' => 'string', 'location' => 'xml', ),
  167. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  168. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  169. ),
  170. ),
  171. 'Output' => array(
  172. 'required' => true,
  173. 'type' => 'object',
  174. 'location' => 'xml',
  175. 'properties' => array(
  176. 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  177. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  178. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  179. ),
  180. ),
  181. ),
  182. ),
  183. ),
  184. );
  185. }
  186. public static function CreateMediaTranscodeJobsOutput() {
  187. return array(
  188. 'type' => 'object',
  189. 'additionalProperties' => true,
  190. 'properties' => array(
  191. 'Body' => array(
  192. 'type' => 'string',
  193. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  194. 'location' => 'body',
  195. ),
  196. 'RequestId' => array(
  197. 'type' => 'string',
  198. 'location' => 'header',
  199. 'sentAs' => 'x-ci-request-id',
  200. ),
  201. 'ContentType' => array(
  202. 'type' => 'string',
  203. 'location' => 'header',
  204. 'sentAs' => 'Content-Type',
  205. ),
  206. 'ContentLength' => array(
  207. 'type' => 'numeric',
  208. 'minimum'=> 0,
  209. 'location' => 'header',
  210. 'sentAs' => 'Content-Length',
  211. ),
  212. ),
  213. );
  214. }
  215. public static function CreateMediaSnapshotJobs() {
  216. return array(
  217. 'httpMethod' => 'POST',
  218. 'uri' => '/{Bucket}jobs',
  219. 'class' => 'Qcloud\\Cos\\Command',
  220. 'responseClass' => 'CreateMediaSnapshotJobsOutput',
  221. 'responseType' => 'model',
  222. 'data' => array(
  223. 'xmlRoot' => array(
  224. 'name' => 'Request',
  225. ),
  226. ),
  227. 'parameters' => array(
  228. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  229. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  230. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  231. 'CallBack' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  232. 'Input' => array(
  233. 'required' => true,
  234. 'type' => 'object',
  235. 'location' => 'xml',
  236. 'properties' => array(
  237. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  238. ),
  239. ),
  240. 'Operation' => array(
  241. 'required' => true,
  242. 'type' => 'object',
  243. 'location' => 'xml',
  244. 'properties' => array(
  245. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  246. 'Output' => array(
  247. 'required' => true,
  248. 'type' => 'object',
  249. 'location' => 'xml',
  250. 'properties' => array(
  251. 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  252. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  253. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  254. ),
  255. ),
  256. 'Snapshot' => array(
  257. 'type' => 'object',
  258. 'location' => 'xml',
  259. 'properties' => array(
  260. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  261. 'Start' => array( 'type' => 'string', 'location' => 'xml', ),
  262. 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ),
  263. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  264. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  265. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  266. ),
  267. ),
  268. ),
  269. ),
  270. ),
  271. );
  272. }
  273. public static function CreateMediaSnapshotJobsOutput() {
  274. return array(
  275. 'type' => 'object',
  276. 'additionalProperties' => true,
  277. 'properties' => array(
  278. 'Body' => array(
  279. 'type' => 'string',
  280. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  281. 'location' => 'body',
  282. ),
  283. 'RequestId' => array(
  284. 'type' => 'string',
  285. 'location' => 'header',
  286. 'sentAs' => 'x-ci-request-id',
  287. ),
  288. 'ContentType' => array(
  289. 'type' => 'string',
  290. 'location' => 'header',
  291. 'sentAs' => 'Content-Type',
  292. ),
  293. 'ContentLength' => array(
  294. 'type' => 'numeric',
  295. 'minimum'=> 0,
  296. 'location' => 'header',
  297. 'sentAs' => 'Content-Length',
  298. ),
  299. ),
  300. );
  301. }
  302. public static function CreateMediaConcatJobs() {
  303. return array(
  304. 'httpMethod' => 'POST',
  305. 'uri' => '/{Bucket}jobs',
  306. 'class' => 'Qcloud\\Cos\\Command',
  307. 'responseClass' => 'CreateMediaConcatJobsOutput',
  308. 'responseType' => 'model',
  309. 'data' => array(
  310. 'xmlRoot' => array(
  311. 'name' => 'Request',
  312. ),
  313. ),
  314. 'parameters' => array(
  315. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
  316. 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  317. 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  318. 'CallBack' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ),
  319. 'Input' => array(
  320. 'required' => true,
  321. 'type' => 'object',
  322. 'location' => 'xml',
  323. 'properties' => array(
  324. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  325. ),
  326. ),
  327. 'Operation' => array(
  328. 'required' => true,
  329. 'type' => 'object',
  330. 'location' => 'xml',
  331. 'properties' => array(
  332. 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ),
  333. 'Output' => array(
  334. 'required' => true,
  335. 'type' => 'object',
  336. 'location' => 'xml',
  337. 'properties' => array(
  338. 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  339. 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  340. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  341. ),
  342. ),
  343. 'ConcatTemplate' => array(
  344. 'type' => 'object',
  345. 'location' => 'xml',
  346. 'properties' => array(
  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. ),
  356. ),
  357. 'Index' => array( 'type' => 'string', 'location' => 'xml', ),
  358. 'ConcatFragments' => array(
  359. 'type' => 'array',
  360. 'location' => 'xml',
  361. 'data' => array(
  362. 'xmlFlattened' => true,
  363. ),
  364. 'items' => array(
  365. 'name' => 'ConcatFragment',
  366. 'type' => 'object',
  367. 'sentAs' => 'ConcatFragment',
  368. 'properties' => array(
  369. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  370. 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
  371. 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
  372. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  373. ),
  374. ),
  375. ),
  376. 'Video' => array(
  377. 'type' => 'object',
  378. 'location' => 'xml',
  379. 'properties' => array(
  380. 'Codec' => array( 'type' => 'string', 'location' => 'xml', ),
  381. 'Width' => array( 'type' => 'string', 'location' => 'xml', ),
  382. 'Height' => array( 'type' => 'string', 'location' => 'xml', ),
  383. 'Fps' => array( 'type' => 'string', 'location' => 'xml', ),
  384. 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ),
  385. 'Remove' => array( 'type' => 'string', 'location' => 'xml', ),
  386. ),
  387. ),
  388. 'Container' => array(
  389. 'type' => 'object',
  390. 'location' => 'xml',
  391. 'properties' => array(
  392. 'Format' => array( 'type' => 'string', 'location' => 'xml', ),
  393. ),
  394. ),
  395. ),
  396. ),
  397. ),
  398. ),
  399. ),
  400. );
  401. }
  402. public static function CreateMediaConcatJobsOutput() {
  403. return array(
  404. 'type' => 'object',
  405. 'additionalProperties' => true,
  406. 'properties' => array(
  407. 'Body' => array(
  408. 'type' => 'string',
  409. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  410. 'location' => 'body',
  411. ),
  412. 'RequestId' => array(
  413. 'type' => 'string',
  414. 'location' => 'header',
  415. 'sentAs' => 'x-ci-request-id',
  416. ),
  417. 'ContentType' => array(
  418. 'type' => 'string',
  419. 'location' => 'header',
  420. 'sentAs' => 'Content-Type',
  421. ),
  422. 'ContentLength' => array(
  423. 'type' => 'numeric',
  424. 'minimum'=> 0,
  425. 'location' => 'header',
  426. 'sentAs' => 'Content-Length',
  427. ),
  428. ),
  429. );
  430. }
  431. public static function DetectAudio() {
  432. return array(
  433. 'httpMethod' => 'POST',
  434. 'uri' => '/{Bucket}audio/auditing',
  435. 'class' => 'Qcloud\\Cos\\Command',
  436. 'responseClass' => 'DetectAudioOutput',
  437. 'responseType' => 'model',
  438. 'data' => array(
  439. 'xmlRoot' => array(
  440. 'name' => 'Request',
  441. ),
  442. ),
  443. 'parameters' => array(
  444. 'Bucket' => array(
  445. 'required' => true,
  446. 'type' => 'string',
  447. 'location' => 'uri',
  448. ),
  449. 'Input' => array(
  450. 'location' => 'xml',
  451. 'type' => 'object',
  452. 'properties' => array(
  453. 'Url' => array(
  454. 'type' => 'string',
  455. 'location' => 'xml',
  456. ),
  457. 'Object' => array(
  458. 'type' => 'string',
  459. 'location' => 'xml',
  460. ),
  461. ),
  462. ),
  463. 'Conf' => array(
  464. 'location' => 'xml',
  465. 'type' => 'object',
  466. 'properties' => array(
  467. 'DetectType' => array(
  468. 'type' => 'string',
  469. 'location' => 'xml',
  470. ),
  471. 'Callback' => array(
  472. 'type' => 'string',
  473. 'location' => 'xml',
  474. ),
  475. 'BizType' => array(
  476. 'type' => 'string',
  477. 'location' => 'xml',
  478. ),
  479. 'CallbackVersion' => array(
  480. 'type' => 'string',
  481. 'location' => 'xml',
  482. ),
  483. ),
  484. ),
  485. ),
  486. );
  487. }
  488. public static function DetectAudioOutput() {
  489. return array(
  490. 'type' => 'object',
  491. 'additionalProperties' => true,
  492. 'properties' => array(
  493. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  494. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  495. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  496. 'JobsDetail' => array(
  497. 'type' => 'object',
  498. 'location' => 'xml',
  499. 'properties' => array(
  500. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  501. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  502. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  503. ),
  504. ),
  505. ),
  506. );
  507. }
  508. public static function GetDetectAudioResult() {
  509. return array(
  510. 'httpMethod' => 'GET',
  511. 'uri' => '/{Bucket}audio/auditing/{/Key*}',
  512. 'class' => 'Qcloud\\Cos\\Command',
  513. 'responseClass' => 'GetDetectAudioResultOutput',
  514. 'responseType' => 'model',
  515. 'parameters' => array(
  516. 'Bucket' => array(
  517. 'required' => true,
  518. 'type' => 'string',
  519. 'location' => 'uri',
  520. ),
  521. 'Key' => array(
  522. 'required' => true,
  523. 'type' => 'string',
  524. 'location' => 'uri',
  525. ),
  526. ),
  527. );
  528. }
  529. public static function GetDetectAudioResultOutput() {
  530. return array(
  531. 'type' => 'object',
  532. 'additionalProperties' => true,
  533. 'properties' => array(
  534. 'RequestId' => array(
  535. 'type' => 'string',
  536. 'location' => 'header',
  537. 'sentAs' => 'x-ci-request-id',
  538. ),
  539. 'ContentType' => array(
  540. 'type' => 'string',
  541. 'location' => 'header',
  542. 'sentAs' => 'Content-Type',
  543. ),
  544. 'ContentLength' => array(
  545. 'type' => 'numeric',
  546. 'minimum'=> 0,
  547. 'location' => 'header',
  548. 'sentAs' => 'Content-Length',
  549. ),
  550. 'JobsDetail' => array(
  551. 'type' => 'object',
  552. 'location' => 'xml',
  553. 'properties' => array(
  554. 'Code' => array( 'type' => 'string', 'location' => 'xml', ),
  555. 'Message' => array( 'type' => 'string', 'location' => 'xml', ),
  556. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  557. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  558. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  559. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  560. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  561. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  562. 'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
  563. 'AudioText' => array( 'type' => 'string', 'location' => 'xml', ),
  564. 'PornInfo' => array(
  565. 'type' => 'object',
  566. 'location' => 'xml',
  567. 'properties' => array(
  568. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  569. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  570. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  571. ),
  572. ),
  573. 'TerrorismInfo' => array(
  574. 'type' => 'object',
  575. 'location' => 'xml',
  576. 'properties' => array(
  577. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  578. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  579. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  580. ),
  581. ),
  582. 'PoliticsInfo' => array(
  583. 'type' => 'object',
  584. 'location' => 'xml',
  585. 'properties' => array(
  586. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  587. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  588. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  589. ),
  590. ),
  591. 'AdsInfo' => array(
  592. 'type' => 'object',
  593. 'location' => 'xml',
  594. 'properties' => array(
  595. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  596. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  597. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  598. ),
  599. ),
  600. 'Section' => array(
  601. 'type' => 'array',
  602. 'location' => 'xml',
  603. 'items' => array(
  604. 'type' => 'object',
  605. 'properties' => array(
  606. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  607. 'Text' => array( 'type' => 'string', 'location' => 'xml', ),
  608. 'OffsetTime' => array( 'type' => 'integer', 'location' => 'xml', ),
  609. 'Duration' => array( 'type' => 'integer', 'location' => 'xml', ),
  610. 'PornInfo' => array(
  611. 'type' => 'object',
  612. 'location' => 'xml',
  613. 'properties' => array(
  614. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  615. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  616. 'Keywords' => array(
  617. 'type' => 'array',
  618. 'location' => 'xml',
  619. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  620. ),
  621. ),
  622. ),
  623. 'TerrorismInfo' => array(
  624. 'type' => 'object',
  625. 'location' => 'xml',
  626. 'properties' => array(
  627. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  628. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  629. 'Keywords' => array(
  630. 'type' => 'array',
  631. 'location' => 'xml',
  632. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  633. ),
  634. ),
  635. ),
  636. 'PoliticsInfo' => array(
  637. 'type' => 'object',
  638. 'location' => 'xml',
  639. 'properties' => array(
  640. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  641. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  642. 'Keywords' => array(
  643. 'type' => 'array',
  644. 'location' => 'xml',
  645. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  646. ),
  647. ),
  648. ),
  649. 'AdsInfo' => array(
  650. 'type' => 'object',
  651. 'location' => 'xml',
  652. 'properties' => array(
  653. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  654. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  655. 'Keywords' => array(
  656. 'type' => 'array',
  657. 'location' => 'xml',
  658. 'items' => array( 'type' => 'string', 'location' => 'xml', ),
  659. ),
  660. ),
  661. ),
  662. ),
  663. ),
  664. ),
  665. ),
  666. ),
  667. ),
  668. );
  669. }
  670. public static function GetDetectTextResult() {
  671. return array(
  672. 'httpMethod' => 'GET',
  673. 'uri' => '/{Bucket}text/auditing/{/Key*}',
  674. 'class' => 'Qcloud\\Cos\\Command',
  675. 'responseClass' => 'GetDetectTextResultOutput',
  676. 'responseType' => 'model',
  677. 'parameters' => array(
  678. 'Bucket' => array(
  679. 'required' => true,
  680. 'type' => 'string',
  681. 'location' => 'uri',
  682. ),
  683. 'Key' => array(
  684. 'required' => true,
  685. 'type' => 'string',
  686. 'location' => 'uri',
  687. ),
  688. ),
  689. );
  690. }
  691. public static function GetDetectTextResultOutput() {
  692. return array(
  693. 'type' => 'object',
  694. 'additionalProperties' => true,
  695. 'properties' => array(
  696. 'RequestId' => array(
  697. 'type' => 'string',
  698. 'location' => 'header',
  699. 'sentAs' => 'x-ci-request-id',
  700. ),
  701. 'ContentType' => array(
  702. 'type' => 'string',
  703. 'location' => 'header',
  704. 'sentAs' => 'Content-Type',
  705. ),
  706. 'ContentLength' => array(
  707. 'type' => 'numeric',
  708. 'minimum'=> 0,
  709. 'location' => 'header',
  710. 'sentAs' => 'Content-Length',
  711. ),
  712. 'JobsDetail' => array(
  713. 'type' => 'object',
  714. 'location' => 'xml',
  715. 'properties' => array(
  716. 'Code' => array( 'type' => 'string', 'location' => 'xml', ),
  717. 'Message' => array( 'type' => 'string', 'location' => 'xml', ),
  718. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  719. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  720. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  721. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  722. 'Content' => array( 'type' => 'string', 'location' => 'xml', ),
  723. 'SectionCount' => array( 'type' => 'integer', 'location' => 'xml', ),
  724. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  725. 'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
  726. 'PornInfo' => array(
  727. 'type' => 'object',
  728. 'location' => 'xml',
  729. 'properties' => array(
  730. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  731. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  732. ),
  733. ),
  734. 'TerrorismInfo' => array(
  735. 'type' => 'object',
  736. 'location' => 'xml',
  737. 'properties' => array(
  738. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  739. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  740. ),
  741. ),
  742. 'PoliticsInfo' => array(
  743. 'type' => 'object',
  744. 'location' => 'xml',
  745. 'properties' => array(
  746. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  747. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  748. ),
  749. ),
  750. 'AdsInfo' => array(
  751. 'type' => 'object',
  752. 'location' => 'xml',
  753. 'properties' => array(
  754. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  755. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  756. ),
  757. ),
  758. 'IllegalInfo' => array(
  759. 'type' => 'object',
  760. 'location' => 'xml',
  761. 'properties' => array(
  762. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  763. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  764. ),
  765. ),
  766. 'AbuseInfo' => array(
  767. 'type' => 'object',
  768. 'location' => 'xml',
  769. 'properties' => array(
  770. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  771. 'Count' => array( 'type' => 'integer', 'location' => 'xml', ),
  772. ),
  773. ),
  774. 'Section' => array(
  775. 'type' => 'array',
  776. 'location' => 'xml',
  777. 'items' => array(
  778. 'type' => 'object',
  779. 'properties' => array(
  780. 'StartByte' => array( 'type' => 'integer', 'location' => 'xml', ),
  781. 'Label' => array( 'type' => 'string', 'location' => 'xml', ),
  782. 'Result' => array( 'type' => 'integer', 'location' => 'xml', ),
  783. 'PornInfo' => array(
  784. 'type' => 'object',
  785. 'location' => 'xml',
  786. 'properties' => array(
  787. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  788. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  789. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  790. ),
  791. ),
  792. 'TerrorismInfo' => array(
  793. 'type' => 'object',
  794. 'location' => 'xml',
  795. 'properties' => array(
  796. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  797. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  798. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  799. ),
  800. ),
  801. 'PoliticsInfo' => array(
  802. 'type' => 'object',
  803. 'location' => 'xml',
  804. 'properties' => array(
  805. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  806. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  807. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  808. ),
  809. ),
  810. 'AdsInfo' => array(
  811. 'type' => 'object',
  812. 'location' => 'xml',
  813. 'properties' => array(
  814. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  815. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  816. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  817. ),
  818. ),
  819. 'IllegalInfo' => array(
  820. 'type' => 'object',
  821. 'location' => 'xml',
  822. 'properties' => array(
  823. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  824. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  825. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  826. ),
  827. ),
  828. 'AbuseInfo' => array(
  829. 'type' => 'object',
  830. 'location' => 'xml',
  831. 'properties' => array(
  832. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ),
  833. 'Score' => array( 'type' => 'integer', 'location' => 'xml', ),
  834. 'Keywords' => array( 'type' => 'string', 'location' => 'xml', ),
  835. ),
  836. ),
  837. ),
  838. ),
  839. ),
  840. ),
  841. ),
  842. ),
  843. );
  844. }
  845. public static function DetectVideo() {
  846. return array(
  847. 'httpMethod' => 'POST',
  848. 'uri' => '/{Bucket}video/auditing',
  849. 'class' => 'Qcloud\\Cos\\Command',
  850. 'responseClass' => 'DetectVideoOutput',
  851. 'responseType' => 'model',
  852. 'data' => array(
  853. 'xmlRoot' => array(
  854. 'name' => 'Request',
  855. ),
  856. ),
  857. 'parameters' => array(
  858. 'Bucket' => array(
  859. 'required' => true,
  860. 'type' => 'string',
  861. 'location' => 'uri',
  862. ),
  863. 'Input' => array(
  864. 'location' => 'xml',
  865. 'type' => 'object',
  866. 'properties' => array(
  867. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  868. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  869. ),
  870. ),
  871. 'Conf' => array(
  872. 'location' => 'xml',
  873. 'type' => 'object',
  874. 'properties' => array(
  875. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  876. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  877. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  878. 'CallbackVersion' => array( 'type' => 'string', 'location' => 'xml', ),
  879. 'DetectContent' => array( 'type' => 'integer', 'location' => 'xml', ),
  880. 'Snapshot' => array(
  881. 'location' => 'xml',
  882. 'type' => 'object',
  883. 'properties' => array(
  884. 'Mode' => array( 'type' => 'string', 'location' => 'xml', ),
  885. 'Count' => array( 'type' => 'string', 'location' => 'xml', ),
  886. 'TimeInterval' => array( 'type' => 'numeric', 'location' => 'xml', ),
  887. ),
  888. ),
  889. ),
  890. ),
  891. ),
  892. );
  893. }
  894. public static function DetectVideoOutput() {
  895. return array(
  896. 'type' => 'object',
  897. 'additionalProperties' => true,
  898. 'properties' => array(
  899. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  900. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  901. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  902. 'JobsDetail' => array(
  903. 'type' => 'object',
  904. 'location' => 'xml',
  905. 'properties' => array(
  906. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  907. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  908. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  909. ),
  910. ),
  911. ),
  912. );
  913. }
  914. public static function GetDetectVideoResult() {
  915. return array(
  916. 'httpMethod' => 'GET',
  917. 'uri' => '/{Bucket}video/auditing/{/Key*}',
  918. 'class' => 'Qcloud\\Cos\\Command',
  919. 'responseClass' => 'GetDetectVideoResultOutput',
  920. 'responseType' => 'model',
  921. 'parameters' => array(
  922. 'Bucket' => array(
  923. 'required' => true,
  924. 'type' => 'string',
  925. 'location' => 'uri',
  926. ),
  927. 'Key' => array(
  928. 'required' => true,
  929. 'type' => 'string',
  930. 'location' => 'uri',
  931. ),
  932. ),
  933. );
  934. }
  935. public static function GetDetectVideoResultOutput() {
  936. return array(
  937. 'type' => 'object',
  938. 'additionalProperties' => true,
  939. 'properties' => array(
  940. 'RequestId' => array(
  941. 'type' => 'string',
  942. 'location' => 'header',
  943. 'sentAs' => 'x-ci-request-id',
  944. ),
  945. 'ContentType' => array(
  946. 'type' => 'string',
  947. 'location' => 'header',
  948. 'sentAs' => 'Content-Type',
  949. ),
  950. 'ContentLength' => array(
  951. 'type' => 'numeric',
  952. 'minimum'=> 0,
  953. 'location' => 'header',
  954. 'sentAs' => 'Content-Length',
  955. ),
  956. 'JobsDetail' => array(
  957. 'type' => 'object',
  958. 'location' => 'xml',
  959. 'properties' => array(
  960. 'Code' => array('type' => 'string', 'location' => 'xml',),
  961. 'Message' => array('type' => 'string', 'location' => 'xml',),
  962. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  963. 'State' => array('type' => 'string', 'location' => 'xml',),
  964. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  965. 'Object' => array('type' => 'string', 'location' => 'xml',),
  966. 'Url' => array('type' => 'string', 'location' => 'xml',),
  967. 'SnapshotCount' => array('type' => 'string', 'location' => 'xml',),
  968. 'Label' => array('type' => 'string', 'location' => 'xml',),
  969. 'Result' => array('type' => 'integer', 'location' => 'xml',),
  970. 'PornInfo' => array(
  971. 'type' => 'object',
  972. 'location' => 'xml',
  973. 'properties' => array(
  974. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  975. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  976. )
  977. ),
  978. 'TerrorismInfo' => array(
  979. 'type' => 'object',
  980. 'location' => 'xml',
  981. 'properties' => array(
  982. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  983. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  984. )
  985. ),
  986. 'PoliticsInfo' => array(
  987. 'type' => 'object',
  988. 'location' => 'xml',
  989. 'properties' => array(
  990. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  991. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  992. )
  993. ),
  994. 'AdsInfo' => array(
  995. 'type' => 'object',
  996. 'location' => 'xml',
  997. 'properties' => array(
  998. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  999. 'Count' => array('type' => 'integer', 'location' => 'xml',),
  1000. )
  1001. ),
  1002. 'Snapshot' => array(
  1003. 'type' => 'array',
  1004. 'location' => 'xml',
  1005. 'items' => array(
  1006. 'type' => 'object',
  1007. 'properties' => array(
  1008. 'Url' => array('type' => 'string', 'location' => 'xml',),
  1009. 'SnapshotTime' => array('type' => 'integer', 'location' => 'xml',),
  1010. 'Text' => array('type' => 'string', 'location' => 'xml',),
  1011. 'PornInfo' => array(
  1012. 'type' => 'object',
  1013. 'location' => 'xml',
  1014. 'properties' => array(
  1015. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1016. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1017. 'Label' => array('type' => 'string', 'location' => 'xml',),
  1018. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  1019. 'OcrResults' => array(
  1020. 'type' => 'array',
  1021. 'location' => 'xml',
  1022. 'items' => array(
  1023. 'type' => 'object',
  1024. 'location' => 'xml',
  1025. 'properties' => array(
  1026. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  1027. 'Keywords' => array(
  1028. 'type' => 'array',
  1029. 'location' => 'xml',
  1030. 'items' => array('type' => 'string', 'location' => 'xml',),
  1031. ),
  1032. 'Location' => array(
  1033. 'type' => 'object',
  1034. 'location' => 'xml',
  1035. 'properties' => array(
  1036. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1037. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1038. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1039. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1040. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1041. )
  1042. ),
  1043. )
  1044. ),
  1045. ),
  1046. 'ObjectResults' => array(
  1047. 'type' => 'array',
  1048. 'location' => 'xml',
  1049. 'items' => array(
  1050. 'type' => 'object',
  1051. 'location' => 'xml',
  1052. 'properties' => array(
  1053. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1054. 'Location' => array(
  1055. 'type' => 'object',
  1056. 'location' => 'xml',
  1057. 'properties' => array(
  1058. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1059. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1060. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1061. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1062. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1063. )
  1064. ),
  1065. )
  1066. ),
  1067. ),
  1068. )
  1069. ),
  1070. 'TerrorismInfo' => array(
  1071. 'type' => 'object',
  1072. 'location' => 'xml',
  1073. 'properties' => array(
  1074. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1075. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1076. 'Label' => array('type' => 'string', 'location' => 'xml',),
  1077. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  1078. 'OcrResults' => array(
  1079. 'type' => 'array',
  1080. 'location' => 'xml',
  1081. 'items' => array(
  1082. 'type' => 'object',
  1083. 'location' => 'xml',
  1084. 'properties' => array(
  1085. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  1086. 'Keywords' => array(
  1087. 'type' => 'array',
  1088. 'location' => 'xml',
  1089. 'items' => array('type' => 'string', 'location' => 'xml',),
  1090. ),
  1091. 'Location' => array(
  1092. 'type' => 'object',
  1093. 'location' => 'xml',
  1094. 'properties' => array(
  1095. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1096. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1097. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1098. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1099. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1100. )
  1101. ),
  1102. )
  1103. ),
  1104. ),
  1105. 'ObjectResults' => array(
  1106. 'type' => 'array',
  1107. 'location' => 'xml',
  1108. 'items' => array(
  1109. 'type' => 'object',
  1110. 'location' => 'xml',
  1111. 'properties' => array(
  1112. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1113. 'Location' => array(
  1114. 'type' => 'object',
  1115. 'location' => 'xml',
  1116. 'properties' => array(
  1117. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1118. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1119. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1120. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1121. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1122. )
  1123. ),
  1124. )
  1125. ),
  1126. ),
  1127. )
  1128. ),
  1129. 'PoliticsInfo' => array(
  1130. 'type' => 'object',
  1131. 'location' => 'xml',
  1132. 'properties' => array(
  1133. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1134. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1135. 'Label' => array('type' => 'string', 'location' => 'xml',),
  1136. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  1137. 'OcrResults' => array(
  1138. 'type' => 'array',
  1139. 'location' => 'xml',
  1140. 'items' => array(
  1141. 'type' => 'object',
  1142. 'location' => 'xml',
  1143. 'properties' => array(
  1144. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  1145. 'Keywords' => array(
  1146. 'type' => 'array',
  1147. 'location' => 'xml',
  1148. 'items' => array('type' => 'string', 'location' => 'xml',),
  1149. ),
  1150. 'Location' => array(
  1151. 'type' => 'object',
  1152. 'location' => 'xml',
  1153. 'properties' => array(
  1154. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1155. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1156. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1157. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1158. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1159. )
  1160. ),
  1161. )
  1162. ),
  1163. ),
  1164. 'ObjectResults' => array(
  1165. 'type' => 'array',
  1166. 'location' => 'xml',
  1167. 'items' => array(
  1168. 'type' => 'object',
  1169. 'location' => 'xml',
  1170. 'properties' => array(
  1171. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1172. 'Location' => array(
  1173. 'type' => 'object',
  1174. 'location' => 'xml',
  1175. 'properties' => array(
  1176. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1177. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1178. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1179. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1180. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1181. )
  1182. ),
  1183. )
  1184. ),
  1185. ),
  1186. )
  1187. ),
  1188. 'AdsInfo' => array(
  1189. 'type' => 'object',
  1190. 'location' => 'xml',
  1191. 'properties' => array(
  1192. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1193. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1194. 'Label' => array('type' => 'string', 'location' => 'xml',),
  1195. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  1196. 'OcrResults' => array(
  1197. 'type' => 'array',
  1198. 'location' => 'xml',
  1199. 'items' => array(
  1200. 'type' => 'object',
  1201. 'location' => 'xml',
  1202. 'properties' => array(
  1203. 'Text' => array('type' => 'integer', 'location' => 'xml',),
  1204. 'Keywords' => array(
  1205. 'type' => 'array',
  1206. 'location' => 'xml',
  1207. 'items' => array('type' => 'string', 'location' => 'xml',),
  1208. ),
  1209. 'Location' => array(
  1210. 'type' => 'object',
  1211. 'location' => 'xml',
  1212. 'properties' => array(
  1213. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1214. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1215. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1216. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1217. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1218. )
  1219. ),
  1220. )
  1221. ),
  1222. ),
  1223. 'ObjectResults' => array(
  1224. 'type' => 'array',
  1225. 'location' => 'xml',
  1226. 'items' => array(
  1227. 'type' => 'object',
  1228. 'location' => 'xml',
  1229. 'properties' => array(
  1230. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1231. 'Location' => array(
  1232. 'type' => 'object',
  1233. 'location' => 'xml',
  1234. 'properties' => array(
  1235. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1236. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1237. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1238. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1239. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1240. )
  1241. ),
  1242. )
  1243. ),
  1244. ),
  1245. )
  1246. ),
  1247. )
  1248. ),
  1249. ),
  1250. 'AudioSection' => array(
  1251. 'type' => 'array',
  1252. 'location' => 'xml',
  1253. 'items' => array(
  1254. 'type' => 'object',
  1255. 'properties' => array(
  1256. 'Url' => array('type' => 'string', 'location' => 'xml',),
  1257. 'Text' => array('type' => 'string', 'location' => 'xml',),
  1258. 'OffsetTime' => array('type' => 'integer', 'location' => 'xml',),
  1259. 'Duration' => array('type' => 'integer', 'location' => 'xml',),
  1260. 'Label' => array('type' => 'string', 'location' => 'xml',),
  1261. 'Result' => array('type' => 'integer', 'location' => 'xml',),
  1262. 'PornInfo' => array(
  1263. 'type' => 'object',
  1264. 'location' => 'xml',
  1265. 'properties' => array(
  1266. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  1267. 'Score' => array('type' => 'string', 'location' => 'xml',),
  1268. 'Keywords' => array(
  1269. 'type' => 'array',
  1270. 'location' => 'xml',
  1271. 'items' => array('type' => 'string', 'location' => 'xml',),
  1272. ),
  1273. )
  1274. ),
  1275. 'TerrorismInfo' => array(
  1276. 'type' => 'object',
  1277. 'location' => 'xml',
  1278. 'properties' => array(
  1279. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  1280. 'Score' => array('type' => 'string', 'location' => 'xml',),
  1281. 'Keywords' => array(
  1282. 'type' => 'array',
  1283. 'location' => 'xml',
  1284. 'items' => array('type' => 'string', 'location' => 'xml',),
  1285. ),
  1286. )
  1287. ),
  1288. 'PoliticsInfo' => array(
  1289. 'type' => 'object',
  1290. 'location' => 'xml',
  1291. 'properties' => array(
  1292. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  1293. 'Score' => array('type' => 'string', 'location' => 'xml',),
  1294. 'Keywords' => array(
  1295. 'type' => 'array',
  1296. 'location' => 'xml',
  1297. 'items' => array('type' => 'string', 'location' => 'xml',),
  1298. ),
  1299. )
  1300. ),
  1301. 'AdsInfo' => array(
  1302. 'type' => 'object',
  1303. 'location' => 'xml',
  1304. 'properties' => array(
  1305. 'HitFlag' => array('type' => 'string', 'location' => 'xml',),
  1306. 'Score' => array('type' => 'string', 'location' => 'xml',),
  1307. 'Keywords' => array(
  1308. 'type' => 'array',
  1309. 'location' => 'xml',
  1310. 'items' => array('type' => 'string', 'location' => 'xml',),
  1311. ),
  1312. )
  1313. ),
  1314. ),
  1315. ),
  1316. ),
  1317. )
  1318. ),
  1319. 'NonExistJobIds' => array('type' => 'string', 'location' => 'xml',)
  1320. ),
  1321. );
  1322. }
  1323. public static function DetectDocument() {
  1324. return array(
  1325. 'httpMethod' => 'POST',
  1326. 'uri' => '/{Bucket}document/auditing',
  1327. 'class' => 'Qcloud\\Cos\\Command',
  1328. 'responseClass' => 'DetectDocumentOutput',
  1329. 'responseType' => 'model',
  1330. 'data' => array(
  1331. 'xmlRoot' => array(
  1332. 'name' => 'Request',
  1333. ),
  1334. ),
  1335. 'parameters' => array(
  1336. 'Bucket' => array(
  1337. 'required' => true,
  1338. 'type' => 'string',
  1339. 'location' => 'uri',
  1340. ),
  1341. 'Input' => array(
  1342. 'location' => 'xml',
  1343. 'type' => 'object',
  1344. 'properties' => array(
  1345. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  1346. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  1347. 'Type' => array( 'type' => 'string', 'location' => 'xml', ),
  1348. ),
  1349. ),
  1350. 'Conf' => array(
  1351. 'location' => 'xml',
  1352. 'type' => 'object',
  1353. 'properties' => array(
  1354. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ),
  1355. 'Callback' => array( 'type' => 'string', 'location' => 'xml', ),
  1356. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  1357. ),
  1358. ),
  1359. ),
  1360. );
  1361. }
  1362. public static function DetectDocumentOutput() {
  1363. return array(
  1364. 'type' => 'object',
  1365. 'additionalProperties' => true,
  1366. 'properties' => array(
  1367. 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  1368. 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ),
  1369. 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ),
  1370. 'JobsDetail' => array(
  1371. 'type' => 'object',
  1372. 'location' => 'xml',
  1373. 'properties' => array(
  1374. 'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
  1375. 'State' => array( 'type' => 'string', 'location' => 'xml', ),
  1376. 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
  1377. ),
  1378. ),
  1379. ),
  1380. );
  1381. }
  1382. public static function GetDetectDocumentResult() {
  1383. return array(
  1384. 'httpMethod' => 'GET',
  1385. 'uri' => '/{Bucket}document/auditing/{/Key*}',
  1386. 'class' => 'Qcloud\\Cos\\Command',
  1387. 'responseClass' => 'GetDetectDocumentResultOutput',
  1388. 'responseType' => 'model',
  1389. 'parameters' => array(
  1390. 'Bucket' => array(
  1391. 'required' => true,
  1392. 'type' => 'string',
  1393. 'location' => 'uri',
  1394. ),
  1395. 'Key' => array(
  1396. 'required' => true,
  1397. 'type' => 'string',
  1398. 'location' => 'uri',
  1399. ),
  1400. ),
  1401. );
  1402. }
  1403. public static function GetDetectDocumentResultOutput() {
  1404. return array(
  1405. 'type' => 'object',
  1406. 'additionalProperties' => true,
  1407. 'properties' => array(
  1408. 'RequestId' => array(
  1409. 'type' => 'string',
  1410. 'location' => 'header',
  1411. 'sentAs' => 'x-ci-request-id',
  1412. ),
  1413. 'ContentType' => array(
  1414. 'type' => 'string',
  1415. 'location' => 'header',
  1416. 'sentAs' => 'Content-Type',
  1417. ),
  1418. 'ContentLength' => array(
  1419. 'type' => 'numeric',
  1420. 'minimum'=> 0,
  1421. 'location' => 'header',
  1422. 'sentAs' => 'Content-Length',
  1423. ),
  1424. 'JobsDetail' => array(
  1425. 'type' => 'object',
  1426. 'location' => 'xml',
  1427. 'properties' => array(
  1428. 'Code' => array('type' => 'string', 'location' => 'xml',),
  1429. 'Message' => array('type' => 'string', 'location' => 'xml',),
  1430. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  1431. 'State' => array('type' => 'string', 'location' => 'xml',),
  1432. 'Suggestion' => array('type' => 'integer', 'location' => 'xml',),
  1433. 'Label' => array('type' => 'string', 'location' => 'xml',),
  1434. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  1435. 'Object' => array('type' => 'string', 'location' => 'xml',),
  1436. 'Url' => array('type' => 'string', 'location' => 'xml',),
  1437. 'PageCount' => array('type' => 'integer', 'location' => 'xml',),
  1438. 'Labels' => array(
  1439. 'type' => 'object',
  1440. 'location' => 'xml',
  1441. 'properties' => array(
  1442. 'PornInfo' => array(
  1443. 'type' => 'object',
  1444. 'location' => 'xml',
  1445. 'properties' => array(
  1446. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1447. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1448. ),
  1449. ),
  1450. 'TerrorismInfo' => array(
  1451. 'type' => 'object',
  1452. 'location' => 'xml',
  1453. 'properties' => array(
  1454. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1455. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1456. ),
  1457. ),
  1458. 'PoliticsInfo' => array(
  1459. 'type' => 'object',
  1460. 'location' => 'xml',
  1461. 'properties' => array(
  1462. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1463. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1464. ),
  1465. ),
  1466. 'AdsInfo' => array(
  1467. 'type' => 'object',
  1468. 'location' => 'xml',
  1469. 'properties' => array(
  1470. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1471. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1472. ),
  1473. ),
  1474. ),
  1475. ),
  1476. 'PageSegment' => array(
  1477. 'type' => 'object',
  1478. 'location' => 'xml',
  1479. 'properties' => array(
  1480. 'Results' => array(
  1481. 'type' => 'array',
  1482. 'location' => 'xml',
  1483. 'items' => array(
  1484. 'type' => 'object',
  1485. 'location' => 'xml',
  1486. 'properties' => array(
  1487. 'Url' => array('type' => 'string', 'location' => 'xml',),
  1488. 'Text' => array('type' => 'string', 'location' => 'xml',),
  1489. 'PageNumber' => array('type' => 'integer', 'location' => 'xml',),
  1490. 'SheetNumber' => array('type' => 'integer', 'location' => 'xml',),
  1491. 'Label' => array('type' => 'string', 'location' => 'xml',),
  1492. 'Suggestion' => array('type' => 'integer', 'location' => 'xml',),
  1493. 'PornInfo' => array(
  1494. 'type' => 'object',
  1495. 'location' => 'xml',
  1496. 'properties' => array(
  1497. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1498. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  1499. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1500. 'OcrResults' => array(
  1501. 'type' => 'array',
  1502. 'location' => 'xml',
  1503. 'items' => array(
  1504. 'type' => 'object',
  1505. 'location' => 'xml',
  1506. 'properties' => array(
  1507. 'Text' => array('type' => 'string', 'location' => 'xml',),
  1508. 'Keywords' => array(
  1509. 'type' => 'array',
  1510. 'location' => 'xml',
  1511. 'items' => array('type' => 'string', 'location' => 'xml',)
  1512. ),
  1513. 'Location' => array(
  1514. 'type' => 'object',
  1515. 'location' => 'xml',
  1516. 'properties' => array(
  1517. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1518. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1519. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1520. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1521. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1522. ),
  1523. ),
  1524. ),
  1525. ),
  1526. ),
  1527. 'ObjectResults' => array(
  1528. 'type' => 'array',
  1529. 'location' => 'xml',
  1530. 'items' => array(
  1531. 'type' => 'object',
  1532. 'location' => 'xml',
  1533. 'properties' => array(
  1534. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1535. 'Location' => array(
  1536. 'type' => 'object',
  1537. 'location' => 'xml',
  1538. 'properties' => array(
  1539. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1540. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1541. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1542. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1543. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1544. ),
  1545. ),
  1546. ),
  1547. ),
  1548. ),
  1549. ),
  1550. ),
  1551. 'TerrorismInfo' => array(
  1552. 'type' => 'object',
  1553. 'location' => 'xml',
  1554. 'properties' => array(
  1555. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1556. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  1557. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1558. 'OcrResults' => array(
  1559. 'type' => 'array',
  1560. 'location' => 'xml',
  1561. 'items' => array(
  1562. 'type' => 'object',
  1563. 'location' => 'xml',
  1564. 'properties' => array(
  1565. 'Text' => array('type' => 'string', 'location' => 'xml',),
  1566. 'Keywords' => array(
  1567. 'type' => 'array',
  1568. 'location' => 'xml',
  1569. 'items' => array('type' => 'string', 'location' => 'xml',)
  1570. ),
  1571. 'Location' => array(
  1572. 'type' => 'object',
  1573. 'location' => 'xml',
  1574. 'properties' => array(
  1575. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1576. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1577. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1578. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1579. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1580. ),
  1581. ),
  1582. ),
  1583. ),
  1584. ),
  1585. 'ObjectResults' => array(
  1586. 'type' => 'array',
  1587. 'location' => 'xml',
  1588. 'items' => array(
  1589. 'type' => 'object',
  1590. 'location' => 'xml',
  1591. 'properties' => array(
  1592. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1593. 'Location' => array(
  1594. 'type' => 'object',
  1595. 'location' => 'xml',
  1596. 'properties' => array(
  1597. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1598. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1599. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1600. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1601. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1602. ),
  1603. ),
  1604. ),
  1605. ),
  1606. ),
  1607. ),
  1608. ),
  1609. 'PoliticsInfo' => array(
  1610. 'type' => 'object',
  1611. 'location' => 'xml',
  1612. 'properties' => array(
  1613. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1614. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  1615. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1616. 'OcrResults' => array(
  1617. 'type' => 'array',
  1618. 'location' => 'xml',
  1619. 'items' => array(
  1620. 'type' => 'object',
  1621. 'location' => 'xml',
  1622. 'properties' => array(
  1623. 'Text' => array('type' => 'string', 'location' => 'xml',),
  1624. 'Keywords' => array(
  1625. 'type' => 'array',
  1626. 'location' => 'xml',
  1627. 'items' => array('type' => 'string', 'location' => 'xml',)
  1628. ),
  1629. 'Location' => array(
  1630. 'type' => 'object',
  1631. 'location' => 'xml',
  1632. 'properties' => array(
  1633. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1634. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1635. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1636. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1637. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1638. ),
  1639. ),
  1640. ),
  1641. ),
  1642. ),
  1643. 'ObjectResults' => array(
  1644. 'type' => 'array',
  1645. 'location' => 'xml',
  1646. 'items' => array(
  1647. 'type' => 'object',
  1648. 'location' => 'xml',
  1649. 'properties' => array(
  1650. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1651. 'Location' => array(
  1652. 'type' => 'object',
  1653. 'location' => 'xml',
  1654. 'properties' => array(
  1655. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1656. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1657. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1658. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1659. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1660. ),
  1661. ),
  1662. ),
  1663. ),
  1664. ),
  1665. ),
  1666. ),
  1667. 'AdsInfo' => array(
  1668. 'type' => 'object',
  1669. 'location' => 'xml',
  1670. 'properties' => array(
  1671. 'HitFlag' => array('type' => 'integer', 'location' => 'xml',),
  1672. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  1673. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  1674. 'OcrResults' => array(
  1675. 'type' => 'array',
  1676. 'location' => 'xml',
  1677. 'items' => array(
  1678. 'type' => 'object',
  1679. 'location' => 'xml',
  1680. 'properties' => array(
  1681. 'Text' => array('type' => 'string', 'location' => 'xml',),
  1682. 'Keywords' => array(
  1683. 'type' => 'array',
  1684. 'location' => 'xml',
  1685. 'items' => array('type' => 'string', 'location' => 'xml',)
  1686. ),
  1687. 'Location' => array(
  1688. 'type' => 'object',
  1689. 'location' => 'xml',
  1690. 'properties' => array(
  1691. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1692. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1693. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1694. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1695. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1696. ),
  1697. ),
  1698. ),
  1699. ),
  1700. ),
  1701. 'ObjectResults' => array(
  1702. 'type' => 'array',
  1703. 'location' => 'xml',
  1704. 'items' => array(
  1705. 'type' => 'object',
  1706. 'location' => 'xml',
  1707. 'properties' => array(
  1708. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1709. 'Location' => array(
  1710. 'type' => 'object',
  1711. 'location' => 'xml',
  1712. 'properties' => array(
  1713. 'X' => array('type' => 'numeric', 'location' => 'xml',),
  1714. 'Y' => array('type' => 'numeric', 'location' => 'xml',),
  1715. 'Height' => array('type' => 'numeric', 'location' => 'xml',),
  1716. 'Width' => array('type' => 'numeric', 'location' => 'xml',),
  1717. 'Rotate' => array('type' => 'numeric', 'location' => 'xml',),
  1718. ),
  1719. ),
  1720. ),
  1721. ),
  1722. ),
  1723. ),
  1724. ),
  1725. ),
  1726. ),
  1727. ),
  1728. ),
  1729. ),
  1730. ),
  1731. ),
  1732. ),
  1733. );
  1734. }
  1735. public static function CreateDocProcessJobs() {
  1736. return array(
  1737. 'httpMethod' => 'POST',
  1738. 'uri' => '/{Bucket}doc_jobs',
  1739. 'class' => 'Qcloud\\Cos\\Command',
  1740. 'responseClass' => 'CreateDocProcessJobsOutput',
  1741. 'responseType' => 'model',
  1742. 'data' => array(
  1743. 'xmlRoot' => array(
  1744. 'name' => 'Request',
  1745. ),
  1746. ),
  1747. 'parameters' => array(
  1748. 'Bucket' => array(
  1749. 'required' => true,
  1750. 'type' => 'string',
  1751. 'location' => 'uri',
  1752. ),
  1753. 'Tag' => array(
  1754. 'required' => true,
  1755. 'type' => 'string',
  1756. 'location' => 'xml',
  1757. ),
  1758. 'QueueId' => array(
  1759. 'required' => true,
  1760. 'type' => 'string',
  1761. 'location' => 'xml',
  1762. ),
  1763. 'Input' => array(
  1764. 'required' => true,
  1765. 'type' => 'object',
  1766. 'location' => 'xml',
  1767. 'properties' => array(
  1768. 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ),
  1769. ),
  1770. ),
  1771. 'Operation' => array(
  1772. 'required' => true,
  1773. 'type' => 'object',
  1774. 'location' => 'xml',
  1775. 'properties' => array(
  1776. 'Output' => array(
  1777. 'required' => true,
  1778. 'type' => 'object',
  1779. 'location' => 'xml',
  1780. 'properties' => array(
  1781. 'Region' => array(
  1782. 'type' => 'string','required' => true,'location' => 'xml',
  1783. ),
  1784. 'Bucket' => array(
  1785. 'type' => 'string','required' => true,'location' => 'xml',
  1786. ),
  1787. 'Object' => array(
  1788. 'type' => 'string','required' => true,'location' => 'xml',
  1789. ),
  1790. ),
  1791. ),
  1792. 'DocProcess' => array(
  1793. 'required' => true,
  1794. 'type' => 'object',
  1795. 'location' => 'xml',
  1796. 'properties' => array(
  1797. 'SrcType' => array(
  1798. 'type' => 'string',
  1799. ),
  1800. 'TgtType' => array(
  1801. 'type' => 'string',
  1802. ),
  1803. 'SheetId' => array(
  1804. 'type' => 'integer',
  1805. ),
  1806. 'StartPage' => array(
  1807. 'type' => 'integer',
  1808. ),
  1809. 'EndPage' => array(
  1810. 'type' => 'integer',
  1811. ),
  1812. 'ImageParams' => array(
  1813. 'type' => 'string',
  1814. ),
  1815. 'DocPassword' => array(
  1816. 'type' => 'string',
  1817. ),
  1818. 'Comments' => array(
  1819. 'type' => 'integer',
  1820. ),
  1821. 'PaperDirection' => array(
  1822. 'type' => 'integer',
  1823. ),
  1824. 'Quality' => array(
  1825. 'type' => 'integer',
  1826. ),
  1827. 'Zoom' => array(
  1828. 'type' => 'integer',
  1829. ),
  1830. ),
  1831. ),
  1832. ),
  1833. ),
  1834. ),
  1835. );
  1836. }
  1837. public static function CreateDocProcessJobsOutput()
  1838. {
  1839. return array(
  1840. 'type' => 'object',
  1841. 'additionalProperties' => true,
  1842. 'properties' => array(
  1843. 'RequestId' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id',),
  1844. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  1845. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  1846. 'JobsDetail' => array(
  1847. 'type' => 'object',
  1848. 'location' => 'xml',
  1849. 'properties' => array(
  1850. 'EndTime' => array('type' => 'string', 'location' => 'xml',),
  1851. 'StartTime' => array('type' => 'string', 'location' => 'xml',),
  1852. 'Code' => array('type' => 'string', 'location' => 'xml',),
  1853. 'Message' => array('type' => 'string', 'location' => 'xml',),
  1854. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  1855. 'Tag' => array('type' => 'string', 'location' => 'xml',),
  1856. 'State' => array('type' => 'string', 'location' => 'xml',),
  1857. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  1858. 'QueueId' => array('type' => 'string', 'location' => 'xml',),
  1859. 'Input' => array(
  1860. 'type' => 'object',
  1861. 'location' => 'xml',
  1862. 'properties' => array(
  1863. 'Object' => array('type' => 'string', 'location' => 'xml',),
  1864. ),
  1865. ),
  1866. 'Operation' => array(
  1867. 'type' => 'object',
  1868. 'location' => 'xml',
  1869. 'properties' => array(
  1870. 'Output' => array(
  1871. 'required' => true,
  1872. 'type' => 'object',
  1873. 'location' => 'xml',
  1874. 'properties' => array(
  1875. 'Region' => array(
  1876. 'type' => 'string','location' => 'xml',
  1877. ),
  1878. 'Bucket' => array(
  1879. 'type' => 'string','location' => 'xml',
  1880. ),
  1881. 'Object' => array(
  1882. 'type' => 'string','location' => 'xml',
  1883. ),
  1884. ),
  1885. ),
  1886. 'DocProcess' => array(
  1887. 'type' => 'object',
  1888. 'location' => 'xml',
  1889. 'properties' => array(
  1890. 'SrcType' => array(
  1891. 'type' => 'string',
  1892. ),
  1893. 'TgtType' => array(
  1894. 'type' => 'string',
  1895. ),
  1896. 'SheetId' => array(
  1897. 'type' => 'integer',
  1898. ),
  1899. 'StartPage' => array(
  1900. 'type' => 'integer',
  1901. ),
  1902. 'EndPage' => array(
  1903. 'type' => 'integer',
  1904. ),
  1905. 'ImageParams' => array(
  1906. 'type' => 'string',
  1907. ),
  1908. 'DocPassword' => array(
  1909. 'type' => 'string',
  1910. ),
  1911. 'Comments' => array(
  1912. 'type' => 'integer',
  1913. ),
  1914. 'PaperDirection' => array(
  1915. 'type' => 'integer',
  1916. ),
  1917. 'Quality' => array(
  1918. 'type' => 'integer',
  1919. ),
  1920. 'Zoom' => array(
  1921. 'type' => 'integer',
  1922. ),
  1923. ),
  1924. ),
  1925. ),
  1926. ),
  1927. ),
  1928. ),
  1929. ),
  1930. );
  1931. }
  1932. public static function DescribeDocProcessQueues() {
  1933. return array(
  1934. 'httpMethod' => 'GET',
  1935. 'uri' => '/{Bucket}docqueue',
  1936. 'class' => 'Qcloud\\Cos\\Command',
  1937. 'responseClass' => 'DescribeDocProcessQueuesOutput',
  1938. 'responseType' => 'model',
  1939. 'data' => array(
  1940. 'xmlRoot' => array(
  1941. 'name' => 'Request',
  1942. ),
  1943. ),
  1944. 'parameters' => array(
  1945. 'Bucket' => array(
  1946. 'required' => true,
  1947. 'type' => 'string',
  1948. 'location' => 'uri',
  1949. ),
  1950. 'queueIds' => array(
  1951. 'type' => 'string',
  1952. 'location' => 'xml',
  1953. ),
  1954. 'state' => array(
  1955. 'type' => 'string',
  1956. 'location' => 'xml',
  1957. ),
  1958. 'pageNumber' => array(
  1959. 'type' => 'string',
  1960. 'location' => 'query',
  1961. ),
  1962. 'pageSize' => array(
  1963. 'type' => 'string',
  1964. 'location' => 'query',
  1965. ),
  1966. ),
  1967. );
  1968. }
  1969. public static function DescribeDocProcessQueuesOutput() {
  1970. return array(
  1971. 'type' => 'object',
  1972. 'additionalProperties' => true,
  1973. 'properties' => array(
  1974. 'RequestId' => array('type' => 'string', 'location' => 'xml',),
  1975. 'TotalCount' => array('type' => 'integer', 'location' => 'xml',),
  1976. 'PageNumber' => array('type' => 'integer', 'location' => 'xml',),
  1977. 'PageSize' => array('type' => 'integer', 'location' => 'xml',),
  1978. 'QueueList' => array(
  1979. 'type' => 'object',
  1980. 'location' => 'xml',
  1981. 'properties' => array(
  1982. 'State' => array('type' => 'string', 'location' => 'xml',),
  1983. 'Name' => array('type' => 'string', 'location' => 'xml',),
  1984. 'MaxSize' => array('type' => 'integer', 'location' => 'xml',),
  1985. 'MaxConcurrent' => array('type' => 'integer', 'location' => 'xml',),
  1986. 'CreateTime' => array('type' => 'string', 'location' => 'xml',),
  1987. 'UpdateTime' => array('type' => 'string', 'location' => 'xml',),
  1988. 'BucketId' => array('type' => 'string', 'location' => 'xml',),
  1989. 'Category' => array('type' => 'string', 'location' => 'xml',),
  1990. 'QueueId' => array('type' => 'string', 'location' => 'xml',),
  1991. 'NotifyConfig' => array(
  1992. 'type' => 'object',
  1993. 'location' => 'xml',
  1994. 'properties' => array(
  1995. 'Url' => array('type' => 'string', 'location' => 'xml',),
  1996. 'Event' => array('type' => 'string', 'location' => 'xml',),
  1997. 'Type' => array('type' => 'string', 'location' => 'xml',),
  1998. 'State' => array('type' => 'string', 'location' => 'xml',),
  1999. ),
  2000. ),
  2001. ),
  2002. ),
  2003. ),
  2004. );
  2005. }
  2006. public static function DescribeDocProcessJob() {
  2007. return array(
  2008. 'httpMethod' => 'GET',
  2009. 'uri' => '/{Bucket}doc_jobs/{/Key*}',
  2010. 'class' => 'Qcloud\\Cos\\Command',
  2011. 'responseClass' => 'DescribeDocProcessJobOutput',
  2012. 'responseType' => 'model',
  2013. 'parameters' => array(
  2014. 'Bucket' => array(
  2015. 'required' => true,
  2016. 'type' => 'string',
  2017. 'location' => 'uri',
  2018. ),
  2019. 'Key' => array(
  2020. 'required' => true,
  2021. 'type' => 'string',
  2022. 'location' => 'uri',
  2023. ),
  2024. ),
  2025. );
  2026. }
  2027. public static function DescribeDocProcessJobOutput() {
  2028. return array(
  2029. 'type' => 'object',
  2030. 'additionalProperties' => true,
  2031. 'properties' => array(
  2032. 'Body' => array(
  2033. 'type' => 'string',
  2034. 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream',
  2035. 'location' => 'body',
  2036. ),
  2037. 'RequestId' => array(
  2038. 'type' => 'string',
  2039. 'location' => 'header',
  2040. 'sentAs' => 'x-ci-request-id',
  2041. ),
  2042. 'ContentType' => array(
  2043. 'type' => 'string',
  2044. 'location' => 'header',
  2045. 'sentAs' => 'Content-Type',
  2046. ),
  2047. 'ContentLength' => array(
  2048. 'type' => 'numeric',
  2049. 'minimum'=> 0,
  2050. 'location' => 'header',
  2051. 'sentAs' => 'Content-Length',
  2052. ),
  2053. 'JobsDetail' => array(
  2054. 'type' => 'object',
  2055. 'location' => 'xml',
  2056. 'properties' => array(
  2057. 'Code' => array(
  2058. 'type' => 'string',
  2059. ),
  2060. 'Message' => array(
  2061. 'type' => 'string',
  2062. ),
  2063. 'JobId' => array(
  2064. 'type' => 'string',
  2065. ),
  2066. 'State' => array(
  2067. 'type' => 'string',
  2068. ),
  2069. 'CreationTime' => array(
  2070. 'type' => 'string',
  2071. ),
  2072. 'QueueId' => array(
  2073. 'type' => 'string',
  2074. ),
  2075. 'Tag' => array(
  2076. 'type' => 'string',
  2077. ),
  2078. 'EndTime' => array(
  2079. 'type' => 'string',
  2080. ),
  2081. 'Input' => array(
  2082. 'type' => 'object',
  2083. 'location' => 'xml',
  2084. 'properties' => array(
  2085. 'Object' => array(
  2086. 'type' => 'string',
  2087. ),
  2088. ),
  2089. ),
  2090. 'Operation' => array(
  2091. 'type' => 'array',
  2092. 'location' => 'xml',
  2093. 'items' => array(
  2094. 'type' => 'object',
  2095. 'properties' => array(
  2096. 'DocProcess' => array(
  2097. 'type' => 'object',
  2098. 'location' => 'xml',
  2099. 'properties' => array(
  2100. 'SrcType' => array(
  2101. 'type' => 'string',
  2102. ),
  2103. 'TgtType' => array(
  2104. 'type' => 'string',
  2105. ),
  2106. 'SheetId' => array(
  2107. 'type' => 'integer',
  2108. ),
  2109. 'StartPage' => array(
  2110. 'type' => 'integer',
  2111. ),
  2112. 'EndPage' => array(
  2113. 'type' => 'integer',
  2114. ),
  2115. 'ImageParams' => array(
  2116. 'type' => 'string',
  2117. ),
  2118. 'DocPassword' => array(
  2119. 'type' => 'string',
  2120. ),
  2121. 'Comments' => array(
  2122. 'type' => 'integer',
  2123. ),
  2124. 'PaperDirection' => array(
  2125. 'type' => 'integer',
  2126. ),
  2127. 'Quality' => array(
  2128. 'type' => 'integer',
  2129. ),
  2130. 'Zoom' => array(
  2131. 'type' => 'integer',
  2132. ),
  2133. ),
  2134. ),
  2135. 'DocProcessResult' => array(
  2136. 'type' => 'object',
  2137. 'location' => 'xml',
  2138. 'properties' => array(
  2139. 'PageInfo' => array(
  2140. 'type' => 'object',
  2141. 'location' => 'xml',
  2142. 'properties' => array(
  2143. 'PageNo' => array(
  2144. 'type' => 'integer',
  2145. ),
  2146. 'TgtUri' => array(
  2147. 'type' => 'string',
  2148. ),
  2149. 'PicIndex' => array(
  2150. 'type' => 'integer',
  2151. ),
  2152. 'PicNum' => array(
  2153. 'type' => 'integer',
  2154. ),
  2155. 'X-SheetPics' => array(
  2156. 'type' => 'integer',
  2157. ),
  2158. ),
  2159. ),
  2160. 'SuccPageCount' => array(
  2161. 'type' => 'integer',
  2162. ),
  2163. 'FailPageCount' => array(
  2164. 'type' => 'integer',
  2165. ),
  2166. 'TaskId' => array(
  2167. 'type' => 'string',
  2168. ),
  2169. 'TgtType' => array(
  2170. 'type' => 'string',
  2171. ),
  2172. 'TotalPageCount' => array(
  2173. 'type' => 'integer',
  2174. ),
  2175. 'TotalSheetCount' => array(
  2176. 'type' => 'integer',
  2177. ),
  2178. ),
  2179. ),
  2180. 'Output' => array(
  2181. 'type' => 'object',
  2182. 'location' => 'xml',
  2183. 'properties' => array(
  2184. 'Bucket' => array(
  2185. 'type' => 'string',
  2186. ),
  2187. 'Object' => array(
  2188. 'type' => 'string',
  2189. ),
  2190. 'Region' => array(
  2191. 'type' => 'string',
  2192. ),
  2193. ),
  2194. ),
  2195. ),
  2196. ),
  2197. ),
  2198. ),
  2199. ),
  2200. ),
  2201. );
  2202. }
  2203. public static function GetDescribeDocProcessJobs() {
  2204. return array(
  2205. 'httpMethod' => 'GET',
  2206. 'uri' => '/{Bucket}doc_jobs',
  2207. 'class' => 'Qcloud\\Cos\\Command',
  2208. 'responseClass' => 'GetDescribeDocProcessJobsOutput',
  2209. 'responseType' => 'model',
  2210. 'parameters' => array(
  2211. 'Bucket' => array(
  2212. 'required' => true,
  2213. 'type' => 'string',
  2214. 'location' => 'uri',
  2215. ),
  2216. 'Tag' => array(
  2217. 'required' => true,
  2218. 'type' => 'string',
  2219. 'location' => 'query',
  2220. 'sentAs' => 'tag',
  2221. ),
  2222. 'QueueId' => array(
  2223. 'required' => true,
  2224. 'type' => 'string',
  2225. 'location' => 'query',
  2226. 'sentAs' => 'queueId',
  2227. ),
  2228. 'OrderByTime' => array(
  2229. 'type' => 'string',
  2230. 'location' => 'query',
  2231. 'sentAs' => 'orderByTime',
  2232. ),
  2233. 'NextToken' => array(
  2234. 'type' => 'string',
  2235. 'location' => 'query',
  2236. 'sentAs' => 'nextToken',
  2237. ),
  2238. 'Size' => array(
  2239. 'type' => 'integer',
  2240. 'location' => 'query',
  2241. 'sentAs' => 'size',
  2242. ),
  2243. 'States' => array(
  2244. 'type' => 'string',
  2245. 'location' => 'query',
  2246. 'sentAs' => 'states',
  2247. ),
  2248. 'StartCreationTime' => array(
  2249. 'type' => 'string',
  2250. 'location' => 'query',
  2251. 'sentAs' => 'startCreationTime',
  2252. ),
  2253. 'EndCreationTime' => array(
  2254. 'type' => 'string',
  2255. 'location' => 'query',
  2256. 'sentAs' => 'endCreationTime',
  2257. ),
  2258. ),
  2259. );
  2260. }
  2261. public static function GetDescribeDocProcessJobsOutput() {
  2262. return array(
  2263. 'type' => 'object',
  2264. 'additionalProperties' => true,
  2265. 'properties' => array(
  2266. 'RequestId' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id',),
  2267. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  2268. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  2269. 'NextToken' => array('type' => 'string','location' => 'xml',),
  2270. 'JobsDetail' => array(
  2271. 'type' => 'array',
  2272. 'location' => 'xml',
  2273. 'data' => array(
  2274. 'xmlFlattened' => true,
  2275. ),
  2276. 'items' => array(
  2277. 'type' => 'object',
  2278. 'properties' => array(
  2279. 'Code' => array('type' => 'string', 'location' => 'xml',),
  2280. 'Message' => array('type' => 'string', 'location' => 'xml',),
  2281. 'JobId' => array('type' => 'string', 'location' => 'xml',),
  2282. 'Tag' => array('type' => 'string', 'location' => 'xml',),
  2283. 'State' => array('type' => 'string', 'location' => 'xml',),
  2284. 'CreationTime' => array('type' => 'string', 'location' => 'xml',),
  2285. 'QueueId' => array('type' => 'string', 'location' => 'xml',),
  2286. 'Input' => array(
  2287. 'type' => 'object',
  2288. 'location' => 'xml',
  2289. 'properties' => array(
  2290. 'Object' => array('type' => 'string', 'location' => 'xml',),
  2291. ),
  2292. ),
  2293. 'Operation' => array(
  2294. 'type' => 'object',
  2295. 'location' => 'xml',
  2296. 'properties' => array(
  2297. 'Output' => array(
  2298. 'required' => true,
  2299. 'type' => 'object',
  2300. 'location' => 'xml',
  2301. 'properties' => array(
  2302. 'Region' => array(
  2303. 'type' => 'string','location' => 'xml',
  2304. ),
  2305. 'Bucket' => array(
  2306. 'type' => 'string','location' => 'xml',
  2307. ),
  2308. 'Object' => array(
  2309. 'type' => 'string','location' => 'xml',
  2310. ),
  2311. ),
  2312. ),
  2313. 'DocProcess' => array(
  2314. 'type' => 'object',
  2315. 'location' => 'xml',
  2316. 'properties' => array(
  2317. 'SrcType' => array(
  2318. 'type' => 'string',
  2319. ),
  2320. 'TgtType' => array(
  2321. 'type' => 'string',
  2322. ),
  2323. 'SheetId' => array(
  2324. 'type' => 'integer',
  2325. ),
  2326. 'StartPage' => array(
  2327. 'type' => 'integer',
  2328. ),
  2329. 'EndPage' => array(
  2330. 'type' => 'integer',
  2331. ),
  2332. 'ImageParams' => array(
  2333. 'type' => 'string',
  2334. ),
  2335. 'DocPassword' => array(
  2336. 'type' => 'string',
  2337. ),
  2338. 'Comments' => array(
  2339. 'type' => 'integer',
  2340. ),
  2341. 'PaperDirection' => array(
  2342. 'type' => 'integer',
  2343. ),
  2344. 'Quality' => array(
  2345. 'type' => 'integer',
  2346. ),
  2347. 'Zoom' => array(
  2348. 'type' => 'integer',
  2349. ),
  2350. ),
  2351. ),
  2352. ),
  2353. ),
  2354. ),
  2355. ),
  2356. ),
  2357. ),
  2358. );
  2359. }
  2360. public static function DetectImage() {
  2361. return array(
  2362. 'httpMethod' => 'GET',
  2363. 'uri' => '/{Bucket}{/Key*}',
  2364. 'class' => 'Qcloud\\Cos\\Command',
  2365. 'responseClass' => 'DetectImageOutput',
  2366. 'responseType' => 'model',
  2367. 'parameters' => array(
  2368. 'Bucket' => array(
  2369. 'required' => true,
  2370. 'type' => 'string',
  2371. 'location' => 'uri',
  2372. ),
  2373. 'Key' => array(
  2374. 'required' => true,
  2375. 'type' => 'string',
  2376. 'location' => 'uri',
  2377. 'minLength' => 1,
  2378. 'filters' => array(
  2379. 'Qcloud\\Cos\\Client::explodeKey'
  2380. )
  2381. ),
  2382. 'ci-process' => array(
  2383. 'required' => true,
  2384. 'type' => 'string',
  2385. 'location' => 'query'
  2386. ),
  2387. 'DetectType' => array(
  2388. 'required' => true,
  2389. 'type' => 'string',
  2390. 'location' => 'query',
  2391. 'sentAs' => 'detect-type'
  2392. ),
  2393. 'DetectUrl' => array(
  2394. 'type' => 'string',
  2395. 'location' => 'query',
  2396. 'sentAs' => 'detect-url'
  2397. ),
  2398. 'Interval' => array(
  2399. 'type' => 'integer',
  2400. 'location' => 'query',
  2401. 'sentAs' => 'interval'
  2402. ),
  2403. 'MaxFrames' => array(
  2404. 'type' => 'integer',
  2405. 'location' => 'query',
  2406. 'sentAs' => 'max-frames'
  2407. ),
  2408. 'BizType' => array(
  2409. 'type' => 'string',
  2410. 'location' => 'query',
  2411. 'sentAs' => 'biz-type'
  2412. )
  2413. ),
  2414. );
  2415. }
  2416. public static function DetectImageOutput() {
  2417. return array(
  2418. 'type' => 'object',
  2419. 'additionalProperties' => true,
  2420. 'properties' => array(
  2421. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-cos-request-id', ),
  2422. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  2423. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  2424. 'Result' => array('type' => 'integer', 'location' => 'xml',),
  2425. 'Label' => array('type' => 'string', 'location' => 'xml',),
  2426. 'SubLabel' => array('type' => 'string', 'location' => 'xml',),
  2427. 'Score' => array('type' => 'integer', 'location' => 'xml',),
  2428. 'Text' => array('type' => 'string', 'location' => 'xml',),
  2429. 'PornInfo' => array(
  2430. 'type' => 'object',
  2431. 'location' => 'xml',
  2432. 'properties' => array(
  2433. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  2434. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  2435. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  2436. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2437. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2438. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  2439. 'OcrResults' => array(
  2440. 'type' => 'array',
  2441. 'location' => 'xml',
  2442. 'items' => array(
  2443. 'type' => 'object',
  2444. 'location' => 'xml',
  2445. 'properties' => array(
  2446. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  2447. 'Keywords' => array(
  2448. 'type' => 'array',
  2449. 'location' => 'xml',
  2450. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2451. ),
  2452. 'Location' => array(
  2453. 'type' => 'object',
  2454. 'location' => 'xml',
  2455. 'properties' => array(
  2456. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2457. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2458. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2459. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2460. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2461. ),
  2462. ),
  2463. ),
  2464. ),
  2465. ),
  2466. 'ObjectResults' => array(
  2467. 'type' => 'array',
  2468. 'location' => 'xml',
  2469. 'items' => array(
  2470. 'type' => 'object',
  2471. 'location' => 'xml',
  2472. 'properties' => array(
  2473. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  2474. 'Location' => array(
  2475. 'type' => 'object',
  2476. 'location' => 'xml',
  2477. 'properties' => array(
  2478. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2479. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2480. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2481. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2482. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2483. ),
  2484. ),
  2485. ),
  2486. ),
  2487. ),
  2488. ),
  2489. ),
  2490. 'TerroristInfo' => array(
  2491. 'type' => 'object',
  2492. 'location' => 'xml',
  2493. 'properties' => array(
  2494. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  2495. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  2496. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  2497. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2498. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2499. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  2500. 'OcrResults' => array(
  2501. 'type' => 'array',
  2502. 'location' => 'xml',
  2503. 'items' => array(
  2504. 'type' => 'object',
  2505. 'location' => 'xml',
  2506. 'properties' => array(
  2507. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  2508. 'Keywords' => array(
  2509. 'type' => 'array',
  2510. 'location' => 'xml',
  2511. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2512. ),
  2513. 'Location' => array(
  2514. 'type' => 'object',
  2515. 'location' => 'xml',
  2516. 'properties' => array(
  2517. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2518. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2519. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2520. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2521. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2522. ),
  2523. ),
  2524. ),
  2525. ),
  2526. ),
  2527. 'ObjectResults' => array(
  2528. 'type' => 'array',
  2529. 'location' => 'xml',
  2530. 'items' => array(
  2531. 'type' => 'object',
  2532. 'location' => 'xml',
  2533. 'properties' => array(
  2534. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  2535. 'Location' => array(
  2536. 'type' => 'object',
  2537. 'location' => 'xml',
  2538. 'properties' => array(
  2539. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2540. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2541. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2542. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2543. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2544. ),
  2545. ),
  2546. ),
  2547. ),
  2548. ),
  2549. ),
  2550. ),
  2551. 'PoliticsInfo' => array(
  2552. 'type' => 'object',
  2553. 'location' => 'xml',
  2554. 'properties' => array(
  2555. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  2556. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  2557. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  2558. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2559. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2560. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  2561. 'OcrResults' => array(
  2562. 'type' => 'array',
  2563. 'location' => 'xml',
  2564. 'items' => array(
  2565. 'type' => 'object',
  2566. 'location' => 'xml',
  2567. 'properties' => array(
  2568. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  2569. 'Keywords' => array(
  2570. 'type' => 'array',
  2571. 'location' => 'xml',
  2572. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2573. ),
  2574. 'Location' => array(
  2575. 'type' => 'object',
  2576. 'location' => 'xml',
  2577. 'properties' => array(
  2578. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2579. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2580. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2581. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2582. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2583. ),
  2584. ),
  2585. ),
  2586. ),
  2587. ),
  2588. 'ObjectResults' => array(
  2589. 'type' => 'array',
  2590. 'location' => 'xml',
  2591. 'items' => array(
  2592. 'type' => 'object',
  2593. 'location' => 'xml',
  2594. 'properties' => array(
  2595. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  2596. 'Location' => array(
  2597. 'type' => 'object',
  2598. 'location' => 'xml',
  2599. 'properties' => array(
  2600. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2601. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2602. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2603. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2604. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2605. ),
  2606. ),
  2607. ),
  2608. ),
  2609. ),
  2610. ),
  2611. ),
  2612. 'AdsInfo' => array(
  2613. 'type' => 'object',
  2614. 'location' => 'xml',
  2615. 'properties' => array(
  2616. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  2617. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  2618. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  2619. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2620. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2621. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  2622. 'OcrResults' => array(
  2623. 'type' => 'array',
  2624. 'location' => 'xml',
  2625. 'items' => array(
  2626. 'type' => 'object',
  2627. 'location' => 'xml',
  2628. 'properties' => array(
  2629. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  2630. 'Keywords' => array(
  2631. 'type' => 'array',
  2632. 'location' => 'xml',
  2633. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2634. ),
  2635. 'Location' => array(
  2636. 'type' => 'object',
  2637. 'location' => 'xml',
  2638. 'properties' => array(
  2639. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2640. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2641. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2642. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2643. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2644. ),
  2645. ),
  2646. ),
  2647. ),
  2648. ),
  2649. 'ObjectResults' => array(
  2650. 'type' => 'array',
  2651. 'location' => 'xml',
  2652. 'items' => array(
  2653. 'type' => 'object',
  2654. 'location' => 'xml',
  2655. 'properties' => array(
  2656. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  2657. 'Location' => array(
  2658. 'type' => 'object',
  2659. 'location' => 'xml',
  2660. 'properties' => array(
  2661. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2662. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2663. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2664. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2665. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2666. ),
  2667. ),
  2668. ),
  2669. ),
  2670. ),
  2671. ),
  2672. ),
  2673. )
  2674. );
  2675. }
  2676. public static function DetectImages() {
  2677. return array(
  2678. 'httpMethod' => 'POST',
  2679. 'uri' => '/{Bucket}image/auditing',
  2680. 'class' => 'Qcloud\\Cos\\Command',
  2681. 'responseClass' => 'DetectImagesOutput',
  2682. 'responseType' => 'model',
  2683. 'data' => array(
  2684. 'xmlRoot' => array(
  2685. 'name' => 'Request',
  2686. ),
  2687. ),
  2688. 'parameters' => array(
  2689. 'Bucket' => array(
  2690. 'required' => true,
  2691. 'type' => 'string',
  2692. 'location' => 'uri',
  2693. ),
  2694. 'Inputs' => array(
  2695. 'type' => 'array',
  2696. 'location' => 'xml',
  2697. 'data' => array(
  2698. 'xmlFlattened' => true,
  2699. ),
  2700. 'items' => array(
  2701. 'name' => 'Input',
  2702. 'type' => 'object',
  2703. 'location' => 'xml',
  2704. 'sentAs' => 'Input',
  2705. 'properties' => array(
  2706. 'Object' => array( 'type' => 'string', 'location' => 'xml', ),
  2707. 'Url' => array( 'type' => 'string', 'location' => 'xml', ),
  2708. 'Interval' => array( 'type' => 'integer', 'location' => 'xml', ),
  2709. 'MaxFrames' => array( 'type' => 'integer', 'location' => 'xml', ),
  2710. 'DataId' => array( 'type' => 'string', 'location' => 'xml', ),
  2711. ),
  2712. ),
  2713. ),
  2714. 'Conf' => array(
  2715. 'required' => true,
  2716. 'type' => 'object',
  2717. 'location' => 'xml',
  2718. 'properties' => array(
  2719. 'DetectType' => array( 'type' => 'string', 'location' => 'xml', 'required' => true,),
  2720. 'BizType' => array( 'type' => 'string', 'location' => 'xml', ),
  2721. ),
  2722. ),
  2723. ),
  2724. );
  2725. }
  2726. public static function DetectImagesOutput() {
  2727. return array(
  2728. 'type' => 'object',
  2729. 'additionalProperties' => true,
  2730. 'properties' => array(
  2731. 'RequestId' => array( 'location' => 'header', 'sentAs' => 'x-ci-request-id', ),
  2732. 'ContentType' => array('type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type',),
  2733. 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',),
  2734. 'JobsDetail' => array(
  2735. 'type' => 'array',
  2736. 'location' => 'xml',
  2737. 'items' => array(
  2738. 'type' => 'object',
  2739. 'location' => 'xml',
  2740. 'properties' => array(
  2741. 'Code' => array( 'type' => 'string', 'location' => 'xml',),
  2742. 'Message' => array( 'type' => 'string', 'location' => 'xml',),
  2743. 'DataId' => array( 'type' => 'string', 'location' => 'xml',),
  2744. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2745. 'Result' => array( 'type' => 'integer', 'location' => 'xml',),
  2746. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2747. 'SubLabel' => array( 'type' => 'integer', 'location' => 'xml',),
  2748. 'Text' => array( 'type' => 'integer', 'location' => 'xml',),
  2749. 'Object' => array( 'type' => 'integer', 'location' => 'xml',),
  2750. 'Url' => array( 'type' => 'integer', 'location' => 'xml',),
  2751. 'PornInfo' => array(
  2752. 'type' => 'object',
  2753. 'location' => 'xml',
  2754. 'properties' => array(
  2755. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  2756. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  2757. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  2758. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2759. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2760. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  2761. 'OcrResults' => array(
  2762. 'type' => 'array',
  2763. 'location' => 'xml',
  2764. 'items' => array(
  2765. 'type' => 'object',
  2766. 'location' => 'xml',
  2767. 'properties' => array(
  2768. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  2769. 'Keywords' => array(
  2770. 'type' => 'array',
  2771. 'location' => 'xml',
  2772. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2773. ),
  2774. 'Location' => array(
  2775. 'type' => 'object',
  2776. 'location' => 'xml',
  2777. 'properties' => array(
  2778. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2779. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2780. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2781. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2782. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2783. ),
  2784. ),
  2785. ),
  2786. ),
  2787. ),
  2788. 'ObjectResults' => array(
  2789. 'type' => 'array',
  2790. 'location' => 'xml',
  2791. 'items' => array(
  2792. 'type' => 'object',
  2793. 'location' => 'xml',
  2794. 'properties' => array(
  2795. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  2796. 'Location' => array(
  2797. 'type' => 'object',
  2798. 'location' => 'xml',
  2799. 'properties' => array(
  2800. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2801. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2802. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2803. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2804. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2805. ),
  2806. ),
  2807. ),
  2808. ),
  2809. ),
  2810. ),
  2811. ),
  2812. 'TerrorismInfo' => array(
  2813. 'type' => 'object',
  2814. 'location' => 'xml',
  2815. 'properties' => array(
  2816. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  2817. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  2818. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  2819. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2820. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2821. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  2822. 'OcrResults' => array(
  2823. 'type' => 'array',
  2824. 'location' => 'xml',
  2825. 'items' => array(
  2826. 'type' => 'object',
  2827. 'location' => 'xml',
  2828. 'properties' => array(
  2829. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  2830. 'Keywords' => array(
  2831. 'type' => 'array',
  2832. 'location' => 'xml',
  2833. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2834. ),
  2835. 'Location' => array(
  2836. 'type' => 'object',
  2837. 'location' => 'xml',
  2838. 'properties' => array(
  2839. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2840. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2841. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2842. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2843. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2844. ),
  2845. ),
  2846. ),
  2847. ),
  2848. ),
  2849. 'ObjectResults' => array(
  2850. 'type' => 'array',
  2851. 'location' => 'xml',
  2852. 'items' => array(
  2853. 'type' => 'object',
  2854. 'location' => 'xml',
  2855. 'properties' => array(
  2856. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  2857. 'Location' => array(
  2858. 'type' => 'object',
  2859. 'location' => 'xml',
  2860. 'properties' => array(
  2861. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2862. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2863. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2864. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2865. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2866. ),
  2867. ),
  2868. ),
  2869. ),
  2870. ),
  2871. ),
  2872. ),
  2873. 'PoliticsInfo' => array(
  2874. 'type' => 'object',
  2875. 'location' => 'xml',
  2876. 'properties' => array(
  2877. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  2878. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  2879. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  2880. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2881. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2882. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  2883. 'OcrResults' => array(
  2884. 'type' => 'array',
  2885. 'location' => 'xml',
  2886. 'items' => array(
  2887. 'type' => 'object',
  2888. 'location' => 'xml',
  2889. 'properties' => array(
  2890. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  2891. 'Keywords' => array(
  2892. 'type' => 'array',
  2893. 'location' => 'xml',
  2894. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2895. ),
  2896. 'Location' => array(
  2897. 'type' => 'object',
  2898. 'location' => 'xml',
  2899. 'properties' => array(
  2900. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2901. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2902. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2903. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2904. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2905. ),
  2906. ),
  2907. ),
  2908. ),
  2909. ),
  2910. 'ObjectResults' => array(
  2911. 'type' => 'array',
  2912. 'location' => 'xml',
  2913. 'items' => array(
  2914. 'type' => 'object',
  2915. 'location' => 'xml',
  2916. 'properties' => array(
  2917. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  2918. 'Location' => array(
  2919. 'type' => 'object',
  2920. 'location' => 'xml',
  2921. 'properties' => array(
  2922. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2923. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2924. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2925. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2926. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2927. ),
  2928. ),
  2929. ),
  2930. ),
  2931. ),
  2932. ),
  2933. ),
  2934. 'AdsInfo' => array(
  2935. 'type' => 'object',
  2936. 'location' => 'xml',
  2937. 'properties' => array(
  2938. 'Code' => array( 'type' => 'integer', 'location' => 'xml',),
  2939. 'Msg' => array( 'type' => 'string', 'location' => 'xml',),
  2940. 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',),
  2941. 'Score' => array( 'type' => 'integer', 'location' => 'xml',),
  2942. 'Label' => array( 'type' => 'string', 'location' => 'xml',),
  2943. 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',),
  2944. 'OcrResults' => array(
  2945. 'type' => 'array',
  2946. 'location' => 'xml',
  2947. 'items' => array(
  2948. 'type' => 'object',
  2949. 'location' => 'xml',
  2950. 'properties' => array(
  2951. 'Text' => array( 'type' => 'string', 'location' => 'xml',),
  2952. 'Keywords' => array(
  2953. 'type' => 'array',
  2954. 'location' => 'xml',
  2955. 'items' => array( 'type' => 'string', 'location' => 'xml',),
  2956. ),
  2957. 'Location' => array(
  2958. 'type' => 'object',
  2959. 'location' => 'xml',
  2960. 'properties' => array(
  2961. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2962. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2963. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2964. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2965. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2966. ),
  2967. ),
  2968. ),
  2969. ),
  2970. ),
  2971. 'ObjectResults' => array(
  2972. 'type' => 'array',
  2973. 'location' => 'xml',
  2974. 'items' => array(
  2975. 'type' => 'object',
  2976. 'location' => 'xml',
  2977. 'properties' => array(
  2978. 'Name' => array( 'type' => 'string', 'location' => 'xml',),
  2979. 'Location' => array(
  2980. 'type' => 'object',
  2981. 'location' => 'xml',
  2982. 'properties' => array(
  2983. 'X' => array( 'type' => 'numeric', 'location' => 'xml',),
  2984. 'Y' => array( 'type' => 'numeric', 'location' => 'xml',),
  2985. 'Width' => array( 'type' => 'numeric', 'location' => 'xml',),
  2986. 'Height' => array( 'type' => 'numeric', 'location' => 'xml',),
  2987. 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',),
  2988. ),
  2989. ),
  2990. ),
  2991. ),
  2992. ),
  2993. ),
  2994. ),
  2995. ),
  2996. ),
  2997. ),
  2998. )
  2999. );
  3000. }
  3001. }