imaging.go 229 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008
  1. package imaging
  2. import (
  3. "context"
  4. "encoding/xml"
  5. "time"
  6. "lc/common/onvif/soap"
  7. )
  8. // against "unused imports"
  9. var _ time.Time
  10. var _ xml.Name
  11. // Describes standard Imaging Preset types, used to facilitate Multi-language support and client display.
  12. // "Custom" Type shall be used when Imaging Preset Name does not match any of the types included in the standard classification.
  13. //
  14. // ImagingPresetType type
  15. type ImagingPresetType string
  16. const (
  17. // ImagingPresetTypeCustom const
  18. ImagingPresetTypeCustom ImagingPresetType = "Custom"
  19. // ImagingPresetTypeClearWeather const
  20. ImagingPresetTypeClearWeather ImagingPresetType = "ClearWeather"
  21. // ImagingPresetTypeCloudy const
  22. ImagingPresetTypeCloudy ImagingPresetType = "Cloudy"
  23. // ImagingPresetTypeFog const
  24. ImagingPresetTypeFog ImagingPresetType = "Fog"
  25. // ImagingPresetTypeRain const
  26. ImagingPresetTypeRain ImagingPresetType = "Rain"
  27. // ImagingPresetTypeSnowing const
  28. ImagingPresetTypeSnowing ImagingPresetType = "Snowing"
  29. // ImagingPresetTypeSnow const
  30. ImagingPresetTypeSnow ImagingPresetType = "Snow"
  31. // ImagingPresetTypeWDR const
  32. ImagingPresetTypeWDR ImagingPresetType = "WDR"
  33. // ImagingPresetTypeShade const
  34. ImagingPresetTypeShade ImagingPresetType = "Shade"
  35. // ImagingPresetTypeNight const
  36. ImagingPresetTypeNight ImagingPresetType = "Night"
  37. // ImagingPresetTypeIndoor const
  38. ImagingPresetTypeIndoor ImagingPresetType = "Indoor"
  39. // ImagingPresetTypeFluorescent const
  40. ImagingPresetTypeFluorescent ImagingPresetType = "Fluorescent"
  41. // ImagingPresetTypeIncandescent const
  42. ImagingPresetTypeIncandescent ImagingPresetType = "Incandescent"
  43. // ImagingPresetTypeSodiumNatrium const
  44. ImagingPresetTypeSodiumNatrium ImagingPresetType = "Sodium(Natrium)"
  45. // ImagingPresetTypeSunriseHorizon const
  46. ImagingPresetTypeSunriseHorizon ImagingPresetType = "Sunrise(Horizon)"
  47. // ImagingPresetTypeSunsetRear const
  48. ImagingPresetTypeSunsetRear ImagingPresetType = "Sunset(Rear)"
  49. // ImagingPresetTypeExtremeHot const
  50. ImagingPresetTypeExtremeHot ImagingPresetType = "ExtremeHot"
  51. // ImagingPresetTypeExtremeCold const
  52. ImagingPresetTypeExtremeCold ImagingPresetType = "ExtremeCold"
  53. // ImagingPresetTypeUnderwater const
  54. ImagingPresetTypeUnderwater ImagingPresetType = "Underwater"
  55. // ImagingPresetTypeCloseUp const
  56. ImagingPresetTypeCloseUp ImagingPresetType = "CloseUp"
  57. // ImagingPresetTypeMotion const
  58. ImagingPresetTypeMotion ImagingPresetType = "Motion"
  59. // ImagingPresetTypeFlickerFree50 const
  60. ImagingPresetTypeFlickerFree50 ImagingPresetType = "FlickerFree50"
  61. // ImagingPresetTypeFlickerFree60 const
  62. ImagingPresetTypeFlickerFree60 ImagingPresetType = "FlickerFree60"
  63. )
  64. // GetServiceCapabilities type
  65. type GetServiceCapabilities struct {
  66. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl GetServiceCapabilities"`
  67. }
  68. // GetServiceCapabilitiesResponse type
  69. type GetServiceCapabilitiesResponse struct {
  70. XMLName xml.Name `xml:"GetServiceCapabilitiesResponse"`
  71. // The capabilities for the imaging service is returned in the Capabilities element.
  72. Capabilities Capabilities `xml:"Capabilities,omitempty"`
  73. }
  74. // GetImagingSettings type
  75. type GetImagingSettings struct {
  76. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl GetImagingSettings"`
  77. //
  78. // Reference token to the VideoSource for which the ImagingSettings.
  79. //
  80. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  81. }
  82. // GetImagingSettingsResponse type
  83. type GetImagingSettingsResponse struct {
  84. XMLName xml.Name `xml:"GetImagingSettingsResponse"`
  85. //
  86. // ImagingSettings for the VideoSource that was requested.
  87. //
  88. ImagingSettings ImagingSettings20 `xml:"ImagingSettings,omitempty"`
  89. }
  90. // SetImagingSettings type
  91. type SetImagingSettings struct {
  92. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl SetImagingSettings"`
  93. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  94. ImagingSettings ImagingSettings20 `xml:"http://www.onvif.org/ver20/imaging/wsdl ImagingSettings,omitempty"`
  95. ForcePersistence bool `xml:"http://www.onvif.org/ver20/imaging/wsdl ForcePersistence,omitempty"`
  96. }
  97. // SetImagingSettingsResponse type
  98. type SetImagingSettingsResponse struct {
  99. XMLName xml.Name `xml:"SetImagingSettingsResponse"`
  100. }
  101. // GetOptions type
  102. type GetOptions struct {
  103. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl GetOptions"`
  104. //
  105. // Reference token to the VideoSource for which the imaging parameter options are requested.
  106. //
  107. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  108. }
  109. // GetOptionsResponse type
  110. type GetOptionsResponse struct {
  111. XMLName xml.Name `xml:"GetOptionsResponse"`
  112. //
  113. // Valid ranges for the imaging parameters that are categorized as device specific.
  114. //
  115. ImagingOptions ImagingOptions20 `xml:"ImagingOptions,omitempty"`
  116. }
  117. // Move type
  118. type Move struct {
  119. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Move"`
  120. //
  121. // Reference to the VideoSource for the requested move (focus) operation.
  122. //
  123. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  124. //
  125. // Content of the requested move (focus) operation.
  126. //
  127. Focus FocusMove `xml:"http://www.onvif.org/ver20/imaging/wsdl Focus,omitempty"`
  128. }
  129. // MoveResponse type
  130. type MoveResponse struct {
  131. XMLName xml.Name `xml:"MoveResponse"`
  132. }
  133. // GetMoveOptions type
  134. type GetMoveOptions struct {
  135. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl GetMoveOptions"`
  136. //
  137. // Reference token to the VideoSource for the requested move options.
  138. //
  139. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  140. }
  141. // GetMoveOptionsResponse type
  142. type GetMoveOptionsResponse struct {
  143. XMLName xml.Name `xml:"GetMoveOptionsResponse"`
  144. //
  145. // Valid ranges for the focus lens move options.
  146. //
  147. MoveOptions MoveOptions20 `xml:"MoveOptions,omitempty"`
  148. }
  149. // Stop type
  150. type Stop struct {
  151. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Stop"`
  152. //
  153. // Reference token to the VideoSource where the focus movement should be stopped.
  154. //
  155. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  156. }
  157. // StopResponse type
  158. type StopResponse struct {
  159. XMLName xml.Name `xml:"StopResponse"`
  160. }
  161. // GetStatus type
  162. type GetStatus struct {
  163. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl GetStatus"`
  164. //
  165. // Reference token to the VideoSource where the imaging status should be requested.
  166. //
  167. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  168. }
  169. // GetStatusResponse type
  170. type GetStatusResponse struct {
  171. XMLName xml.Name `xml:"GetStatusResponse"`
  172. //
  173. // Requested imaging status.
  174. //
  175. Status ImagingStatus20 `xml:"Status,omitempty"`
  176. }
  177. // GetPresets type
  178. type GetPresets struct {
  179. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl GetPresets"`
  180. //
  181. // A reference to the VideoSource where the operation should take place.
  182. //
  183. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  184. }
  185. // GetPresetsResponse type
  186. type GetPresetsResponse struct {
  187. XMLName xml.Name `xml:"GetPresetsResponse"`
  188. //
  189. // List of Imaging Presets which are available for the requested VideoSource.
  190. //
  191. Preset []ImagingPreset `xml:"Preset,omitempty"`
  192. }
  193. // GetCurrentPreset type
  194. type GetCurrentPreset struct {
  195. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl GetCurrentPreset"`
  196. // Reference token to the VideoSource where the current Imaging Preset should be requested.
  197. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  198. }
  199. // GetCurrentPresetResponse type
  200. type GetCurrentPresetResponse struct {
  201. XMLName xml.Name `xml:"GetCurrentPresetResponse"`
  202. // Current Imaging Preset in use for the specified Video Source.
  203. Preset ImagingPreset `xml:"Preset,omitempty"`
  204. }
  205. // SetCurrentPreset type
  206. type SetCurrentPreset struct {
  207. XMLName xml.Name `xml:"http://www.onvif.org/ver20/imaging/wsdl SetCurrentPreset"`
  208. //
  209. // Reference token to the VideoSource to which the specified Imaging Preset should be applied.
  210. //
  211. VideoSourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceToken,omitempty"`
  212. // Reference token to the Imaging Preset to be applied to the specified Video Source.
  213. PresetToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl PresetToken,omitempty"`
  214. }
  215. // SetCurrentPresetResponse type
  216. type SetCurrentPresetResponse struct {
  217. XMLName xml.Name `xml:"SetCurrentPresetResponse"`
  218. }
  219. // Capabilities type
  220. type Capabilities struct {
  221. // Indicates whether or not Image Stabilization feature is supported.
  222. // The use of this capability is deprecated, a client should use GetOption to find out if image stabilization is supported.
  223. ImageStabilization bool `xml:"http://www.onvif.org/ver20/imaging/wsdl ImageStabilization,attr,omitempty"`
  224. // Indicates whether or not Imaging Presets feature is supported.
  225. Presets bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Presets,attr,omitempty"`
  226. // Indicates whether or not imaging preset settings can be updated.
  227. AdaptablePreset bool `xml:"http://www.onvif.org/ver20/imaging/wsdl AdaptablePreset,attr,omitempty"`
  228. }
  229. // ImagingPreset type
  230. type ImagingPreset struct {
  231. // Human readable name of the Imaging Preset.
  232. Name Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  233. // Unique identifier of this Imaging Preset.
  234. Token ReferenceToken `xml:"token,attr,omitempty"`
  235. // Indicates Imaging Preset Type. Use timg:ImagingPresetType.
  236. // Used for multi-language support and display.
  237. Type string `xml:"type,attr,omitempty"`
  238. }
  239. // FaultcodeEnum type
  240. type FaultcodeEnum QName
  241. const (
  242. // FaultcodeEnumTnsDataEncodingUnknown const
  243. FaultcodeEnumTnsDataEncodingUnknown FaultcodeEnum = "tns:DataEncodingUnknown"
  244. // FaultcodeEnumTnsMustUnderstand const
  245. FaultcodeEnumTnsMustUnderstand FaultcodeEnum = "tns:MustUnderstand"
  246. // FaultcodeEnumTnsReceiver const
  247. FaultcodeEnumTnsReceiver FaultcodeEnum = "tns:Receiver"
  248. // FaultcodeEnumTnsSender const
  249. FaultcodeEnumTnsSender FaultcodeEnum = "tns:Sender"
  250. // FaultcodeEnumTnsVersionMismatch const
  251. FaultcodeEnumTnsVersionMismatch FaultcodeEnum = "tns:VersionMismatch"
  252. )
  253. // NotUnderstood type
  254. type NotUnderstood NotUnderstoodType
  255. // Upgrade type
  256. type Upgrade UpgradeType
  257. // Envelope type
  258. type Envelope struct {
  259. Header Header `xml:"Header,omitempty"`
  260. Body Body `xml:"Body,omitempty"`
  261. }
  262. // Header type
  263. type Header struct {
  264. }
  265. // Body type
  266. type Body struct {
  267. }
  268. // Fault type
  269. type Fault struct {
  270. Code Faultcode `xml:"Code,omitempty"`
  271. Reason Faultreason `xml:"Reason,omitempty"`
  272. Node AnyURI `xml:"http://www.onvif.org/ver10/schema Node,omitempty"`
  273. Role AnyURI `xml:"http://www.onvif.org/ver10/schema Role,omitempty"`
  274. Detail Detail `xml:"Detail,omitempty"`
  275. }
  276. // Faultreason type
  277. type Faultreason struct {
  278. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultreason"`
  279. Text []Reasontext `xml:"Text,omitempty"`
  280. }
  281. // Reasontext type
  282. type Reasontext struct {
  283. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope reasontext"`
  284. Value string
  285. string `xml:",attr,omitempty"`
  286. }
  287. // Faultcode type
  288. type Faultcode struct {
  289. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultcode"`
  290. Value FaultcodeEnum `xml:"Value,omitempty"`
  291. Subcode *Subcode `xml:"Subcode,omitempty"`
  292. }
  293. // Subcode type
  294. type Subcode struct {
  295. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope subcode"`
  296. Value QName `xml:"http://www.onvif.org/ver10/schema Value,omitempty"`
  297. Subcode *Subcode `xml:"Subcode,omitempty"`
  298. }
  299. // Detail type
  300. type Detail struct {
  301. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope detail"`
  302. }
  303. // NotUnderstoodType type
  304. type NotUnderstoodType struct {
  305. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope NotUnderstood"`
  306. Qname QName `xml:"qname,attr,omitempty"`
  307. }
  308. // SupportedEnvType type
  309. type SupportedEnvType struct {
  310. Qname QName `xml:"qname,attr,omitempty"`
  311. }
  312. // UpgradeType type
  313. type UpgradeType struct {
  314. XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Upgrade"`
  315. SupportedEnvelope []SupportedEnvType `xml:"SupportedEnvelope,omitempty"`
  316. }
  317. // RelationshipTypeOpenEnum type
  318. type RelationshipTypeOpenEnum string
  319. // RelationshipType type
  320. type RelationshipType AnyURI
  321. const (
  322. // RelationshipTypeHttpwwww3org200508addressingreply const
  323. RelationshipTypeHttpwwww3org200508addressingreply RelationshipType = "http://www.w3.org/2005/08/addressing/reply"
  324. )
  325. // FaultCodesType type
  326. type FaultCodesType QName
  327. const (
  328. // FaultCodesTypeTnsInvalidAddressingHeader const
  329. FaultCodesTypeTnsInvalidAddressingHeader FaultCodesType = "tns:InvalidAddressingHeader"
  330. // FaultCodesTypeTnsInvalidAddress const
  331. FaultCodesTypeTnsInvalidAddress FaultCodesType = "tns:InvalidAddress"
  332. // FaultCodesTypeTnsInvalidEPR const
  333. FaultCodesTypeTnsInvalidEPR FaultCodesType = "tns:InvalidEPR"
  334. // FaultCodesTypeTnsInvalidCardinality const
  335. FaultCodesTypeTnsInvalidCardinality FaultCodesType = "tns:InvalidCardinality"
  336. // FaultCodesTypeTnsMissingAddressInEPR const
  337. FaultCodesTypeTnsMissingAddressInEPR FaultCodesType = "tns:MissingAddressInEPR"
  338. // FaultCodesTypeTnsDuplicateMessageID const
  339. FaultCodesTypeTnsDuplicateMessageID FaultCodesType = "tns:DuplicateMessageID"
  340. // FaultCodesTypeTnsActionMismatch const
  341. FaultCodesTypeTnsActionMismatch FaultCodesType = "tns:ActionMismatch"
  342. // FaultCodesTypeTnsMessageAddressingHeaderRequired const
  343. FaultCodesTypeTnsMessageAddressingHeaderRequired FaultCodesType = "tns:MessageAddressingHeaderRequired"
  344. // FaultCodesTypeTnsDestinationUnreachable const
  345. FaultCodesTypeTnsDestinationUnreachable FaultCodesType = "tns:DestinationUnreachable"
  346. // FaultCodesTypeTnsActionNotSupported const
  347. FaultCodesTypeTnsActionNotSupported FaultCodesType = "tns:ActionNotSupported"
  348. // FaultCodesTypeTnsEndpointUnavailable const
  349. FaultCodesTypeTnsEndpointUnavailable FaultCodesType = "tns:EndpointUnavailable"
  350. )
  351. // EndpointReference type
  352. type EndpointReference EndpointReferenceType
  353. // Metadata type
  354. type Metadata MetadataType
  355. // RelatesTo type
  356. type RelatesTo RelatesToType
  357. // To type
  358. type To AttributedURIType
  359. // Action type
  360. type Action AttributedURIType
  361. // ProblemAction type
  362. type ProblemAction ProblemActionType
  363. // EndpointReferenceType type
  364. type EndpointReferenceType struct {
  365. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing EndpointReference"`
  366. Address AttributedURIType `xml:"Address,omitempty"`
  367. ReferenceParameters ReferenceParametersType `xml:"ReferenceParameters,omitempty"`
  368. Metadata Metadata `xml:"Metadata,omitempty"`
  369. }
  370. // ReferenceParametersType type
  371. type ReferenceParametersType struct {
  372. }
  373. // MetadataType type
  374. type MetadataType struct {
  375. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing Metadata"`
  376. }
  377. // RelatesToType type
  378. type RelatesToType struct {
  379. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing RelatesTo"`
  380. Value AnyURI
  381. RelationshipType RelationshipTypeOpenEnum `xml:"RelationshipType,attr,omitempty"`
  382. }
  383. // AttributedURIType type
  384. type AttributedURIType struct {
  385. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing MessageID"`
  386. Value AnyURI
  387. }
  388. // ProblemActionType type
  389. type ProblemActionType struct {
  390. XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing ProblemAction"`
  391. Action Action `xml:"Action,omitempty"`
  392. SoapAction AnyURI `xml:"http://www.onvif.org/ver10/schema SoapAction,omitempty"`
  393. }
  394. // BaseFault type
  395. type BaseFault BaseFaultType
  396. // BaseFaultType type
  397. type BaseFaultType struct {
  398. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsrf/bf-2 BaseFault"`
  399. Timestamp string `xml:"http://www.onvif.org/ver10/schema Timestamp,omitempty"`
  400. Originator EndpointReferenceType `xml:"Originator,omitempty"`
  401. ErrorCode struct {
  402. Dialect AnyURI `xml:"dialect,attr,omitempty"`
  403. } `xml:"ErrorCode,omitempty"`
  404. Description []struct {
  405. Value string
  406. string `xml:",attr,omitempty"`
  407. } `xml:"Description,omitempty"`
  408. FaultCause struct {
  409. } `xml:"FaultCause,omitempty"`
  410. }
  411. // ConcreteTopicExpression type
  412. type ConcreteTopicExpression string
  413. // SimpleTopicExpression type
  414. type SimpleTopicExpression QName
  415. // TopicNamespace type
  416. type TopicNamespace TopicNamespaceType
  417. // TopicSet type
  418. type TopicSet TopicSetType
  419. // Documentation type
  420. type Documentation struct {
  421. }
  422. // ExtensibleDocumented type
  423. type ExtensibleDocumented struct {
  424. Documentation Documentation `xml:"documentation,omitempty"`
  425. }
  426. // QueryExpressionType type
  427. type QueryExpressionType struct {
  428. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 ProducerProperties"`
  429. Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
  430. }
  431. // TopicNamespaceType type
  432. type TopicNamespaceType struct {
  433. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicNamespace"`
  434. *ExtensibleDocumented
  435. Topic []struct {
  436. *TopicType
  437. Parent ConcreteTopicExpression `xml:"parent,attr,omitempty"`
  438. } `xml:"Topic,omitempty"`
  439. Name NCName `xml:"name,attr,omitempty"`
  440. TargetNamespace AnyURI `xml:"targetNamespace,attr,omitempty"`
  441. Final bool `xml:"final,attr,omitempty"`
  442. }
  443. // TopicType type
  444. type TopicType struct {
  445. *ExtensibleDocumented
  446. MessagePattern QueryExpressionType `xml:"MessagePattern,omitempty"`
  447. Topic []TopicType `xml:"Topic,omitempty"`
  448. Name NCName `xml:"name,attr,omitempty"`
  449. MessageTypes string `xml:"messageTypes,attr,omitempty"`
  450. Final bool `xml:"final,attr,omitempty"`
  451. }
  452. // TopicSetType type
  453. type TopicSetType struct {
  454. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicSet"`
  455. *ExtensibleDocumented
  456. }
  457. // AbsoluteOrRelativeTimeType type
  458. type AbsoluteOrRelativeTimeType string
  459. // TopicExpression type
  460. type TopicExpression TopicExpressionType
  461. // FixedTopicSet type
  462. type FixedTopicSet bool
  463. // TopicExpressionDialect type
  464. type TopicExpressionDialect AnyURI
  465. // ConsumerReference type
  466. type ConsumerReference EndpointReferenceType
  467. // Filter type
  468. type Filter FilterType
  469. // SubscriptionPolicy type
  470. type SubscriptionPolicy SubscriptionPolicyType
  471. // CreationTime type
  472. type CreationTime time.Time
  473. // SubscriptionReference type
  474. type SubscriptionReference EndpointReferenceType
  475. // Topic type
  476. type Topic TopicExpressionType
  477. // ProducerReference type
  478. type ProducerReference EndpointReferenceType
  479. // NotificationMessage type
  480. type NotificationMessage NotificationMessageHolderType
  481. // Notify type
  482. type Notify struct {
  483. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Notify"`
  484. NotificationMessage []NotificationMessage `xml:"NotificationMessage,omitempty"`
  485. }
  486. // CurrentTime type
  487. type CurrentTime time.Time
  488. // TerminationTime type
  489. type TerminationTime time.Time
  490. // Subscribe type
  491. type Subscribe struct {
  492. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Subscribe"`
  493. ConsumerReference EndpointReferenceType `xml:"ConsumerReference,omitempty"`
  494. Filter FilterType `xml:"Filter,omitempty"`
  495. InitialTerminationTime AbsoluteOrRelativeTimeType `xml:"InitialTerminationTime,omitempty"`
  496. SubscriptionPolicy struct {
  497. } `xml:"SubscriptionPolicy,omitempty"`
  498. }
  499. // SubscribeCreationFailedFault type
  500. type SubscribeCreationFailedFault SubscribeCreationFailedFaultType
  501. // InvalidFilterFault type
  502. type InvalidFilterFault InvalidFilterFaultType
  503. // TopicExpressionDialectUnknownFault type
  504. type TopicExpressionDialectUnknownFault TopicExpressionDialectUnknownFaultType
  505. // InvalidTopicExpressionFault type
  506. type InvalidTopicExpressionFault InvalidTopicExpressionFaultType
  507. // TopicNotSupportedFault type
  508. type TopicNotSupportedFault TopicNotSupportedFaultType
  509. // MultipleTopicsSpecifiedFault type
  510. type MultipleTopicsSpecifiedFault MultipleTopicsSpecifiedFaultType
  511. // InvalidProducerPropertiesExpressionFault type
  512. type InvalidProducerPropertiesExpressionFault InvalidProducerPropertiesExpressionFaultType
  513. // InvalidMessageContentExpressionFault type
  514. type InvalidMessageContentExpressionFault InvalidMessageContentExpressionFaultType
  515. // UnrecognizedPolicyRequestFault type
  516. type UnrecognizedPolicyRequestFault UnrecognizedPolicyRequestFaultType
  517. // UnsupportedPolicyRequestFault type
  518. type UnsupportedPolicyRequestFault UnsupportedPolicyRequestFaultType
  519. // NotifyMessageNotSupportedFault type
  520. type NotifyMessageNotSupportedFault NotifyMessageNotSupportedFaultType
  521. // UnacceptableInitialTerminationTimeFault type
  522. type UnacceptableInitialTerminationTimeFault UnacceptableInitialTerminationTimeFaultType
  523. // NoCurrentMessageOnTopicFault type
  524. type NoCurrentMessageOnTopicFault NoCurrentMessageOnTopicFaultType
  525. // UnableToGetMessagesFault type
  526. type UnableToGetMessagesFault UnableToGetMessagesFaultType
  527. // UnableToDestroyPullPointFault type
  528. type UnableToDestroyPullPointFault UnableToDestroyPullPointFaultType
  529. // UnableToCreatePullPointFault type
  530. type UnableToCreatePullPointFault UnableToCreatePullPointFaultType
  531. // UnacceptableTerminationTimeFault type
  532. type UnacceptableTerminationTimeFault UnacceptableTerminationTimeFaultType
  533. // UnableToDestroySubscriptionFault type
  534. type UnableToDestroySubscriptionFault UnableToDestroySubscriptionFaultType
  535. // PauseFailedFault type
  536. type PauseFailedFault PauseFailedFaultType
  537. // ResumeFailedFault type
  538. type ResumeFailedFault ResumeFailedFaultType
  539. // Removed QueryExpressionType
  540. // TopicExpressionType type
  541. type TopicExpressionType struct {
  542. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpression"`
  543. Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
  544. }
  545. // FilterType type
  546. type FilterType struct {
  547. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Filter"`
  548. }
  549. // SubscriptionPolicyType type
  550. type SubscriptionPolicyType struct {
  551. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscriptionPolicy"`
  552. }
  553. // NotificationMessageHolderType type
  554. type NotificationMessageHolderType struct {
  555. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotificationMessage"`
  556. SubscriptionReference SubscriptionReference `xml:"SubscriptionReference,omitempty"`
  557. Topic Topic `xml:"Topic,omitempty"`
  558. ProducerReference ProducerReference `xml:"ProducerReference,omitempty"`
  559. Message struct {
  560. } `xml:"Message,omitempty"`
  561. }
  562. // SubscribeCreationFailedFaultType type
  563. type SubscribeCreationFailedFaultType struct {
  564. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscribeCreationFailedFault"`
  565. *BaseFaultType
  566. }
  567. // InvalidFilterFaultType type
  568. type InvalidFilterFaultType struct {
  569. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidFilterFault"`
  570. *BaseFaultType
  571. UnknownFilter []QName `xml:"http://www.onvif.org/ver10/schema UnknownFilter,omitempty"`
  572. }
  573. // TopicExpressionDialectUnknownFaultType type
  574. type TopicExpressionDialectUnknownFaultType struct {
  575. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpressionDialectUnknownFault"`
  576. *BaseFaultType
  577. }
  578. // InvalidTopicExpressionFaultType type
  579. type InvalidTopicExpressionFaultType struct {
  580. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidTopicExpressionFault"`
  581. *BaseFaultType
  582. }
  583. // TopicNotSupportedFaultType type
  584. type TopicNotSupportedFaultType struct {
  585. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicNotSupportedFault"`
  586. *BaseFaultType
  587. }
  588. // MultipleTopicsSpecifiedFaultType type
  589. type MultipleTopicsSpecifiedFaultType struct {
  590. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 MultipleTopicsSpecifiedFault"`
  591. *BaseFaultType
  592. }
  593. // InvalidProducerPropertiesExpressionFaultType type
  594. type InvalidProducerPropertiesExpressionFaultType struct {
  595. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidProducerPropertiesExpressionFault"`
  596. *BaseFaultType
  597. }
  598. // InvalidMessageContentExpressionFaultType type
  599. type InvalidMessageContentExpressionFaultType struct {
  600. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidMessageContentExpressionFault"`
  601. *BaseFaultType
  602. }
  603. // UnrecognizedPolicyRequestFaultType type
  604. type UnrecognizedPolicyRequestFaultType struct {
  605. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnrecognizedPolicyRequestFault"`
  606. *BaseFaultType
  607. UnrecognizedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnrecognizedPolicy,omitempty"`
  608. }
  609. // UnsupportedPolicyRequestFaultType type
  610. type UnsupportedPolicyRequestFaultType struct {
  611. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnsupportedPolicyRequestFault"`
  612. *BaseFaultType
  613. UnsupportedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnsupportedPolicy,omitempty"`
  614. }
  615. // NotifyMessageNotSupportedFaultType type
  616. type NotifyMessageNotSupportedFaultType struct {
  617. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotifyMessageNotSupportedFault"`
  618. *BaseFaultType
  619. }
  620. // UnacceptableInitialTerminationTimeFaultType type
  621. type UnacceptableInitialTerminationTimeFaultType struct {
  622. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableInitialTerminationTimeFault"`
  623. *BaseFaultType
  624. MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
  625. MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
  626. }
  627. // NoCurrentMessageOnTopicFaultType type
  628. type NoCurrentMessageOnTopicFaultType struct {
  629. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NoCurrentMessageOnTopicFault"`
  630. *BaseFaultType
  631. }
  632. // UnableToGetMessagesFaultType type
  633. type UnableToGetMessagesFaultType struct {
  634. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToGetMessagesFault"`
  635. *BaseFaultType
  636. }
  637. // UnableToDestroyPullPointFaultType type
  638. type UnableToDestroyPullPointFaultType struct {
  639. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroyPullPointFault"`
  640. *BaseFaultType
  641. }
  642. // UnableToCreatePullPointFaultType type
  643. type UnableToCreatePullPointFaultType struct {
  644. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToCreatePullPointFault"`
  645. *BaseFaultType
  646. }
  647. // UnacceptableTerminationTimeFaultType type
  648. type UnacceptableTerminationTimeFaultType struct {
  649. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableTerminationTimeFault"`
  650. *BaseFaultType
  651. MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
  652. MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
  653. }
  654. // UnableToDestroySubscriptionFaultType type
  655. type UnableToDestroySubscriptionFaultType struct {
  656. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroySubscriptionFault"`
  657. *BaseFaultType
  658. }
  659. // PauseFailedFaultType type
  660. type PauseFailedFaultType struct {
  661. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 PauseFailedFault"`
  662. *BaseFaultType
  663. }
  664. // ResumeFailedFaultType type
  665. type ResumeFailedFaultType struct {
  666. XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 ResumeFailedFault"`
  667. *BaseFaultType
  668. }
  669. // Include type
  670. type Include struct {
  671. Href AnyURI `xml:"href,attr,omitempty"`
  672. }
  673. // Unique identifier for a physical or logical resource.
  674. // Tokens should be assigned such that they are unique within a device. Tokens must be at least unique within its class.
  675. // Length up to 64 characters.
  676. // ReferenceToken type
  677. type ReferenceToken string
  678. // MoveStatus type
  679. type MoveStatus string
  680. const (
  681. // MoveStatusIDLE const
  682. MoveStatusIDLE MoveStatus = "IDLE"
  683. // MoveStatusMOVING const
  684. MoveStatusMOVING MoveStatus = "MOVING"
  685. // MoveStatusUNKNOWN const
  686. MoveStatusUNKNOWN MoveStatus = "UNKNOWN"
  687. )
  688. // Entity type
  689. type Entity string
  690. const (
  691. // EntityDevice const
  692. EntityDevice Entity = "Device"
  693. // EntityVideoSource const
  694. EntityVideoSource Entity = "VideoSource"
  695. // EntityAudioSource const
  696. EntityAudioSource Entity = "AudioSource"
  697. )
  698. // IntRange type
  699. type IntRange struct {
  700. Min int32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  701. Max int32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  702. }
  703. // Vector2D type
  704. type Vector2D struct {
  705. X float32 `xml:"x,attr,omitempty"`
  706. Y float32 `xml:"y,attr,omitempty"`
  707. //
  708. // Pan/tilt coordinate space selector. The following options are defined:
  709. //
  710. Space AnyURI `xml:"space,attr,omitempty"`
  711. }
  712. // Vector1D type
  713. type Vector1D struct {
  714. X float32 `xml:"x,attr,omitempty"`
  715. //
  716. // Zoom coordinate space selector. The following options are defined:
  717. //
  718. Space AnyURI `xml:"space,attr,omitempty"`
  719. }
  720. // PTZVector type
  721. type PTZVector struct {
  722. // Pan and tilt position. The x component corresponds to pan and the y component to tilt.
  723. PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  724. //
  725. // A zoom position.
  726. //
  727. Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  728. }
  729. // PTZStatus type
  730. type PTZStatus struct {
  731. //
  732. // Specifies the absolute position of the PTZ unit together with the Space references. The default absolute spaces of the corresponding PTZ configuration MUST be referenced within the Position element.
  733. //
  734. Position PTZVector `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  735. //
  736. // Indicates if the Pan/Tilt/Zoom device unit is currently moving, idle or in an unknown state.
  737. //
  738. MoveStatus PTZMoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  739. //
  740. // States a current PTZ error.
  741. //
  742. Error string `xml:"http://www.onvif.org/ver20/imaging/wsdl Error,omitempty"`
  743. //
  744. // Specifies the UTC time when this status was generated.
  745. //
  746. UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,omitempty"`
  747. }
  748. // PTZMoveStatus type
  749. type PTZMoveStatus struct {
  750. PanTilt MoveStatus `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  751. Zoom MoveStatus `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  752. }
  753. // Vector type
  754. type Vector struct {
  755. X float32 `xml:"x,attr,omitempty"`
  756. Y float32 `xml:"y,attr,omitempty"`
  757. }
  758. // Rectangle type
  759. type Rectangle struct {
  760. Bottom float32 `xml:"bottom,attr,omitempty"`
  761. Top float32 `xml:"top,attr,omitempty"`
  762. Right float32 `xml:"right,attr,omitempty"`
  763. Left float32 `xml:"left,attr,omitempty"`
  764. }
  765. // Polygon type
  766. type Polygon struct {
  767. Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
  768. }
  769. // Color type
  770. type Color struct {
  771. X float32 `xml:"http://www.onvif.org/ver10/schema X,attr,omitempty"`
  772. Y float32 `xml:"http://www.onvif.org/ver10/schema Y,attr,omitempty"`
  773. Z float32 `xml:"http://www.onvif.org/ver10/schema Z,attr,omitempty"`
  774. //
  775. // Acceptable values:
  776. //
  777. // If the Colorspace attribute is absent, YCbCr is implied.
  778. //
  779. // Deprecated values:
  780. //
  781. //
  782. Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,attr,omitempty"`
  783. }
  784. // Transformation type
  785. type Transformation struct {
  786. Translate Vector `xml:"http://www.onvif.org/ver10/schema Translate,omitempty"`
  787. Scale Vector `xml:"http://www.onvif.org/ver10/schema Scale,omitempty"`
  788. Extension TransformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  789. }
  790. // TransformationExtension type
  791. type TransformationExtension struct {
  792. }
  793. // User readable name. Length up to 64 characters.
  794. // Name type
  795. type Name string
  796. // IntAttrList type
  797. type IntAttrList []int32
  798. // FloatAttrList type
  799. type FloatAttrList []float32
  800. // StringAttrList type
  801. type StringAttrList []string
  802. // ReferenceTokenList type
  803. type ReferenceTokenList []ReferenceToken
  804. // RotateMode type
  805. type RotateMode string
  806. const (
  807. // Enable the Rotate feature. Degree of rotation is specified Degree parameter.
  808. // RotateModeOFF const
  809. RotateModeOFF RotateMode = "OFF"
  810. // Disable the Rotate feature.
  811. // RotateModeON const
  812. RotateModeON RotateMode = "ON"
  813. // Rotate feature is automatically activated by the device.
  814. // RotateModeAUTO const
  815. RotateModeAUTO RotateMode = "AUTO"
  816. )
  817. // SceneOrientationMode type
  818. type SceneOrientationMode string
  819. const (
  820. // SceneOrientationModeMANUAL const
  821. SceneOrientationModeMANUAL SceneOrientationMode = "MANUAL"
  822. // SceneOrientationModeAUTO const
  823. SceneOrientationModeAUTO SceneOrientationMode = "AUTO"
  824. )
  825. // SceneOrientationOption type
  826. type SceneOrientationOption string
  827. const (
  828. // SceneOrientationOptionBelow const
  829. SceneOrientationOptionBelow SceneOrientationOption = "Below"
  830. // SceneOrientationOptionHorizon const
  831. SceneOrientationOptionHorizon SceneOrientationOption = "Horizon"
  832. // SceneOrientationOptionAbove const
  833. SceneOrientationOptionAbove SceneOrientationOption = "Above"
  834. )
  835. // Source view modes supported by device.
  836. // ViewModes type
  837. type ViewModes string
  838. const (
  839. // Undewarped viewmode from device supporting fisheye lens.
  840. // ViewModesTtFisheye const
  841. ViewModesTtFisheye ViewModes = "tt:Fisheye"
  842. // 360 degree panoramic view.
  843. // ViewModesTt360Panorama const
  844. ViewModesTt360Panorama ViewModes = "tt:360Panorama"
  845. // 180 degree panoramic view.
  846. // ViewModesTt180Panorama const
  847. ViewModesTt180Panorama ViewModes = "tt:180Panorama"
  848. // View mode combining four streams in single Quad, eg., applicable for devices supporting four heads.
  849. // ViewModesTtQuad const
  850. ViewModesTtQuad ViewModes = "tt:Quad"
  851. // Unaltered view from the sensor.
  852. // ViewModesTtOriginal const
  853. ViewModesTtOriginal ViewModes = "tt:Original"
  854. // Viewmode combining the left side sensors, applicable for devices supporting multiple sensors.
  855. // ViewModesTtLeftHalf const
  856. ViewModesTtLeftHalf ViewModes = "tt:LeftHalf"
  857. // Viewmode combining the right side sensors, applicable for devices supporting multiple sensors.
  858. // ViewModesTtRightHalf const
  859. ViewModesTtRightHalf ViewModes = "tt:RightHalf"
  860. // Dewarped view mode for device supporting fisheye lens.
  861. // ViewModesTtDewarp const
  862. ViewModesTtDewarp ViewModes = "tt:Dewarp"
  863. )
  864. // VideoEncoding type
  865. type VideoEncoding string
  866. const (
  867. // VideoEncodingJPEG const
  868. VideoEncodingJPEG VideoEncoding = "JPEG"
  869. // VideoEncodingMPEG4 const
  870. VideoEncodingMPEG4 VideoEncoding = "MPEG4"
  871. // VideoEncodingH264 const
  872. VideoEncodingH264 VideoEncoding = "H264"
  873. )
  874. // Mpeg4Profile type
  875. type Mpeg4Profile string
  876. const (
  877. // Mpeg4ProfileSP const
  878. Mpeg4ProfileSP Mpeg4Profile = "SP"
  879. // Mpeg4ProfileASP const
  880. Mpeg4ProfileASP Mpeg4Profile = "ASP"
  881. )
  882. // H264Profile type
  883. type H264Profile string
  884. const (
  885. // H264ProfileBaseline const
  886. H264ProfileBaseline H264Profile = "Baseline"
  887. // H264ProfileMain const
  888. H264ProfileMain H264Profile = "Main"
  889. // H264ProfileExtended const
  890. H264ProfileExtended H264Profile = "Extended"
  891. // H264ProfileHigh const
  892. H264ProfileHigh H264Profile = "High"
  893. )
  894. // Video Media Subtypes as referenced by IANA (without the leading "video/" Video Media Type). See also .
  895. // VideoEncodingMimeNames type
  896. type VideoEncodingMimeNames string
  897. const (
  898. // VideoEncodingMimeNamesJPEG const
  899. VideoEncodingMimeNamesJPEG VideoEncodingMimeNames = "JPEG"
  900. // VideoEncodingMimeNamesMPV4ES const
  901. VideoEncodingMimeNamesMPV4ES VideoEncodingMimeNames = "MPV4-ES"
  902. // VideoEncodingMimeNamesH264 const
  903. VideoEncodingMimeNamesH264 VideoEncodingMimeNames = "H264"
  904. // VideoEncodingMimeNamesH265 const
  905. VideoEncodingMimeNamesH265 VideoEncodingMimeNames = "H265"
  906. )
  907. // VideoEncodingProfiles type
  908. type VideoEncodingProfiles string
  909. const (
  910. // VideoEncodingProfilesSimple const
  911. VideoEncodingProfilesSimple VideoEncodingProfiles = "Simple"
  912. // VideoEncodingProfilesAdvancedSimple const
  913. VideoEncodingProfilesAdvancedSimple VideoEncodingProfiles = "AdvancedSimple"
  914. // VideoEncodingProfilesBaseline const
  915. VideoEncodingProfilesBaseline VideoEncodingProfiles = "Baseline"
  916. // VideoEncodingProfilesMain const
  917. VideoEncodingProfilesMain VideoEncodingProfiles = "Main"
  918. // VideoEncodingProfilesMain10 const
  919. VideoEncodingProfilesMain10 VideoEncodingProfiles = "Main10"
  920. // VideoEncodingProfilesExtended const
  921. VideoEncodingProfilesExtended VideoEncodingProfiles = "Extended"
  922. // VideoEncodingProfilesHigh const
  923. VideoEncodingProfilesHigh VideoEncodingProfiles = "High"
  924. )
  925. // AudioEncoding type
  926. type AudioEncoding string
  927. const (
  928. // AudioEncodingG711 const
  929. AudioEncodingG711 AudioEncoding = "G711"
  930. // AudioEncodingG726 const
  931. AudioEncodingG726 AudioEncoding = "G726"
  932. // AudioEncodingAAC const
  933. AudioEncodingAAC AudioEncoding = "AAC"
  934. )
  935. // Audio Media Subtypes as referenced by IANA (without the leading "audio/" Audio Media Type). See also .
  936. // AudioEncodingMimeNames type
  937. type AudioEncodingMimeNames string
  938. const (
  939. // AudioEncodingMimeNamesPCMU const
  940. AudioEncodingMimeNamesPCMU AudioEncodingMimeNames = "PCMU"
  941. // AudioEncodingMimeNamesG726 const
  942. AudioEncodingMimeNamesG726 AudioEncodingMimeNames = "G726"
  943. // AudioEncodingMimeNamesMP4ALATM const
  944. AudioEncodingMimeNamesMP4ALATM AudioEncodingMimeNames = "MP4A-LATM"
  945. // AudioEncodingMimeNamesMpeg4generic const
  946. AudioEncodingMimeNamesMpeg4generic AudioEncodingMimeNames = "mpeg4-generic"
  947. )
  948. // MetadataCompressionType type
  949. type MetadataCompressionType string
  950. const (
  951. // MetadataCompressionTypeNone const
  952. MetadataCompressionTypeNone MetadataCompressionType = "None"
  953. // MetadataCompressionTypeGZIP const
  954. MetadataCompressionTypeGZIP MetadataCompressionType = "GZIP"
  955. // MetadataCompressionTypeEXI const
  956. MetadataCompressionTypeEXI MetadataCompressionType = "EXI"
  957. )
  958. // StreamType type
  959. type StreamType string
  960. const (
  961. // StreamTypeRTPUnicast const
  962. StreamTypeRTPUnicast StreamType = "RTP-Unicast"
  963. // StreamTypeRTPMulticast const
  964. StreamTypeRTPMulticast StreamType = "RTP-Multicast"
  965. )
  966. // TransportProtocol type
  967. type TransportProtocol string
  968. const (
  969. // TransportProtocolUDP const
  970. TransportProtocolUDP TransportProtocol = "UDP"
  971. // This value is deprecated.
  972. // TransportProtocolTCP const
  973. TransportProtocolTCP TransportProtocol = "TCP"
  974. // TransportProtocolRTSP const
  975. TransportProtocolRTSP TransportProtocol = "RTSP"
  976. // TransportProtocolHTTP const
  977. TransportProtocolHTTP TransportProtocol = "HTTP"
  978. )
  979. // ScopeDefinition type
  980. type ScopeDefinition string
  981. const (
  982. // ScopeDefinitionFixed const
  983. ScopeDefinitionFixed ScopeDefinition = "Fixed"
  984. // ScopeDefinitionConfigurable const
  985. ScopeDefinitionConfigurable ScopeDefinition = "Configurable"
  986. )
  987. // DiscoveryMode type
  988. type DiscoveryMode string
  989. const (
  990. // DiscoveryModeDiscoverable const
  991. DiscoveryModeDiscoverable DiscoveryMode = "Discoverable"
  992. // DiscoveryModeNonDiscoverable const
  993. DiscoveryModeNonDiscoverable DiscoveryMode = "NonDiscoverable"
  994. )
  995. // NetworkInterfaceConfigPriority type
  996. type NetworkInterfaceConfigPriority int32
  997. // Duplex type
  998. type Duplex string
  999. const (
  1000. // DuplexFull const
  1001. DuplexFull Duplex = "Full"
  1002. // DuplexHalf const
  1003. DuplexHalf Duplex = "Half"
  1004. )
  1005. // IANAIfTypes type
  1006. type IANAIfTypes int32
  1007. // IPv6DHCPConfiguration type
  1008. type IPv6DHCPConfiguration string
  1009. const (
  1010. // IPv6DHCPConfigurationAuto const
  1011. IPv6DHCPConfigurationAuto IPv6DHCPConfiguration = "Auto"
  1012. // IPv6DHCPConfigurationStateful const
  1013. IPv6DHCPConfigurationStateful IPv6DHCPConfiguration = "Stateful"
  1014. // IPv6DHCPConfigurationStateless const
  1015. IPv6DHCPConfigurationStateless IPv6DHCPConfiguration = "Stateless"
  1016. // IPv6DHCPConfigurationOff const
  1017. IPv6DHCPConfigurationOff IPv6DHCPConfiguration = "Off"
  1018. )
  1019. // NetworkProtocolType type
  1020. type NetworkProtocolType string
  1021. const (
  1022. // NetworkProtocolTypeHTTP const
  1023. NetworkProtocolTypeHTTP NetworkProtocolType = "HTTP"
  1024. // NetworkProtocolTypeHTTPS const
  1025. NetworkProtocolTypeHTTPS NetworkProtocolType = "HTTPS"
  1026. // NetworkProtocolTypeRTSP const
  1027. NetworkProtocolTypeRTSP NetworkProtocolType = "RTSP"
  1028. )
  1029. // NetworkHostType type
  1030. type NetworkHostType string
  1031. const (
  1032. // NetworkHostTypeIPv4 const
  1033. NetworkHostTypeIPv4 NetworkHostType = "IPv4"
  1034. // NetworkHostTypeIPv6 const
  1035. NetworkHostTypeIPv6 NetworkHostType = "IPv6"
  1036. // NetworkHostTypeDNS const
  1037. NetworkHostTypeDNS NetworkHostType = "DNS"
  1038. )
  1039. // IPv4Address type
  1040. type IPv4Address string
  1041. // IPv6Address type
  1042. type IPv6Address string
  1043. // HwAddress type
  1044. type HwAddress string
  1045. // IPType type
  1046. type IPType string
  1047. const (
  1048. // IPTypeIPv4 const
  1049. IPTypeIPv4 IPType = "IPv4"
  1050. // IPTypeIPv6 const
  1051. IPTypeIPv6 IPType = "IPv6"
  1052. )
  1053. // DNSName type
  1054. type DNSName string
  1055. // IPAddressFilterType type
  1056. type IPAddressFilterType string
  1057. const (
  1058. // IPAddressFilterTypeAllow const
  1059. IPAddressFilterTypeAllow IPAddressFilterType = "Allow"
  1060. // IPAddressFilterTypeDeny const
  1061. IPAddressFilterTypeDeny IPAddressFilterType = "Deny"
  1062. )
  1063. // DynamicDNSType type
  1064. type DynamicDNSType string
  1065. const (
  1066. // DynamicDNSTypeNoUpdate const
  1067. DynamicDNSTypeNoUpdate DynamicDNSType = "NoUpdate"
  1068. // DynamicDNSTypeClientUpdates const
  1069. DynamicDNSTypeClientUpdates DynamicDNSType = "ClientUpdates"
  1070. // DynamicDNSTypeServerUpdates const
  1071. DynamicDNSTypeServerUpdates DynamicDNSType = "ServerUpdates"
  1072. )
  1073. // Dot11SSIDType type
  1074. type Dot11SSIDType []byte
  1075. // Dot11StationMode type
  1076. type Dot11StationMode string
  1077. const (
  1078. // Dot11StationModeAdhoc const
  1079. Dot11StationModeAdhoc Dot11StationMode = "Ad-hoc"
  1080. // Dot11StationModeInfrastructure const
  1081. Dot11StationModeInfrastructure Dot11StationMode = "Infrastructure"
  1082. // Dot11StationModeExtended const
  1083. Dot11StationModeExtended Dot11StationMode = "Extended"
  1084. )
  1085. // Dot11SecurityMode type
  1086. type Dot11SecurityMode string
  1087. const (
  1088. // Dot11SecurityModeNone const
  1089. Dot11SecurityModeNone Dot11SecurityMode = "None"
  1090. // Dot11SecurityModeWEP const
  1091. Dot11SecurityModeWEP Dot11SecurityMode = "WEP"
  1092. // Dot11SecurityModePSK const
  1093. Dot11SecurityModePSK Dot11SecurityMode = "PSK"
  1094. // Dot11SecurityModeDot1X const
  1095. Dot11SecurityModeDot1X Dot11SecurityMode = "Dot1X"
  1096. // Dot11SecurityModeExtended const
  1097. Dot11SecurityModeExtended Dot11SecurityMode = "Extended"
  1098. )
  1099. // Dot11Cipher type
  1100. type Dot11Cipher string
  1101. const (
  1102. // Dot11CipherCCMP const
  1103. Dot11CipherCCMP Dot11Cipher = "CCMP"
  1104. // Dot11CipherTKIP const
  1105. Dot11CipherTKIP Dot11Cipher = "TKIP"
  1106. // Dot11CipherAny const
  1107. Dot11CipherAny Dot11Cipher = "Any"
  1108. // Dot11CipherExtended const
  1109. Dot11CipherExtended Dot11Cipher = "Extended"
  1110. )
  1111. // Dot11PSK type
  1112. type Dot11PSK []byte
  1113. // Dot11PSKPassphrase type
  1114. type Dot11PSKPassphrase string
  1115. // Dot11SignalStrength type
  1116. type Dot11SignalStrength string
  1117. const (
  1118. // Dot11SignalStrengthNone const
  1119. Dot11SignalStrengthNone Dot11SignalStrength = "None"
  1120. // Dot11SignalStrengthVeryBad const
  1121. Dot11SignalStrengthVeryBad Dot11SignalStrength = "Very Bad"
  1122. // Dot11SignalStrengthBad const
  1123. Dot11SignalStrengthBad Dot11SignalStrength = "Bad"
  1124. // Dot11SignalStrengthGood const
  1125. Dot11SignalStrengthGood Dot11SignalStrength = "Good"
  1126. // Dot11SignalStrengthVeryGood const
  1127. Dot11SignalStrengthVeryGood Dot11SignalStrength = "Very Good"
  1128. // Dot11SignalStrengthExtended const
  1129. Dot11SignalStrengthExtended Dot11SignalStrength = "Extended"
  1130. )
  1131. // Dot11AuthAndMangementSuite type
  1132. type Dot11AuthAndMangementSuite string
  1133. const (
  1134. // Dot11AuthAndMangementSuiteNone const
  1135. Dot11AuthAndMangementSuiteNone Dot11AuthAndMangementSuite = "None"
  1136. // Dot11AuthAndMangementSuiteDot1X const
  1137. Dot11AuthAndMangementSuiteDot1X Dot11AuthAndMangementSuite = "Dot1X"
  1138. // Dot11AuthAndMangementSuitePSK const
  1139. Dot11AuthAndMangementSuitePSK Dot11AuthAndMangementSuite = "PSK"
  1140. // Dot11AuthAndMangementSuiteExtended const
  1141. Dot11AuthAndMangementSuiteExtended Dot11AuthAndMangementSuite = "Extended"
  1142. )
  1143. // CapabilityCategory type
  1144. type CapabilityCategory string
  1145. const (
  1146. // CapabilityCategoryAll const
  1147. CapabilityCategoryAll CapabilityCategory = "All"
  1148. // CapabilityCategoryAnalytics const
  1149. CapabilityCategoryAnalytics CapabilityCategory = "Analytics"
  1150. // CapabilityCategoryDevice const
  1151. CapabilityCategoryDevice CapabilityCategory = "Device"
  1152. // CapabilityCategoryEvents const
  1153. CapabilityCategoryEvents CapabilityCategory = "Events"
  1154. // CapabilityCategoryImaging const
  1155. CapabilityCategoryImaging CapabilityCategory = "Imaging"
  1156. // CapabilityCategoryMedia const
  1157. CapabilityCategoryMedia CapabilityCategory = "Media"
  1158. // CapabilityCategoryPTZ const
  1159. CapabilityCategoryPTZ CapabilityCategory = "PTZ"
  1160. )
  1161. // Enumeration describing the available system log modes.
  1162. // SystemLogType type
  1163. type SystemLogType string
  1164. const (
  1165. // Indicates that a system log is requested.
  1166. // SystemLogTypeSystem const
  1167. SystemLogTypeSystem SystemLogType = "System"
  1168. // Indicates that a access log is requested.
  1169. // SystemLogTypeAccess const
  1170. SystemLogTypeAccess SystemLogType = "Access"
  1171. )
  1172. // Enumeration describing the available factory default modes.
  1173. // FactoryDefaultType type
  1174. type FactoryDefaultType string
  1175. const (
  1176. // Indicates that a hard factory default is requested.
  1177. // FactoryDefaultTypeHard const
  1178. FactoryDefaultTypeHard FactoryDefaultType = "Hard"
  1179. // Indicates that a soft factory default is requested.
  1180. // FactoryDefaultTypeSoft const
  1181. FactoryDefaultTypeSoft FactoryDefaultType = "Soft"
  1182. )
  1183. // SetDateTimeType type
  1184. type SetDateTimeType string
  1185. const (
  1186. // Indicates that the date and time are set manually.
  1187. // SetDateTimeTypeManual const
  1188. SetDateTimeTypeManual SetDateTimeType = "Manual"
  1189. // Indicates that the date and time are set through NTP
  1190. // SetDateTimeTypeNTP const
  1191. SetDateTimeTypeNTP SetDateTimeType = "NTP"
  1192. )
  1193. // UserLevel type
  1194. type UserLevel string
  1195. const (
  1196. // UserLevelAdministrator const
  1197. UserLevelAdministrator UserLevel = "Administrator"
  1198. // UserLevelOperator const
  1199. UserLevelOperator UserLevel = "Operator"
  1200. // UserLevelUser const
  1201. UserLevelUser UserLevel = "User"
  1202. // UserLevelAnonymous const
  1203. UserLevelAnonymous UserLevel = "Anonymous"
  1204. // UserLevelExtended const
  1205. UserLevelExtended UserLevel = "Extended"
  1206. )
  1207. // RelayLogicalState type
  1208. type RelayLogicalState string
  1209. const (
  1210. // RelayLogicalStateActive const
  1211. RelayLogicalStateActive RelayLogicalState = "active"
  1212. // RelayLogicalStateInactive const
  1213. RelayLogicalStateInactive RelayLogicalState = "inactive"
  1214. )
  1215. // RelayIdleState type
  1216. type RelayIdleState string
  1217. const (
  1218. // RelayIdleStateClosed const
  1219. RelayIdleStateClosed RelayIdleState = "closed"
  1220. // RelayIdleStateOpen const
  1221. RelayIdleStateOpen RelayIdleState = "open"
  1222. )
  1223. // RelayMode type
  1224. type RelayMode string
  1225. const (
  1226. // RelayModeMonostable const
  1227. RelayModeMonostable RelayMode = "Monostable"
  1228. // RelayModeBistable const
  1229. RelayModeBistable RelayMode = "Bistable"
  1230. )
  1231. // DigitalIdleState type
  1232. type DigitalIdleState string
  1233. const (
  1234. // DigitalIdleStateClosed const
  1235. DigitalIdleStateClosed DigitalIdleState = "closed"
  1236. // DigitalIdleStateOpen const
  1237. DigitalIdleStateOpen DigitalIdleState = "open"
  1238. )
  1239. // EFlipMode type
  1240. type EFlipMode string
  1241. const (
  1242. // EFlipModeOFF const
  1243. EFlipModeOFF EFlipMode = "OFF"
  1244. // EFlipModeON const
  1245. EFlipModeON EFlipMode = "ON"
  1246. // EFlipModeExtended const
  1247. EFlipModeExtended EFlipMode = "Extended"
  1248. )
  1249. // ReverseMode type
  1250. type ReverseMode string
  1251. const (
  1252. // ReverseModeOFF const
  1253. ReverseModeOFF ReverseMode = "OFF"
  1254. // ReverseModeON const
  1255. ReverseModeON ReverseMode = "ON"
  1256. // ReverseModeAUTO const
  1257. ReverseModeAUTO ReverseMode = "AUTO"
  1258. // ReverseModeExtended const
  1259. ReverseModeExtended ReverseMode = "Extended"
  1260. )
  1261. // AuxiliaryData type
  1262. type AuxiliaryData string
  1263. // PTZPresetTourState type
  1264. type PTZPresetTourState string
  1265. const (
  1266. // PTZPresetTourStateIdle const
  1267. PTZPresetTourStateIdle PTZPresetTourState = "Idle"
  1268. // PTZPresetTourStateTouring const
  1269. PTZPresetTourStateTouring PTZPresetTourState = "Touring"
  1270. // PTZPresetTourStatePaused const
  1271. PTZPresetTourStatePaused PTZPresetTourState = "Paused"
  1272. // PTZPresetTourStateExtended const
  1273. PTZPresetTourStateExtended PTZPresetTourState = "Extended"
  1274. )
  1275. // PTZPresetTourDirection type
  1276. type PTZPresetTourDirection string
  1277. const (
  1278. // PTZPresetTourDirectionForward const
  1279. PTZPresetTourDirectionForward PTZPresetTourDirection = "Forward"
  1280. // PTZPresetTourDirectionBackward const
  1281. PTZPresetTourDirectionBackward PTZPresetTourDirection = "Backward"
  1282. // PTZPresetTourDirectionExtended const
  1283. PTZPresetTourDirectionExtended PTZPresetTourDirection = "Extended"
  1284. )
  1285. // PTZPresetTourOperation type
  1286. type PTZPresetTourOperation string
  1287. const (
  1288. // PTZPresetTourOperationStart const
  1289. PTZPresetTourOperationStart PTZPresetTourOperation = "Start"
  1290. // PTZPresetTourOperationStop const
  1291. PTZPresetTourOperationStop PTZPresetTourOperation = "Stop"
  1292. // PTZPresetTourOperationPause const
  1293. PTZPresetTourOperationPause PTZPresetTourOperation = "Pause"
  1294. // PTZPresetTourOperationExtended const
  1295. PTZPresetTourOperationExtended PTZPresetTourOperation = "Extended"
  1296. )
  1297. // AutoFocusMode type
  1298. type AutoFocusMode string
  1299. const (
  1300. // AutoFocusModeAUTO const
  1301. AutoFocusModeAUTO AutoFocusMode = "AUTO"
  1302. // AutoFocusModeMANUAL const
  1303. AutoFocusModeMANUAL AutoFocusMode = "MANUAL"
  1304. )
  1305. // AFModes type
  1306. type AFModes string
  1307. const (
  1308. // Focus of a moving camera is updated only once after stopping a pan, tilt or zoom movement.
  1309. // AFModesOnceAfterMove const
  1310. AFModesOnceAfterMove AFModes = "OnceAfterMove"
  1311. )
  1312. // WideDynamicMode type
  1313. type WideDynamicMode string
  1314. const (
  1315. // WideDynamicModeOFF const
  1316. WideDynamicModeOFF WideDynamicMode = "OFF"
  1317. // WideDynamicModeON const
  1318. WideDynamicModeON WideDynamicMode = "ON"
  1319. )
  1320. // Enumeration describing the available backlight compenstation modes.
  1321. // BacklightCompensationMode type
  1322. type BacklightCompensationMode string
  1323. const (
  1324. // Backlight compensation is disabled.
  1325. // BacklightCompensationModeOFF const
  1326. BacklightCompensationModeOFF BacklightCompensationMode = "OFF"
  1327. // Backlight compensation is enabled.
  1328. // BacklightCompensationModeON const
  1329. BacklightCompensationModeON BacklightCompensationMode = "ON"
  1330. )
  1331. // ExposurePriority type
  1332. type ExposurePriority string
  1333. const (
  1334. // ExposurePriorityLowNoise const
  1335. ExposurePriorityLowNoise ExposurePriority = "LowNoise"
  1336. // ExposurePriorityFrameRate const
  1337. ExposurePriorityFrameRate ExposurePriority = "FrameRate"
  1338. )
  1339. // ExposureMode type
  1340. type ExposureMode string
  1341. const (
  1342. // ExposureModeAUTO const
  1343. ExposureModeAUTO ExposureMode = "AUTO"
  1344. // ExposureModeMANUAL const
  1345. ExposureModeMANUAL ExposureMode = "MANUAL"
  1346. )
  1347. // Enabled type
  1348. type Enabled string
  1349. const (
  1350. // EnabledENABLED const
  1351. EnabledENABLED Enabled = "ENABLED"
  1352. // EnabledDISABLED const
  1353. EnabledDISABLED Enabled = "DISABLED"
  1354. )
  1355. // WhiteBalanceMode type
  1356. type WhiteBalanceMode string
  1357. const (
  1358. // WhiteBalanceModeAUTO const
  1359. WhiteBalanceModeAUTO WhiteBalanceMode = "AUTO"
  1360. // WhiteBalanceModeMANUAL const
  1361. WhiteBalanceModeMANUAL WhiteBalanceMode = "MANUAL"
  1362. )
  1363. // IrCutFilterMode type
  1364. type IrCutFilterMode string
  1365. const (
  1366. // IrCutFilterModeON const
  1367. IrCutFilterModeON IrCutFilterMode = "ON"
  1368. // IrCutFilterModeOFF const
  1369. IrCutFilterModeOFF IrCutFilterMode = "OFF"
  1370. // IrCutFilterModeAUTO const
  1371. IrCutFilterModeAUTO IrCutFilterMode = "AUTO"
  1372. )
  1373. // ImageStabilizationMode type
  1374. type ImageStabilizationMode string
  1375. const (
  1376. // ImageStabilizationModeOFF const
  1377. ImageStabilizationModeOFF ImageStabilizationMode = "OFF"
  1378. // ImageStabilizationModeON const
  1379. ImageStabilizationModeON ImageStabilizationMode = "ON"
  1380. // ImageStabilizationModeAUTO const
  1381. ImageStabilizationModeAUTO ImageStabilizationMode = "AUTO"
  1382. // ImageStabilizationModeExtended const
  1383. ImageStabilizationModeExtended ImageStabilizationMode = "Extended"
  1384. )
  1385. // IrCutFilterAutoBoundaryType type
  1386. type IrCutFilterAutoBoundaryType string
  1387. const (
  1388. // IrCutFilterAutoBoundaryTypeCommon const
  1389. IrCutFilterAutoBoundaryTypeCommon IrCutFilterAutoBoundaryType = "Common"
  1390. // IrCutFilterAutoBoundaryTypeToOn const
  1391. IrCutFilterAutoBoundaryTypeToOn IrCutFilterAutoBoundaryType = "ToOn"
  1392. // IrCutFilterAutoBoundaryTypeToOff const
  1393. IrCutFilterAutoBoundaryTypeToOff IrCutFilterAutoBoundaryType = "ToOff"
  1394. // IrCutFilterAutoBoundaryTypeExtended const
  1395. IrCutFilterAutoBoundaryTypeExtended IrCutFilterAutoBoundaryType = "Extended"
  1396. )
  1397. // ToneCompensationMode type
  1398. type ToneCompensationMode string
  1399. const (
  1400. // ToneCompensationModeOFF const
  1401. ToneCompensationModeOFF ToneCompensationMode = "OFF"
  1402. // ToneCompensationModeON const
  1403. ToneCompensationModeON ToneCompensationMode = "ON"
  1404. // ToneCompensationModeAUTO const
  1405. ToneCompensationModeAUTO ToneCompensationMode = "AUTO"
  1406. )
  1407. // DefoggingMode type
  1408. type DefoggingMode string
  1409. const (
  1410. // DefoggingModeOFF const
  1411. DefoggingModeOFF DefoggingMode = "OFF"
  1412. // DefoggingModeON const
  1413. DefoggingModeON DefoggingMode = "ON"
  1414. // DefoggingModeAUTO const
  1415. DefoggingModeAUTO DefoggingMode = "AUTO"
  1416. )
  1417. // TopicNamespaceLocation type
  1418. type TopicNamespaceLocation AnyURI
  1419. // PropertyOperation type
  1420. type PropertyOperation string
  1421. const (
  1422. // PropertyOperationInitialized const
  1423. PropertyOperationInitialized PropertyOperation = "Initialized"
  1424. // PropertyOperationDeleted const
  1425. PropertyOperationDeleted PropertyOperation = "Deleted"
  1426. // PropertyOperationChanged const
  1427. PropertyOperationChanged PropertyOperation = "Changed"
  1428. )
  1429. // Direction type
  1430. type Direction string
  1431. const (
  1432. // DirectionLeft const
  1433. DirectionLeft Direction = "Left"
  1434. // DirectionRight const
  1435. DirectionRight Direction = "Right"
  1436. // DirectionAny const
  1437. DirectionAny Direction = "Any"
  1438. )
  1439. //
  1440. // Specifies a receiver connection mode.
  1441. //
  1442. // ReceiverMode type
  1443. type ReceiverMode string
  1444. const (
  1445. // The receiver connects on demand, as required by consumers of the media streams.
  1446. // ReceiverModeAutoConnect const
  1447. ReceiverModeAutoConnect ReceiverMode = "AutoConnect"
  1448. // The receiver attempts to maintain a persistent connection to the configured endpoint.
  1449. // ReceiverModeAlwaysConnect const
  1450. ReceiverModeAlwaysConnect ReceiverMode = "AlwaysConnect"
  1451. // The receiver does not attempt to connect.
  1452. // ReceiverModeNeverConnect const
  1453. ReceiverModeNeverConnect ReceiverMode = "NeverConnect"
  1454. // This case should never happen.
  1455. // ReceiverModeUnknown const
  1456. ReceiverModeUnknown ReceiverMode = "Unknown"
  1457. )
  1458. //
  1459. // Specifies the current connection state of the receiver.
  1460. //
  1461. // ReceiverState type
  1462. type ReceiverState string
  1463. const (
  1464. // The receiver is not connected.
  1465. // ReceiverStateNotConnected const
  1466. ReceiverStateNotConnected ReceiverState = "NotConnected"
  1467. // The receiver is attempting to connect.
  1468. // ReceiverStateConnecting const
  1469. ReceiverStateConnecting ReceiverState = "Connecting"
  1470. // The receiver is connected.
  1471. // ReceiverStateConnected const
  1472. ReceiverStateConnected ReceiverState = "Connected"
  1473. // This case should never happen.
  1474. // ReceiverStateUnknown const
  1475. ReceiverStateUnknown ReceiverState = "Unknown"
  1476. )
  1477. // ReceiverReference type
  1478. type ReceiverReference ReferenceToken
  1479. // RecordingReference type
  1480. type RecordingReference ReferenceToken
  1481. // TrackReference type
  1482. type TrackReference ReferenceToken
  1483. // Description type
  1484. type Description string
  1485. // XPathExpression type
  1486. type XPathExpression string
  1487. // SearchState type
  1488. type SearchState string
  1489. const (
  1490. // The search is queued and not yet started.
  1491. // SearchStateQueued const
  1492. SearchStateQueued SearchState = "Queued"
  1493. // The search is underway and not yet completed.
  1494. // SearchStateSearching const
  1495. SearchStateSearching SearchState = "Searching"
  1496. // The search has been completed and no new results will be found.
  1497. // SearchStateCompleted const
  1498. SearchStateCompleted SearchState = "Completed"
  1499. // The state of the search is unknown. (This is not a valid response from GetSearchState.)
  1500. // SearchStateUnknown const
  1501. SearchStateUnknown SearchState = "Unknown"
  1502. )
  1503. // JobToken type
  1504. type JobToken ReferenceToken
  1505. // RecordingStatus type
  1506. type RecordingStatus string
  1507. const (
  1508. // RecordingStatusInitiated const
  1509. RecordingStatusInitiated RecordingStatus = "Initiated"
  1510. // RecordingStatusRecording const
  1511. RecordingStatusRecording RecordingStatus = "Recording"
  1512. // RecordingStatusStopped const
  1513. RecordingStatusStopped RecordingStatus = "Stopped"
  1514. // RecordingStatusRemoving const
  1515. RecordingStatusRemoving RecordingStatus = "Removing"
  1516. // RecordingStatusRemoved const
  1517. RecordingStatusRemoved RecordingStatus = "Removed"
  1518. // This case should never happen.
  1519. // RecordingStatusUnknown const
  1520. RecordingStatusUnknown RecordingStatus = "Unknown"
  1521. )
  1522. // TrackType type
  1523. type TrackType string
  1524. const (
  1525. // TrackTypeVideo const
  1526. TrackTypeVideo TrackType = "Video"
  1527. // TrackTypeAudio const
  1528. TrackTypeAudio TrackType = "Audio"
  1529. // TrackTypeMetadata const
  1530. TrackTypeMetadata TrackType = "Metadata"
  1531. // Placeholder for future extension.
  1532. // TrackTypeExtended const
  1533. TrackTypeExtended TrackType = "Extended"
  1534. )
  1535. // RecordingJobReference type
  1536. type RecordingJobReference ReferenceToken
  1537. // RecordingJobMode type
  1538. type RecordingJobMode string
  1539. // RecordingJobState type
  1540. type RecordingJobState string
  1541. // ModeOfOperation type
  1542. type ModeOfOperation string
  1543. const (
  1544. // ModeOfOperationIdle const
  1545. ModeOfOperationIdle ModeOfOperation = "Idle"
  1546. // ModeOfOperationActive const
  1547. ModeOfOperationActive ModeOfOperation = "Active"
  1548. // This case should never happen.
  1549. // ModeOfOperationUnknown const
  1550. ModeOfOperationUnknown ModeOfOperation = "Unknown"
  1551. )
  1552. //
  1553. // AudioClassType acceptable values are;
  1554. // gun_shot, scream, glass_breaking, tire_screech
  1555. //
  1556. // AudioClassType type
  1557. type AudioClassType string
  1558. // OSDType type
  1559. type OSDType string
  1560. const (
  1561. // OSDTypeText const
  1562. OSDTypeText OSDType = "Text"
  1563. // OSDTypeImage const
  1564. OSDTypeImage OSDType = "Image"
  1565. // OSDTypeExtended const
  1566. OSDTypeExtended OSDType = "Extended"
  1567. )
  1568. // Message type
  1569. type Message struct {
  1570. XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Message"`
  1571. // Token value pairs that triggered this message. Typically only one item is present.
  1572. Source ItemList `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  1573. Key ItemList `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  1574. Data ItemList `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  1575. Extension MessageExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1576. UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,attr,omitempty"`
  1577. PropertyOperation PropertyOperation `xml:"http://www.onvif.org/ver10/schema PropertyOperation,attr,omitempty"`
  1578. }
  1579. // DeviceEntity type
  1580. type DeviceEntity struct {
  1581. // Unique identifier referencing the physical entity.
  1582. Token ReferenceToken `xml:"token,attr,omitempty"`
  1583. }
  1584. // IntRectangle type
  1585. type IntRectangle struct {
  1586. X int32 `xml:"x,attr,omitempty"`
  1587. Y int32 `xml:"y,attr,omitempty"`
  1588. Width int32 `xml:"width,attr,omitempty"`
  1589. Height int32 `xml:"height,attr,omitempty"`
  1590. }
  1591. // IntRectangleRange type
  1592. type IntRectangleRange struct {
  1593. // Range of X-axis.
  1594. XRange IntRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  1595. // Range of Y-axis.
  1596. YRange IntRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
  1597. // Range of width.
  1598. WidthRange IntRange `xml:"http://www.onvif.org/ver10/schema WidthRange,omitempty"`
  1599. // Range of height.
  1600. HeightRange IntRange `xml:"http://www.onvif.org/ver10/schema HeightRange,omitempty"`
  1601. }
  1602. // FloatRange type
  1603. type FloatRange struct {
  1604. Min float32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  1605. Max float32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  1606. }
  1607. // DurationRange type
  1608. type DurationRange struct {
  1609. Min Duration `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
  1610. Max Duration `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
  1611. }
  1612. // IntList type
  1613. type IntList struct {
  1614. Items []int32 `xml:"http://www.onvif.org/ver10/schema Items,omitempty"`
  1615. }
  1616. // VideoSource type
  1617. type VideoSource struct {
  1618. *DeviceEntity
  1619. // Frame rate in frames per second.
  1620. Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
  1621. // Horizontal and vertical resolution
  1622. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
  1623. // Optional configuration of the image sensor.
  1624. Imaging ImagingSettings `xml:"http://www.onvif.org/ver20/imaging/wsdl Imaging,omitempty"`
  1625. Extension VideoSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1626. }
  1627. // VideoSourceExtension type
  1628. type VideoSourceExtension struct {
  1629. // Optional configuration of the image sensor. To be used if imaging service 2.00 is supported.
  1630. Imaging ImagingSettings20 `xml:"http://www.onvif.org/ver20/imaging/wsdl Imaging,omitempty"`
  1631. Extension VideoSourceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1632. }
  1633. // VideoSourceExtension2 type
  1634. type VideoSourceExtension2 struct {
  1635. }
  1636. // AudioSource type
  1637. type AudioSource struct {
  1638. *DeviceEntity
  1639. // number of available audio channels. (1: mono, 2: stereo)
  1640. Channels int32 `xml:"http://www.onvif.org/ver10/schema Channels,omitempty"`
  1641. }
  1642. // Profile type
  1643. type Profile struct {
  1644. // User readable name of the profile.
  1645. Name Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  1646. // Optional configuration of the Video input.
  1647. VideoSourceConfiguration VideoSourceConfiguration `xml:"http://www.onvif.org/ver10/schema VideoSourceConfiguration,omitempty"`
  1648. // Optional configuration of the Audio input.
  1649. AudioSourceConfiguration AudioSourceConfiguration `xml:"http://www.onvif.org/ver10/schema AudioSourceConfiguration,omitempty"`
  1650. // Optional configuration of the Video encoder.
  1651. VideoEncoderConfiguration VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema VideoEncoderConfiguration,omitempty"`
  1652. // Optional configuration of the Audio encoder.
  1653. AudioEncoderConfiguration AudioEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioEncoderConfiguration,omitempty"`
  1654. // Optional configuration of the video analytics module and rule engine.
  1655. VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/schema VideoAnalyticsConfiguration,omitempty"`
  1656. // Optional configuration of the pan tilt zoom unit.
  1657. PTZConfiguration PTZConfiguration `xml:"http://www.onvif.org/ver10/schema PTZConfiguration,omitempty"`
  1658. // Optional configuration of the metadata stream.
  1659. MetadataConfiguration MetadataConfiguration `xml:"http://www.onvif.org/ver10/schema MetadataConfiguration,omitempty"`
  1660. // Extensions defined in ONVIF 2.0
  1661. Extension ProfileExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1662. // Unique identifier of the profile.
  1663. Token ReferenceToken `xml:"token,attr,omitempty"`
  1664. // A value of true signals that the profile cannot be deleted. Default is false.
  1665. Fixed bool `xml:"fixed,attr,omitempty"`
  1666. }
  1667. // ProfileExtension type
  1668. type ProfileExtension struct {
  1669. // Optional configuration of the Audio output.
  1670. AudioOutputConfiguration AudioOutputConfiguration `xml:"http://www.onvif.org/ver10/schema AudioOutputConfiguration,omitempty"`
  1671. // Optional configuration of the Audio decoder.
  1672. AudioDecoderConfiguration AudioDecoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioDecoderConfiguration,omitempty"`
  1673. Extension ProfileExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1674. }
  1675. // ProfileExtension2 type
  1676. type ProfileExtension2 struct {
  1677. }
  1678. // ConfigurationEntity type
  1679. type ConfigurationEntity struct {
  1680. // User readable name. Length up to 64 characters.
  1681. Name Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  1682. // Number of internal references currently using this configuration.
  1683. UseCount int32 `xml:"http://www.onvif.org/ver10/schema UseCount,omitempty"`
  1684. // Token that uniquely references this configuration. Length up to 64 characters.
  1685. Token ReferenceToken `xml:"token,attr,omitempty"`
  1686. }
  1687. // VideoSourceConfiguration type
  1688. type VideoSourceConfiguration struct {
  1689. *ConfigurationEntity
  1690. // Reference to the physical input.
  1691. SourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl SourceToken,omitempty"`
  1692. // Rectangle specifying the Video capturing area. The capturing area shall not be larger than the whole Video source area.
  1693. Bounds IntRectangle `xml:"http://www.onvif.org/ver10/schema Bounds,omitempty"`
  1694. Extension VideoSourceConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1695. // Readonly parameter signalling Source configuration's view mode, for devices supporting different view modes as defined in tt:viewModes.
  1696. ViewMode string `xml:"http://www.onvif.org/ver20/imaging/wsdl ViewMode,attr,omitempty"`
  1697. }
  1698. // VideoSourceConfigurationExtension type
  1699. type VideoSourceConfigurationExtension struct {
  1700. // Optional element to configure rotation of captured image.
  1701. // What resolutions a device supports shall be unaffected by the Rotate parameters.
  1702. // If a device is configured with Rotate=AUTO, the device shall take control over the Degree parameter and automatically update it so that a client can query current rotation.
  1703. // The device shall automatically apply the same rotation to its pan/tilt control direction depending on the following condition:
  1704. // if Reverse=AUTO in PTControlDirection or if the device doesn’t support Reverse in PTControlDirection
  1705. //
  1706. Rotate Rotate `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
  1707. Extension VideoSourceConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1708. }
  1709. // VideoSourceConfigurationExtension2 type
  1710. type VideoSourceConfigurationExtension2 struct {
  1711. // Optional element describing the geometric lens distortion. Multiple instances for future variable lens support.
  1712. LensDescription []LensDescription `xml:"http://www.onvif.org/ver10/schema LensDescription,omitempty"`
  1713. // Optional element describing the scene orientation in the camera’s field of view.
  1714. SceneOrientation SceneOrientation `xml:"http://www.onvif.org/ver10/schema SceneOrientation,omitempty"`
  1715. }
  1716. // Rotate type
  1717. type Rotate struct {
  1718. // Parameter to enable/disable Rotation feature.
  1719. Mode RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  1720. // Optional parameter to configure how much degree of clockwise rotation of image for On mode. Omitting this parameter for On mode means 180 degree rotation.
  1721. Degree int32 `xml:"http://www.onvif.org/ver10/schema Degree,omitempty"`
  1722. Extension RotateExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1723. }
  1724. // RotateExtension type
  1725. type RotateExtension struct {
  1726. }
  1727. // LensProjection type
  1728. type LensProjection struct {
  1729. // Angle of incidence.
  1730. Angle float32 `xml:"http://www.onvif.org/ver10/schema Angle,omitempty"`
  1731. // Mapping radius as a consequence of the emergent angle.
  1732. Radius float32 `xml:"http://www.onvif.org/ver10/schema Radius,omitempty"`
  1733. // Optional ray absorption at the given angle due to vignetting. A value of one means no absorption.
  1734. Transmittance float32 `xml:"http://www.onvif.org/ver10/schema Transmittance,omitempty"`
  1735. }
  1736. // LensOffset type
  1737. type LensOffset struct {
  1738. // Optional horizontal offset of the lens center in normalized coordinates.
  1739. X float32 `xml:"x,attr,omitempty"`
  1740. // Optional vertical offset of the lens center in normalized coordinates.
  1741. Y float32 `xml:"y,attr,omitempty"`
  1742. }
  1743. // LensDescription type
  1744. type LensDescription struct {
  1745. // Offset of the lens center to the imager center in normalized coordinates.
  1746. Offset LensOffset `xml:"http://www.onvif.org/ver10/schema Offset,omitempty"`
  1747. // Radial description of the projection characteristics. The resulting curve is defined by the B-Spline interpolation
  1748. // over the given elements. The element for Radius zero shall not be provided. The projection points shall be ordered with ascending Radius.
  1749. // Items outside the last projection Radius shall be assumed to be invisible (black).
  1750. Projection []LensProjection `xml:"http://www.onvif.org/ver10/schema Projection,omitempty"`
  1751. // Compensation of the x coordinate needed for the ONVIF normalized coordinate system.
  1752. XFactor float32 `xml:"http://www.onvif.org/ver10/schema XFactor,omitempty"`
  1753. // Optional focal length of the optical system.
  1754. FocalLength float32 `xml:"http://www.onvif.org/ver10/schema FocalLength,attr,omitempty"`
  1755. }
  1756. // VideoSourceConfigurationOptions type
  1757. type VideoSourceConfigurationOptions struct {
  1758. //
  1759. // Supported range for the capturing area.
  1760. // Device that does not support cropped streaming shall express BoundsRange option as mentioned below
  1761. // BoundsRange->XRange and BoundsRange->YRange with same Min/Max values HeightRange and WidthRange Min/Max values same as VideoSource Height and Width Limits.
  1762. //
  1763. BoundsRange IntRectangleRange `xml:"http://www.onvif.org/ver10/schema BoundsRange,omitempty"`
  1764. // List of physical inputs.
  1765. VideoSourceTokensAvailable []ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl VideoSourceTokensAvailable,omitempty"`
  1766. Extension VideoSourceConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1767. // Maximum number of profiles.
  1768. MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,attr,omitempty"`
  1769. }
  1770. // VideoSourceConfigurationOptionsExtension type
  1771. type VideoSourceConfigurationOptionsExtension struct {
  1772. // Options of parameters for Rotation feature.
  1773. Rotate RotateOptions `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
  1774. Extension VideoSourceConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1775. }
  1776. // VideoSourceConfigurationOptionsExtension2 type
  1777. type VideoSourceConfigurationOptionsExtension2 struct {
  1778. // Scene orientation modes supported by the device for this configuration.
  1779. SceneOrientationMode []SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema SceneOrientationMode,omitempty"`
  1780. }
  1781. // RotateOptions type
  1782. type RotateOptions struct {
  1783. // Supported options of Rotate mode parameter.
  1784. Mode []RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  1785. // List of supported degree value for rotation.
  1786. DegreeList IntList `xml:"http://www.onvif.org/ver10/schema DegreeList,omitempty"`
  1787. Extension RotateOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1788. // After setting the rotation, if a device starts to reboot this value is true.
  1789. // If a device can handle rotation setting without rebooting this value is false.
  1790. Reboot bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Reboot,attr,omitempty"`
  1791. }
  1792. // RotateOptionsExtension type
  1793. type RotateOptionsExtension struct {
  1794. }
  1795. // SceneOrientation type
  1796. type SceneOrientation struct {
  1797. //
  1798. // Parameter to assign the way the camera determines the scene orientation.
  1799. //
  1800. Mode SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  1801. //
  1802. // Assigned or determined scene orientation based on the Mode. When assigning the Mode to AUTO, this field
  1803. // is optional and will be ignored by the device. When assigning the Mode to MANUAL, this field is required
  1804. // and the device will return an InvalidArgs fault if missing.
  1805. //
  1806. Orientation string `xml:"http://www.onvif.org/ver20/imaging/wsdl Orientation,omitempty"`
  1807. }
  1808. // VideoEncoderConfiguration type
  1809. type VideoEncoderConfiguration struct {
  1810. *ConfigurationEntity
  1811. // Used video codec, either Jpeg, H.264 or Mpeg4
  1812. Encoding VideoEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  1813. // Configured video resolution
  1814. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
  1815. // Relative value for the video quantizers and the quality of the video. A high value within supported quality range means higher quality
  1816. Quality float32 `xml:"http://www.onvif.org/ver10/schema Quality,omitempty"`
  1817. // Optional element to configure rate control related parameters.
  1818. RateControl VideoRateControl `xml:"http://www.onvif.org/ver10/schema RateControl,omitempty"`
  1819. // Optional element to configure Mpeg4 related parameters.
  1820. MPEG4 Mpeg4Configuration `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
  1821. // Optional element to configure H.264 related parameters.
  1822. H264 H264Configuration `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
  1823. // Defines the multicast settings that could be used for video streaming.
  1824. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  1825. // The rtsp session timeout for the related video stream
  1826. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  1827. //
  1828. // A value of true indicates that frame rate is a fixed value rather than an upper limit,
  1829. // and that the video encoder shall prioritize frame rate over all other adaptable
  1830. // configuration values such as bitrate. Default is false.
  1831. //
  1832. GuaranteedFrameRate bool `xml:"http://www.onvif.org/ver20/imaging/wsdl GuaranteedFrameRate,attr,omitempty"`
  1833. }
  1834. // VideoResolution type
  1835. type VideoResolution struct {
  1836. // Number of the columns of the Video image.
  1837. Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
  1838. // Number of the lines of the Video image.
  1839. Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
  1840. }
  1841. // VideoRateControl type
  1842. type VideoRateControl struct {
  1843. // Maximum output framerate in fps. If an EncodingInterval is provided the resulting encoded framerate will be reduced by the given factor.
  1844. FrameRateLimit int32 `xml:"http://www.onvif.org/ver10/schema FrameRateLimit,omitempty"`
  1845. // Interval at which images are encoded and transmitted. (A value of 1 means that every frame is encoded, a value of 2 means that every 2nd frame is encoded ...)
  1846. EncodingInterval int32 `xml:"http://www.onvif.org/ver10/schema EncodingInterval,omitempty"`
  1847. // the maximum output bitrate in kbps
  1848. BitrateLimit int32 `xml:"http://www.onvif.org/ver10/schema BitrateLimit,omitempty"`
  1849. }
  1850. // Mpeg4Configuration type
  1851. type Mpeg4Configuration struct {
  1852. // Determines the interval in which the I-Frames will be coded. An entry of 1 indicates I-Frames are continuously generated. An entry of 2 indicates that every 2nd image is an I-Frame, and 3 only every 3rd frame, etc. The frames in between are coded as P or B Frames.
  1853. GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
  1854. // the Mpeg4 profile, either simple profile (SP) or advanced simple profile (ASP)
  1855. Mpeg4Profile Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4Profile,omitempty"`
  1856. }
  1857. // H264Configuration type
  1858. type H264Configuration struct {
  1859. // Group of Video frames length. Determines typically the interval in which the I-Frames will be coded. An entry of 1 indicates I-Frames are continuously generated. An entry of 2 indicates that every 2nd image is an I-Frame, and 3 only every 3rd frame, etc. The frames in between are coded as P or B Frames.
  1860. GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
  1861. // the H.264 profile, either baseline, main, extended or high
  1862. H264Profile H264Profile `xml:"http://www.onvif.org/ver10/schema H264Profile,omitempty"`
  1863. }
  1864. // VideoEncoderOptionsExtension type
  1865. type VideoEncoderOptionsExtension struct {
  1866. // Optional JPEG encoder settings ranges.
  1867. JPEG JpegOptions2 `xml:"http://www.onvif.org/ver10/schema JPEG,omitempty"`
  1868. // Optional MPEG-4 encoder settings ranges.
  1869. MPEG4 Mpeg4Options2 `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
  1870. // Optional H.264 encoder settings ranges.
  1871. H264 H264Options2 `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
  1872. Extension VideoEncoderOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1873. }
  1874. // VideoEncoderOptionsExtension2 type
  1875. type VideoEncoderOptionsExtension2 struct {
  1876. }
  1877. // JpegOptions type
  1878. type JpegOptions struct {
  1879. // List of supported image sizes.
  1880. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1881. // Supported frame rate in fps (frames per second).
  1882. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  1883. // Supported encoding interval range. The encoding interval corresponds to the number of frames devided by the encoded frames. An encoding interval value of "1" means that all frames are encoded.
  1884. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  1885. }
  1886. // JpegOptions2 type
  1887. type JpegOptions2 struct {
  1888. *JpegOptions
  1889. // Supported range of encoded bitrate in kbps.
  1890. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  1891. }
  1892. // Mpeg4Options type
  1893. type Mpeg4Options struct {
  1894. // List of supported image sizes.
  1895. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1896. // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
  1897. GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
  1898. // Supported frame rate in fps (frames per second).
  1899. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  1900. // Supported encoding interval range. The encoding interval corresponds to the number of frames devided by the encoded frames. An encoding interval value of "1" means that all frames are encoded.
  1901. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  1902. // List of supported MPEG-4 profiles.
  1903. Mpeg4ProfilesSupported []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4ProfilesSupported,omitempty"`
  1904. }
  1905. // Mpeg4Options2 type
  1906. type Mpeg4Options2 struct {
  1907. *Mpeg4Options
  1908. // Supported range of encoded bitrate in kbps.
  1909. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  1910. }
  1911. // H264Options type
  1912. type H264Options struct {
  1913. // List of supported image sizes.
  1914. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  1915. // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
  1916. GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
  1917. // Supported frame rate in fps (frames per second).
  1918. FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
  1919. // Supported encoding interval range. The encoding interval corresponds to the number of frames devided by the encoded frames. An encoding interval value of "1" means that all frames are encoded.
  1920. EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
  1921. // List of supported H.264 profiles.
  1922. H264ProfilesSupported []H264Profile `xml:"http://www.onvif.org/ver10/schema H264ProfilesSupported,omitempty"`
  1923. }
  1924. // H264Options2 type
  1925. type H264Options2 struct {
  1926. *H264Options
  1927. // Supported range of encoded bitrate in kbps.
  1928. BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
  1929. }
  1930. // AudioSourceConfiguration type
  1931. type AudioSourceConfiguration struct {
  1932. *ConfigurationEntity
  1933. // Token of the Audio Source the configuration applies to
  1934. SourceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl SourceToken,omitempty"`
  1935. }
  1936. // AudioEncoderConfiguration type
  1937. type AudioEncoderConfiguration struct {
  1938. *ConfigurationEntity
  1939. // Audio codec used for encoding the audio input (either G.711, G.726 or AAC)
  1940. Encoding AudioEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
  1941. // The output bitrate in kbps.
  1942. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  1943. // The output sample rate in kHz.
  1944. SampleRate int32 `xml:"http://www.onvif.org/ver10/schema SampleRate,omitempty"`
  1945. // Defines the multicast settings that could be used for video streaming.
  1946. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  1947. // The rtsp session timeout for the related audio stream
  1948. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  1949. }
  1950. // VideoAnalyticsConfiguration type
  1951. type VideoAnalyticsConfiguration struct {
  1952. *ConfigurationEntity
  1953. AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  1954. RuleEngineConfiguration RuleEngineConfiguration `xml:"http://www.onvif.org/ver10/schema RuleEngineConfiguration,omitempty"`
  1955. }
  1956. // MetadataConfiguration type
  1957. type MetadataConfiguration struct {
  1958. *ConfigurationEntity
  1959. // optional element to configure which PTZ related data is to include in the metadata stream
  1960. PTZStatus PTZFilter `xml:"http://www.onvif.org/ver10/schema PTZStatus,omitempty"`
  1961. // Optional element to configure the streaming of events. A client might be interested in receiving all,
  1962. // none or some of the events produced by the device:
  1963. //
  1964. Events EventSubscription `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
  1965. // Defines whether the streamed metadata will include metadata from the analytics engines (video, cell motion, audio etc.)
  1966. Analytics bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Analytics,omitempty"`
  1967. // Defines the multicast settings that could be used for video streaming.
  1968. Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
  1969. // The rtsp session timeout for the related audio stream (when using Media2 Service, this value is deprecated and ignored)
  1970. SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
  1971. AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  1972. Extension MetadataConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1973. // Optional parameter to configure compression type of Metadata payload. Use values from enumeration MetadataCompressionType.
  1974. CompressionType string `xml:"http://www.onvif.org/ver20/imaging/wsdl CompressionType,attr,omitempty"`
  1975. // Optional parameter to configure if the metadata stream shall contain the Geo Location coordinates of each target.
  1976. GeoLocation bool `xml:"http://www.onvif.org/ver20/imaging/wsdl GeoLocation,attr,omitempty"`
  1977. }
  1978. // MetadataConfigurationExtension type
  1979. type MetadataConfigurationExtension struct {
  1980. }
  1981. // PTZFilter type
  1982. type PTZFilter struct {
  1983. // True if the metadata stream shall contain the PTZ status (IDLE, MOVING or UNKNOWN)
  1984. Status bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Status,omitempty"`
  1985. // True if the metadata stream shall contain the PTZ position
  1986. Position bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Position,omitempty"`
  1987. }
  1988. // EventSubscription type
  1989. type EventSubscription struct {
  1990. Filter FilterType `xml:"Filter,omitempty"`
  1991. SubscriptionPolicy struct {
  1992. } `xml:"SubscriptionPolicy,omitempty"`
  1993. }
  1994. // MetadataConfigurationOptions type
  1995. type MetadataConfigurationOptions struct {
  1996. PTZStatusFilterOptions PTZStatusFilterOptions `xml:"http://www.onvif.org/ver10/schema PTZStatusFilterOptions,omitempty"`
  1997. Extension MetadataConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  1998. // True if the device is able to stream the Geo Located positions of each target.
  1999. GeoLocation bool `xml:"http://www.onvif.org/ver20/imaging/wsdl GeoLocation,attr,omitempty"`
  2000. }
  2001. // MetadataConfigurationOptionsExtension type
  2002. type MetadataConfigurationOptionsExtension struct {
  2003. // List of supported metadata compression type. Its options shall be chosen from tt:MetadataCompressionType.
  2004. CompressionType []string `xml:"http://www.onvif.org/ver20/imaging/wsdl CompressionType,omitempty"`
  2005. Extension MetadataConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2006. }
  2007. // MetadataConfigurationOptionsExtension2 type
  2008. type MetadataConfigurationOptionsExtension2 struct {
  2009. }
  2010. // PTZStatusFilterOptions type
  2011. type PTZStatusFilterOptions struct {
  2012. // True if the device is able to stream pan or tilt status information.
  2013. PanTiltStatusSupported bool `xml:"http://www.onvif.org/ver20/imaging/wsdl PanTiltStatusSupported,omitempty"`
  2014. // True if the device is able to stream zoom status inforamtion.
  2015. ZoomStatusSupported bool `xml:"http://www.onvif.org/ver20/imaging/wsdl ZoomStatusSupported,omitempty"`
  2016. // True if the device is able to stream the pan or tilt position.
  2017. PanTiltPositionSupported bool `xml:"http://www.onvif.org/ver20/imaging/wsdl PanTiltPositionSupported,omitempty"`
  2018. // True if the device is able to stream zoom position information.
  2019. ZoomPositionSupported bool `xml:"http://www.onvif.org/ver20/imaging/wsdl ZoomPositionSupported,omitempty"`
  2020. Extension PTZStatusFilterOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2021. }
  2022. // PTZStatusFilterOptionsExtension type
  2023. type PTZStatusFilterOptionsExtension struct {
  2024. }
  2025. // VideoOutput type
  2026. type VideoOutput struct {
  2027. *DeviceEntity
  2028. Layout Layout `xml:"http://www.onvif.org/ver10/schema Layout,omitempty"`
  2029. // Resolution of the display in Pixel.
  2030. Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
  2031. // Refresh rate of the display in Hertz.
  2032. RefreshRate float32 `xml:"http://www.onvif.org/ver10/schema RefreshRate,omitempty"`
  2033. // Aspect ratio of the display as physical extent of width divided by height.
  2034. AspectRatio float32 `xml:"http://www.onvif.org/ver10/schema AspectRatio,omitempty"`
  2035. Extension VideoOutputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2036. }
  2037. // VideoOutputExtension type
  2038. type VideoOutputExtension struct {
  2039. }
  2040. // VideoDecoderConfigurationOptions type
  2041. type VideoDecoderConfigurationOptions struct {
  2042. // If the device is able to decode Jpeg streams this element describes the supported codecs and configurations
  2043. JpegDecOptions JpegDecOptions `xml:"http://www.onvif.org/ver10/schema JpegDecOptions,omitempty"`
  2044. // If the device is able to decode H.264 streams this element describes the supported codecs and configurations
  2045. H264DecOptions H264DecOptions `xml:"http://www.onvif.org/ver10/schema H264DecOptions,omitempty"`
  2046. // If the device is able to decode Mpeg4 streams this element describes the supported codecs and configurations
  2047. Mpeg4DecOptions Mpeg4DecOptions `xml:"http://www.onvif.org/ver10/schema Mpeg4DecOptions,omitempty"`
  2048. Extension VideoDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2049. }
  2050. // H264DecOptions type
  2051. type H264DecOptions struct {
  2052. // List of supported H.264 Video Resolutions
  2053. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  2054. // List of supported H264 Profiles (either baseline, main, extended or high)
  2055. SupportedH264Profiles []H264Profile `xml:"http://www.onvif.org/ver10/schema SupportedH264Profiles,omitempty"`
  2056. // Supported H.264 bitrate range in kbps
  2057. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  2058. // Supported H.264 framerate range in fps
  2059. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  2060. }
  2061. // JpegDecOptions type
  2062. type JpegDecOptions struct {
  2063. // List of supported Jpeg Video Resolutions
  2064. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  2065. // Supported Jpeg bitrate range in kbps
  2066. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  2067. // Supported Jpeg framerate range in fps
  2068. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  2069. }
  2070. // Mpeg4DecOptions type
  2071. type Mpeg4DecOptions struct {
  2072. // List of supported Mpeg4 Video Resolutions
  2073. ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
  2074. // List of supported Mpeg4 Profiles (either SP or ASP)
  2075. SupportedMpeg4Profiles []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema SupportedMpeg4Profiles,omitempty"`
  2076. // Supported Mpeg4 bitrate range in kbps
  2077. SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
  2078. // Supported Mpeg4 framerate range in fps
  2079. SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
  2080. }
  2081. // VideoDecoderConfigurationOptionsExtension type
  2082. type VideoDecoderConfigurationOptionsExtension struct {
  2083. }
  2084. // AudioOutput type
  2085. type AudioOutput struct {
  2086. *DeviceEntity
  2087. }
  2088. // AudioOutputConfiguration type
  2089. type AudioOutputConfiguration struct {
  2090. *ConfigurationEntity
  2091. // Token of the phsycial Audio output.
  2092. OutputToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl OutputToken,omitempty"`
  2093. //
  2094. // An audio channel MAY support different types of audio transmission. While for full duplex
  2095. // operation no special handling is required, in half duplex operation the transmission direction
  2096. // needs to be switched.
  2097. // The optional SendPrimacy parameter inside the AudioOutputConfiguration indicates which
  2098. // direction is currently active. An NVC can switch between different modes by setting the
  2099. // AudioOutputConfiguration.
  2100. // The following modes for the Send-Primacy are defined:
  2101. // Acoustic echo cancellation is out of ONVIF scope.
  2102. SendPrimacy AnyURI `xml:"http://www.onvif.org/ver10/schema SendPrimacy,omitempty"`
  2103. // Volume setting of the output. The applicable range is defined via the option AudioOutputOptions.OutputLevelRange.
  2104. OutputLevel int32 `xml:"http://www.onvif.org/ver10/schema OutputLevel,omitempty"`
  2105. }
  2106. // AudioDecoderConfiguration type
  2107. type AudioDecoderConfiguration struct {
  2108. *ConfigurationEntity
  2109. }
  2110. // AudioDecoderConfigurationOptions type
  2111. type AudioDecoderConfigurationOptions struct {
  2112. // If the device is able to decode AAC encoded audio this section describes the supported configurations
  2113. AACDecOptions AACDecOptions `xml:"http://www.onvif.org/ver10/schema AACDecOptions,omitempty"`
  2114. // If the device is able to decode G711 encoded audio this section describes the supported configurations
  2115. G711DecOptions G711DecOptions `xml:"http://www.onvif.org/ver10/schema G711DecOptions,omitempty"`
  2116. // If the device is able to decode G726 encoded audio this section describes the supported configurations
  2117. G726DecOptions G726DecOptions `xml:"http://www.onvif.org/ver10/schema G726DecOptions,omitempty"`
  2118. Extension AudioDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2119. }
  2120. // G711DecOptions type
  2121. type G711DecOptions struct {
  2122. // List of supported bitrates in kbps
  2123. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2124. // List of supported sample rates in kHz
  2125. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2126. }
  2127. // AACDecOptions type
  2128. type AACDecOptions struct {
  2129. // List of supported bitrates in kbps
  2130. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2131. // List of supported sample rates in kHz
  2132. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2133. }
  2134. // G726DecOptions type
  2135. type G726DecOptions struct {
  2136. // List of supported bitrates in kbps
  2137. Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  2138. // List of supported sample rates in kHz
  2139. SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
  2140. }
  2141. // AudioDecoderConfigurationOptionsExtension type
  2142. type AudioDecoderConfigurationOptionsExtension struct {
  2143. }
  2144. // MulticastConfiguration type
  2145. type MulticastConfiguration struct {
  2146. // The multicast address (if this address is set to 0 no multicast streaming is enaled)
  2147. Address IPAddress `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  2148. // The RTP mutlicast destination port. A device may support RTCP. In this case the port value shall be even to allow the corresponding RTCP stream to be mapped to the next higher (odd) destination port number as defined in the RTSP specification.
  2149. Port int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
  2150. // In case of IPv6 the TTL value is assumed as the hop limit. Note that for IPV6 and administratively scoped IPv4 multicast the primary use for hop limit / TTL is to prevent packets from (endlessly) circulating and not limiting scope. In these cases the address contains the scope.
  2151. TTL int32 `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
  2152. // Read only property signalling that streaming is persistant. Use the methods StartMulticastStreaming and StopMulticastStreaming to switch its state.
  2153. AutoStart bool `xml:"http://www.onvif.org/ver20/imaging/wsdl AutoStart,omitempty"`
  2154. }
  2155. // StreamSetup type
  2156. type StreamSetup struct {
  2157. // Defines if a multicast or unicast stream is requested
  2158. Stream StreamType `xml:"http://www.onvif.org/ver10/schema Stream,omitempty"`
  2159. Transport Transport `xml:"http://www.onvif.org/ver10/schema Transport,omitempty"`
  2160. }
  2161. // Transport type
  2162. type Transport struct {
  2163. // Defines the network protocol for streaming, either UDP=RTP/UDP, RTSP=RTP/RTSP/TCP or HTTP=RTP/RTSP/HTTP/TCP
  2164. Protocol TransportProtocol `xml:"http://www.onvif.org/ver10/schema Protocol,omitempty"`
  2165. // Optional element to describe further tunnel options. This element is normally not needed
  2166. Tunnel *Transport `xml:"http://www.onvif.org/ver10/schema Tunnel,omitempty"`
  2167. }
  2168. // Scope type
  2169. type Scope struct {
  2170. // Indicates if the scope is fixed or configurable.
  2171. ScopeDef ScopeDefinition `xml:"http://www.onvif.org/ver10/schema ScopeDef,omitempty"`
  2172. // Scope item URI.
  2173. ScopeItem AnyURI `xml:"http://www.onvif.org/ver10/schema ScopeItem,omitempty"`
  2174. }
  2175. // NetworkInterface type
  2176. type NetworkInterface struct {
  2177. *DeviceEntity
  2178. // Indicates whether or not an interface is enabled.
  2179. Enabled bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Enabled,omitempty"`
  2180. // Network interface information
  2181. Info NetworkInterfaceInfo `xml:"http://www.onvif.org/ver10/schema Info,omitempty"`
  2182. // Link configuration.
  2183. Link NetworkInterfaceLink `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
  2184. // IPv4 network interface configuration.
  2185. IPv4 IPv4NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
  2186. // IPv6 network interface configuration.
  2187. IPv6 IPv6NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
  2188. Extension NetworkInterfaceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2189. }
  2190. // NetworkInterfaceExtension type
  2191. type NetworkInterfaceExtension struct {
  2192. InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
  2193. // Extension point prepared for future 802.3 configuration.
  2194. Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
  2195. Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
  2196. Extension NetworkInterfaceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2197. }
  2198. // Dot3Configuration type
  2199. type Dot3Configuration struct {
  2200. }
  2201. // NetworkInterfaceExtension2 type
  2202. type NetworkInterfaceExtension2 struct {
  2203. }
  2204. // NetworkInterfaceLink type
  2205. type NetworkInterfaceLink struct {
  2206. // Configured link settings.
  2207. AdminSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema AdminSettings,omitempty"`
  2208. // Current active link settings.
  2209. OperSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema OperSettings,omitempty"`
  2210. // Integer indicating interface type, for example: 6 is ethernet.
  2211. InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
  2212. }
  2213. // NetworkInterfaceConnectionSetting type
  2214. type NetworkInterfaceConnectionSetting struct {
  2215. // Auto negotiation on/off.
  2216. AutoNegotiation bool `xml:"http://www.onvif.org/ver20/imaging/wsdl AutoNegotiation,omitempty"`
  2217. // Speed.
  2218. Speed int32 `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  2219. // Duplex type, Half or Full.
  2220. Duplex Duplex `xml:"http://www.onvif.org/ver10/schema Duplex,omitempty"`
  2221. }
  2222. // NetworkInterfaceInfo type
  2223. type NetworkInterfaceInfo struct {
  2224. // Network interface name, for example eth0.
  2225. Name string `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  2226. // Network interface MAC address.
  2227. HwAddress HwAddress `xml:"http://www.onvif.org/ver10/schema HwAddress,omitempty"`
  2228. // Maximum transmission unit.
  2229. MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
  2230. }
  2231. // IPv6NetworkInterface type
  2232. type IPv6NetworkInterface struct {
  2233. // Indicates whether or not IPv6 is enabled.
  2234. Enabled bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Enabled,omitempty"`
  2235. // IPv6 configuration.
  2236. Config IPv6Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
  2237. }
  2238. // IPv4NetworkInterface type
  2239. type IPv4NetworkInterface struct {
  2240. // Indicates whether or not IPv4 is enabled.
  2241. Enabled bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Enabled,omitempty"`
  2242. // IPv4 configuration.
  2243. Config IPv4Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
  2244. }
  2245. // IPv4Configuration type
  2246. type IPv4Configuration struct {
  2247. // List of manually added IPv4 addresses.
  2248. Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  2249. // Link local address.
  2250. LinkLocal PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
  2251. // IPv4 address configured by using DHCP.
  2252. FromDHCP PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
  2253. // Indicates whether or not DHCP is used.
  2254. DHCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl DHCP,omitempty"`
  2255. }
  2256. // IPv6Configuration type
  2257. type IPv6Configuration struct {
  2258. // Indicates whether router advertisment is used.
  2259. AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver20/imaging/wsdl AcceptRouterAdvert,omitempty"`
  2260. // DHCP configuration.
  2261. DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
  2262. // List of manually entered IPv6 addresses.
  2263. Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  2264. // List of link local IPv6 addresses.
  2265. LinkLocal []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
  2266. // List of IPv6 addresses configured by using DHCP.
  2267. FromDHCP []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
  2268. // List of IPv6 addresses configured by using router advertisment.
  2269. FromRA []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromRA,omitempty"`
  2270. Extension IPv6ConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2271. }
  2272. // IPv6ConfigurationExtension type
  2273. type IPv6ConfigurationExtension struct {
  2274. }
  2275. // NetworkProtocol type
  2276. type NetworkProtocol struct {
  2277. // Network protocol type string.
  2278. Name NetworkProtocolType `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  2279. // Indicates if the protocol is enabled or not.
  2280. Enabled bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Enabled,omitempty"`
  2281. // The port that is used by the protocol.
  2282. Port []int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
  2283. Extension NetworkProtocolExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2284. }
  2285. // NetworkProtocolExtension type
  2286. type NetworkProtocolExtension struct {
  2287. }
  2288. // NetworkHost type
  2289. type NetworkHost struct {
  2290. // Network host type: IPv4, IPv6 or DNS.
  2291. Type NetworkHostType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  2292. // IPv4 address.
  2293. IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  2294. // IPv6 address.
  2295. IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  2296. // DNS name.
  2297. DNSname DNSName `xml:"http://www.onvif.org/ver10/schema DNSname,omitempty"`
  2298. Extension NetworkHostExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2299. }
  2300. // NetworkHostExtension type
  2301. type NetworkHostExtension struct {
  2302. }
  2303. // IPAddress type
  2304. type IPAddress struct {
  2305. // Indicates if the address is an IPv4 or IPv6 address.
  2306. Type IPType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  2307. // IPv4 address.
  2308. IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  2309. // IPv6 address
  2310. IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  2311. }
  2312. // PrefixedIPv4Address type
  2313. type PrefixedIPv4Address struct {
  2314. // IPv4 address
  2315. Address IPv4Address `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  2316. // Prefix/submask length
  2317. PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
  2318. }
  2319. // PrefixedIPv6Address type
  2320. type PrefixedIPv6Address struct {
  2321. // IPv6 address
  2322. Address IPv6Address `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  2323. // Prefix/submask length
  2324. PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
  2325. }
  2326. // HostnameInformation type
  2327. type HostnameInformation struct {
  2328. // Indicates whether the hostname is obtained from DHCP or not.
  2329. FromDHCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl FromDHCP,omitempty"`
  2330. // Indicates the hostname.
  2331. Name string `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  2332. Extension HostnameInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2333. }
  2334. // HostnameInformationExtension type
  2335. type HostnameInformationExtension struct {
  2336. }
  2337. // DNSInformation type
  2338. type DNSInformation struct {
  2339. // Indicates whether or not DNS information is retrieved from DHCP.
  2340. FromDHCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl FromDHCP,omitempty"`
  2341. // Search domain.
  2342. SearchDomain []string `xml:"http://www.onvif.org/ver20/imaging/wsdl SearchDomain,omitempty"`
  2343. // List of DNS addresses received from DHCP.
  2344. DNSFromDHCP []IPAddress `xml:"http://www.onvif.org/ver10/schema DNSFromDHCP,omitempty"`
  2345. // List of manually entered DNS addresses.
  2346. DNSManual []IPAddress `xml:"http://www.onvif.org/ver10/schema DNSManual,omitempty"`
  2347. Extension DNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2348. }
  2349. // DNSInformationExtension type
  2350. type DNSInformationExtension struct {
  2351. }
  2352. // NTPInformation type
  2353. type NTPInformation struct {
  2354. // Indicates if NTP information is to be retrieved by using DHCP.
  2355. FromDHCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl FromDHCP,omitempty"`
  2356. // List of NTP addresses retrieved by using DHCP.
  2357. NTPFromDHCP []NetworkHost `xml:"http://www.onvif.org/ver10/schema NTPFromDHCP,omitempty"`
  2358. // List of manually entered NTP addresses.
  2359. NTPManual []NetworkHost `xml:"http://www.onvif.org/ver10/schema NTPManual,omitempty"`
  2360. Extension NTPInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2361. }
  2362. // NTPInformationExtension type
  2363. type NTPInformationExtension struct {
  2364. }
  2365. // DynamicDNSInformation type
  2366. type DynamicDNSInformation struct {
  2367. // Dynamic DNS type.
  2368. Type DynamicDNSType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  2369. // DNS name.
  2370. Name DNSName `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
  2371. // Time to live.
  2372. TTL Duration `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
  2373. Extension DynamicDNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2374. }
  2375. // DynamicDNSInformationExtension type
  2376. type DynamicDNSInformationExtension struct {
  2377. }
  2378. // NetworkInterfaceSetConfiguration type
  2379. type NetworkInterfaceSetConfiguration struct {
  2380. // Indicates whether or not an interface is enabled.
  2381. Enabled bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Enabled,omitempty"`
  2382. // Link configuration.
  2383. Link NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
  2384. // Maximum transmission unit.
  2385. MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
  2386. // IPv4 network interface configuration.
  2387. IPv4 IPv4NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
  2388. // IPv6 network interface configuration.
  2389. IPv6 IPv6NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
  2390. Extension NetworkInterfaceSetConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2391. }
  2392. // NetworkInterfaceSetConfigurationExtension type
  2393. type NetworkInterfaceSetConfigurationExtension struct {
  2394. Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
  2395. Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
  2396. Extension NetworkInterfaceSetConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2397. }
  2398. // IPv6NetworkInterfaceSetConfiguration type
  2399. type IPv6NetworkInterfaceSetConfiguration struct {
  2400. // Indicates whether or not IPv6 is enabled.
  2401. Enabled bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Enabled,omitempty"`
  2402. // Indicates whether router advertisment is used.
  2403. AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver20/imaging/wsdl AcceptRouterAdvert,omitempty"`
  2404. // List of manually added IPv6 addresses.
  2405. Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  2406. // DHCP configuration.
  2407. DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
  2408. }
  2409. // IPv4NetworkInterfaceSetConfiguration type
  2410. type IPv4NetworkInterfaceSetConfiguration struct {
  2411. // Indicates whether or not IPv4 is enabled.
  2412. Enabled bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Enabled,omitempty"`
  2413. // List of manually added IPv4 addresses.
  2414. Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
  2415. // Indicates whether or not DHCP is used.
  2416. DHCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl DHCP,omitempty"`
  2417. }
  2418. // NetworkZeroConfiguration type
  2419. type NetworkZeroConfiguration struct {
  2420. // Unique identifier of network interface.
  2421. InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl InterfaceToken,omitempty"`
  2422. // Indicates whether the zero-configuration is enabled or not.
  2423. Enabled bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Enabled,omitempty"`
  2424. // The zero-configuration IPv4 address(es)
  2425. Addresses []IPv4Address `xml:"http://www.onvif.org/ver10/schema Addresses,omitempty"`
  2426. Extension *NetworkZeroConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2427. }
  2428. // NetworkZeroConfigurationExtension type
  2429. type NetworkZeroConfigurationExtension struct {
  2430. // Optional array holding the configuration for the second and possibly further interfaces.
  2431. Additional []NetworkZeroConfiguration `xml:"http://www.onvif.org/ver10/schema Additional,omitempty"`
  2432. Extension NetworkZeroConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2433. }
  2434. // NetworkZeroConfigurationExtension2 type
  2435. type NetworkZeroConfigurationExtension2 struct {
  2436. }
  2437. // IPAddressFilter type
  2438. type IPAddressFilter struct {
  2439. Type IPAddressFilterType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  2440. IPv4Address []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
  2441. IPv6Address []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
  2442. Extension IPAddressFilterExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2443. }
  2444. // IPAddressFilterExtension type
  2445. type IPAddressFilterExtension struct {
  2446. }
  2447. // Dot11Configuration type
  2448. type Dot11Configuration struct {
  2449. SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
  2450. Mode Dot11StationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2451. Alias Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Alias,omitempty"`
  2452. Priority NetworkInterfaceConfigPriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  2453. Security Dot11SecurityConfiguration `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
  2454. }
  2455. // Dot11SecurityConfiguration type
  2456. type Dot11SecurityConfiguration struct {
  2457. Mode Dot11SecurityMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2458. Algorithm Dot11Cipher `xml:"http://www.onvif.org/ver10/schema Algorithm,omitempty"`
  2459. PSK Dot11PSKSet `xml:"http://www.onvif.org/ver10/schema PSK,omitempty"`
  2460. Dot1X ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl Dot1X,omitempty"`
  2461. Extension Dot11SecurityConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2462. }
  2463. // Dot11SecurityConfigurationExtension type
  2464. type Dot11SecurityConfigurationExtension struct {
  2465. }
  2466. // Dot11PSKSet type
  2467. type Dot11PSKSet struct {
  2468. //
  2469. // According to IEEE802.11-2007 H.4.1 the RSNA PSK consists of 256 bits, or 64 octets when represented in hex
  2470. // Either Key or Passphrase shall be given, if both are supplied Key shall be used by the device and Passphrase ignored.
  2471. //
  2472. Key Dot11PSK `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  2473. //
  2474. // According to IEEE802.11-2007 H.4.1 a pass-phrase is a sequence of between 8 and 63 ASCII-encoded characters and
  2475. // each character in the pass-phrase must have an encoding in the range of 32 to 126 (decimal),inclusive.
  2476. // If only Passpharse is supplied the Key shall be derived using the algorithm described in IEEE802.11-2007 section H.4
  2477. //
  2478. Passphrase Dot11PSKPassphrase `xml:"http://www.onvif.org/ver10/schema Passphrase,omitempty"`
  2479. Extension Dot11PSKSetExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2480. }
  2481. // Dot11PSKSetExtension type
  2482. type Dot11PSKSetExtension struct {
  2483. }
  2484. // NetworkInterfaceSetConfigurationExtension2 type
  2485. type NetworkInterfaceSetConfigurationExtension2 struct {
  2486. }
  2487. // Dot11AvailableNetworks type
  2488. type Dot11AvailableNetworks struct {
  2489. SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
  2490. BSSID string `xml:"http://www.onvif.org/ver20/imaging/wsdl BSSID,omitempty"`
  2491. // See IEEE802.11 7.3.2.25.2 for details.
  2492. AuthAndMangementSuite []Dot11AuthAndMangementSuite `xml:"http://www.onvif.org/ver10/schema AuthAndMangementSuite,omitempty"`
  2493. PairCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema PairCipher,omitempty"`
  2494. GroupCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema GroupCipher,omitempty"`
  2495. SignalStrength Dot11SignalStrength `xml:"http://www.onvif.org/ver10/schema SignalStrength,omitempty"`
  2496. Extension Dot11AvailableNetworksExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2497. }
  2498. // Dot11AvailableNetworksExtension type
  2499. type Dot11AvailableNetworksExtension struct {
  2500. }
  2501. /* Removed type Capabilities struct {
  2502. // Analytics capabilities
  2503. Analytics AnalyticsCapabilities `xml:"http://www.onvif.org/ver10/schema Analytics,omitempty"`
  2504. // Device capabilities
  2505. Device DeviceCapabilities `xml:"http://www.onvif.org/ver10/schema Device,omitempty"`
  2506. // Event capabilities
  2507. Events EventCapabilities `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
  2508. // Imaging capabilities
  2509. Imaging ImagingCapabilities `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
  2510. // Media capabilities
  2511. Media MediaCapabilities `xml:"http://www.onvif.org/ver10/schema Media,omitempty"`
  2512. // PTZ capabilities
  2513. PTZ PTZCapabilities `xml:"http://www.onvif.org/ver10/schema PTZ,omitempty"`
  2514. Extension CapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2515. } Removed*/
  2516. // CapabilitiesExtension type
  2517. type CapabilitiesExtension struct {
  2518. DeviceIO DeviceIOCapabilities `xml:"http://www.onvif.org/ver10/schema DeviceIO,omitempty"`
  2519. Display DisplayCapabilities `xml:"http://www.onvif.org/ver10/schema Display,omitempty"`
  2520. Recording RecordingCapabilities `xml:"http://www.onvif.org/ver10/schema Recording,omitempty"`
  2521. Search SearchCapabilities `xml:"http://www.onvif.org/ver10/schema Search,omitempty"`
  2522. Replay ReplayCapabilities `xml:"http://www.onvif.org/ver10/schema Replay,omitempty"`
  2523. Receiver ReceiverCapabilities `xml:"http://www.onvif.org/ver10/schema Receiver,omitempty"`
  2524. AnalyticsDevice AnalyticsDeviceCapabilities `xml:"http://www.onvif.org/ver10/schema AnalyticsDevice,omitempty"`
  2525. Extensions CapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extensions,omitempty"`
  2526. }
  2527. // CapabilitiesExtension2 type
  2528. type CapabilitiesExtension2 struct {
  2529. }
  2530. // AnalyticsCapabilities type
  2531. type AnalyticsCapabilities struct {
  2532. // Analytics service URI.
  2533. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2534. // Indicates whether or not rules are supported.
  2535. RuleSupport bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RuleSupport,omitempty"`
  2536. // Indicates whether or not modules are supported.
  2537. AnalyticsModuleSupport bool `xml:"http://www.onvif.org/ver20/imaging/wsdl AnalyticsModuleSupport,omitempty"`
  2538. }
  2539. // DeviceCapabilities type
  2540. type DeviceCapabilities struct {
  2541. // Device service URI.
  2542. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2543. // Network capabilities.
  2544. Network NetworkCapabilities `xml:"http://www.onvif.org/ver10/schema Network,omitempty"`
  2545. // System capabilities.
  2546. System SystemCapabilities `xml:"http://www.onvif.org/ver10/schema System,omitempty"`
  2547. // I/O capabilities.
  2548. IO IOCapabilities `xml:"http://www.onvif.org/ver10/schema IO,omitempty"`
  2549. // Security capabilities.
  2550. Security SecurityCapabilities `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
  2551. Extension DeviceCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2552. }
  2553. // DeviceCapabilitiesExtension type
  2554. type DeviceCapabilitiesExtension struct {
  2555. }
  2556. // EventCapabilities type
  2557. type EventCapabilities struct {
  2558. // Event service URI.
  2559. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2560. // Indicates whether or not WS Subscription policy is supported.
  2561. WSSubscriptionPolicySupport bool `xml:"http://www.onvif.org/ver20/imaging/wsdl WSSubscriptionPolicySupport,omitempty"`
  2562. // Indicates whether or not WS Pull Point is supported.
  2563. WSPullPointSupport bool `xml:"http://www.onvif.org/ver20/imaging/wsdl WSPullPointSupport,omitempty"`
  2564. // Indicates whether or not WS Pausable Subscription Manager Interface is supported.
  2565. WSPausableSubscriptionManagerInterfaceSupport bool `xml:"http://www.onvif.org/ver20/imaging/wsdl WSPausableSubscriptionManagerInterfaceSupport,omitempty"`
  2566. }
  2567. // IOCapabilities type
  2568. type IOCapabilities struct {
  2569. // Number of input connectors.
  2570. InputConnectors int32 `xml:"http://www.onvif.org/ver10/schema InputConnectors,omitempty"`
  2571. // Number of relay outputs.
  2572. RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
  2573. Extension IOCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2574. }
  2575. // IOCapabilitiesExtension type
  2576. type IOCapabilitiesExtension struct {
  2577. Auxiliary bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Auxiliary,omitempty"`
  2578. AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/schema AuxiliaryCommands,omitempty"`
  2579. Extension IOCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2580. }
  2581. // IOCapabilitiesExtension2 type
  2582. type IOCapabilitiesExtension2 struct {
  2583. }
  2584. // MediaCapabilities type
  2585. type MediaCapabilities struct {
  2586. // Media service URI.
  2587. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2588. // Streaming capabilities.
  2589. StreamingCapabilities RealTimeStreamingCapabilities `xml:"http://www.onvif.org/ver10/schema StreamingCapabilities,omitempty"`
  2590. Extension MediaCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2591. }
  2592. // MediaCapabilitiesExtension type
  2593. type MediaCapabilitiesExtension struct {
  2594. ProfileCapabilities ProfileCapabilities `xml:"http://www.onvif.org/ver10/schema ProfileCapabilities,omitempty"`
  2595. }
  2596. // RealTimeStreamingCapabilities type
  2597. type RealTimeStreamingCapabilities struct {
  2598. // Indicates whether or not RTP multicast is supported.
  2599. RTPMulticast bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RTPMulticast,omitempty"`
  2600. // Indicates whether or not RTP over TCP is supported.
  2601. RTP_TCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RTP_TCP,omitempty"`
  2602. // Indicates whether or not RTP/RTSP/TCP is supported.
  2603. RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RTP_RTSP_TCP,omitempty"`
  2604. Extension RealTimeStreamingCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2605. }
  2606. // RealTimeStreamingCapabilitiesExtension type
  2607. type RealTimeStreamingCapabilitiesExtension struct {
  2608. }
  2609. // ProfileCapabilities type
  2610. type ProfileCapabilities struct {
  2611. // Maximum number of profiles.
  2612. MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,omitempty"`
  2613. }
  2614. // NetworkCapabilities type
  2615. type NetworkCapabilities struct {
  2616. // Indicates whether or not IP filtering is supported.
  2617. IPFilter bool `xml:"http://www.onvif.org/ver20/imaging/wsdl IPFilter,omitempty"`
  2618. // Indicates whether or not zeroconf is supported.
  2619. ZeroConfiguration bool `xml:"http://www.onvif.org/ver20/imaging/wsdl ZeroConfiguration,omitempty"`
  2620. // Indicates whether or not IPv6 is supported.
  2621. IPVersion6 bool `xml:"http://www.onvif.org/ver20/imaging/wsdl IPVersion6,omitempty"`
  2622. // Indicates whether or not is supported.
  2623. DynDNS bool `xml:"http://www.onvif.org/ver20/imaging/wsdl DynDNS,omitempty"`
  2624. Extension NetworkCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2625. }
  2626. // NetworkCapabilitiesExtension type
  2627. type NetworkCapabilitiesExtension struct {
  2628. Dot11Configuration bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Dot11Configuration,omitempty"`
  2629. Extension NetworkCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2630. }
  2631. // NetworkCapabilitiesExtension2 type
  2632. type NetworkCapabilitiesExtension2 struct {
  2633. }
  2634. // SecurityCapabilities type
  2635. type SecurityCapabilities struct {
  2636. // Indicates whether or not TLS 1.1 is supported.
  2637. TLS11 bool `xml:"TLS1.1,omitempty"`
  2638. // Indicates whether or not TLS 1.2 is supported.
  2639. TLS12 bool `xml:"TLS1.2,omitempty"`
  2640. // Indicates whether or not onboard key generation is supported.
  2641. OnboardKeyGeneration bool `xml:"http://www.onvif.org/ver20/imaging/wsdl OnboardKeyGeneration,omitempty"`
  2642. // Indicates whether or not access policy configuration is supported.
  2643. AccessPolicyConfig bool `xml:"http://www.onvif.org/ver20/imaging/wsdl AccessPolicyConfig,omitempty"`
  2644. // Indicates whether or not WS-Security X.509 token is supported.
  2645. X509Token bool `xml:"X.509Token,omitempty"`
  2646. // Indicates whether or not WS-Security SAML token is supported.
  2647. SAMLToken bool `xml:"http://www.onvif.org/ver20/imaging/wsdl SAMLToken,omitempty"`
  2648. // Indicates whether or not WS-Security Kerberos token is supported.
  2649. KerberosToken bool `xml:"http://www.onvif.org/ver20/imaging/wsdl KerberosToken,omitempty"`
  2650. // Indicates whether or not WS-Security REL token is supported.
  2651. RELToken bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RELToken,omitempty"`
  2652. Extension SecurityCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2653. }
  2654. // SecurityCapabilitiesExtension type
  2655. type SecurityCapabilitiesExtension struct {
  2656. TLS10 bool `xml:"TLS1.0,omitempty"`
  2657. Extension SecurityCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2658. }
  2659. // SecurityCapabilitiesExtension2 type
  2660. type SecurityCapabilitiesExtension2 struct {
  2661. Dot1X bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Dot1X,omitempty"`
  2662. // EAP Methods supported by the device. The int values refer to the .
  2663. SupportedEAPMethod []int32 `xml:"http://www.onvif.org/ver10/schema SupportedEAPMethod,omitempty"`
  2664. RemoteUserHandling bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RemoteUserHandling,omitempty"`
  2665. }
  2666. // SystemCapabilities type
  2667. type SystemCapabilities struct {
  2668. // Indicates whether or not WS Discovery resolve requests are supported.
  2669. DiscoveryResolve bool `xml:"http://www.onvif.org/ver20/imaging/wsdl DiscoveryResolve,omitempty"`
  2670. // Indicates whether or not WS-Discovery Bye is supported.
  2671. DiscoveryBye bool `xml:"http://www.onvif.org/ver20/imaging/wsdl DiscoveryBye,omitempty"`
  2672. // Indicates whether or not remote discovery is supported.
  2673. RemoteDiscovery bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RemoteDiscovery,omitempty"`
  2674. // Indicates whether or not system backup is supported.
  2675. SystemBackup bool `xml:"http://www.onvif.org/ver20/imaging/wsdl SystemBackup,omitempty"`
  2676. // Indicates whether or not system logging is supported.
  2677. SystemLogging bool `xml:"http://www.onvif.org/ver20/imaging/wsdl SystemLogging,omitempty"`
  2678. // Indicates whether or not firmware upgrade is supported.
  2679. FirmwareUpgrade bool `xml:"http://www.onvif.org/ver20/imaging/wsdl FirmwareUpgrade,omitempty"`
  2680. // Indicates supported ONVIF version(s).
  2681. SupportedVersions []OnvifVersion `xml:"http://www.onvif.org/ver10/schema SupportedVersions,omitempty"`
  2682. Extension SystemCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2683. }
  2684. // SystemCapabilitiesExtension type
  2685. type SystemCapabilitiesExtension struct {
  2686. HttpFirmwareUpgrade bool `xml:"http://www.onvif.org/ver20/imaging/wsdl HttpFirmwareUpgrade,omitempty"`
  2687. HttpSystemBackup bool `xml:"http://www.onvif.org/ver20/imaging/wsdl HttpSystemBackup,omitempty"`
  2688. HttpSystemLogging bool `xml:"http://www.onvif.org/ver20/imaging/wsdl HttpSystemLogging,omitempty"`
  2689. HttpSupportInformation bool `xml:"http://www.onvif.org/ver20/imaging/wsdl HttpSupportInformation,omitempty"`
  2690. Extension SystemCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2691. }
  2692. // SystemCapabilitiesExtension2 type
  2693. type SystemCapabilitiesExtension2 struct {
  2694. }
  2695. // OnvifVersion type
  2696. type OnvifVersion struct {
  2697. // Major version number.
  2698. Major int32 `xml:"http://www.onvif.org/ver10/schema Major,omitempty"`
  2699. //
  2700. // Two digit minor version number.
  2701. // If major version number is less than "16", X.0.1 maps to "01" and X.2.1 maps to "21" where X stands for Major version number.
  2702. // Otherwise, minor number is month of release, such as "06" for June.
  2703. //
  2704. Minor int32 `xml:"http://www.onvif.org/ver10/schema Minor,omitempty"`
  2705. }
  2706. // ImagingCapabilities type
  2707. type ImagingCapabilities struct {
  2708. // Imaging service URI.
  2709. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2710. }
  2711. // PTZCapabilities type
  2712. type PTZCapabilities struct {
  2713. // PTZ service URI.
  2714. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2715. }
  2716. // DeviceIOCapabilities type
  2717. type DeviceIOCapabilities struct {
  2718. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2719. VideoSources int32 `xml:"http://www.onvif.org/ver10/schema VideoSources,omitempty"`
  2720. VideoOutputs int32 `xml:"http://www.onvif.org/ver10/schema VideoOutputs,omitempty"`
  2721. AudioSources int32 `xml:"http://www.onvif.org/ver10/schema AudioSources,omitempty"`
  2722. AudioOutputs int32 `xml:"http://www.onvif.org/ver10/schema AudioOutputs,omitempty"`
  2723. RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
  2724. }
  2725. // DisplayCapabilities type
  2726. type DisplayCapabilities struct {
  2727. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2728. // Indication that the SetLayout command supports only predefined layouts.
  2729. FixedLayout bool `xml:"http://www.onvif.org/ver20/imaging/wsdl FixedLayout,omitempty"`
  2730. }
  2731. // RecordingCapabilities type
  2732. type RecordingCapabilities struct {
  2733. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2734. ReceiverSource bool `xml:"http://www.onvif.org/ver20/imaging/wsdl ReceiverSource,omitempty"`
  2735. MediaProfileSource bool `xml:"http://www.onvif.org/ver20/imaging/wsdl MediaProfileSource,omitempty"`
  2736. DynamicRecordings bool `xml:"http://www.onvif.org/ver20/imaging/wsdl DynamicRecordings,omitempty"`
  2737. DynamicTracks bool `xml:"http://www.onvif.org/ver20/imaging/wsdl DynamicTracks,omitempty"`
  2738. MaxStringLength int32 `xml:"http://www.onvif.org/ver10/schema MaxStringLength,omitempty"`
  2739. }
  2740. // SearchCapabilities type
  2741. type SearchCapabilities struct {
  2742. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2743. MetadataSearch bool `xml:"http://www.onvif.org/ver20/imaging/wsdl MetadataSearch,omitempty"`
  2744. }
  2745. // ReplayCapabilities type
  2746. type ReplayCapabilities struct {
  2747. // The address of the replay service.
  2748. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2749. }
  2750. // ReceiverCapabilities type
  2751. type ReceiverCapabilities struct {
  2752. // The address of the receiver service.
  2753. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2754. // Indicates whether the device can receive RTP multicast streams.
  2755. RTP_Multicast bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RTP_Multicast,omitempty"`
  2756. // Indicates whether the device can receive RTP/TCP streams
  2757. RTP_TCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RTP_TCP,omitempty"`
  2758. // Indicates whether the device can receive RTP/RTSP/TCP streams.
  2759. RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RTP_RTSP_TCP,omitempty"`
  2760. // The maximum number of receivers supported by the device.
  2761. SupportedReceivers int32 `xml:"http://www.onvif.org/ver10/schema SupportedReceivers,omitempty"`
  2762. // The maximum allowed length for RTSP URIs.
  2763. MaximumRTSPURILength int32 `xml:"http://www.onvif.org/ver10/schema MaximumRTSPURILength,omitempty"`
  2764. }
  2765. // AnalyticsDeviceCapabilities type
  2766. type AnalyticsDeviceCapabilities struct {
  2767. XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
  2768. // Obsolete property.
  2769. RuleSupport bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RuleSupport,omitempty"`
  2770. Extension AnalyticsDeviceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2771. }
  2772. // AnalyticsDeviceExtension type
  2773. type AnalyticsDeviceExtension struct {
  2774. }
  2775. // BinaryData type
  2776. type BinaryData struct {
  2777. // base64 encoded binary data.
  2778. Data []byte `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  2779. ContentType string `xml:"contentType,attr,omitempty"`
  2780. }
  2781. // SystemDateTime type
  2782. type SystemDateTime struct {
  2783. // Indicates if the time is set manully or through NTP.
  2784. DateTimeType SetDateTimeType `xml:"http://www.onvif.org/ver10/schema DateTimeType,omitempty"`
  2785. // Informative indicator whether daylight savings is currently on/off.
  2786. DaylightSavings bool `xml:"http://www.onvif.org/ver20/imaging/wsdl DaylightSavings,omitempty"`
  2787. // Timezone information in Posix format.
  2788. TimeZone TimeZone `xml:"http://www.onvif.org/ver10/schema TimeZone,omitempty"`
  2789. // Current system date and time in UTC format. This field is mandatory since version 2.0.
  2790. UTCDateTime string `xml:"http://www.onvif.org/ver10/schema UTCDateTime,omitempty"`
  2791. // Date and time in local format.
  2792. LocalDateTime string `xml:"http://www.onvif.org/ver10/schema LocalDateTime,omitempty"`
  2793. Extension SystemDateTimeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2794. }
  2795. // SystemDateTimeExtension type
  2796. type SystemDateTimeExtension struct {
  2797. }
  2798. // DateTime type
  2799. type DateTime struct {
  2800. Time string `xml:"http://www.onvif.org/ver10/schema DateTime,omitempty"`
  2801. Date string `xml:"http://www.onvif.org/ver10/schema Date,omitempty"`
  2802. }
  2803. // Date type
  2804. type Date struct {
  2805. Year int32 `xml:"http://www.onvif.org/ver10/schema Year,omitempty"`
  2806. // Range is 1 to 12.
  2807. Month int32 `xml:"http://www.onvif.org/ver10/schema Month,omitempty"`
  2808. // Range is 1 to 31.
  2809. Day int32 `xml:"http://www.onvif.org/ver10/schema Day,omitempty"`
  2810. }
  2811. // Time type
  2812. type Time struct {
  2813. // Range is 0 to 23.
  2814. Hour int32 `xml:"http://www.onvif.org/ver10/schema Hour,omitempty"`
  2815. // Range is 0 to 59.
  2816. Minute int32 `xml:"http://www.onvif.org/ver10/schema Minute,omitempty"`
  2817. // Range is 0 to 61 (typically 59).
  2818. Second int32 `xml:"http://www.onvif.org/ver10/schema Second,omitempty"`
  2819. }
  2820. // TimeZone type
  2821. type TimeZone struct {
  2822. // Posix timezone string.
  2823. TZ string `xml:"http://www.onvif.org/ver20/imaging/wsdl TZ,omitempty"`
  2824. }
  2825. // User type
  2826. type User struct {
  2827. // Username string.
  2828. Username string `xml:"http://www.onvif.org/ver20/imaging/wsdl Username,omitempty"`
  2829. // Password string.
  2830. Password string `xml:"http://www.onvif.org/ver20/imaging/wsdl Password,omitempty"`
  2831. // User level string.
  2832. UserLevel UserLevel `xml:"http://www.onvif.org/ver10/schema UserLevel,omitempty"`
  2833. Extension UserExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2834. }
  2835. // UserExtension type
  2836. type UserExtension struct {
  2837. }
  2838. // CertificateGenerationParameters type
  2839. type CertificateGenerationParameters struct {
  2840. CertificateID string `xml:"http://www.onvif.org/ver20/imaging/wsdl CertificateID,omitempty"`
  2841. Subject string `xml:"http://www.onvif.org/ver20/imaging/wsdl Subject,omitempty"`
  2842. ValidNotBefore string `xml:"http://www.onvif.org/ver20/imaging/wsdl ValidNotBefore,omitempty"`
  2843. ValidNotAfter string `xml:"http://www.onvif.org/ver20/imaging/wsdl ValidNotAfter,omitempty"`
  2844. Extension CertificateGenerationParametersExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2845. }
  2846. // CertificateGenerationParametersExtension type
  2847. type CertificateGenerationParametersExtension struct {
  2848. }
  2849. // Certificate type
  2850. type Certificate struct {
  2851. // Certificate id.
  2852. CertificateID string `xml:"http://www.onvif.org/ver20/imaging/wsdl CertificateID,omitempty"`
  2853. // base64 encoded DER representation of certificate.
  2854. Certificate BinaryData `xml:"http://www.onvif.org/ver10/schema Certificate,omitempty"`
  2855. }
  2856. // CertificateInformation type
  2857. type CertificateInformation struct {
  2858. CertificateID string `xml:"http://www.onvif.org/ver20/imaging/wsdl CertificateID,omitempty"`
  2859. IssuerDN string `xml:"http://www.onvif.org/ver20/imaging/wsdl IssuerDN,omitempty"`
  2860. SubjectDN string `xml:"http://www.onvif.org/ver20/imaging/wsdl SubjectDN,omitempty"`
  2861. KeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema KeyUsage,omitempty"`
  2862. ExtendedKeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema ExtendedKeyUsage,omitempty"`
  2863. KeyLength int32 `xml:"http://www.onvif.org/ver10/schema KeyLength,omitempty"`
  2864. Version string `xml:"http://www.onvif.org/ver20/imaging/wsdl Version,omitempty"`
  2865. SerialNum string `xml:"http://www.onvif.org/ver20/imaging/wsdl SerialNum,omitempty"`
  2866. // Validity Range is from "NotBefore" to "NotAfter"; the corresponding DateTimeRange is from "From" to "Until"
  2867. SignatureAlgorithm string `xml:"http://www.onvif.org/ver20/imaging/wsdl SignatureAlgorithm,omitempty"`
  2868. Validity DateTimeRange `xml:"http://www.onvif.org/ver10/schema Validity,omitempty"`
  2869. Extension CertificateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2870. }
  2871. // CertificateUsage type
  2872. type CertificateUsage struct {
  2873. Value string
  2874. Critical bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Critical,attr,omitempty"`
  2875. }
  2876. // CertificateInformationExtension type
  2877. type CertificateInformationExtension struct {
  2878. }
  2879. // Dot1XConfiguration type
  2880. type Dot1XConfiguration struct {
  2881. Dot1XConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl Dot1XConfigurationToken,omitempty"`
  2882. Identity string `xml:"http://www.onvif.org/ver20/imaging/wsdl Identity,omitempty"`
  2883. AnonymousID string `xml:"http://www.onvif.org/ver20/imaging/wsdl AnonymousID,omitempty"`
  2884. //
  2885. // EAP Method type as defined in .
  2886. //
  2887. EAPMethod int32 `xml:"http://www.onvif.org/ver10/schema EAPMethod,omitempty"`
  2888. CACertificateID []string `xml:"http://www.onvif.org/ver20/imaging/wsdl CACertificateID,omitempty"`
  2889. EAPMethodConfiguration EAPMethodConfiguration `xml:"http://www.onvif.org/ver10/schema EAPMethodConfiguration,omitempty"`
  2890. Extension Dot1XConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2891. }
  2892. // Dot1XConfigurationExtension type
  2893. type Dot1XConfigurationExtension struct {
  2894. }
  2895. // EAPMethodConfiguration type
  2896. type EAPMethodConfiguration struct {
  2897. // Confgiuration information for TLS Method.
  2898. TLSConfiguration TLSConfiguration `xml:"http://www.onvif.org/ver10/schema TLSConfiguration,omitempty"`
  2899. // Password for those EAP Methods that require a password. The password shall never be returned on a get method.
  2900. Password string `xml:"http://www.onvif.org/ver20/imaging/wsdl Password,omitempty"`
  2901. Extension EapMethodExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2902. }
  2903. // EapMethodExtension type
  2904. type EapMethodExtension struct {
  2905. }
  2906. // TLSConfiguration type
  2907. type TLSConfiguration struct {
  2908. CertificateID string `xml:"http://www.onvif.org/ver20/imaging/wsdl CertificateID,omitempty"`
  2909. }
  2910. // RelayOutputSettings type
  2911. type RelayOutputSettings struct {
  2912. //
  2913. // 'Bistable' or 'Monostable'
  2914. //
  2915. //
  2916. Mode RelayMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  2917. // Time after which the relay returns to its idle state if it is in monostable mode. If the Mode field is set to bistable mode the value of the parameter can be ignored.
  2918. DelayTime Duration `xml:"http://www.onvif.org/ver10/schema DelayTime,omitempty"`
  2919. //
  2920. // 'open' or 'closed'
  2921. //
  2922. //
  2923. IdleState RelayIdleState `xml:"http://www.onvif.org/ver10/schema IdleState,omitempty"`
  2924. }
  2925. // RelayOutput type
  2926. type RelayOutput struct {
  2927. *DeviceEntity
  2928. Properties RelayOutputSettings `xml:"http://www.onvif.org/ver10/schema Properties,omitempty"`
  2929. }
  2930. // PTZNode type
  2931. type PTZNode struct {
  2932. *DeviceEntity
  2933. //
  2934. // A unique identifier that is used to reference PTZ Nodes.
  2935. //
  2936. Name Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  2937. //
  2938. // A list of Coordinate Systems available for the PTZ Node. For each Coordinate System, the PTZ Node MUST specify its allowed range.
  2939. //
  2940. SupportedPTZSpaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema SupportedPTZSpaces,omitempty"`
  2941. //
  2942. // All preset operations MUST be available for this PTZ Node if one preset is supported.
  2943. //
  2944. MaximumNumberOfPresets int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresets,omitempty"`
  2945. //
  2946. // A boolean operator specifying the availability of a home position. If set to true, the Home Position Operations MUST be available for this PTZ Node.
  2947. //
  2948. HomeSupported bool `xml:"http://www.onvif.org/ver20/imaging/wsdl HomeSupported,omitempty"`
  2949. //
  2950. // A list of supported Auxiliary commands. If the list is not empty, the Auxiliary Operations MUST be available for this PTZ Node.
  2951. //
  2952. AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/schema AuxiliaryCommands,omitempty"`
  2953. Extension PTZNodeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2954. //
  2955. // Indication whether the HomePosition of a Node is fixed or it can be changed via the SetHomePosition command.
  2956. //
  2957. FixedHomePosition bool `xml:"http://www.onvif.org/ver20/imaging/wsdl FixedHomePosition,attr,omitempty"`
  2958. //
  2959. // Indication whether the Node supports the geo-referenced move command.
  2960. //
  2961. GeoMove bool `xml:"http://www.onvif.org/ver20/imaging/wsdl GeoMove,attr,omitempty"`
  2962. }
  2963. // PTZNodeExtension type
  2964. type PTZNodeExtension struct {
  2965. //
  2966. // Detail of supported Preset Tour feature.
  2967. //
  2968. SupportedPresetTour PTZPresetTourSupported `xml:"http://www.onvif.org/ver10/schema SupportedPresetTour,omitempty"`
  2969. Extension PTZNodeExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2970. }
  2971. // PTZNodeExtension2 type
  2972. type PTZNodeExtension2 struct {
  2973. }
  2974. // PTZPresetTourSupported type
  2975. type PTZPresetTourSupported struct {
  2976. // Indicates number of preset tours that can be created. Required preset tour operations shall be available for this PTZ Node if one or more preset tour is supported.
  2977. MaximumNumberOfPresetTours int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresetTours,omitempty"`
  2978. // Indicates which preset tour operations are available for this PTZ Node.
  2979. PTZPresetTourOperation []PTZPresetTourOperation `xml:"http://www.onvif.org/ver10/schema PTZPresetTourOperation,omitempty"`
  2980. Extension PTZPresetTourSupportedExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  2981. }
  2982. // PTZPresetTourSupportedExtension type
  2983. type PTZPresetTourSupportedExtension struct {
  2984. }
  2985. // PTZConfiguration type
  2986. type PTZConfiguration struct {
  2987. *ConfigurationEntity
  2988. //
  2989. // A mandatory reference to the PTZ Node that the PTZ Configuration belongs to.
  2990. //
  2991. NodeToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl NodeToken,omitempty"`
  2992. //
  2993. // If the PTZ Node supports absolute Pan/Tilt movements, it shall specify one Absolute Pan/Tilt Position Space as default.
  2994. //
  2995. DefaultAbsolutePantTiltPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsolutePantTiltPositionSpace,omitempty"`
  2996. //
  2997. // If the PTZ Node supports absolute zoom movements, it shall specify one Absolute Zoom Position Space as default.
  2998. //
  2999. DefaultAbsoluteZoomPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsoluteZoomPositionSpace,omitempty"`
  3000. //
  3001. // If the PTZ Node supports relative Pan/Tilt movements, it shall specify one RelativePan/Tilt Translation Space as default.
  3002. //
  3003. DefaultRelativePanTiltTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativePanTiltTranslationSpace,omitempty"`
  3004. //
  3005. // If the PTZ Node supports relative zoom movements, it shall specify one Relative Zoom Translation Space as default.
  3006. //
  3007. DefaultRelativeZoomTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativeZoomTranslationSpace,omitempty"`
  3008. //
  3009. // If the PTZ Node supports continuous Pan/Tilt movements, it shall specify one Continuous Pan/Tilt Velocity Space as default.
  3010. //
  3011. DefaultContinuousPanTiltVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousPanTiltVelocitySpace,omitempty"`
  3012. //
  3013. // If the PTZ Node supports continuous zoom movements, it shall specify one Continuous Zoom Velocity Space as default.
  3014. //
  3015. DefaultContinuousZoomVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousZoomVelocitySpace,omitempty"`
  3016. //
  3017. // If the PTZ Node supports absolute or relative PTZ movements, it shall specify corresponding default Pan/Tilt and Zoom speeds.
  3018. //
  3019. DefaultPTZSpeed PTZSpeed `xml:"http://www.onvif.org/ver10/schema DefaultPTZSpeed,omitempty"`
  3020. //
  3021. // If the PTZ Node supports continuous movements, it shall specify a default timeout, after which the movement stops.
  3022. //
  3023. DefaultPTZTimeout Duration `xml:"http://www.onvif.org/ver10/schema DefaultPTZTimeout,omitempty"`
  3024. //
  3025. // The Pan/Tilt limits element should be present for a PTZ Node that supports an absolute Pan/Tilt. If the element is present it signals the support for configurable Pan/Tilt limits. If limits are enabled, the Pan/Tilt movements shall always stay within the specified range. The Pan/Tilt limits are disabled by setting the limits to –INF or +INF.
  3026. //
  3027. PanTiltLimits PanTiltLimits `xml:"http://www.onvif.org/ver10/schema PanTiltLimits,omitempty"`
  3028. //
  3029. // The Zoom limits element should be present for a PTZ Node that supports absolute zoom. If the element is present it signals the supports for configurable Zoom limits. If limits are enabled the zoom movements shall always stay within the specified range. The Zoom limits are disabled by settings the limits to -INF and +INF.
  3030. //
  3031. ZoomLimits ZoomLimits `xml:"http://www.onvif.org/ver10/schema ZoomLimits,omitempty"`
  3032. Extension PTZConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3033. // The optional acceleration ramp used by the device when moving.
  3034. MoveRamp int32 `xml:"http://www.onvif.org/ver10/schema MoveRamp,attr,omitempty"`
  3035. // The optional acceleration ramp used by the device when recalling presets.
  3036. PresetRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetRamp,attr,omitempty"`
  3037. // The optional acceleration ramp used by the device when executing PresetTours.
  3038. PresetTourRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetTourRamp,attr,omitempty"`
  3039. }
  3040. // PTZConfigurationExtension type
  3041. type PTZConfigurationExtension struct {
  3042. // Optional element to configure PT Control Direction related features.
  3043. PTControlDirection PTControlDirection `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
  3044. Extension PTZConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3045. }
  3046. // PTZConfigurationExtension2 type
  3047. type PTZConfigurationExtension2 struct {
  3048. }
  3049. // PTControlDirection type
  3050. type PTControlDirection struct {
  3051. // Optional element to configure related parameters for E-Flip.
  3052. EFlip EFlip `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
  3053. // Optional element to configure related parameters for reversing of PT Control Direction.
  3054. Reverse Reverse `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
  3055. Extension PTControlDirectionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3056. }
  3057. // PTControlDirectionExtension type
  3058. type PTControlDirectionExtension struct {
  3059. }
  3060. // EFlip type
  3061. type EFlip struct {
  3062. // Parameter to enable/disable E-Flip feature.
  3063. Mode EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3064. }
  3065. // Reverse type
  3066. type Reverse struct {
  3067. // Parameter to enable/disable Reverse feature.
  3068. Mode ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3069. }
  3070. // PTZConfigurationOptions type
  3071. type PTZConfigurationOptions struct {
  3072. //
  3073. // A list of supported coordinate systems including their range limitations.
  3074. //
  3075. Spaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema Spaces,omitempty"`
  3076. //
  3077. // A timeout Range within which Timeouts are accepted by the PTZ Node.
  3078. //
  3079. PTZTimeout DurationRange `xml:"http://www.onvif.org/ver10/schema PTZTimeout,omitempty"`
  3080. // Supported options for PT Direction Control.
  3081. PTControlDirection PTControlDirectionOptions `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
  3082. Extension PTZConfigurationOptions2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3083. //
  3084. // The list of acceleration ramps supported by the device. The
  3085. // smallest acceleration value corresponds to the minimal index, the
  3086. // highest acceleration corresponds to the maximum index.
  3087. //
  3088. PTZRamps IntAttrList `xml:"http://www.onvif.org/ver10/schema PTZRamps,attr,omitempty"`
  3089. }
  3090. // PTZConfigurationOptions2 type
  3091. type PTZConfigurationOptions2 struct {
  3092. }
  3093. // PTControlDirectionOptions type
  3094. type PTControlDirectionOptions struct {
  3095. // Supported options for EFlip feature.
  3096. EFlip EFlipOptions `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
  3097. // Supported options for Reverse feature.
  3098. Reverse ReverseOptions `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
  3099. Extension PTControlDirectionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3100. }
  3101. // PTControlDirectionOptionsExtension type
  3102. type PTControlDirectionOptionsExtension struct {
  3103. }
  3104. // EFlipOptions type
  3105. type EFlipOptions struct {
  3106. // Options of EFlip mode parameter.
  3107. Mode []EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3108. Extension EFlipOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3109. }
  3110. // EFlipOptionsExtension type
  3111. type EFlipOptionsExtension struct {
  3112. }
  3113. // ReverseOptions type
  3114. type ReverseOptions struct {
  3115. // Options of Reverse mode parameter.
  3116. Mode []ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3117. Extension ReverseOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3118. }
  3119. // ReverseOptionsExtension type
  3120. type ReverseOptionsExtension struct {
  3121. }
  3122. // PanTiltLimits type
  3123. type PanTiltLimits struct {
  3124. //
  3125. // A range of pan tilt limits.
  3126. //
  3127. Range Space2DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
  3128. }
  3129. // ZoomLimits type
  3130. type ZoomLimits struct {
  3131. //
  3132. // A range of zoom limit
  3133. //
  3134. Range Space1DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
  3135. }
  3136. // PTZSpaces type
  3137. type PTZSpaces struct {
  3138. //
  3139. // The Generic Pan/Tilt Position space is provided by every PTZ node that supports absolute Pan/Tilt, since it does not relate to a specific physical range.
  3140. // Instead, the range should be defined as the full range of the PTZ unit normalized to the range -1 to 1 resulting in the following space description.
  3141. //
  3142. AbsolutePanTiltPositionSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema AbsolutePanTiltPositionSpace,omitempty"`
  3143. //
  3144. // The Generic Zoom Position Space is provided by every PTZ node that supports absolute Zoom, since it does not relate to a specific physical range.
  3145. // Instead, the range should be defined as the full range of the Zoom normalized to the range 0 (wide) to 1 (tele).
  3146. // There is no assumption about how the generic zoom range is mapped to magnification, FOV or other physical zoom dimension.
  3147. //
  3148. AbsoluteZoomPositionSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema AbsoluteZoomPositionSpace,omitempty"`
  3149. //
  3150. // The Generic Pan/Tilt translation space is provided by every PTZ node that supports relative Pan/Tilt, since it does not relate to a specific physical range.
  3151. // Instead, the range should be defined as the full positive and negative translation range of the PTZ unit normalized to the range -1 to 1,
  3152. // where positive translation would mean clockwise rotation or movement in right/up direction resulting in the following space description.
  3153. //
  3154. RelativePanTiltTranslationSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema RelativePanTiltTranslationSpace,omitempty"`
  3155. //
  3156. // The Generic Zoom Translation Space is provided by every PTZ node that supports relative Zoom, since it does not relate to a specific physical range.
  3157. // Instead, the corresponding absolute range should be defined as the full positive and negative translation range of the Zoom normalized to the range -1 to1,
  3158. // where a positive translation maps to a movement in TELE direction. The translation is signed to indicate direction (negative is to wide, positive is to tele).
  3159. // There is no assumption about how the generic zoom range is mapped to magnification, FOV or other physical zoom dimension. This results in the following space description.
  3160. //
  3161. RelativeZoomTranslationSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema RelativeZoomTranslationSpace,omitempty"`
  3162. //
  3163. // The generic Pan/Tilt velocity space shall be provided by every PTZ node, since it does not relate to a specific physical range.
  3164. // Instead, the range should be defined as a range of the PTZ unit’s speed normalized to the range -1 to 1, where a positive velocity would map to clockwise
  3165. // rotation or movement in the right/up direction. A signed speed can be independently specified for the pan and tilt component resulting in the following space description.
  3166. //
  3167. ContinuousPanTiltVelocitySpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousPanTiltVelocitySpace,omitempty"`
  3168. //
  3169. // The generic zoom velocity space specifies a zoom factor velocity without knowing the underlying physical model. The range should be normalized from -1 to 1,
  3170. // where a positive velocity would map to TELE direction. A generic zoom velocity space description resembles the following.
  3171. //
  3172. ContinuousZoomVelocitySpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousZoomVelocitySpace,omitempty"`
  3173. //
  3174. // The speed space specifies the speed for a Pan/Tilt movement when moving to an absolute position or to a relative translation.
  3175. // In contrast to the velocity spaces, speed spaces do not contain any directional information. The speed of a combined Pan/Tilt
  3176. // movement is represented by a single non-negative scalar value.
  3177. //
  3178. PanTiltSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltSpeedSpace,omitempty"`
  3179. //
  3180. // The speed space specifies the speed for a Zoom movement when moving to an absolute position or to a relative translation.
  3181. // In contrast to the velocity spaces, speed spaces do not contain any directional information.
  3182. //
  3183. ZoomSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomSpeedSpace,omitempty"`
  3184. Extension PTZSpacesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3185. }
  3186. // PTZSpacesExtension type
  3187. type PTZSpacesExtension struct {
  3188. }
  3189. // Space2DDescription type
  3190. type Space2DDescription struct {
  3191. //
  3192. // A URI of coordinate systems.
  3193. //
  3194. URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
  3195. //
  3196. // A range of x-axis.
  3197. //
  3198. XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  3199. //
  3200. // A range of y-axis.
  3201. //
  3202. YRange FloatRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
  3203. }
  3204. // Space1DDescription type
  3205. type Space1DDescription struct {
  3206. //
  3207. // A URI of coordinate systems.
  3208. //
  3209. URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
  3210. //
  3211. // A range of x-axis.
  3212. //
  3213. XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
  3214. }
  3215. // PTZSpeed type
  3216. type PTZSpeed struct {
  3217. // Pan and tilt speed. The x component corresponds to pan and the y component to tilt. If omitted in a request, the current (if any) PanTilt movement should not be affected.
  3218. PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
  3219. //
  3220. // A zoom speed. If omitted in a request, the current (if any) Zoom movement should not be affected.
  3221. //
  3222. Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
  3223. }
  3224. // PTZPreset type
  3225. type PTZPreset struct {
  3226. //
  3227. // A list of preset position name.
  3228. //
  3229. Name Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  3230. //
  3231. // A list of preset position.
  3232. //
  3233. PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
  3234. Token ReferenceToken `xml:"token,attr,omitempty"`
  3235. }
  3236. // PTZPresetTourSpot type
  3237. type PTZPresetTourSpot struct {
  3238. // Detail definition of preset position of the tour spot.
  3239. PresetDetail PTZPresetTourPresetDetail `xml:"http://www.onvif.org/ver10/schema PresetDetail,omitempty"`
  3240. // Optional parameter to specify Pan/Tilt and Zoom speed on moving toward this tour spot.
  3241. Speed PTZSpeed `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3242. // Optional parameter to specify time duration of staying on this tour sport.
  3243. StayTime Duration `xml:"http://www.onvif.org/ver10/schema StayTime,omitempty"`
  3244. Extension PTZPresetTourSpotExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3245. }
  3246. // PTZPresetTourSpotExtension type
  3247. type PTZPresetTourSpotExtension struct {
  3248. }
  3249. // PTZPresetTourPresetDetail type
  3250. type PTZPresetTourPresetDetail struct {
  3251. // Option to specify the preset position with Preset Token defined in advance.
  3252. PresetToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl PresetToken,omitempty"`
  3253. // Option to specify the preset position with the home position of this PTZ Node. "False" to this parameter shall be treated as an invalid argument.
  3254. Home bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Home,omitempty"`
  3255. // Option to specify the preset position with vector of PTZ node directly.
  3256. PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
  3257. TypeExtension PTZPresetTourTypeExtension `xml:"http://www.onvif.org/ver10/schema TypeExtension,omitempty"`
  3258. }
  3259. // PTZPresetTourTypeExtension type
  3260. type PTZPresetTourTypeExtension struct {
  3261. }
  3262. // PTZPresetTourStatus type
  3263. type PTZPresetTourStatus struct {
  3264. // Indicates state of this preset tour by Idle/Touring/Paused.
  3265. State PTZPresetTourState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  3266. // Indicates a tour spot currently staying.
  3267. CurrentTourSpot PTZPresetTourSpot `xml:"http://www.onvif.org/ver10/schema CurrentTourSpot,omitempty"`
  3268. Extension PTZPresetTourStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3269. }
  3270. // PTZPresetTourStatusExtension type
  3271. type PTZPresetTourStatusExtension struct {
  3272. }
  3273. // PTZPresetTourStartingCondition type
  3274. type PTZPresetTourStartingCondition struct {
  3275. // Optional parameter to specify how many times the preset tour is recurred.
  3276. RecurringTime int32 `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
  3277. // Optional parameter to specify how long time duration the preset tour is recurred.
  3278. RecurringDuration Duration `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
  3279. // Optional parameter to choose which direction the preset tour goes. Forward shall be chosen in case it is omitted.
  3280. Direction PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
  3281. Extension PTZPresetTourStartingConditionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3282. // Execute presets in random order. If set to true and Direction is also present, Direction will be ignored and presets of the Tour will be recalled randomly.
  3283. RandomPresetOrder bool `xml:"http://www.onvif.org/ver20/imaging/wsdl RandomPresetOrder,attr,omitempty"`
  3284. }
  3285. // PTZPresetTourStartingConditionExtension type
  3286. type PTZPresetTourStartingConditionExtension struct {
  3287. }
  3288. // PTZPresetTourPresetDetailOptions type
  3289. type PTZPresetTourPresetDetailOptions struct {
  3290. // A list of available Preset Tokens for tour spots.
  3291. PresetToken []ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl PresetToken,omitempty"`
  3292. // An option to indicate Home postion for tour spots.
  3293. Home bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Home,omitempty"`
  3294. // Supported range of Pan and Tilt for tour spots.
  3295. PanTiltPositionSpace Space2DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltPositionSpace,omitempty"`
  3296. // Supported range of Zoom for a tour spot.
  3297. ZoomPositionSpace Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomPositionSpace,omitempty"`
  3298. Extension PTZPresetTourPresetDetailOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3299. }
  3300. // PTZPresetTourPresetDetailOptionsExtension type
  3301. type PTZPresetTourPresetDetailOptionsExtension struct {
  3302. }
  3303. // PTZPresetTourStartingConditionOptions type
  3304. type PTZPresetTourStartingConditionOptions struct {
  3305. // Supported range of Recurring Time.
  3306. RecurringTime IntRange `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
  3307. // Supported range of Recurring Duration.
  3308. RecurringDuration DurationRange `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
  3309. // Supported options for Direction of Preset Tour.
  3310. Direction []PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
  3311. Extension PTZPresetTourStartingConditionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3312. }
  3313. // PTZPresetTourStartingConditionOptionsExtension type
  3314. type PTZPresetTourStartingConditionOptionsExtension struct {
  3315. }
  3316. // ImagingStatus type
  3317. type ImagingStatus struct {
  3318. FocusStatus FocusStatus `xml:"http://www.onvif.org/ver10/schema FocusStatus,omitempty"`
  3319. }
  3320. // FocusStatus type
  3321. type FocusStatus struct {
  3322. //
  3323. // Status of focus position.
  3324. //
  3325. Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  3326. //
  3327. // Status of focus MoveStatus.
  3328. //
  3329. MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  3330. //
  3331. // Error status of focus.
  3332. //
  3333. Error string `xml:"http://www.onvif.org/ver20/imaging/wsdl Error,omitempty"`
  3334. }
  3335. // FocusConfiguration type
  3336. type FocusConfiguration struct {
  3337. AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
  3338. DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  3339. // Parameter to set autofocus near limit (unit: meter).
  3340. NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  3341. // Parameter to set autofocus far limit (unit: meter).
  3342. // If set to 0.0, infinity will be used.
  3343. FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  3344. }
  3345. // ImagingSettings type
  3346. type ImagingSettings struct {
  3347. // Enabled/disabled BLC mode (on/off).
  3348. BacklightCompensation BacklightCompensation `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  3349. // Image brightness (unit unspecified).
  3350. Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  3351. // Color saturation of the image (unit unspecified).
  3352. ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  3353. // Contrast of the image (unit unspecified).
  3354. Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  3355. // Exposure mode of the device.
  3356. Exposure Exposure `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  3357. // Focus configuration.
  3358. Focus FocusConfiguration `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  3359. // Infrared Cutoff Filter settings.
  3360. IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
  3361. // Sharpness of the Video image.
  3362. Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  3363. // WDR settings.
  3364. WideDynamicRange WideDynamicRange `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  3365. // White balance settings.
  3366. WhiteBalance WhiteBalance `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  3367. Extension ImagingSettingsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3368. }
  3369. // ImagingSettingsExtension type
  3370. type ImagingSettingsExtension struct {
  3371. }
  3372. // Exposure type
  3373. type Exposure struct {
  3374. //
  3375. // Exposure Mode
  3376. //
  3377. //
  3378. Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3379. //
  3380. // The exposure priority mode (low noise/framerate).
  3381. //
  3382. Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3383. //
  3384. // Rectangular exposure mask.
  3385. //
  3386. Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
  3387. //
  3388. // Minimum value of exposure time range allowed to be used by the algorithm.
  3389. //
  3390. MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  3391. //
  3392. // Maximum value of exposure time range allowed to be used by the algorithm.
  3393. //
  3394. MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  3395. //
  3396. // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
  3397. //
  3398. MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  3399. //
  3400. // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
  3401. //
  3402. MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  3403. //
  3404. // Minimum value of the iris range allowed to be used by the algorithm.
  3405. //
  3406. MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  3407. //
  3408. // Maximum value of the iris range allowed to be used by the algorithm.
  3409. //
  3410. MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  3411. //
  3412. // The fixed exposure time used by the image sensor (μs).
  3413. //
  3414. ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  3415. //
  3416. // The fixed gain used by the image sensor (dB).
  3417. //
  3418. Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  3419. //
  3420. // The fixed attenuation of input light affected by the iris (dB). 0dB maps to a fully opened iris.
  3421. //
  3422. Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  3423. }
  3424. // WideDynamicRange type
  3425. type WideDynamicRange struct {
  3426. //
  3427. // White dynamic range (on/off)
  3428. //
  3429. Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3430. //
  3431. // Optional level parameter (unitless)
  3432. //
  3433. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3434. }
  3435. // BacklightCompensation type
  3436. type BacklightCompensation struct {
  3437. // Backlight compensation mode (on/off).
  3438. Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3439. // Optional level parameter (unit unspecified).
  3440. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3441. }
  3442. // ImagingOptions type
  3443. type ImagingOptions struct {
  3444. BacklightCompensation BacklightCompensationOptions `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  3445. Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  3446. ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  3447. Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  3448. Exposure ExposureOptions `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  3449. Focus FocusOptions `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  3450. IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
  3451. Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  3452. WideDynamicRange WideDynamicRangeOptions `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  3453. WhiteBalance WhiteBalanceOptions `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  3454. }
  3455. // WideDynamicRangeOptions type
  3456. type WideDynamicRangeOptions struct {
  3457. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3458. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3459. }
  3460. // BacklightCompensationOptions type
  3461. type BacklightCompensationOptions struct {
  3462. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3463. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3464. }
  3465. // FocusOptions type
  3466. type FocusOptions struct {
  3467. AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
  3468. DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  3469. NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  3470. FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  3471. }
  3472. // ExposureOptions type
  3473. type ExposureOptions struct {
  3474. Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3475. Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3476. MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  3477. MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  3478. MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  3479. MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  3480. MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  3481. MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  3482. ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  3483. Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  3484. Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  3485. }
  3486. // WhiteBalanceOptions type
  3487. type WhiteBalanceOptions struct {
  3488. Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3489. YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
  3490. YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
  3491. }
  3492. // FocusMove type
  3493. type FocusMove struct {
  3494. //
  3495. // Parameters for the absolute focus control.
  3496. //
  3497. Absolute AbsoluteFocus `xml:"http://www.onvif.org/ver10/schema Absolute,omitempty"`
  3498. //
  3499. // Parameters for the relative focus control.
  3500. //
  3501. Relative RelativeFocus `xml:"http://www.onvif.org/ver10/schema Relative,omitempty"`
  3502. //
  3503. // Parameter for the continuous focus control.
  3504. //
  3505. Continuous ContinuousFocus `xml:"http://www.onvif.org/ver10/schema Continuous,omitempty"`
  3506. }
  3507. // AbsoluteFocus type
  3508. type AbsoluteFocus struct {
  3509. //
  3510. // Position parameter for the absolute focus control.
  3511. //
  3512. Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  3513. //
  3514. // Speed parameter for the absolute focus control.
  3515. //
  3516. Speed float32 `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3517. }
  3518. // RelativeFocus type
  3519. type RelativeFocus struct {
  3520. //
  3521. // Distance parameter for the relative focus control.
  3522. //
  3523. Distance float32 `xml:"http://www.onvif.org/ver10/schema Distance,omitempty"`
  3524. //
  3525. // Speed parameter for the relative focus control.
  3526. //
  3527. Speed float32 `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3528. }
  3529. // ContinuousFocus type
  3530. type ContinuousFocus struct {
  3531. //
  3532. // Speed parameter for the Continuous focus control.
  3533. //
  3534. Speed float32 `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3535. }
  3536. // MoveOptions type
  3537. type MoveOptions struct {
  3538. Absolute AbsoluteFocusOptions `xml:"http://www.onvif.org/ver10/schema Absolute,omitempty"`
  3539. Relative RelativeFocusOptions `xml:"http://www.onvif.org/ver10/schema Relative,omitempty"`
  3540. Continuous ContinuousFocusOptions `xml:"http://www.onvif.org/ver10/schema Continuous,omitempty"`
  3541. }
  3542. // AbsoluteFocusOptions type
  3543. type AbsoluteFocusOptions struct {
  3544. //
  3545. // Valid ranges of the position.
  3546. //
  3547. Position FloatRange `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  3548. //
  3549. // Valid ranges of the speed.
  3550. //
  3551. Speed FloatRange `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3552. }
  3553. // RelativeFocusOptions type
  3554. type RelativeFocusOptions struct {
  3555. //
  3556. // Valid ranges of the distance.
  3557. //
  3558. Distance FloatRange `xml:"http://www.onvif.org/ver10/schema Distance,omitempty"`
  3559. //
  3560. // Valid ranges of the speed.
  3561. //
  3562. Speed FloatRange `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3563. }
  3564. // ContinuousFocusOptions type
  3565. type ContinuousFocusOptions struct {
  3566. //
  3567. // Valid ranges of the speed.
  3568. //
  3569. Speed FloatRange `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3570. }
  3571. // WhiteBalance type
  3572. type WhiteBalance struct {
  3573. // Auto whitebalancing mode (auto/manual).
  3574. Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3575. // Rgain (unitless).
  3576. CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
  3577. // Bgain (unitless).
  3578. CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
  3579. }
  3580. // ImagingStatus20 type
  3581. type ImagingStatus20 struct {
  3582. //
  3583. // Status of focus.
  3584. //
  3585. FocusStatus20 FocusStatus20 `xml:"http://www.onvif.org/ver10/schema FocusStatus20,omitempty"`
  3586. Extension ImagingStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3587. }
  3588. // ImagingStatus20Extension type
  3589. type ImagingStatus20Extension struct {
  3590. }
  3591. // FocusStatus20 type
  3592. type FocusStatus20 struct {
  3593. //
  3594. // Status of focus position.
  3595. //
  3596. Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  3597. //
  3598. // Status of focus MoveStatus.
  3599. //
  3600. MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
  3601. //
  3602. // Error status of focus.
  3603. //
  3604. Error string `xml:"http://www.onvif.org/ver20/imaging/wsdl Error,omitempty"`
  3605. Extension FocusStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3606. }
  3607. // FocusStatus20Extension type
  3608. type FocusStatus20Extension struct {
  3609. }
  3610. // ImagingSettings20 type
  3611. type ImagingSettings20 struct {
  3612. // Enabled/disabled BLC mode (on/off).
  3613. BacklightCompensation BacklightCompensation20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  3614. // Image brightness (unit unspecified).
  3615. Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  3616. // Color saturation of the image (unit unspecified).
  3617. ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  3618. // Contrast of the image (unit unspecified).
  3619. Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  3620. // Exposure mode of the device.
  3621. Exposure Exposure20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  3622. // Focus configuration.
  3623. Focus FocusConfiguration20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  3624. // Infrared Cutoff Filter settings.
  3625. IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
  3626. // Sharpness of the Video image.
  3627. Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  3628. // WDR settings.
  3629. WideDynamicRange WideDynamicRange20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  3630. // White balance settings.
  3631. WhiteBalance WhiteBalance20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  3632. Extension ImagingSettingsExtension20 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3633. }
  3634. // ImagingSettingsExtension20 type
  3635. type ImagingSettingsExtension20 struct {
  3636. // Optional element to configure Image Stabilization feature.
  3637. ImageStabilization ImageStabilization `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
  3638. Extension ImagingSettingsExtension202 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3639. }
  3640. // ImagingSettingsExtension202 type
  3641. type ImagingSettingsExtension202 struct {
  3642. // An optional parameter applied to only auto mode to adjust timing of toggling Ir cut filter.
  3643. IrCutFilterAutoAdjustment []IrCutFilterAutoAdjustment `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
  3644. Extension ImagingSettingsExtension203 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3645. }
  3646. // ImagingSettingsExtension203 type
  3647. type ImagingSettingsExtension203 struct {
  3648. // Optional element to configure Image Contrast Compensation.
  3649. ToneCompensation ToneCompensation `xml:"http://www.onvif.org/ver10/schema ToneCompensation,omitempty"`
  3650. // Optional element to configure Image Defogging.
  3651. Defogging Defogging `xml:"http://www.onvif.org/ver10/schema Defogging,omitempty"`
  3652. // Optional element to configure Image Noise Reduction.
  3653. NoiseReduction NoiseReduction `xml:"http://www.onvif.org/ver10/schema NoiseReduction,omitempty"`
  3654. Extension ImagingSettingsExtension204 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3655. }
  3656. // ImagingSettingsExtension204 type
  3657. type ImagingSettingsExtension204 struct {
  3658. }
  3659. // ImageStabilization type
  3660. type ImageStabilization struct {
  3661. // Parameter to enable/disable Image Stabilization feature.
  3662. Mode ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3663. // Optional level parameter (unit unspecified)
  3664. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3665. Extension ImageStabilizationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3666. }
  3667. // ImageStabilizationExtension type
  3668. type ImageStabilizationExtension struct {
  3669. }
  3670. // IrCutFilterAutoAdjustment type
  3671. type IrCutFilterAutoAdjustment struct {
  3672. // Specifies which boundaries to automatically toggle Ir cut filter following parameters are applied to. Its options shall be chosen from tt:IrCutFilterAutoBoundaryType.
  3673. BoundaryType string `xml:"http://www.onvif.org/ver20/imaging/wsdl BoundaryType,omitempty"`
  3674. // Adjusts boundary exposure level for toggling Ir cut filter to on/off specified with unitless normalized value from +1.0 to -1.0. Zero is default and -1.0 is the darkest adjustment (Unitless).
  3675. BoundaryOffset float32 `xml:"http://www.onvif.org/ver10/schema BoundaryOffset,omitempty"`
  3676. // Delay time of toggling Ir cut filter to on/off after crossing of the boundary exposure levels.
  3677. ResponseTime Duration `xml:"http://www.onvif.org/ver10/schema ResponseTime,omitempty"`
  3678. Extension IrCutFilterAutoAdjustmentExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3679. }
  3680. // IrCutFilterAutoAdjustmentExtension type
  3681. type IrCutFilterAutoAdjustmentExtension struct {
  3682. }
  3683. // WideDynamicRange20 type
  3684. type WideDynamicRange20 struct {
  3685. // Wide dynamic range mode (on/off).
  3686. Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3687. // Optional level parameter (unit unspecified).
  3688. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3689. }
  3690. // BacklightCompensation20 type
  3691. type BacklightCompensation20 struct {
  3692. // Backlight compensation mode (on/off).
  3693. Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3694. // Optional level parameter (unit unspecified).
  3695. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3696. }
  3697. // Exposure20 type
  3698. type Exposure20 struct {
  3699. //
  3700. // Exposure Mode
  3701. //
  3702. //
  3703. Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3704. //
  3705. // The exposure priority mode (low noise/framerate).
  3706. //
  3707. Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3708. //
  3709. // Rectangular exposure mask.
  3710. //
  3711. Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
  3712. //
  3713. // Minimum value of exposure time range allowed to be used by the algorithm.
  3714. //
  3715. MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  3716. //
  3717. // Maximum value of exposure time range allowed to be used by the algorithm.
  3718. //
  3719. MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  3720. //
  3721. // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
  3722. //
  3723. MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  3724. //
  3725. // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
  3726. //
  3727. MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  3728. //
  3729. // Minimum value of the iris range allowed to be used by the algorithm. 0dB maps to a fully opened iris and positive values map to higher attenuation.
  3730. //
  3731. MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  3732. //
  3733. // Maximum value of the iris range allowed to be used by the algorithm. 0dB maps to a fully opened iris and positive values map to higher attenuation.
  3734. //
  3735. MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  3736. //
  3737. // The fixed exposure time used by the image sensor (μs).
  3738. //
  3739. ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  3740. //
  3741. // The fixed gain used by the image sensor (dB).
  3742. //
  3743. Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  3744. //
  3745. // The fixed attenuation of input light affected by the iris (dB). 0dB maps to a fully opened iris and positive values map to higher attenuation.
  3746. //
  3747. Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  3748. }
  3749. // ToneCompensation type
  3750. type ToneCompensation struct {
  3751. // Parameter to enable/disable or automatic ToneCompensation feature. Its options shall be chosen from tt:ToneCompensationMode Type.
  3752. Mode string `xml:"http://www.onvif.org/ver20/imaging/wsdl Mode,omitempty"`
  3753. // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
  3754. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3755. Extension ToneCompensationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3756. }
  3757. // ToneCompensationExtension type
  3758. type ToneCompensationExtension struct {
  3759. }
  3760. // Defogging type
  3761. type Defogging struct {
  3762. // Parameter to enable/disable or automatic Defogging feature. Its options shall be chosen from tt:DefoggingMode Type.
  3763. Mode string `xml:"http://www.onvif.org/ver20/imaging/wsdl Mode,omitempty"`
  3764. // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
  3765. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3766. Extension DefoggingExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3767. }
  3768. // DefoggingExtension type
  3769. type DefoggingExtension struct {
  3770. }
  3771. // NoiseReduction type
  3772. type NoiseReduction struct {
  3773. // Level parameter specified with unitless normalized value from 0.0 to +1.0. Level=0 means no noise reduction or minimal noise reduction.
  3774. Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3775. }
  3776. // ImagingOptions20 type
  3777. type ImagingOptions20 struct {
  3778. //
  3779. // Valid range of Backlight Compensation.
  3780. //
  3781. BacklightCompensation BacklightCompensationOptions20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
  3782. //
  3783. // Valid range of Brightness.
  3784. //
  3785. Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
  3786. //
  3787. // Valid range of Color Saturation.
  3788. //
  3789. ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
  3790. //
  3791. // Valid range of Contrast.
  3792. //
  3793. Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
  3794. //
  3795. // Valid range of Exposure.
  3796. //
  3797. Exposure ExposureOptions20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
  3798. //
  3799. // Valid range of Focus.
  3800. //
  3801. Focus FocusOptions20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
  3802. //
  3803. // Valid range of IrCutFilterModes.
  3804. //
  3805. IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
  3806. //
  3807. // Valid range of Sharpness.
  3808. //
  3809. Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
  3810. //
  3811. // Valid range of WideDynamicRange.
  3812. //
  3813. WideDynamicRange WideDynamicRangeOptions20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
  3814. //
  3815. // Valid range of WhiteBalance.
  3816. //
  3817. WhiteBalance WhiteBalanceOptions20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
  3818. Extension ImagingOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3819. }
  3820. // ImagingOptions20Extension type
  3821. type ImagingOptions20Extension struct {
  3822. // Options of parameters for Image Stabilization feature.
  3823. ImageStabilization ImageStabilizationOptions `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
  3824. Extension ImagingOptions20Extension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3825. }
  3826. // ImagingOptions20Extension2 type
  3827. type ImagingOptions20Extension2 struct {
  3828. // Options of parameters for adjustment of Ir cut filter auto mode.
  3829. IrCutFilterAutoAdjustment IrCutFilterAutoAdjustmentOptions `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
  3830. Extension ImagingOptions20Extension3 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3831. }
  3832. // ImagingOptions20Extension3 type
  3833. type ImagingOptions20Extension3 struct {
  3834. // Options of parameters for Tone Compensation feature.
  3835. ToneCompensationOptions ToneCompensationOptions `xml:"http://www.onvif.org/ver10/schema ToneCompensationOptions,omitempty"`
  3836. // Options of parameters for Defogging feature.
  3837. DefoggingOptions DefoggingOptions `xml:"http://www.onvif.org/ver10/schema DefoggingOptions,omitempty"`
  3838. // Options of parameter for Noise Reduction feature.
  3839. NoiseReductionOptions NoiseReductionOptions `xml:"http://www.onvif.org/ver10/schema NoiseReductionOptions,omitempty"`
  3840. Extension ImagingOptions20Extension4 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3841. }
  3842. // ImagingOptions20Extension4 type
  3843. type ImagingOptions20Extension4 struct {
  3844. }
  3845. // ImageStabilizationOptions type
  3846. type ImageStabilizationOptions struct {
  3847. // Supported options of Image Stabilization mode parameter.
  3848. Mode []ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3849. // Valid range of the Image Stabilization.
  3850. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3851. Extension ImageStabilizationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3852. }
  3853. // ImageStabilizationOptionsExtension type
  3854. type ImageStabilizationOptionsExtension struct {
  3855. }
  3856. // IrCutFilterAutoAdjustmentOptions type
  3857. type IrCutFilterAutoAdjustmentOptions struct {
  3858. // Supported options of boundary types for adjustment of Ir cut filter auto mode. The opptions shall be chosen from tt:IrCutFilterAutoBoundaryType.
  3859. BoundaryType []string `xml:"http://www.onvif.org/ver20/imaging/wsdl BoundaryType,omitempty"`
  3860. // Indicates whether or not boundary offset for toggling Ir cut filter is supported.
  3861. BoundaryOffset bool `xml:"http://www.onvif.org/ver20/imaging/wsdl BoundaryOffset,omitempty"`
  3862. // Supported range of delay time for toggling Ir cut filter.
  3863. ResponseTimeRange DurationRange `xml:"http://www.onvif.org/ver10/schema ResponseTimeRange,omitempty"`
  3864. Extension IrCutFilterAutoAdjustmentOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3865. }
  3866. // IrCutFilterAutoAdjustmentOptionsExtension type
  3867. type IrCutFilterAutoAdjustmentOptionsExtension struct {
  3868. }
  3869. // WideDynamicRangeOptions20 type
  3870. type WideDynamicRangeOptions20 struct {
  3871. Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3872. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3873. }
  3874. // BacklightCompensationOptions20 type
  3875. type BacklightCompensationOptions20 struct {
  3876. //
  3877. // 'ON' or 'OFF'
  3878. //
  3879. Mode []BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3880. //
  3881. // Level range of BacklightCompensation.
  3882. //
  3883. Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
  3884. }
  3885. // ExposureOptions20 type
  3886. type ExposureOptions20 struct {
  3887. //
  3888. // Exposure Mode
  3889. //
  3890. //
  3891. Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3892. //
  3893. // The exposure priority mode (low noise/framerate).
  3894. //
  3895. Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  3896. //
  3897. // Valid range of the Minimum ExposureTime.
  3898. //
  3899. MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
  3900. //
  3901. // Valid range of the Maximum ExposureTime.
  3902. //
  3903. MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
  3904. //
  3905. // Valid range of the Minimum Gain.
  3906. //
  3907. MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
  3908. //
  3909. // Valid range of the Maximum Gain.
  3910. //
  3911. MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
  3912. //
  3913. // Valid range of the Minimum Iris.
  3914. //
  3915. MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
  3916. //
  3917. // Valid range of the Maximum Iris.
  3918. //
  3919. MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
  3920. //
  3921. // Valid range of the ExposureTime.
  3922. //
  3923. ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
  3924. //
  3925. // Valid range of the Gain.
  3926. //
  3927. Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
  3928. //
  3929. // Valid range of the Iris.
  3930. //
  3931. Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
  3932. }
  3933. // MoveOptions20 type
  3934. type MoveOptions20 struct {
  3935. //
  3936. // Valid ranges for the absolute control.
  3937. //
  3938. Absolute AbsoluteFocusOptions `xml:"http://www.onvif.org/ver10/schema Absolute,omitempty"`
  3939. //
  3940. // Valid ranges for the relative control.
  3941. //
  3942. Relative RelativeFocusOptions20 `xml:"http://www.onvif.org/ver10/schema Relative,omitempty"`
  3943. //
  3944. // Valid ranges for the continuous control.
  3945. //
  3946. Continuous ContinuousFocusOptions `xml:"http://www.onvif.org/ver10/schema Continuous,omitempty"`
  3947. }
  3948. // RelativeFocusOptions20 type
  3949. type RelativeFocusOptions20 struct {
  3950. //
  3951. // Valid ranges of the distance.
  3952. //
  3953. Distance FloatRange `xml:"http://www.onvif.org/ver10/schema Distance,omitempty"`
  3954. //
  3955. // Valid ranges of the speed.
  3956. //
  3957. Speed FloatRange `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
  3958. }
  3959. // WhiteBalance20 type
  3960. type WhiteBalance20 struct {
  3961. //
  3962. // 'AUTO' or 'MANUAL'
  3963. //
  3964. Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  3965. //
  3966. // Rgain (unitless).
  3967. //
  3968. CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
  3969. //
  3970. // Bgain (unitless).
  3971. //
  3972. CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
  3973. Extension WhiteBalance20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3974. }
  3975. // WhiteBalance20Extension type
  3976. type WhiteBalance20Extension struct {
  3977. }
  3978. // FocusConfiguration20 type
  3979. type FocusConfiguration20 struct {
  3980. //
  3981. // Mode of auto focus.
  3982. //
  3983. // Note: for devices supporting both manual and auto operation at the same time manual operation may be supported even if the Mode parameter is set to Auto.
  3984. //
  3985. AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
  3986. DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  3987. // Parameter to set autofocus near limit (unit: meter).
  3988. NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  3989. // Parameter to set autofocus far limit (unit: meter).
  3990. FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  3991. Extension FocusConfiguration20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  3992. // Zero or more modes as defined in enumeration tt:AFModes.
  3993. AFMode StringAttrList `xml:"http://www.onvif.org/ver10/schema AFMode,attr,omitempty"`
  3994. }
  3995. // FocusConfiguration20Extension type
  3996. type FocusConfiguration20Extension struct {
  3997. }
  3998. // WhiteBalanceOptions20 type
  3999. type WhiteBalanceOptions20 struct {
  4000. //
  4001. // Mode of WhiteBalance.
  4002. //
  4003. //
  4004. Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4005. YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
  4006. YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
  4007. Extension WhiteBalanceOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4008. }
  4009. // WhiteBalanceOptions20Extension type
  4010. type WhiteBalanceOptions20Extension struct {
  4011. }
  4012. // FocusOptions20 type
  4013. type FocusOptions20 struct {
  4014. //
  4015. // Supported modes for auto focus.
  4016. //
  4017. //
  4018. AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
  4019. //
  4020. // Valid range of DefaultSpeed.
  4021. //
  4022. DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
  4023. //
  4024. // Valid range of NearLimit.
  4025. //
  4026. NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
  4027. //
  4028. // Valid range of FarLimit.
  4029. //
  4030. FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
  4031. Extension FocusOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4032. }
  4033. // FocusOptions20Extension type
  4034. type FocusOptions20Extension struct {
  4035. // Supported options for auto focus. Options shall be chosen from tt:AFModes.
  4036. AFModes StringAttrList `xml:"http://www.onvif.org/ver10/schema AFModes,omitempty"`
  4037. }
  4038. // ToneCompensationOptions type
  4039. type ToneCompensationOptions struct {
  4040. // Supported options for Tone Compensation mode. Its options shall be chosen from tt:ToneCompensationMode Type.
  4041. Mode []string `xml:"http://www.onvif.org/ver20/imaging/wsdl Mode,omitempty"`
  4042. // Indicates whether or not support Level parameter for Tone Compensation.
  4043. Level bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Level,omitempty"`
  4044. }
  4045. // DefoggingOptions type
  4046. type DefoggingOptions struct {
  4047. // Supported options for Defogging mode. Its options shall be chosen from tt:DefoggingMode Type.
  4048. Mode []string `xml:"http://www.onvif.org/ver20/imaging/wsdl Mode,omitempty"`
  4049. // Indicates whether or not support Level parameter for Defogging.
  4050. Level bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Level,omitempty"`
  4051. }
  4052. // NoiseReductionOptions type
  4053. type NoiseReductionOptions struct {
  4054. // Indicates whether or not support Level parameter for NoiseReduction.
  4055. Level bool `xml:"http://www.onvif.org/ver20/imaging/wsdl Level,omitempty"`
  4056. }
  4057. // MessageExtension type
  4058. type MessageExtension struct {
  4059. }
  4060. // ItemList type
  4061. type ItemList struct {
  4062. SimpleItem []struct {
  4063. // Item name.
  4064. Name string `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,attr,omitempty"`
  4065. // Item value. The type is defined in the corresponding description.
  4066. Value AnySimpleType `xml:"Value,attr,omitempty"`
  4067. } `xml:"SimpleItem,omitempty"`
  4068. ElementItem []struct {
  4069. // Item name.
  4070. Name string `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,attr,omitempty"`
  4071. } `xml:"ElementItem,omitempty"`
  4072. Extension ItemListExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4073. }
  4074. // ItemListExtension type
  4075. type ItemListExtension struct {
  4076. }
  4077. // MessageDescription type
  4078. type MessageDescription struct {
  4079. // Set of tokens producing this message. The list may only contain SimpleItemDescription items.
  4080. // The set of tokens identify the component within the WS-Endpoint, which is responsible for the producing the message.
  4081. // For analytics events the token set shall include the VideoSourceConfigurationToken, the VideoAnalyticsConfigurationToken
  4082. // and the name of the analytics module or rule.
  4083. //
  4084. Source ItemListDescription `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  4085. // Describes optional message payload parameters that may be used as key. E.g. object IDs of tracked objects are conveyed as key.
  4086. Key ItemListDescription `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
  4087. // Describes the payload of the message.
  4088. Data ItemListDescription `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
  4089. Extension MessageDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4090. // Must be set to true when the described Message relates to a property. An alternative term of "property" is a "state" in contrast to a pure event, which contains relevant information for only a single point in time.Default is false.
  4091. IsProperty bool `xml:"http://www.onvif.org/ver20/imaging/wsdl IsProperty,attr,omitempty"`
  4092. }
  4093. // MessageDescriptionExtension type
  4094. type MessageDescriptionExtension struct {
  4095. }
  4096. // ItemListDescription type
  4097. type ItemListDescription struct {
  4098. SimpleItemDescription []struct {
  4099. // Item name. Must be unique within a list.
  4100. Name string `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,attr,omitempty"`
  4101. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4102. } `xml:"SimpleItemDescription,omitempty"`
  4103. ElementItemDescription []struct {
  4104. // Item name. Must be unique within a list.
  4105. Name string `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,attr,omitempty"`
  4106. // The type of the item. The Type must reference a defined type.
  4107. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4108. } `xml:"ElementItemDescription,omitempty"`
  4109. Extension ItemListDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4110. }
  4111. // ItemListDescriptionExtension type
  4112. type ItemListDescriptionExtension struct {
  4113. }
  4114. // Polyline type
  4115. type Polyline struct {
  4116. Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
  4117. }
  4118. // AnalyticsEngineConfiguration type
  4119. type AnalyticsEngineConfiguration struct {
  4120. AnalyticsModule []Config `xml:"http://www.onvif.org/ver10/schema AnalyticsModule,omitempty"`
  4121. Extension AnalyticsEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4122. }
  4123. // AnalyticsEngineConfigurationExtension type
  4124. type AnalyticsEngineConfigurationExtension struct {
  4125. }
  4126. // RuleEngineConfiguration type
  4127. type RuleEngineConfiguration struct {
  4128. Rule []Config `xml:"http://www.onvif.org/ver10/schema Rule,omitempty"`
  4129. Extension RuleEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4130. }
  4131. // RuleEngineConfigurationExtension type
  4132. type RuleEngineConfigurationExtension struct {
  4133. }
  4134. // Config type
  4135. type Config struct {
  4136. // List of configuration parameters as defined in the correspding description.
  4137. Parameters ItemList `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
  4138. // Name of the configuration.
  4139. Name string `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,attr,omitempty"`
  4140. // The Type attribute specifies the type of rule and shall be equal to value of one of Name attributes of ConfigDescription elements returned by GetSupportedRules and GetSupportedAnalyticsModules command.
  4141. Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4142. }
  4143. // ConfigDescription type
  4144. type ConfigDescription struct {
  4145. //
  4146. // List describing the configuration parameters. The names of the parameters must be unique. If possible SimpleItems
  4147. // should be used to transport the information to ease parsing of dynamically defined messages by a client
  4148. // application.
  4149. //
  4150. Parameters ItemListDescription `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
  4151. Messages []struct {
  4152. *MessageDescription
  4153. //
  4154. // The ParentTopic labels the message (e.g. "nn:RuleEngine/LineCrossing"). The real message can extend the ParentTopic
  4155. // by for example the name of the instaniated rule (e.g. "nn:RuleEngine/LineCrossing/corssMyFirstLine").
  4156. // Even without knowing the complete topic name, the subscriber will be able to distiguish the
  4157. // messages produced by different rule instances of the same type via the Source fields of the message.
  4158. // There the name of the rule instance, which produced the message, must be listed.
  4159. //
  4160. ParentTopic string `xml:"http://www.onvif.org/ver20/imaging/wsdl ParentTopic,omitempty"`
  4161. } `xml:"Messages,omitempty"`
  4162. Extension ConfigDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4163. // The Name attribute (e.g. "tt::LineDetector") uniquely identifies the type of rule, not a type definition in a schema.
  4164. Name QName `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
  4165. // The fixed attribute signals that it is not allowed to add or remove this type of configuration.
  4166. Fixed bool `xml:"fixed,attr,omitempty"`
  4167. // The maxInstances attribute signals the maximum number of instances per configuration.
  4168. MaxInstances int32 `xml:"maxInstances,attr,omitempty"`
  4169. }
  4170. // ConfigDescriptionExtension type
  4171. type ConfigDescriptionExtension struct {
  4172. }
  4173. // SupportedRules type
  4174. type SupportedRules struct {
  4175. // Lists the location of all schemas that are referenced in the rules.
  4176. RuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema RuleContentSchemaLocation,omitempty"`
  4177. // List of rules supported by the Video Analytics configuration..
  4178. RuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema RuleDescription,omitempty"`
  4179. Extension SupportedRulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4180. }
  4181. // SupportedRulesExtension type
  4182. type SupportedRulesExtension struct {
  4183. }
  4184. // SupportedAnalyticsModules type
  4185. type SupportedAnalyticsModules struct {
  4186. // It optionally contains a list of URLs that provide the location of schema files.
  4187. // These schema files describe the types and elements used in the analytics module descriptions.
  4188. // Analytics module descriptions that reference types or elements imported from any ONVIF defined schema files
  4189. // need not explicitly list those schema files.
  4190. AnalyticsModuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleContentSchemaLocation,omitempty"`
  4191. AnalyticsModuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleDescription,omitempty"`
  4192. Extension SupportedAnalyticsModulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4193. }
  4194. // SupportedAnalyticsModulesExtension type
  4195. type SupportedAnalyticsModulesExtension struct {
  4196. }
  4197. // PolylineArray type
  4198. type PolylineArray struct {
  4199. // Contains array of Polyline
  4200. Segment []Polyline `xml:"http://www.onvif.org/ver10/schema Segment,omitempty"`
  4201. Extension PolylineArrayExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4202. }
  4203. // PolylineArrayExtension type
  4204. type PolylineArrayExtension struct {
  4205. }
  4206. // PaneLayout type
  4207. type PaneLayout struct {
  4208. // Reference to the configuration of the streaming and coding parameters.
  4209. Pane ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl Pane,omitempty"`
  4210. // Describes the location and size of the area on the monitor. The area coordinate values are espressed in normalized units [-1.0, 1.0].
  4211. Area Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
  4212. }
  4213. // Layout type
  4214. type Layout struct {
  4215. // List of panes assembling the display layout.
  4216. PaneLayout []PaneLayout `xml:"http://www.onvif.org/ver10/schema PaneLayout,omitempty"`
  4217. Extension LayoutExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4218. }
  4219. // LayoutExtension type
  4220. type LayoutExtension struct {
  4221. }
  4222. // LayoutOptions type
  4223. type LayoutOptions struct {
  4224. // Lists the possible Pane Layouts of the Video Output
  4225. PaneLayoutOptions []PaneLayoutOptions `xml:"http://www.onvif.org/ver10/schema PaneLayoutOptions,omitempty"`
  4226. Extension LayoutOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4227. }
  4228. // LayoutOptionsExtension type
  4229. type LayoutOptionsExtension struct {
  4230. }
  4231. // PaneLayoutOptions type
  4232. type PaneLayoutOptions struct {
  4233. // List of areas assembling a layout. Coordinate values are in the range [-1.0, 1.0].
  4234. Area []Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
  4235. Extension PaneOptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4236. }
  4237. // PaneOptionExtension type
  4238. type PaneOptionExtension struct {
  4239. }
  4240. // Receiver type
  4241. type Receiver struct {
  4242. // Unique identifier of the receiver.
  4243. Token ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl Token,omitempty"`
  4244. // Describes the configuration of the receiver.
  4245. Configuration ReceiverConfiguration `xml:"http://www.onvif.org/ver10/schema Configuration,omitempty"`
  4246. }
  4247. // ReceiverConfiguration type
  4248. type ReceiverConfiguration struct {
  4249. // The following connection modes are defined:
  4250. Mode ReceiverMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4251. // Details of the URI to which the receiver should connect.
  4252. MediaUri AnyURI `xml:"http://www.onvif.org/ver10/schema MediaUri,omitempty"`
  4253. // Stream connection parameters.
  4254. StreamSetup StreamSetup `xml:"http://www.onvif.org/ver10/schema StreamSetup,omitempty"`
  4255. }
  4256. // SourceReference type
  4257. type SourceReference struct {
  4258. Token ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl Token,omitempty"`
  4259. Type AnyURI `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
  4260. }
  4261. // DateTimeRange type
  4262. type DateTimeRange struct {
  4263. From string `xml:"http://www.onvif.org/ver10/schema From,omitempty"`
  4264. Until string `xml:"http://www.onvif.org/ver10/schema Until,omitempty"`
  4265. }
  4266. // SearchScope type
  4267. type SearchScope struct {
  4268. // A list of sources that are included in the scope. If this list is included, only data from one of these sources shall be searched.
  4269. IncludedSources []SourceReference `xml:"http://www.onvif.org/ver10/schema IncludedSources,omitempty"`
  4270. // A list of recordings that are included in the scope. If this list is included, only data from one of these recordings shall be searched.
  4271. IncludedRecordings []RecordingReference `xml:"http://www.onvif.org/ver10/schema IncludedRecordings,omitempty"`
  4272. // An xpath expression used to specify what recordings to search. Only those recordings with an RecordingInformation structure that matches the filter shall be searched.
  4273. RecordingInformationFilter XPathExpression `xml:"http://www.onvif.org/ver10/schema RecordingInformationFilter,omitempty"`
  4274. // Extension point
  4275. Extension SearchScopeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4276. }
  4277. // SearchScopeExtension type
  4278. type SearchScopeExtension struct {
  4279. }
  4280. // RecordingSourceInformation type
  4281. type RecordingSourceInformation struct {
  4282. //
  4283. // Identifier for the source chosen by the client that creates the structure.
  4284. // This identifier is opaque to the device. Clients may use any type of URI for this field. A device shall support at least 128 characters.
  4285. SourceId AnyURI `xml:"http://www.onvif.org/ver10/schema SourceId,omitempty"`
  4286. // Informative user readable name of the source, e.g. "Camera23". A device shall support at least 20 characters.
  4287. Name Name `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  4288. // Informative description of the physical location of the source, e.g. the coordinates on a map.
  4289. Location Description `xml:"http://www.onvif.org/ver10/schema Location,omitempty"`
  4290. // Informative description of the source.
  4291. Description Description `xml:"http://www.onvif.org/ver10/schema Description,omitempty"`
  4292. // URI provided by the service supplying data to be recorded. A device shall support at least 128 characters.
  4293. Address AnyURI `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
  4294. }
  4295. // TrackInformation type
  4296. type TrackInformation struct {
  4297. TrackToken TrackReference `xml:"http://www.onvif.org/ver10/schema TrackToken,omitempty"`
  4298. // Type of the track: "Video", "Audio" or "Metadata".
  4299. // The track shall only be able to hold data of that type.
  4300. TrackType TrackType `xml:"http://www.onvif.org/ver10/schema TrackType,omitempty"`
  4301. // Informative description of the contents of the track.
  4302. Description Description `xml:"http://www.onvif.org/ver10/schema Description,omitempty"`
  4303. // The start date and time of the oldest recorded data in the track.
  4304. DataFrom string `xml:"http://www.onvif.org/ver10/schema DataFrom,omitempty"`
  4305. // The stop date and time of the newest recorded data in the track.
  4306. DataTo string `xml:"http://www.onvif.org/ver10/schema DataTo,omitempty"`
  4307. }
  4308. // TrackAttributes type
  4309. type TrackAttributes struct {
  4310. // The basic information about the track. Note that a track may represent a single contiguous time span or consist of multiple slices.
  4311. TrackInformation TrackInformation `xml:"http://www.onvif.org/ver10/schema TrackInformation,omitempty"`
  4312. // If the track is a video track, exactly one of this structure shall be present and contain the video attributes.
  4313. VideoAttributes VideoAttributes `xml:"http://www.onvif.org/ver10/schema VideoAttributes,omitempty"`
  4314. // If the track is an audio track, exactly one of this structure shall be present and contain the audio attributes.
  4315. AudioAttributes AudioAttributes `xml:"http://www.onvif.org/ver10/schema AudioAttributes,omitempty"`
  4316. // If the track is an metadata track, exactly one of this structure shall be present and contain the metadata attributes.
  4317. MetadataAttributes MetadataAttributes `xml:"http://www.onvif.org/ver10/schema MetadataAttributes,omitempty"`
  4318. Extension TrackAttributesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4319. }
  4320. // TrackAttributesExtension type
  4321. type TrackAttributesExtension struct {
  4322. }
  4323. // VideoAttributes type
  4324. type VideoAttributes struct {
  4325. // Average bitrate in kbps.
  4326. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  4327. // The width of the video in pixels.
  4328. Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
  4329. // The height of the video in pixels.
  4330. Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
  4331. // Video encoding of the track. Use value from tt:VideoEncoding for MPEG4. Otherwise use values from tt:VideoEncodingMimeNames and .
  4332. Encoding string `xml:"http://www.onvif.org/ver20/imaging/wsdl Encoding,omitempty"`
  4333. // Average framerate in frames per second.
  4334. Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
  4335. }
  4336. // AudioAttributes type
  4337. type AudioAttributes struct {
  4338. // The bitrate in kbps.
  4339. Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
  4340. // Audio encoding of the track. Use values from tt:AudioEncoding for G711 and AAC. Otherwise use values from tt:AudioEncodingMimeNames and .
  4341. Encoding string `xml:"http://www.onvif.org/ver20/imaging/wsdl Encoding,omitempty"`
  4342. // The sample rate in kHz.
  4343. Samplerate int32 `xml:"http://www.onvif.org/ver10/schema Samplerate,omitempty"`
  4344. }
  4345. // MetadataAttributes type
  4346. type MetadataAttributes struct {
  4347. // Indicates that there can be PTZ data in the metadata track in the specified time interval.
  4348. CanContainPTZ bool `xml:"http://www.onvif.org/ver20/imaging/wsdl CanContainPTZ,omitempty"`
  4349. // Indicates that there can be analytics data in the metadata track in the specified time interval.
  4350. CanContainAnalytics bool `xml:"http://www.onvif.org/ver20/imaging/wsdl CanContainAnalytics,omitempty"`
  4351. // Indicates that there can be notifications in the metadata track in the specified time interval.
  4352. CanContainNotifications bool `xml:"http://www.onvif.org/ver20/imaging/wsdl CanContainNotifications,omitempty"`
  4353. // List of all PTZ spaces active for recording. Note that events are only recorded on position changes and the actual point of recording may not necessarily contain an event of the specified type.
  4354. PtzSpaces StringAttrList `xml:"http://www.onvif.org/ver10/schema PtzSpaces,attr,omitempty"`
  4355. }
  4356. // RecordingJobConfiguration type
  4357. type RecordingJobConfiguration struct {
  4358. // Identifies the recording to which this job shall store the received data.
  4359. RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
  4360. // The mode of the job. If it is idle, nothing shall happen. If it is active, the device shall try
  4361. // to obtain data from the receivers. A client shall use GetRecordingJobState to determine if data transfer is really taking place.
  4362. // The only valid values for Mode shall be “Idle” and “Active”.
  4363. Mode RecordingJobMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
  4364. // This shall be a non-negative number. If there are multiple recording jobs that store data to
  4365. // the same track, the device will only store the data for the recording job with the highest
  4366. // priority. The priority is specified per recording job, but the device shall determine the priority
  4367. // of each track individually. If there are two recording jobs with the same priority, the device
  4368. // shall record the data corresponding to the recording job that was activated the latest.
  4369. Priority int32 `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
  4370. // Source of the recording.
  4371. Source []RecordingJobSource `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
  4372. Extension RecordingJobConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4373. // This attribute adds an additional requirement for activating the recording job.
  4374. // If this optional field is provided the job shall only record if the schedule exists and is active.
  4375. //
  4376. ScheduleToken string `xml:"http://www.onvif.org/ver20/imaging/wsdl ScheduleToken,attr,omitempty"`
  4377. }
  4378. // RecordingJobConfigurationExtension type
  4379. type RecordingJobConfigurationExtension struct {
  4380. }
  4381. // RecordingJobSource type
  4382. type RecordingJobSource struct {
  4383. // This field shall be a reference to the source of the data. The type of the source
  4384. // is determined by the attribute Type in the SourceToken structure. If Type is
  4385. // http://www.onvif.org/ver10/schema/Receiver, the token is a ReceiverReference. In this case
  4386. // the device shall receive the data over the network. If Type is
  4387. // http://www.onvif.org/ver10/schema/Profile, the token identifies a media profile, instructing the
  4388. // device to obtain data from a profile that exists on the local device.
  4389. SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
  4390. // If this field is TRUE, and if the SourceToken is omitted, the device
  4391. // shall create a receiver object (through the receiver service) and assign the
  4392. // ReceiverReference to the SourceToken field. When retrieving the RecordingJobConfiguration
  4393. // from the device, the AutoCreateReceiver field shall never be present.
  4394. AutoCreateReceiver bool `xml:"http://www.onvif.org/ver20/imaging/wsdl AutoCreateReceiver,omitempty"`
  4395. // List of tracks associated with the recording.
  4396. Tracks []RecordingJobTrack `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
  4397. Extension RecordingJobSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4398. }
  4399. // RecordingJobSourceExtension type
  4400. type RecordingJobSourceExtension struct {
  4401. }
  4402. // RecordingJobTrack type
  4403. type RecordingJobTrack struct {
  4404. // If the received RTSP stream contains multiple tracks of the same type, the
  4405. // SourceTag differentiates between those Tracks. This field can be ignored in case of recording a local source.
  4406. SourceTag string `xml:"http://www.onvif.org/ver20/imaging/wsdl SourceTag,omitempty"`
  4407. // The destination is the tracktoken of the track to which the device shall store the
  4408. // received data.
  4409. Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
  4410. }
  4411. // RecordingJobStateInformation type
  4412. type RecordingJobStateInformation struct {
  4413. // Identification of the recording that the recording job records to.
  4414. RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
  4415. // Holds the aggregated state over the whole RecordingJobInformation structure.
  4416. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  4417. // Identifies the data source of the recording job.
  4418. Sources []RecordingJobStateSource `xml:"http://www.onvif.org/ver10/schema Sources,omitempty"`
  4419. Extension RecordingJobStateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4420. }
  4421. // RecordingJobStateInformationExtension type
  4422. type RecordingJobStateInformationExtension struct {
  4423. }
  4424. // RecordingJobStateSource type
  4425. type RecordingJobStateSource struct {
  4426. // Identifies the data source of the recording job.
  4427. SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
  4428. // Holds the aggregated state over all substructures of RecordingJobStateSource.
  4429. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  4430. // List of track items.
  4431. Tracks RecordingJobStateTracks `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
  4432. }
  4433. // RecordingJobStateTracks type
  4434. type RecordingJobStateTracks struct {
  4435. Track []RecordingJobStateTrack `xml:"http://www.onvif.org/ver10/schema Track,omitempty"`
  4436. }
  4437. // RecordingJobStateTrack type
  4438. type RecordingJobStateTrack struct {
  4439. // Identifies the track of the data source that provides the data.
  4440. SourceTag string `xml:"http://www.onvif.org/ver20/imaging/wsdl SourceTag,omitempty"`
  4441. // Indicates the destination track.
  4442. Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
  4443. // Optionally holds an implementation defined string value that describes the error.
  4444. // The string should be in the English language.
  4445. Error string `xml:"http://www.onvif.org/ver20/imaging/wsdl Error,omitempty"`
  4446. // Provides the job state of the track. The valid
  4447. // values of state shall be “Idle”, “Active” and “Error”. If state equals “Error”, the Error field may be filled in with an implementation defined value.
  4448. State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
  4449. }
  4450. // AnalyticsEngine type
  4451. type AnalyticsEngine struct {
  4452. *ConfigurationEntity
  4453. AnalyticsEngineConfiguration AnalyticsDeviceEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
  4454. }
  4455. // AnalyticsDeviceEngineConfiguration type
  4456. type AnalyticsDeviceEngineConfiguration struct {
  4457. EngineConfiguration []EngineConfiguration `xml:"http://www.onvif.org/ver10/schema EngineConfiguration,omitempty"`
  4458. Extension AnalyticsDeviceEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4459. }
  4460. // AnalyticsDeviceEngineConfigurationExtension type
  4461. type AnalyticsDeviceEngineConfigurationExtension struct {
  4462. }
  4463. // EngineConfiguration type
  4464. type EngineConfiguration struct {
  4465. VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/schema VideoAnalyticsConfiguration,omitempty"`
  4466. AnalyticsEngineInputInfo AnalyticsEngineInputInfo `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineInputInfo,omitempty"`
  4467. }
  4468. // AnalyticsEngineInputInfo type
  4469. type AnalyticsEngineInputInfo struct {
  4470. InputInfo Config `xml:"http://www.onvif.org/ver10/schema InputInfo,omitempty"`
  4471. Extension AnalyticsEngineInputInfoExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4472. }
  4473. // AnalyticsEngineInputInfoExtension type
  4474. type AnalyticsEngineInputInfoExtension struct {
  4475. }
  4476. // AnalyticsEngineInput type
  4477. type AnalyticsEngineInput struct {
  4478. *ConfigurationEntity
  4479. SourceIdentification SourceIdentification `xml:"http://www.onvif.org/ver10/schema SourceIdentification,omitempty"`
  4480. VideoInput VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema VideoInput,omitempty"`
  4481. MetadataInput MetadataInput `xml:"http://www.onvif.org/ver10/schema MetadataInput,omitempty"`
  4482. }
  4483. // SourceIdentification type
  4484. type SourceIdentification struct {
  4485. Name string `xml:"http://www.onvif.org/ver20/imaging/wsdl Name,omitempty"`
  4486. Token []ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl Token,omitempty"`
  4487. Extension SourceIdentificationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4488. }
  4489. // SourceIdentificationExtension type
  4490. type SourceIdentificationExtension struct {
  4491. }
  4492. // MetadataInput type
  4493. type MetadataInput struct {
  4494. MetadataConfig []Config `xml:"http://www.onvif.org/ver10/schema MetadataConfig,omitempty"`
  4495. Extension MetadataInputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4496. }
  4497. // MetadataInputExtension type
  4498. type MetadataInputExtension struct {
  4499. }
  4500. // ActionEngineEventPayload type
  4501. type ActionEngineEventPayload struct {
  4502. // Request Message
  4503. RequestInfo Envelope `xml:"RequestInfo,omitempty"`
  4504. // Response Message
  4505. ResponseInfo Envelope `xml:"ResponseInfo,omitempty"`
  4506. // Fault Message
  4507. Fault Fault `xml:"Fault,omitempty"`
  4508. Extension ActionEngineEventPayloadExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4509. }
  4510. // ActionEngineEventPayloadExtension type
  4511. type ActionEngineEventPayloadExtension struct {
  4512. }
  4513. // AudioClassCandidate type
  4514. type AudioClassCandidate struct {
  4515. // Indicates audio class label
  4516. Type AudioClassType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4517. // A likelihood/probability that the corresponding audio event belongs to this class. The sum of the likelihoods shall NOT exceed 1
  4518. Likelihood float32 `xml:"http://www.onvif.org/ver10/schema Likelihood,omitempty"`
  4519. }
  4520. // AudioClassDescriptor type
  4521. type AudioClassDescriptor struct {
  4522. // Array of audio class label and class probability
  4523. ClassCandidate []AudioClassCandidate `xml:"http://www.onvif.org/ver10/schema ClassCandidate,omitempty"`
  4524. Extension AudioClassDescriptorExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4525. }
  4526. // AudioClassDescriptorExtension type
  4527. type AudioClassDescriptorExtension struct {
  4528. }
  4529. // ActiveConnection type
  4530. type ActiveConnection struct {
  4531. CurrentBitrate float32 `xml:"http://www.onvif.org/ver10/schema CurrentBitrate,omitempty"`
  4532. CurrentFps float32 `xml:"http://www.onvif.org/ver10/schema CurrentFps,omitempty"`
  4533. }
  4534. // ProfileStatus type
  4535. type ProfileStatus struct {
  4536. ActiveConnections []ActiveConnection `xml:"http://www.onvif.org/ver10/schema ActiveConnections,omitempty"`
  4537. Extension ProfileStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4538. }
  4539. // ProfileStatusExtension type
  4540. type ProfileStatusExtension struct {
  4541. }
  4542. // OSDReference type
  4543. type OSDReference struct {
  4544. Value ReferenceToken
  4545. }
  4546. // OSDPosConfiguration type
  4547. type OSDPosConfiguration struct {
  4548. // For OSD position type, following are the pre-defined:
  4549. //
  4550. Type string `xml:"http://www.onvif.org/ver20/imaging/wsdl Type,omitempty"`
  4551. Pos Vector `xml:"http://www.onvif.org/ver10/schema Pos,omitempty"`
  4552. Extension OSDPosConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4553. }
  4554. // OSDPosConfigurationExtension type
  4555. type OSDPosConfigurationExtension struct {
  4556. }
  4557. // OSDColor type
  4558. type OSDColor struct {
  4559. Color Color `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
  4560. Transparent int32 `xml:"http://www.onvif.org/ver10/schema Transparent,attr,omitempty"`
  4561. }
  4562. // OSDTextConfiguration type
  4563. type OSDTextConfiguration struct {
  4564. //
  4565. // The following OSD Text Type are defined:
  4566. //
  4567. Type string `xml:"http://www.onvif.org/ver20/imaging/wsdl Type,omitempty"`
  4568. //
  4569. // List of supported OSD date formats. This element shall be present when the value of Type field has Date or DateAndTime. The following DateFormat are defined:
  4570. //
  4571. DateFormat string `xml:"http://www.onvif.org/ver20/imaging/wsdl DateFormat,omitempty"`
  4572. //
  4573. // List of supported OSD time formats. This element shall be present when the value of Type field has Time or DateAndTime. The following TimeFormat are defined:
  4574. //
  4575. TimeFormat string `xml:"http://www.onvif.org/ver20/imaging/wsdl TimeFormat,omitempty"`
  4576. // Font size of the text in pt.
  4577. FontSize int32 `xml:"http://www.onvif.org/ver10/schema FontSize,omitempty"`
  4578. // Font color of the text.
  4579. FontColor OSDColor `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
  4580. // Background color of the text.
  4581. BackgroundColor OSDColor `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
  4582. // The content of text to be displayed.
  4583. PlainText string `xml:"http://www.onvif.org/ver20/imaging/wsdl PlainText,omitempty"`
  4584. Extension OSDTextConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4585. // This flag is applicable for Type Plain and defaults to true. When set to false the PlainText content will not be persistent across device reboots.
  4586. IsPersistentText bool `xml:"http://www.onvif.org/ver20/imaging/wsdl IsPersistentText,attr,omitempty"`
  4587. }
  4588. // OSDTextConfigurationExtension type
  4589. type OSDTextConfigurationExtension struct {
  4590. }
  4591. // OSDImgConfiguration type
  4592. type OSDImgConfiguration struct {
  4593. // The URI of the image which to be displayed.
  4594. ImgPath AnyURI `xml:"http://www.onvif.org/ver10/schema ImgPath,omitempty"`
  4595. Extension OSDImgConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4596. }
  4597. // OSDImgConfigurationExtension type
  4598. type OSDImgConfigurationExtension struct {
  4599. }
  4600. // ColorspaceRange type
  4601. type ColorspaceRange struct {
  4602. X FloatRange `xml:"http://www.onvif.org/ver10/schema X,omitempty"`
  4603. Y FloatRange `xml:"http://www.onvif.org/ver10/schema Y,omitempty"`
  4604. Z FloatRange `xml:"http://www.onvif.org/ver10/schema Z,omitempty"`
  4605. //
  4606. // Acceptable values are the same as in tt:Color.
  4607. //
  4608. Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,omitempty"`
  4609. }
  4610. // ColorOptions type
  4611. type ColorOptions struct {
  4612. // List the supported color.
  4613. ColorList []Color `xml:"http://www.onvif.org/ver10/schema ColorList,omitempty"`
  4614. // Define the range of color supported.
  4615. ColorspaceRange []ColorspaceRange `xml:"http://www.onvif.org/ver10/schema ColorspaceRange,omitempty"`
  4616. }
  4617. // OSDColorOptions type
  4618. type OSDColorOptions struct {
  4619. // Optional list of supported colors.
  4620. Color ColorOptions `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
  4621. // Range of the transparent level. Larger means more tranparent.
  4622. Transparent IntRange `xml:"http://www.onvif.org/ver10/schema Transparent,omitempty"`
  4623. Extension OSDColorOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4624. }
  4625. // OSDColorOptionsExtension type
  4626. type OSDColorOptionsExtension struct {
  4627. }
  4628. // OSDTextOptions type
  4629. type OSDTextOptions struct {
  4630. // List of supported OSD text type. When a device indicates the supported number relating to Text type in MaximumNumberOfOSDs, the type shall be presented.
  4631. Type []string `xml:"http://www.onvif.org/ver20/imaging/wsdl Type,omitempty"`
  4632. // Range of the font size value.
  4633. FontSizeRange IntRange `xml:"http://www.onvif.org/ver10/schema FontSizeRange,omitempty"`
  4634. // List of supported date format.
  4635. DateFormat []string `xml:"http://www.onvif.org/ver20/imaging/wsdl DateFormat,omitempty"`
  4636. // List of supported time format.
  4637. TimeFormat []string `xml:"http://www.onvif.org/ver20/imaging/wsdl TimeFormat,omitempty"`
  4638. // List of supported font color.
  4639. FontColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
  4640. // List of supported background color.
  4641. BackgroundColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
  4642. Extension OSDTextOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4643. }
  4644. // OSDTextOptionsExtension type
  4645. type OSDTextOptionsExtension struct {
  4646. }
  4647. // OSDImgOptions type
  4648. type OSDImgOptions struct {
  4649. // List of available image URIs.
  4650. ImagePath []AnyURI `xml:"http://www.onvif.org/ver10/schema ImagePath,omitempty"`
  4651. Extension OSDImgOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4652. // List of supported image MIME types, such as "image/png".
  4653. FormatsSupported StringAttrList `xml:"http://www.onvif.org/ver10/schema FormatsSupported,attr,omitempty"`
  4654. // The maximum size (in bytes) of the image that can be uploaded.
  4655. MaxSize int32 `xml:"http://www.onvif.org/ver10/schema MaxSize,attr,omitempty"`
  4656. // The maximum width (in pixels) of the image that can be uploaded.
  4657. MaxWidth int32 `xml:"http://www.onvif.org/ver10/schema MaxWidth,attr,omitempty"`
  4658. // The maximum height (in pixels) of the image that can be uploaded.
  4659. MaxHeight int32 `xml:"http://www.onvif.org/ver10/schema MaxHeight,attr,omitempty"`
  4660. }
  4661. // OSDImgOptionsExtension type
  4662. type OSDImgOptionsExtension struct {
  4663. }
  4664. // OSDConfiguration type
  4665. type OSDConfiguration struct {
  4666. *DeviceEntity
  4667. // Reference to the video source configuration.
  4668. VideoSourceConfigurationToken OSDReference `xml:"http://www.onvif.org/ver10/schema VideoSourceConfigurationToken,omitempty"`
  4669. // Type of OSD.
  4670. Type OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4671. // Position configuration of OSD.
  4672. Position OSDPosConfiguration `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
  4673. // Text configuration of OSD. It shall be present when the value of Type field is Text.
  4674. TextString OSDTextConfiguration `xml:"http://www.onvif.org/ver10/schema TextString,omitempty"`
  4675. // Image configuration of OSD. It shall be present when the value of Type field is Image
  4676. Image OSDImgConfiguration `xml:"http://www.onvif.org/ver10/schema Image,omitempty"`
  4677. Extension OSDConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4678. }
  4679. // OSDConfigurationExtension type
  4680. type OSDConfigurationExtension struct {
  4681. }
  4682. // MaximumNumberOfOSDs type
  4683. type MaximumNumberOfOSDs struct {
  4684. Total int32 `xml:"http://www.onvif.org/ver10/schema Total,attr,omitempty"`
  4685. Image int32 `xml:"http://www.onvif.org/ver10/schema Image,attr,omitempty"`
  4686. PlainText int32 `xml:"http://www.onvif.org/ver10/schema PlainText,attr,omitempty"`
  4687. Date int32 `xml:"http://www.onvif.org/ver10/schema Date,attr,omitempty"`
  4688. Time int32 `xml:"http://www.onvif.org/ver10/schema DateTime,attr,omitempty"`
  4689. DateAndTime int32 `xml:"http://www.onvif.org/ver10/schema DateAndTime,attr,omitempty"`
  4690. }
  4691. // OSDConfigurationOptions type
  4692. type OSDConfigurationOptions struct {
  4693. // The maximum number of OSD configurations supported for the specified video source configuration. If the configuration does not support OSDs, this value shall be zero and the Type and PositionOption elements are ignored. If a device limits the number of instances by OSDType, it shall indicate the supported number for each type via the related attribute.
  4694. MaximumNumberOfOSDs MaximumNumberOfOSDs `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfOSDs,omitempty"`
  4695. // List supported type of OSD configuration. When a device indicates the supported number for each types in MaximumNumberOfOSDs, related type shall be presented. A device shall return Option element relating to listed type.
  4696. Type []OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
  4697. // List available OSD position type. Following are the pre-defined:
  4698. //
  4699. PositionOption []string `xml:"http://www.onvif.org/ver20/imaging/wsdl PositionOption,omitempty"`
  4700. // Option of the OSD text configuration. This element shall be returned if the device is signaling the support for Text.
  4701. TextOption OSDTextOptions `xml:"http://www.onvif.org/ver10/schema TextOption,omitempty"`
  4702. // Option of the OSD image configuration. This element shall be returned if the device is signaling the support for Image.
  4703. ImageOption OSDImgOptions `xml:"http://www.onvif.org/ver10/schema ImageOption,omitempty"`
  4704. Extension OSDConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4705. }
  4706. // OSDConfigurationOptionsExtension type
  4707. type OSDConfigurationOptionsExtension struct {
  4708. }
  4709. // FileProgress type
  4710. type FileProgress struct {
  4711. // Exported file name
  4712. FileName string `xml:"http://www.onvif.org/ver20/imaging/wsdl FileName,omitempty"`
  4713. // Normalized percentage completion for uploading the exported file
  4714. Progress float32 `xml:"http://www.onvif.org/ver10/schema Progress,omitempty"`
  4715. }
  4716. // ArrayOfFileProgress type
  4717. type ArrayOfFileProgress struct {
  4718. // Exported file name and export progress information
  4719. FileProgress []FileProgress `xml:"http://www.onvif.org/ver10/schema FileProgress,omitempty"`
  4720. Extension ArrayOfFileProgressExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4721. }
  4722. // ArrayOfFileProgressExtension type
  4723. type ArrayOfFileProgressExtension struct {
  4724. }
  4725. // StorageReferencePath type
  4726. type StorageReferencePath struct {
  4727. // identifier of an existing Storage Configuration.
  4728. StorageToken ReferenceToken `xml:"http://www.onvif.org/ver20/imaging/wsdl StorageToken,omitempty"`
  4729. // gives the relative directory path on the storage
  4730. RelativePath string `xml:"http://www.onvif.org/ver20/imaging/wsdl RelativePath,omitempty"`
  4731. Extension StorageReferencePathExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
  4732. }
  4733. // StorageReferencePathExtension type
  4734. type StorageReferencePathExtension struct {
  4735. }
  4736. // ImagingPort type
  4737. type ImagingPort interface {
  4738. /* Returns the capabilities of the imaging service. The result is returned in a typed answer. */
  4739. GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
  4740. GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
  4741. /* Get the ImagingConfiguration for the requested VideoSource. */
  4742. GetImagingSettings(request *GetImagingSettings) (*GetImagingSettingsResponse, error)
  4743. GetImagingSettingsContext(ctx context.Context, request *GetImagingSettings) (*GetImagingSettingsResponse, error)
  4744. /* Set the ImagingConfiguration for the requested VideoSource. */
  4745. SetImagingSettings(request *SetImagingSettings) (*SetImagingSettingsResponse, error)
  4746. SetImagingSettingsContext(ctx context.Context, request *SetImagingSettings) (*SetImagingSettingsResponse, error)
  4747. /* This operation gets the valid ranges for the imaging parameters that have device specific ranges.
  4748. This command is mandatory for all device implementing the imaging service. The command returns all supported parameters and their ranges
  4749. such that these can be applied to the SetImagingSettings command.
  4750. For read-only parameters which cannot be modified via the SetImagingSettings command only a single option or identical Min and Max values
  4751. is provided. */
  4752. GetOptions(request *GetOptions) (*GetOptionsResponse, error)
  4753. GetOptionsContext(ctx context.Context, request *GetOptions) (*GetOptionsResponse, error)
  4754. /* The Move command moves the focus lens in an absolute, a relative or in a continuous manner from its current position.
  4755. The speed argument is optional for absolute and relative control, but required for continuous. If no speed argument is used, the default speed is used.
  4756. Focus adjustments through this operation will turn off the autofocus. A device with support for remote focus control should support absolute,
  4757. relative or continuous control through the Move operation. The supported MoveOpions are signalled via the GetMoveOptions command.
  4758. At least one focus control capability is required for this operation to be functional.
  4759. The move operation contains the following commands:
  4760. – Requires position parameter and optionally takes a speed argument. A unitless type is used by default for focus positioning and speed. Optionally, if supported, the position may be requested in m-1 units.
  4761. – Requires distance parameter and optionally takes a speed argument. Negative distance means negative direction.
  4762. – Requires a speed argument. Negative speed argument means negative direction.
  4763. */
  4764. Move(request *Move) (*MoveResponse, error)
  4765. MoveContext(ctx context.Context, request *Move) (*MoveResponse, error)
  4766. /* Imaging move operation options supported for the Video source. */
  4767. GetMoveOptions(request *GetMoveOptions) (*GetMoveOptionsResponse, error)
  4768. GetMoveOptionsContext(ctx context.Context, request *GetMoveOptions) (*GetMoveOptionsResponse, error)
  4769. /* The Stop command stops all ongoing focus movements of the lense. A device with support for remote focus control as signalled via
  4770. the GetMoveOptions supports this command. The operation will not affect ongoing autofocus operation. */
  4771. Stop(request *Stop) (*StopResponse, error)
  4772. StopContext(ctx context.Context, request *Stop) (*StopResponse, error)
  4773. /* Via this command the current status of the Move operation can be requested. Supported for this command is available if the support for the Move operation is signalled via GetMoveOptions. */
  4774. GetStatus(request *GetStatus) (*GetStatusResponse, error)
  4775. GetStatusContext(ctx context.Context, request *GetStatus) (*GetStatusResponse, error)
  4776. /* Via this command the list of available Imaging Presets can be requested. */
  4777. GetPresets(request *GetPresets) (*GetPresetsResponse, error)
  4778. GetPresetsContext(ctx context.Context, request *GetPresets) (*GetPresetsResponse, error)
  4779. /* Via this command the last Imaging Preset applied can be requested.
  4780. If the camera configuration does not match any of the existing Imaging Presets, the output of GetCurrentPreset shall be Empty.
  4781. GetCurrentPreset shall return 0 if Imaging Presets are not supported by the Video Source. */
  4782. GetCurrentPreset(request *GetCurrentPreset) (*GetCurrentPresetResponse, error)
  4783. GetCurrentPresetContext(ctx context.Context, request *GetCurrentPreset) (*GetCurrentPresetResponse, error)
  4784. /* The SetCurrentPreset command shall request a given Imaging Preset to be applied to the specified Video Source.
  4785. SetCurrentPreset shall only be available for Video Sources with Imaging Presets Capability.
  4786. Imaging Presets are defined by the Manufacturer, and offered as a tool to simplify Imaging Settings adjustments for specific scene content.
  4787. When the new Imaging Preset is applied by SetCurrentPreset, the Device shall adjust the Video Source settings to match those defined by the specified Imaging Preset. */
  4788. SetCurrentPreset(request *SetCurrentPreset) (*SetCurrentPresetResponse, error)
  4789. SetCurrentPresetContext(ctx context.Context, request *SetCurrentPreset) (*SetCurrentPresetResponse, error)
  4790. }
  4791. // imagingPort type
  4792. type imagingPort struct {
  4793. client *soap.Client
  4794. xaddr string
  4795. }
  4796. func NewImagingPort(client *soap.Client, xaddr string) ImagingPort {
  4797. return &imagingPort{
  4798. client: client,
  4799. xaddr: xaddr,
  4800. }
  4801. }
  4802. func (service *imagingPort) GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
  4803. response := new(GetServiceCapabilitiesResponse)
  4804. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/GetServiceCapabilities", request, response)
  4805. if err != nil {
  4806. return nil, err
  4807. }
  4808. return response, nil
  4809. }
  4810. func (service *imagingPort) GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
  4811. return service.GetServiceCapabilitiesContext(
  4812. context.Background(),
  4813. request,
  4814. )
  4815. }
  4816. func (service *imagingPort) GetImagingSettingsContext(ctx context.Context, request *GetImagingSettings) (*GetImagingSettingsResponse, error) {
  4817. response := new(GetImagingSettingsResponse)
  4818. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/GetImagingSettings", request, response)
  4819. if err != nil {
  4820. return nil, err
  4821. }
  4822. return response, nil
  4823. }
  4824. func (service *imagingPort) GetImagingSettings(request *GetImagingSettings) (*GetImagingSettingsResponse, error) {
  4825. return service.GetImagingSettingsContext(
  4826. context.Background(),
  4827. request,
  4828. )
  4829. }
  4830. func (service *imagingPort) SetImagingSettingsContext(ctx context.Context, request *SetImagingSettings) (*SetImagingSettingsResponse, error) {
  4831. response := new(SetImagingSettingsResponse)
  4832. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/SetImagingSettings", request, response)
  4833. if err != nil {
  4834. return nil, err
  4835. }
  4836. return response, nil
  4837. }
  4838. func (service *imagingPort) SetImagingSettings(request *SetImagingSettings) (*SetImagingSettingsResponse, error) {
  4839. return service.SetImagingSettingsContext(
  4840. context.Background(),
  4841. request,
  4842. )
  4843. }
  4844. func (service *imagingPort) GetOptionsContext(ctx context.Context, request *GetOptions) (*GetOptionsResponse, error) {
  4845. response := new(GetOptionsResponse)
  4846. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/GetOptions", request, response)
  4847. if err != nil {
  4848. return nil, err
  4849. }
  4850. return response, nil
  4851. }
  4852. func (service *imagingPort) GetOptions(request *GetOptions) (*GetOptionsResponse, error) {
  4853. return service.GetOptionsContext(
  4854. context.Background(),
  4855. request,
  4856. )
  4857. }
  4858. func (service *imagingPort) MoveContext(ctx context.Context, request *Move) (*MoveResponse, error) {
  4859. response := new(MoveResponse)
  4860. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/Move", request, response)
  4861. if err != nil {
  4862. return nil, err
  4863. }
  4864. return response, nil
  4865. }
  4866. func (service *imagingPort) Move(request *Move) (*MoveResponse, error) {
  4867. return service.MoveContext(
  4868. context.Background(),
  4869. request,
  4870. )
  4871. }
  4872. func (service *imagingPort) GetMoveOptionsContext(ctx context.Context, request *GetMoveOptions) (*GetMoveOptionsResponse, error) {
  4873. response := new(GetMoveOptionsResponse)
  4874. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/GetMoveOptions", request, response)
  4875. if err != nil {
  4876. return nil, err
  4877. }
  4878. return response, nil
  4879. }
  4880. func (service *imagingPort) GetMoveOptions(request *GetMoveOptions) (*GetMoveOptionsResponse, error) {
  4881. return service.GetMoveOptionsContext(
  4882. context.Background(),
  4883. request,
  4884. )
  4885. }
  4886. func (service *imagingPort) StopContext(ctx context.Context, request *Stop) (*StopResponse, error) {
  4887. response := new(StopResponse)
  4888. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/Stop", request, response)
  4889. if err != nil {
  4890. return nil, err
  4891. }
  4892. return response, nil
  4893. }
  4894. func (service *imagingPort) Stop(request *Stop) (*StopResponse, error) {
  4895. return service.StopContext(
  4896. context.Background(),
  4897. request,
  4898. )
  4899. }
  4900. func (service *imagingPort) GetStatusContext(ctx context.Context, request *GetStatus) (*GetStatusResponse, error) {
  4901. response := new(GetStatusResponse)
  4902. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/GetStatus", request, response)
  4903. if err != nil {
  4904. return nil, err
  4905. }
  4906. return response, nil
  4907. }
  4908. func (service *imagingPort) GetStatus(request *GetStatus) (*GetStatusResponse, error) {
  4909. return service.GetStatusContext(
  4910. context.Background(),
  4911. request,
  4912. )
  4913. }
  4914. func (service *imagingPort) GetPresetsContext(ctx context.Context, request *GetPresets) (*GetPresetsResponse, error) {
  4915. response := new(GetPresetsResponse)
  4916. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/GetPresets", request, response)
  4917. if err != nil {
  4918. return nil, err
  4919. }
  4920. return response, nil
  4921. }
  4922. func (service *imagingPort) GetPresets(request *GetPresets) (*GetPresetsResponse, error) {
  4923. return service.GetPresetsContext(
  4924. context.Background(),
  4925. request,
  4926. )
  4927. }
  4928. func (service *imagingPort) GetCurrentPresetContext(ctx context.Context, request *GetCurrentPreset) (*GetCurrentPresetResponse, error) {
  4929. response := new(GetCurrentPresetResponse)
  4930. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/GetCurrentPreset", request, response)
  4931. if err != nil {
  4932. return nil, err
  4933. }
  4934. return response, nil
  4935. }
  4936. func (service *imagingPort) GetCurrentPreset(request *GetCurrentPreset) (*GetCurrentPresetResponse, error) {
  4937. return service.GetCurrentPresetContext(
  4938. context.Background(),
  4939. request,
  4940. )
  4941. }
  4942. func (service *imagingPort) SetCurrentPresetContext(ctx context.Context, request *SetCurrentPreset) (*SetCurrentPresetResponse, error) {
  4943. response := new(SetCurrentPresetResponse)
  4944. err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver20/imaging/wsdl/SetCurrentPreset", request, response)
  4945. if err != nil {
  4946. return nil, err
  4947. }
  4948. return response, nil
  4949. }
  4950. func (service *imagingPort) SetCurrentPreset(request *SetCurrentPreset) (*SetCurrentPresetResponse, error) {
  4951. return service.SetCurrentPresetContext(
  4952. context.Background(),
  4953. request,
  4954. )
  4955. }
  4956. // AnyURI type
  4957. type AnyURI string
  4958. // Duration type
  4959. type Duration string
  4960. // QName type
  4961. type QName string
  4962. // NCName type
  4963. type NCName string
  4964. // AnySimpleType type
  4965. type AnySimpleType string
  4966. // String type
  4967. type String string