analytics.go 229 KB

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