| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327 |
- package devicemgmt
- import (
- "context"
- "encoding/xml"
- "time"
- "lc/common/onvif/soap"
- )
- // against "unused imports"
- var _ time.Time
- var _ xml.Name
- // EAPMethodTypes type
- type EAPMethodTypes []int32
- // AutoGeoModes type
- type AutoGeoModes string
- const (
- // Automatic adjustment of the device location.
- // AutoGeoModesLocation const
- AutoGeoModesLocation AutoGeoModes = "Location"
- // Automatic adjustment of the device orientation relative to the compass also called yaw.
- // AutoGeoModesHeading const
- AutoGeoModesHeading AutoGeoModes = "Heading"
- // Automatic adjustment of the deviation from the horizon also called pitch and roll.
- // AutoGeoModesLeveling const
- AutoGeoModesLeveling AutoGeoModes = "Leveling"
- )
- // StorageType type
- type StorageType string
- const (
- // NFS protocol
- // StorageTypeNFS const
- StorageTypeNFS StorageType = "NFS"
- // CIFS protocol
- // StorageTypeCIFS const
- StorageTypeCIFS StorageType = "CIFS"
- // CDMI protocol
- // StorageTypeCDMI const
- StorageTypeCDMI StorageType = "CDMI"
- // FTP protocol
- // StorageTypeFTP const
- StorageTypeFTP StorageType = "FTP"
- )
- // GetServices type
- type GetServices struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetServices"`
- // Indicates if the service capabilities (untyped) should be included in the response.
- IncludeCapability bool `xml:"http://www.onvif.org/ver10/device/wsdl IncludeCapability"`
- }
- // GetServicesResponse type
- type GetServicesResponse struct {
- XMLName xml.Name `xml:"GetServicesResponse"`
- // Each Service element contains information about one service.
- Service []Service `xml:"Service,omitempty"`
- }
- // GetServiceCapabilities type
- type GetServiceCapabilities struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetServiceCapabilities"`
- }
- // GetServiceCapabilitiesResponse type
- type GetServiceCapabilitiesResponse struct {
- XMLName xml.Name `xml:"GetServiceCapabilitiesResponse"`
- // The capabilities for the device service is returned in the Capabilities element.
- Capabilities DeviceServiceCapabilities `xml:"Capabilities,omitempty"`
- }
- // GetDeviceInformation type
- type GetDeviceInformation struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDeviceInformation"`
- }
- // GetDeviceInformationResponse type
- type GetDeviceInformationResponse struct {
- XMLName xml.Name `xml:"GetDeviceInformationResponse"`
- // The manufactor of the device.
- Manufacturer string `xml:"Manufacturer,omitempty"`
- // The device model.
- Model string `xml:"Model,omitempty"`
- // The firmware version in the device.
- FirmwareVersion string `xml:"FirmwareVersion,omitempty"`
- // The serial number of the device.
- SerialNumber string `xml:"SerialNumber,omitempty"`
- // The hardware ID of the device.
- HardwareId string `xml:"HardwareId,omitempty"`
- }
- // SetSystemDateAndTime type
- type SetSystemDateAndTime struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetSystemDateAndTime"`
- // Defines if the date and time is set via NTP or manually.
- DateTimeType SetDateTimeType `xml:"http://www.onvif.org/ver10/device/wsdl DateTimeType,omitempty"`
- // Automatically adjust Daylight savings if defined in TimeZone.
- DaylightSavings bool `xml:"http://www.onvif.org/ver10/device/wsdl DaylightSavings,omitempty"`
- // The time zone in POSIX 1003.1 format
- TimeZone TimeZone `xml:"http://www.onvif.org/ver10/device/wsdl TimeZone,omitempty"`
- // Date and time in UTC. If time is obtained via NTP, UTCDateTime has no meaning
- UTCDateTime string `xml:"http://www.onvif.org/ver10/schema UTCDateTime,omitempty"`
- }
- // SetSystemDateAndTimeResponse type
- type SetSystemDateAndTimeResponse struct {
- XMLName xml.Name `xml:"SetSystemDateAndTimeResponse"`
- }
- // GetSystemDateAndTime type
- type GetSystemDateAndTime struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemDateAndTime"`
- }
- // GetSystemDateAndTimeResponse type
- type GetSystemDateAndTimeResponse struct {
- XMLName xml.Name `xml:"GetSystemDateAndTimeResponse"`
- // Contains information whether system date and time are set manually or by NTP, daylight savings is on or off, time zone in POSIX 1003.1 format and system date and time in UTC and also local system date and time.
- SystemDateAndTime SystemDateTime `xml:"SystemDateAndTime,omitempty"`
- }
- // SetSystemFactoryDefault type
- type SetSystemFactoryDefault struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetSystemFactoryDefault"`
- // Specifies the factory default action type.
- FactoryDefault FactoryDefaultType `xml:"http://www.onvif.org/ver10/device/wsdl FactoryDefault,omitempty"`
- }
- // SetSystemFactoryDefaultResponse type
- type SetSystemFactoryDefaultResponse struct {
- XMLName xml.Name `xml:"SetSystemFactoryDefaultResponse"`
- }
- // UpgradeSystemFirmware type
- type UpgradeSystemFirmware struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl UpgradeSystemFirmware"`
- Firmware AttachmentData `xml:"http://www.onvif.org/ver10/device/wsdl Firmware,omitempty"`
- }
- // UpgradeSystemFirmwareResponse type
- type UpgradeSystemFirmwareResponse struct {
- XMLName xml.Name `xml:"UpgradeSystemFirmwareResponse"`
- Message string `xml:"Message,omitempty"`
- }
- // SystemReboot type
- type SystemReboot struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SystemReboot"`
- }
- // SystemRebootResponse type
- type SystemRebootResponse struct {
- XMLName xml.Name `xml:"SystemRebootResponse"`
- // Contains the reboot message sent by the device.
- Message string `xml:"Message,omitempty"`
- }
- // RestoreSystem type
- type RestoreSystem struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl RestoreSystem"`
- BackupFiles []BackupFile `xml:"http://www.onvif.org/ver10/device/wsdl BackupFiles,omitempty"`
- }
- // RestoreSystemResponse type
- type RestoreSystemResponse struct {
- XMLName xml.Name `xml:"RestoreSystemResponse"`
- }
- // GetSystemBackup type
- type GetSystemBackup struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemBackup"`
- }
- // GetSystemBackupResponse type
- type GetSystemBackupResponse struct {
- XMLName xml.Name `xml:"GetSystemBackupResponse"`
- BackupFiles []BackupFile `xml:"BackupFiles,omitempty"`
- }
- // GetSystemSupportInformation type
- type GetSystemSupportInformation struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemSupportInformation"`
- }
- // GetSystemSupportInformationResponse type
- type GetSystemSupportInformationResponse struct {
- XMLName xml.Name `xml:"GetSystemSupportInformationResponse"`
- // Contains the arbitary device diagnostics information.
- SupportInformation SupportInformation `xml:"SupportInformation,omitempty"`
- }
- // GetSystemLog type
- type GetSystemLog struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemLog"`
- // Specifies the type of system log to get.
- LogType SystemLogType `xml:"http://www.onvif.org/ver10/device/wsdl LogType,omitempty"`
- }
- // GetSystemLogResponse type
- type GetSystemLogResponse struct {
- XMLName xml.Name `xml:"GetSystemLogResponse"`
- // Contains the system log information.
- SystemLog SystemLog `xml:"SystemLog,omitempty"`
- }
- // GetScopes type
- type GetScopes struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetScopes"`
- }
- // GetScopesResponse type
- type GetScopesResponse struct {
- XMLName xml.Name `xml:"GetScopesResponse"`
- // Contains a list of URI definining the device scopes. Scope parameters can be of two types: fixed and configurable. Fixed parameters can not be altered.
- Scopes []Scope `xml:"Scopes,omitempty"`
- }
- // SetScopes type
- type SetScopes struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetScopes"`
- // Contains a list of scope parameters that will replace all existing configurable scope parameters.
- Scopes []AnyURI `xml:"http://www.onvif.org/ver10/schema Scopes,omitempty"`
- }
- // SetScopesResponse type
- type SetScopesResponse struct {
- XMLName xml.Name `xml:"SetScopesResponse"`
- }
- // AddScopes type
- type AddScopes struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl AddScopes"`
- // Contains a list of new configurable scope parameters that will be added to the existing configurable scope.
- ScopeItem []AnyURI `xml:"http://www.onvif.org/ver10/schema ScopeItem,omitempty"`
- }
- // AddScopesResponse type
- type AddScopesResponse struct {
- XMLName xml.Name `xml:"AddScopesResponse"`
- }
- // RemoveScopes type
- type RemoveScopes struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl RemoveScopes"`
- // Contains a list of URIs that should be removed from the device scope.
- // Note that the response message always will match the request or an error will be returned. The use of the response is for that reason deprecated.
- //
- ScopeItem []AnyURI `xml:"http://www.onvif.org/ver10/schema ScopeItem,omitempty"`
- }
- // RemoveScopesResponse type
- type RemoveScopesResponse struct {
- XMLName xml.Name `xml:"RemoveScopesResponse"`
- // Contains a list of URIs that has been removed from the device scope
- ScopeItem []AnyURI `xml:"ScopeItem,omitempty"`
- }
- // GetDiscoveryMode type
- type GetDiscoveryMode struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDiscoveryMode"`
- }
- // GetDiscoveryModeResponse type
- type GetDiscoveryModeResponse struct {
- XMLName xml.Name `xml:"GetDiscoveryModeResponse"`
- //
- // Indicator of discovery mode: Discoverable, NonDiscoverable.
- //
- DiscoveryMode DiscoveryMode `xml:"DiscoveryMode,omitempty"`
- }
- // SetDiscoveryMode type
- type SetDiscoveryMode struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetDiscoveryMode"`
- //
- // Indicator of discovery mode: Discoverable, NonDiscoverable.
- //
- DiscoveryMode DiscoveryMode `xml:"http://www.onvif.org/ver10/device/wsdl DiscoveryMode,omitempty"`
- }
- // SetDiscoveryModeResponse type
- type SetDiscoveryModeResponse struct {
- XMLName xml.Name `xml:"SetDiscoveryModeResponse"`
- }
- // GetRemoteDiscoveryMode type
- type GetRemoteDiscoveryMode struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetRemoteDiscoveryMode"`
- }
- // GetRemoteDiscoveryModeResponse type
- type GetRemoteDiscoveryModeResponse struct {
- XMLName xml.Name `xml:"GetRemoteDiscoveryModeResponse"`
- //
- // Indicator of discovery mode: Discoverable, NonDiscoverable.
- //
- RemoteDiscoveryMode DiscoveryMode `xml:"RemoteDiscoveryMode,omitempty"`
- }
- // SetRemoteDiscoveryMode type
- type SetRemoteDiscoveryMode struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetRemoteDiscoveryMode"`
- //
- // Indicator of discovery mode: Discoverable, NonDiscoverable.
- //
- RemoteDiscoveryMode DiscoveryMode `xml:"http://www.onvif.org/ver10/device/wsdl RemoteDiscoveryMode,omitempty"`
- }
- // SetRemoteDiscoveryModeResponse type
- type SetRemoteDiscoveryModeResponse struct {
- XMLName xml.Name `xml:"SetRemoteDiscoveryModeResponse"`
- }
- // GetDPAddresses type
- type GetDPAddresses struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDPAddresses"`
- }
- // GetDPAddressesResponse type
- type GetDPAddressesResponse struct {
- XMLName xml.Name `xml:"GetDPAddressesResponse"`
- DPAddress []NetworkHost `xml:"DPAddress,omitempty"`
- }
- // SetDPAddresses type
- type SetDPAddresses struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetDPAddresses"`
- DPAddress []NetworkHost `xml:"http://www.onvif.org/ver10/device/wsdl DPAddress,omitempty"`
- }
- // SetDPAddressesResponse type
- type SetDPAddressesResponse struct {
- XMLName xml.Name `xml:"SetDPAddressesResponse"`
- }
- // GetEndpointReference type
- type GetEndpointReference struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetEndpointReference"`
- }
- // GetEndpointReferenceResponse type
- type GetEndpointReferenceResponse struct {
- XMLName xml.Name `xml:"GetEndpointReferenceResponse"`
- GUID string `xml:"GUID,omitempty"`
- }
- // GetRemoteUser type
- type GetRemoteUser struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetRemoteUser"`
- }
- // GetRemoteUserResponse type
- type GetRemoteUserResponse struct {
- XMLName xml.Name `xml:"GetRemoteUserResponse"`
- RemoteUser RemoteUser `xml:"RemoteUser,omitempty"`
- }
- // SetRemoteUser type
- type SetRemoteUser struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetRemoteUser"`
- RemoteUser RemoteUser `xml:"http://www.onvif.org/ver10/device/wsdl RemoteUser,omitempty"`
- }
- // SetRemoteUserResponse type
- type SetRemoteUserResponse struct {
- XMLName xml.Name `xml:"SetRemoteUserResponse"`
- }
- // GetUsers type
- type GetUsers struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetUsers"`
- }
- // GetUsersResponse type
- type GetUsersResponse struct {
- XMLName xml.Name `xml:"GetUsersResponse"`
- // Contains a list of the onvif users and following information is included in each entry: username and user level.
- User []User `xml:"User,omitempty"`
- }
- // CreateUsers type
- type CreateUsers struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl CreateUsers"`
- // Creates new device users and corresponding credentials. Each user entry includes: username, password and user level. Either all users are created successfully or a fault message MUST be returned without creating any user. If trying to create several users with exactly the same username the request is rejected and no users are created. If password is missing, then fault message Too weak password is returned.
- User []User `xml:"http://www.onvif.org/ver10/device/wsdl User,omitempty"`
- }
- // CreateUsersResponse type
- type CreateUsersResponse struct {
- XMLName xml.Name `xml:"CreateUsersResponse"`
- }
- // DeleteUsers type
- type DeleteUsers struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl DeleteUsers"`
- // Deletes users on an device and there may exist users that cannot be deleted to ensure access to the unit. Either all users are deleted successfully or a fault message MUST be returned and no users be deleted. If a username exists multiple times in the request, then a fault message is returned.
- Username []string `xml:"http://www.onvif.org/ver10/device/wsdl Username,omitempty"`
- }
- // DeleteUsersResponse type
- type DeleteUsersResponse struct {
- XMLName xml.Name `xml:"DeleteUsersResponse"`
- }
- // SetUser type
- type SetUser struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetUser"`
- // Updates the credentials for one or several users on an device. Either all change requests are processed successfully or a fault message MUST be returned. If the request contains the same username multiple times, a fault message is returned.
- User []User `xml:"http://www.onvif.org/ver10/device/wsdl User,omitempty"`
- }
- // SetUserResponse type
- type SetUserResponse struct {
- XMLName xml.Name `xml:"SetUserResponse"`
- }
- // GetWsdlUrl type
- type GetWsdlUrl struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetWsdlUrl"`
- }
- // GetWsdlUrlResponse type
- type GetWsdlUrlResponse struct {
- XMLName xml.Name `xml:"GetWsdlUrlResponse"`
- WsdlUrl AnyURI `xml:"WsdlUrl,omitempty"`
- }
- // GetCapabilities type
- type GetCapabilities struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetCapabilities"`
- //
- // List of categories to retrieve capability information on.
- //
- Category []CapabilityCategory `xml:"http://www.onvif.org/ver10/device/wsdl Category,omitempty"`
- }
- // GetCapabilitiesResponse type
- type GetCapabilitiesResponse struct {
- XMLName xml.Name `xml:"GetCapabilitiesResponse"`
- //
- // Capability information.
- //
- Capabilities Capabilities `xml:"Capabilities,omitempty"`
- }
- // GetHostname type
- type GetHostname struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetHostname"`
- }
- // GetHostnameResponse type
- type GetHostnameResponse struct {
- XMLName xml.Name `xml:"GetHostnameResponse"`
- // Contains the hostname information.
- HostnameInformation HostnameInformation `xml:"HostnameInformation,omitempty"`
- }
- // SetHostname type
- type SetHostname struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetHostname"`
- // The hostname to set.
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,omitempty"`
- }
- // SetHostnameResponse type
- type SetHostnameResponse struct {
- XMLName xml.Name `xml:"SetHostnameResponse"`
- }
- // SetHostnameFromDHCP type
- type SetHostnameFromDHCP struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetHostnameFromDHCP"`
- // True if the hostname shall be obtained via DHCP.
- FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP,omitempty"`
- }
- // SetHostnameFromDHCPResponse type
- type SetHostnameFromDHCPResponse struct {
- XMLName xml.Name `xml:"SetHostnameFromDHCPResponse"`
- //
- // Indicates whether or not a reboot is required after configuration updates.
- //
- RebootNeeded bool `xml:"RebootNeeded,omitempty"`
- }
- // GetDNS type
- type GetDNS struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDNS"`
- }
- // GetDNSResponse type
- type GetDNSResponse struct {
- XMLName xml.Name `xml:"GetDNSResponse"`
- //
- // DNS information.
- //
- DNSInformation DNSInformation `xml:"DNSInformation,omitempty"`
- }
- // SetDNS type
- type SetDNS struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetDNS"`
- //
- // Indicate if the DNS address is to be retrieved using DHCP.
- //
- FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP,omitempty"`
- //
- // DNS search domain.
- //
- SearchDomain []string `xml:"http://www.onvif.org/ver10/device/wsdl SearchDomain,omitempty"`
- //
- // DNS address(es) set manually.
- //
- DNSManual []IPAddress `xml:"http://www.onvif.org/ver10/device/wsdl DNSManual,omitempty"`
- }
- // SetDNSResponse type
- type SetDNSResponse struct {
- XMLName xml.Name `xml:"SetDNSResponse"`
- }
- // GetNTP type
- type GetNTP struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetNTP"`
- }
- // GetNTPResponse type
- type GetNTPResponse struct {
- XMLName xml.Name `xml:"GetNTPResponse"`
- //
- // NTP information.
- //
- NTPInformation NTPInformation `xml:"NTPInformation,omitempty"`
- }
- // SetNTP type
- type SetNTP struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetNTP"`
- //
- // Indicate if NTP address information is to be retrieved using DHCP.
- //
- FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP,omitempty"`
- //
- // Manual NTP settings.
- //
- NTPManual []NetworkHost `xml:"http://www.onvif.org/ver10/device/wsdl NTPManual,omitempty"`
- }
- // SetNTPResponse type
- type SetNTPResponse struct {
- XMLName xml.Name `xml:"SetNTPResponse"`
- }
- // GetDynamicDNS type
- type GetDynamicDNS struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDynamicDNS"`
- }
- // GetDynamicDNSResponse type
- type GetDynamicDNSResponse struct {
- XMLName xml.Name `xml:"GetDynamicDNSResponse"`
- //
- // Dynamic DNS information.
- //
- DynamicDNSInformation DynamicDNSInformation `xml:"DynamicDNSInformation,omitempty"`
- }
- // SetDynamicDNS type
- type SetDynamicDNS struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetDynamicDNS"`
- //
- // Dynamic DNS type.
- //
- Type DynamicDNSType `xml:"http://www.onvif.org/ver10/device/wsdl Type,omitempty"`
- //
- // DNS name.
- //
- Name DNSName `xml:"http://www.onvif.org/ver10/device/wsdl Name,omitempty"`
- //
- // DNS record time to live.
- //
- TTL Duration `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
- }
- // SetDynamicDNSResponse type
- type SetDynamicDNSResponse struct {
- XMLName xml.Name `xml:"SetDynamicDNSResponse"`
- }
- // GetNetworkInterfaces type
- type GetNetworkInterfaces struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetNetworkInterfaces"`
- }
- // GetNetworkInterfacesResponse type
- type GetNetworkInterfacesResponse struct {
- XMLName xml.Name `xml:"GetNetworkInterfacesResponse"`
- //
- // List of network interfaces.
- //
- NetworkInterfaces []NetworkInterface `xml:"NetworkInterfaces,omitempty"`
- }
- // SetNetworkInterfaces type
- type SetNetworkInterfaces struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetNetworkInterfaces"`
- //
- // Symbolic network interface name.
- //
- InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken,omitempty"`
- //
- // Network interface name.
- //
- NetworkInterface NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl NetworkInterface,omitempty"`
- }
- // SetNetworkInterfacesResponse type
- type SetNetworkInterfacesResponse struct {
- XMLName xml.Name `xml:"SetNetworkInterfacesResponse"`
- //
- // Indicates whether or not a reboot is required after configuration updates.
- // If a device responds with RebootNeeded set to false, the device can be reached
- // via the new IP address without further action. A client should be aware that a device
- // may not be responsive for a short period of time until it signals availability at
- // the new address via the discovery Hello messages.
- // If a device responds with RebootNeeded set to true, it will be further available under
- // its previous IP address. The settings will only be activated when the device is
- // rebooted via the SystemReboot command.
- //
- RebootNeeded bool `xml:"RebootNeeded,omitempty"`
- }
- // GetNetworkProtocols type
- type GetNetworkProtocols struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetNetworkProtocols"`
- }
- // GetNetworkProtocolsResponse type
- type GetNetworkProtocolsResponse struct {
- XMLName xml.Name `xml:"GetNetworkProtocolsResponse"`
- // Contains an array of defined protocols supported by the device. There are three protocols defined; HTTP, HTTPS and RTSP. The following parameters can be retrieved for each protocol: port and enable/disable.
- NetworkProtocols []NetworkProtocol `xml:"NetworkProtocols,omitempty"`
- }
- // SetNetworkProtocols type
- type SetNetworkProtocols struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetNetworkProtocols"`
- // Configures one or more defined network protocols supported by the device. There are currently three protocols defined; HTTP, HTTPS and RTSP. The following parameters can be set for each protocol: port and enable/disable.
- NetworkProtocols []NetworkProtocol `xml:"http://www.onvif.org/ver10/device/wsdl NetworkProtocols,omitempty"`
- }
- // SetNetworkProtocolsResponse type
- type SetNetworkProtocolsResponse struct {
- XMLName xml.Name `xml:"SetNetworkProtocolsResponse"`
- }
- // GetNetworkDefaultGateway type
- type GetNetworkDefaultGateway struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetNetworkDefaultGateway"`
- }
- // GetNetworkDefaultGatewayResponse type
- type GetNetworkDefaultGatewayResponse struct {
- XMLName xml.Name `xml:"GetNetworkDefaultGatewayResponse"`
- // Gets the default IPv4 and IPv6 gateway settings from the device.
- NetworkGateway NetworkGateway `xml:"NetworkGateway,omitempty"`
- }
- // SetNetworkDefaultGateway type
- type SetNetworkDefaultGateway struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetNetworkDefaultGateway"`
- // Sets IPv4 gateway address used as default setting.
- IPv4Address []IPv4Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv4Address,omitempty"`
- // Sets IPv6 gateway address used as default setting.
- IPv6Address []IPv6Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv6Address,omitempty"`
- }
- // SetNetworkDefaultGatewayResponse type
- type SetNetworkDefaultGatewayResponse struct {
- XMLName xml.Name `xml:"SetNetworkDefaultGatewayResponse"`
- }
- // GetZeroConfiguration type
- type GetZeroConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetZeroConfiguration"`
- }
- // GetZeroConfigurationResponse type
- type GetZeroConfigurationResponse struct {
- XMLName xml.Name `xml:"GetZeroConfigurationResponse"`
- // Contains the zero-configuration.
- ZeroConfiguration NetworkZeroConfiguration `xml:"ZeroConfiguration,omitempty"`
- }
- // SetZeroConfiguration type
- type SetZeroConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetZeroConfiguration"`
- // Unique identifier referencing the physical interface.
- InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken,omitempty"`
- // Specifies if the zero-configuration should be enabled or not.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- }
- // SetZeroConfigurationResponse type
- type SetZeroConfigurationResponse struct {
- XMLName xml.Name `xml:"SetZeroConfigurationResponse"`
- }
- // GetIPAddressFilter type
- type GetIPAddressFilter struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetIPAddressFilter"`
- }
- // GetIPAddressFilterResponse type
- type GetIPAddressFilterResponse struct {
- XMLName xml.Name `xml:"GetIPAddressFilterResponse"`
- IPAddressFilter IPAddressFilter `xml:"IPAddressFilter,omitempty"`
- }
- // SetIPAddressFilter type
- type SetIPAddressFilter struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetIPAddressFilter"`
- IPAddressFilter IPAddressFilter `xml:"http://www.onvif.org/ver10/device/wsdl IPAddressFilter,omitempty"`
- }
- // SetIPAddressFilterResponse type
- type SetIPAddressFilterResponse struct {
- XMLName xml.Name `xml:"SetIPAddressFilterResponse"`
- }
- // AddIPAddressFilter type
- type AddIPAddressFilter struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl AddIPAddressFilter"`
- IPAddressFilter IPAddressFilter `xml:"http://www.onvif.org/ver10/device/wsdl IPAddressFilter,omitempty"`
- }
- // AddIPAddressFilterResponse type
- type AddIPAddressFilterResponse struct {
- XMLName xml.Name `xml:"AddIPAddressFilterResponse"`
- }
- // RemoveIPAddressFilter type
- type RemoveIPAddressFilter struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl RemoveIPAddressFilter"`
- IPAddressFilter IPAddressFilter `xml:"http://www.onvif.org/ver10/device/wsdl IPAddressFilter,omitempty"`
- }
- // RemoveIPAddressFilterResponse type
- type RemoveIPAddressFilterResponse struct {
- XMLName xml.Name `xml:"RemoveIPAddressFilterResponse"`
- }
- // GetAccessPolicy type
- type GetAccessPolicy struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetAccessPolicy"`
- }
- // GetAccessPolicyResponse type
- type GetAccessPolicyResponse struct {
- XMLName xml.Name `xml:"GetAccessPolicyResponse"`
- PolicyFile BinaryData `xml:"PolicyFile,omitempty"`
- }
- // SetAccessPolicy type
- type SetAccessPolicy struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetAccessPolicy"`
- PolicyFile BinaryData `xml:"http://www.onvif.org/ver10/device/wsdl PolicyFile,omitempty"`
- }
- // SetAccessPolicyResponse type
- type SetAccessPolicyResponse struct {
- XMLName xml.Name `xml:"SetAccessPolicyResponse"`
- }
- // CreateCertificate type
- type CreateCertificate struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl CreateCertificate"`
- // Certificate id.
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- // Identification of the entity associated with the public-key.
- Subject string `xml:"http://www.onvif.org/ver10/device/wsdl Subject,omitempty"`
- // Certificate validity start date.
- ValidNotBefore string `xml:"http://www.onvif.org/ver10/schema ValidNotBefore,omitempty"`
- // Certificate expiry start date.
- ValidNotAfter string `xml:"http://www.onvif.org/ver10/schema ValidNotAfter,omitempty"`
- }
- // CreateCertificateResponse type
- type CreateCertificateResponse struct {
- XMLName xml.Name `xml:"CreateCertificateResponse"`
- //
- // base64 encoded DER representation of certificate.
- //
- NvtCertificate Certificate `xml:"NvtCertificate,omitempty"`
- }
- // GetCertificates type
- type GetCertificates struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetCertificates"`
- }
- // GetCertificatesResponse type
- type GetCertificatesResponse struct {
- XMLName xml.Name `xml:"GetCertificatesResponse"`
- //
- // Id and base64 encoded DER representation of all available certificates.
- //
- NvtCertificate []Certificate `xml:"NvtCertificate,omitempty"`
- }
- // GetCertificatesStatus type
- type GetCertificatesStatus struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetCertificatesStatus"`
- }
- // GetCertificatesStatusResponse type
- type GetCertificatesStatusResponse struct {
- XMLName xml.Name `xml:"GetCertificatesStatusResponse"`
- //
- // Indicates if a certificate is used in an optional HTTPS configuration of the device.
- //
- CertificateStatus []CertificateStatus `xml:"CertificateStatus,omitempty"`
- }
- // SetCertificatesStatus type
- type SetCertificatesStatus struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetCertificatesStatus"`
- //
- // Indicates if a certificate is to be used in an optional HTTPS configuration of the device.
- //
- CertificateStatus []CertificateStatus `xml:"http://www.onvif.org/ver10/device/wsdl CertificateStatus,omitempty"`
- }
- // SetCertificatesStatusResponse type
- type SetCertificatesStatusResponse struct {
- XMLName xml.Name `xml:"SetCertificatesStatusResponse"`
- }
- // DeleteCertificates type
- type DeleteCertificates struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl DeleteCertificates"`
- //
- // List of ids of certificates to delete.
- //
- CertificateID []string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- }
- // DeleteCertificatesResponse type
- type DeleteCertificatesResponse struct {
- XMLName xml.Name `xml:"DeleteCertificatesResponse"`
- }
- // GetPkcs10Request type
- type GetPkcs10Request struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetPkcs10Request"`
- //
- // List of ids of certificates to delete.
- //
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- //
- // Relative Dinstinguished Name(RDN) CommonName(CN).
- //
- Subject string `xml:"http://www.onvif.org/ver10/device/wsdl Subject,omitempty"`
- //
- // Optional base64 encoded DER attributes.
- //
- Attributes BinaryData `xml:"http://www.onvif.org/ver10/device/wsdl Attributes,omitempty"`
- }
- // GetPkcs10RequestResponse type
- type GetPkcs10RequestResponse struct {
- XMLName xml.Name `xml:"GetPkcs10RequestResponse"`
- //
- // base64 encoded DER representation of certificate.
- //
- Pkcs10Request BinaryData `xml:"Pkcs10Request,omitempty"`
- }
- // LoadCertificates type
- type LoadCertificates struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl LoadCertificates"`
- //
- // Optional id and base64 encoded DER representation of certificate.
- //
- NVTCertificate []Certificate `xml:"http://www.onvif.org/ver10/device/wsdl NVTCertificate,omitempty"`
- }
- // LoadCertificatesResponse type
- type LoadCertificatesResponse struct {
- XMLName xml.Name `xml:"LoadCertificatesResponse"`
- }
- // GetClientCertificateMode type
- type GetClientCertificateMode struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetClientCertificateMode"`
- }
- // GetClientCertificateModeResponse type
- type GetClientCertificateModeResponse struct {
- XMLName xml.Name `xml:"GetClientCertificateModeResponse"`
- //
- // Indicates whether or not client certificates are required by device.
- //
- Enabled bool `xml:"Enabled,omitempty"`
- }
- // SetClientCertificateMode type
- type SetClientCertificateMode struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetClientCertificateMode"`
- //
- // Indicates whether or not client certificates are required by device.
- //
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- }
- // SetClientCertificateModeResponse type
- type SetClientCertificateModeResponse struct {
- XMLName xml.Name `xml:"SetClientCertificateModeResponse"`
- }
- // GetCACertificates type
- type GetCACertificates struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetCACertificates"`
- }
- // GetCACertificatesResponse type
- type GetCACertificatesResponse struct {
- XMLName xml.Name `xml:"GetCACertificatesResponse"`
- CACertificate []Certificate `xml:"CACertificate,omitempty"`
- }
- // LoadCertificateWithPrivateKey type
- type LoadCertificateWithPrivateKey struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl LoadCertificateWithPrivateKey"`
- CertificateWithPrivateKey []CertificateWithPrivateKey `xml:"http://www.onvif.org/ver10/device/wsdl CertificateWithPrivateKey,omitempty"`
- }
- // LoadCertificateWithPrivateKeyResponse type
- type LoadCertificateWithPrivateKeyResponse struct {
- XMLName xml.Name `xml:"LoadCertificateWithPrivateKeyResponse"`
- }
- // GetCertificateInformation type
- type GetCertificateInformation struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetCertificateInformation"`
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- }
- // GetCertificateInformationResponse type
- type GetCertificateInformationResponse struct {
- XMLName xml.Name `xml:"GetCertificateInformationResponse"`
- CertificateInformation CertificateInformation `xml:"CertificateInformation,omitempty"`
- }
- // LoadCACertificates type
- type LoadCACertificates struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl LoadCACertificates"`
- CACertificate []Certificate `xml:"http://www.onvif.org/ver10/device/wsdl CACertificate,omitempty"`
- }
- // LoadCACertificatesResponse type
- type LoadCACertificatesResponse struct {
- XMLName xml.Name `xml:"LoadCACertificatesResponse"`
- }
- // CreateDot1XConfiguration type
- type CreateDot1XConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl CreateDot1XConfiguration"`
- Dot1XConfiguration Dot1XConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfiguration,omitempty"`
- }
- // CreateDot1XConfigurationResponse type
- type CreateDot1XConfigurationResponse struct {
- XMLName xml.Name `xml:"CreateDot1XConfigurationResponse"`
- }
- // SetDot1XConfiguration type
- type SetDot1XConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetDot1XConfiguration"`
- Dot1XConfiguration Dot1XConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfiguration,omitempty"`
- }
- // SetDot1XConfigurationResponse type
- type SetDot1XConfigurationResponse struct {
- XMLName xml.Name `xml:"SetDot1XConfigurationResponse"`
- }
- // GetDot1XConfiguration type
- type GetDot1XConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDot1XConfiguration"`
- Dot1XConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfigurationToken,omitempty"`
- }
- // GetDot1XConfigurationResponse type
- type GetDot1XConfigurationResponse struct {
- XMLName xml.Name `xml:"GetDot1XConfigurationResponse"`
- Dot1XConfiguration Dot1XConfiguration `xml:"Dot1XConfiguration,omitempty"`
- }
- // GetDot1XConfigurations type
- type GetDot1XConfigurations struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDot1XConfigurations"`
- }
- // GetDot1XConfigurationsResponse type
- type GetDot1XConfigurationsResponse struct {
- XMLName xml.Name `xml:"GetDot1XConfigurationsResponse"`
- Dot1XConfiguration []Dot1XConfiguration `xml:"Dot1XConfiguration,omitempty"`
- }
- // DeleteDot1XConfiguration type
- type DeleteDot1XConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl DeleteDot1XConfiguration"`
- Dot1XConfigurationToken []ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfigurationToken,omitempty"`
- }
- // DeleteDot1XConfigurationResponse type
- type DeleteDot1XConfigurationResponse struct {
- XMLName xml.Name `xml:"DeleteDot1XConfigurationResponse"`
- }
- // GetRelayOutputs type
- type GetRelayOutputs struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetRelayOutputs"`
- }
- // GetRelayOutputsResponse type
- type GetRelayOutputsResponse struct {
- XMLName xml.Name `xml:"GetRelayOutputsResponse"`
- RelayOutputs []RelayOutput `xml:"RelayOutputs,omitempty"`
- }
- // SetRelayOutputSettings type
- type SetRelayOutputSettings struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetRelayOutputSettings"`
- RelayOutputToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl RelayOutputToken,omitempty"`
- Properties RelayOutputSettings `xml:"http://www.onvif.org/ver10/device/wsdl Properties,omitempty"`
- }
- // SetRelayOutputSettingsResponse type
- type SetRelayOutputSettingsResponse struct {
- XMLName xml.Name `xml:"SetRelayOutputSettingsResponse"`
- }
- // SetRelayOutputState type
- type SetRelayOutputState struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetRelayOutputState"`
- RelayOutputToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl RelayOutputToken,omitempty"`
- LogicalState RelayLogicalState `xml:"http://www.onvif.org/ver10/device/wsdl LogicalState,omitempty"`
- }
- // SetRelayOutputStateResponse type
- type SetRelayOutputStateResponse struct {
- XMLName xml.Name `xml:"SetRelayOutputStateResponse"`
- }
- // SendAuxiliaryCommand type
- type SendAuxiliaryCommand struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SendAuxiliaryCommand"`
- AuxiliaryCommand AuxiliaryData `xml:"http://www.onvif.org/ver10/device/wsdl AuxiliaryCommand,omitempty"`
- }
- // SendAuxiliaryCommandResponse type
- type SendAuxiliaryCommandResponse struct {
- XMLName xml.Name `xml:"SendAuxiliaryCommandResponse"`
- AuxiliaryCommandResponse AuxiliaryData `xml:"AuxiliaryCommandResponse,omitempty"`
- }
- // GetDot11Capabilities type
- type GetDot11Capabilities struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDot11Capabilities"`
- }
- // GetDot11CapabilitiesResponse type
- type GetDot11CapabilitiesResponse struct {
- XMLName xml.Name `xml:"GetDot11CapabilitiesResponse"`
- Capabilities Dot11Capabilities `xml:"Capabilities,omitempty"`
- }
- // GetDot11Status type
- type GetDot11Status struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetDot11Status"`
- InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken,omitempty"`
- }
- // GetDot11StatusResponse type
- type GetDot11StatusResponse struct {
- XMLName xml.Name `xml:"GetDot11StatusResponse"`
- Status Dot11Status `xml:"Status,omitempty"`
- }
- // ScanAvailableDot11Networks type
- type ScanAvailableDot11Networks struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl ScanAvailableDot11Networks"`
- InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken,omitempty"`
- }
- // ScanAvailableDot11NetworksResponse type
- type ScanAvailableDot11NetworksResponse struct {
- XMLName xml.Name `xml:"ScanAvailableDot11NetworksResponse"`
- Networks []Dot11AvailableNetworks `xml:"Networks,omitempty"`
- }
- // GetSystemUris type
- type GetSystemUris struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemUris"`
- }
- // GetSystemUrisResponse type
- type GetSystemUrisResponse struct {
- XMLName xml.Name `xml:"GetSystemUrisResponse"`
- SystemLogUris SystemLogUriList `xml:"SystemLogUris,omitempty"`
- SupportInfoUri AnyURI `xml:"SupportInfoUri,omitempty"`
- SystemBackupUri AnyURI `xml:"SystemBackupUri,omitempty"`
- Extension struct {
- } `xml:"Extension,omitempty"`
- }
- // StartFirmwareUpgrade type
- type StartFirmwareUpgrade struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl StartFirmwareUpgrade"`
- }
- // StartFirmwareUpgradeResponse type
- type StartFirmwareUpgradeResponse struct {
- XMLName xml.Name `xml:"StartFirmwareUpgradeResponse"`
- UploadUri AnyURI `xml:"UploadUri,omitempty"`
- UploadDelay Duration `xml:"UploadDelay,omitempty"`
- ExpectedDownTime Duration `xml:"ExpectedDownTime,omitempty"`
- }
- // StartSystemRestore type
- type StartSystemRestore struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl StartSystemRestore"`
- }
- // StartSystemRestoreResponse type
- type StartSystemRestoreResponse struct {
- XMLName xml.Name `xml:"StartSystemRestoreResponse"`
- UploadUri AnyURI `xml:"UploadUri,omitempty"`
- ExpectedDownTime Duration `xml:"ExpectedDownTime,omitempty"`
- }
- // GetStorageConfigurations type
- type GetStorageConfigurations struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetStorageConfigurations"`
- }
- // GetStorageConfigurationsResponse type
- type GetStorageConfigurationsResponse struct {
- XMLName xml.Name `xml:"GetStorageConfigurationsResponse"`
- StorageConfigurations []StorageConfiguration `xml:"StorageConfigurations,omitempty"`
- }
- // CreateStorageConfiguration type
- type CreateStorageConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl CreateStorageConfiguration"`
- StorageConfiguration StorageConfigurationData `xml:"http://www.onvif.org/ver10/device/wsdl StorageConfiguration,omitempty"`
- }
- // CreateStorageConfigurationResponse type
- type CreateStorageConfigurationResponse struct {
- XMLName xml.Name `xml:"CreateStorageConfigurationResponse"`
- Token ReferenceToken `xml:"Token,omitempty"`
- }
- // GetStorageConfiguration type
- type GetStorageConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetStorageConfiguration"`
- Token ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Token,omitempty"`
- }
- // GetStorageConfigurationResponse type
- type GetStorageConfigurationResponse struct {
- XMLName xml.Name `xml:"GetStorageConfigurationResponse"`
- StorageConfiguration StorageConfiguration `xml:"StorageConfiguration,omitempty"`
- }
- // SetStorageConfiguration type
- type SetStorageConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetStorageConfiguration"`
- StorageConfiguration StorageConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl StorageConfiguration,omitempty"`
- }
- // SetStorageConfigurationResponse type
- type SetStorageConfigurationResponse struct {
- XMLName xml.Name `xml:"SetStorageConfigurationResponse"`
- }
- // DeleteStorageConfiguration type
- type DeleteStorageConfiguration struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl DeleteStorageConfiguration"`
- Token ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Token,omitempty"`
- }
- // DeleteStorageConfigurationResponse type
- type DeleteStorageConfigurationResponse struct {
- XMLName xml.Name `xml:"DeleteStorageConfigurationResponse"`
- }
- // GetGeoLocation type
- type GetGeoLocation struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl GetGeoLocation"`
- }
- // GetGeoLocationResponse type
- type GetGeoLocationResponse struct {
- XMLName xml.Name `xml:"GetGeoLocationResponse"`
- Location []LocationEntity `xml:"Location,omitempty"`
- }
- // SetGeoLocation type
- type SetGeoLocation struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl SetGeoLocation"`
- Location []LocationEntity `xml:"http://www.onvif.org/ver10/device/wsdl Location,omitempty"`
- }
- // SetGeoLocationResponse type
- type SetGeoLocationResponse struct {
- XMLName xml.Name `xml:"SetGeoLocationResponse"`
- }
- // DeleteGeoLocation type
- type DeleteGeoLocation struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl DeleteGeoLocation"`
- Location []LocationEntity `xml:"http://www.onvif.org/ver10/device/wsdl Location,omitempty"`
- }
- // DeleteGeoLocationResponse type
- type DeleteGeoLocationResponse struct {
- XMLName xml.Name `xml:"DeleteGeoLocationResponse"`
- }
- // Service type
- type Service struct {
- // Namespace of the service being described. This parameter allows to match the service capabilities to the service. Note that only one set of capabilities is supported per namespace.
- Namespace AnyURI `xml:"http://www.onvif.org/ver10/schema Namespace,omitempty"`
- // The transport addresses where the service can be reached. The scheme and IP part shall match the one used in the request (i.e. the GetServices request).
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- Capabilities struct {
- } `xml:"Capabilities,omitempty"`
- // The version of the service (not the ONVIF core spec version).
- Version OnvifVersion `xml:"http://www.onvif.org/ver10/device/wsdl Version,omitempty"`
- }
- // DeviceServiceCapabilities type
- type DeviceServiceCapabilities struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/device/wsdl Capabilities"`
- // Network capabilities.
- Network NetworkCapabilities `xml:"http://www.onvif.org/ver10/device/wsdl Network,omitempty"`
- // Security capabilities.
- Security SecurityCapabilities `xml:"http://www.onvif.org/ver10/device/wsdl Security,omitempty"`
- // System capabilities.
- System SystemCapabilities `xml:"http://www.onvif.org/ver10/device/wsdl System,omitempty"`
- // Capabilities that do not fit in any of the other categories.
- Misc MiscCapabilities `xml:"http://www.onvif.org/ver10/device/wsdl Misc,omitempty"`
- }
- // NetworkCapabilities type
- type NetworkCapabilities struct {
- // Indicates support for IP filtering.
- IPFilter bool `xml:"http://www.onvif.org/ver10/device/wsdl IPFilter,attr,omitempty"`
- // Indicates support for zeroconf.
- ZeroConfiguration bool `xml:"http://www.onvif.org/ver10/device/wsdl ZeroConfiguration,attr,omitempty"`
- // Indicates support for IPv6.
- IPVersion6 bool `xml:"http://www.onvif.org/ver10/device/wsdl IPVersion6,attr,omitempty"`
- // Indicates support for dynamic DNS configuration.
- DynDNS bool `xml:"http://www.onvif.org/ver10/device/wsdl DynDNS,attr,omitempty"`
- // Indicates support for IEEE 802.11 configuration.
- Dot11Configuration bool `xml:"http://www.onvif.org/ver10/device/wsdl Dot11Configuration,attr,omitempty"`
- // Indicates the maximum number of Dot1X configurations supported by the device
- Dot1XConfigurations int32 `xml:"http://www.onvif.org/ver10/schema Dot1XConfigurations,attr,omitempty"`
- // Indicates support for retrieval of hostname from DHCP.
- HostnameFromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl HostnameFromDHCP,attr,omitempty"`
- // Maximum number of NTP servers supported by the devices SetNTP command.
- NTP int32 `xml:"http://www.onvif.org/ver10/schema NTP,attr,omitempty"`
- // Indicates support for Stateful IPv6 DHCP.
- DHCPv6 bool `xml:"http://www.onvif.org/ver10/device/wsdl DHCPv6,attr,omitempty"`
- }
- // SecurityCapabilities type
- type SecurityCapabilities struct {
- // Indicates support for TLS 1.0.
- TLS1_0 bool `xml:"TLS1.0,attr,omitempty"`
- // Indicates support for TLS 1.1.
- TLS1_1 bool `xml:"TLS1.1,attr,omitempty"`
- // Indicates support for TLS 1.2.
- TLS1_2 bool `xml:"TLS1.2,attr,omitempty"`
- // Indicates support for onboard key generation.
- OnboardKeyGeneration bool `xml:"http://www.onvif.org/ver10/device/wsdl OnboardKeyGeneration,attr,omitempty"`
- // Indicates support for access policy configuration.
- AccessPolicyConfig bool `xml:"http://www.onvif.org/ver10/device/wsdl AccessPolicyConfig,attr,omitempty"`
- // Indicates support for the ONVIF default access policy.
- DefaultAccessPolicy bool `xml:"http://www.onvif.org/ver10/device/wsdl DefaultAccessPolicy,attr,omitempty"`
- // Indicates support for IEEE 802.1X configuration.
- Dot1X bool `xml:"http://www.onvif.org/ver10/device/wsdl Dot1X,attr,omitempty"`
- // Indicates support for remote user configuration. Used when accessing another device.
- RemoteUserHandling bool `xml:"http://www.onvif.org/ver10/device/wsdl RemoteUserHandling,attr,omitempty"`
- // Indicates support for WS-Security X.509 token.
- X_509Token bool `xml:"X.509Token,attr,omitempty"`
- // Indicates support for WS-Security SAML token.
- SAMLToken bool `xml:"http://www.onvif.org/ver10/device/wsdl SAMLToken,attr,omitempty"`
- // Indicates support for WS-Security Kerberos token.
- KerberosToken bool `xml:"http://www.onvif.org/ver10/device/wsdl KerberosToken,attr,omitempty"`
- // Indicates support for WS-Security Username token.
- UsernameToken bool `xml:"http://www.onvif.org/ver10/device/wsdl UsernameToken,attr,omitempty"`
- // Indicates support for WS over HTTP digest authenticated communication layer.
- HttpDigest bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpDigest,attr,omitempty"`
- // Indicates support for WS-Security REL token.
- RELToken bool `xml:"http://www.onvif.org/ver10/device/wsdl RELToken,attr,omitempty"`
- // EAP Methods supported by the device. The int values refer to the .
- SupportedEAPMethods EAPMethodTypes `xml:"http://www.onvif.org/ver10/device/wsdl SupportedEAPMethods,attr,omitempty"`
- // The maximum number of users that the device supports.
- MaxUsers int32 `xml:"http://www.onvif.org/ver10/schema MaxUsers,attr,omitempty"`
- // Maximum number of characters supported for the username by CreateUsers.
- MaxUserNameLength int32 `xml:"http://www.onvif.org/ver10/schema MaxUserNameLength,attr,omitempty"`
- // Maximum number of characters supported for the password by CreateUsers and SetUser.
- MaxPasswordLength int32 `xml:"http://www.onvif.org/ver10/schema MaxPasswordLength,attr,omitempty"`
- }
- // SystemCapabilities type
- type SystemCapabilities struct {
- // Indicates support for WS Discovery resolve requests.
- DiscoveryResolve bool `xml:"http://www.onvif.org/ver10/device/wsdl DiscoveryResolve,attr,omitempty"`
- // Indicates support for WS-Discovery Bye.
- DiscoveryBye bool `xml:"http://www.onvif.org/ver10/device/wsdl DiscoveryBye,attr,omitempty"`
- // Indicates support for remote discovery.
- RemoteDiscovery bool `xml:"http://www.onvif.org/ver10/device/wsdl RemoteDiscovery,attr,omitempty"`
- // Indicates support for system backup through MTOM.
- SystemBackup bool `xml:"http://www.onvif.org/ver10/device/wsdl SystemBackup,attr,omitempty"`
- // Indicates support for retrieval of system logging through MTOM.
- SystemLogging bool `xml:"http://www.onvif.org/ver10/device/wsdl SystemLogging,attr,omitempty"`
- // Indicates support for firmware upgrade through MTOM.
- FirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/device/wsdl FirmwareUpgrade,attr,omitempty"`
- // Indicates support for firmware upgrade through HTTP.
- HttpFirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpFirmwareUpgrade,attr,omitempty"`
- // Indicates support for system backup through HTTP.
- HttpSystemBackup bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpSystemBackup,attr,omitempty"`
- // Indicates support for retrieval of system logging through HTTP.
- HttpSystemLogging bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpSystemLogging,attr,omitempty"`
- // Indicates support for retrieving support information through HTTP.
- HttpSupportInformation bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpSupportInformation,attr,omitempty"`
- // Indicates support for storage configuration interfaces.
- StorageConfiguration bool `xml:"http://www.onvif.org/ver10/device/wsdl StorageConfiguration,attr,omitempty"`
- // Indicates maximum number of storage configurations supported.
- MaxStorageConfigurations int32 `xml:"http://www.onvif.org/ver10/schema MaxStorageConfigurations,attr,omitempty"`
- // If present signals support for geo location. The value signals the supported number of entries.
- GeoLocationEntries int32 `xml:"http://www.onvif.org/ver10/schema GeoLocationEntries,attr,omitempty"`
- // List of supported automatic GeoLocation adjustment supported by the device. Valid items are defined by tds:AutoGeoMode.
- AutoGeo StringAttrList `xml:"http://www.onvif.org/ver10/device/wsdl AutoGeo,attr,omitempty"`
- // Enumerates the supported StorageTypes, see tds:StorageType.
- StorageTypesSupported StringAttrList `xml:"http://www.onvif.org/ver10/device/wsdl StorageTypesSupported,attr,omitempty"`
- }
- // MiscCapabilities type
- type MiscCapabilities struct {
- // Lists of commands supported by SendAuxiliaryCommand.
- AuxiliaryCommands StringAttrList `xml:"http://www.onvif.org/ver10/device/wsdl AuxiliaryCommands,attr,omitempty"`
- }
- // UserCredential type
- type UserCredential struct {
- // User name
- UserName string `xml:"http://www.onvif.org/ver10/device/wsdl UserName,omitempty"`
- // optional password
- Password string `xml:"http://www.onvif.org/ver10/device/wsdl Password,omitempty"`
- Extension struct {
- } `xml:"Extension,omitempty"`
- }
- // StorageConfigurationData type
- type StorageConfigurationData struct {
- // local path
- LocalPath AnyURI `xml:"http://www.onvif.org/ver10/schema LocalPath,omitempty"`
- // Storage server address
- StorageUri AnyURI `xml:"http://www.onvif.org/ver10/schema StorageUri,omitempty"`
- // User credential for the storage server
- User UserCredential `xml:"http://www.onvif.org/ver10/device/wsdl User,omitempty"`
- Extension struct {
- } `xml:"Extension,omitempty"`
- // StorageType lists the acceptable values for type attribute
- Type string `xml:"type,attr,omitempty"`
- }
- // StorageConfiguration type
- type StorageConfiguration struct {
- *DeviceEntity
- Data StorageConfigurationData `xml:"http://www.onvif.org/ver10/device/wsdl Data,omitempty"`
- }
- // FaultcodeEnum type
- type FaultcodeEnum QName
- const (
- // FaultcodeEnumTnsDataEncodingUnknown const
- FaultcodeEnumTnsDataEncodingUnknown FaultcodeEnum = "tns:DataEncodingUnknown"
- // FaultcodeEnumTnsMustUnderstand const
- FaultcodeEnumTnsMustUnderstand FaultcodeEnum = "tns:MustUnderstand"
- // FaultcodeEnumTnsReceiver const
- FaultcodeEnumTnsReceiver FaultcodeEnum = "tns:Receiver"
- // FaultcodeEnumTnsSender const
- FaultcodeEnumTnsSender FaultcodeEnum = "tns:Sender"
- // FaultcodeEnumTnsVersionMismatch const
- FaultcodeEnumTnsVersionMismatch FaultcodeEnum = "tns:VersionMismatch"
- )
- // NotUnderstood type
- type NotUnderstood NotUnderstoodType
- // Upgrade type
- type Upgrade UpgradeType
- // Envelope type
- type Envelope struct {
- Header Header `xml:"Header,omitempty"`
- Body Body `xml:"Body,omitempty"`
- }
- // Header type
- type Header struct {
- }
- // Body type
- type Body struct {
- }
- // Fault type
- type Fault struct {
- Code Faultcode `xml:"Code,omitempty"`
- Reason Faultreason `xml:"Reason,omitempty"`
- Node AnyURI `xml:"http://www.onvif.org/ver10/schema Node,omitempty"`
- Role AnyURI `xml:"http://www.onvif.org/ver10/schema Role,omitempty"`
- Detail Detail `xml:"Detail,omitempty"`
- }
- // Faultreason type
- type Faultreason struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultreason"`
- Text []Reasontext `xml:"Text,omitempty"`
- }
- // Reasontext type
- type Reasontext struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope reasontext"`
- Value string
- string `xml:",attr,omitempty"`
- }
- // Faultcode type
- type Faultcode struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope faultcode"`
- Value FaultcodeEnum `xml:"Value,omitempty"`
- Subcode *Subcode `xml:"Subcode,omitempty"`
- }
- // Subcode type
- type Subcode struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope subcode"`
- Value QName `xml:"http://www.onvif.org/ver10/schema Value,omitempty"`
- Subcode *Subcode `xml:"Subcode,omitempty"`
- }
- // Detail type
- type Detail struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope detail"`
- }
- // NotUnderstoodType type
- type NotUnderstoodType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope NotUnderstood"`
- Qname QName `xml:"qname,attr,omitempty"`
- }
- // SupportedEnvType type
- type SupportedEnvType struct {
- Qname QName `xml:"qname,attr,omitempty"`
- }
- // UpgradeType type
- type UpgradeType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Upgrade"`
- SupportedEnvelope []SupportedEnvType `xml:"SupportedEnvelope,omitempty"`
- }
- // RelationshipTypeOpenEnum type
- type RelationshipTypeOpenEnum string
- // RelationshipType type
- type RelationshipType AnyURI
- const (
- // RelationshipTypeHttpwwww3org200508addressingreply const
- RelationshipTypeHttpwwww3org200508addressingreply RelationshipType = "http://www.w3.org/2005/08/addressing/reply"
- )
- // FaultCodesType type
- type FaultCodesType QName
- const (
- // FaultCodesTypeTnsInvalidAddressingHeader const
- FaultCodesTypeTnsInvalidAddressingHeader FaultCodesType = "tns:InvalidAddressingHeader"
- // FaultCodesTypeTnsInvalidAddress const
- FaultCodesTypeTnsInvalidAddress FaultCodesType = "tns:InvalidAddress"
- // FaultCodesTypeTnsInvalidEPR const
- FaultCodesTypeTnsInvalidEPR FaultCodesType = "tns:InvalidEPR"
- // FaultCodesTypeTnsInvalidCardinality const
- FaultCodesTypeTnsInvalidCardinality FaultCodesType = "tns:InvalidCardinality"
- // FaultCodesTypeTnsMissingAddressInEPR const
- FaultCodesTypeTnsMissingAddressInEPR FaultCodesType = "tns:MissingAddressInEPR"
- // FaultCodesTypeTnsDuplicateMessageID const
- FaultCodesTypeTnsDuplicateMessageID FaultCodesType = "tns:DuplicateMessageID"
- // FaultCodesTypeTnsActionMismatch const
- FaultCodesTypeTnsActionMismatch FaultCodesType = "tns:ActionMismatch"
- // FaultCodesTypeTnsMessageAddressingHeaderRequired const
- FaultCodesTypeTnsMessageAddressingHeaderRequired FaultCodesType = "tns:MessageAddressingHeaderRequired"
- // FaultCodesTypeTnsDestinationUnreachable const
- FaultCodesTypeTnsDestinationUnreachable FaultCodesType = "tns:DestinationUnreachable"
- // FaultCodesTypeTnsActionNotSupported const
- FaultCodesTypeTnsActionNotSupported FaultCodesType = "tns:ActionNotSupported"
- // FaultCodesTypeTnsEndpointUnavailable const
- FaultCodesTypeTnsEndpointUnavailable FaultCodesType = "tns:EndpointUnavailable"
- )
- // EndpointReference type
- type EndpointReference EndpointReferenceType
- // Metadata type
- type Metadata MetadataType
- // RelatesTo type
- type RelatesTo RelatesToType
- // To type
- type To AttributedURIType
- // Action type
- type Action AttributedURIType
- // ProblemAction type
- type ProblemAction ProblemActionType
- // EndpointReferenceType type
- type EndpointReferenceType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing EndpointReference"`
- Address AttributedURIType `xml:"Address,omitempty"`
- ReferenceParameters ReferenceParametersType `xml:"ReferenceParameters,omitempty"`
- Metadata Metadata `xml:"Metadata,omitempty"`
- }
- // ReferenceParametersType type
- type ReferenceParametersType struct {
- }
- // MetadataType type
- type MetadataType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing Metadata"`
- }
- // RelatesToType type
- type RelatesToType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing RelatesTo"`
- Value AnyURI
- RelationshipType RelationshipTypeOpenEnum `xml:"RelationshipType,attr,omitempty"`
- }
- // AttributedURIType type
- type AttributedURIType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing MessageID"`
- Value AnyURI
- }
- // ProblemActionType type
- type ProblemActionType struct {
- XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing ProblemAction"`
- Action Action `xml:"Action,omitempty"`
- SoapAction AnyURI `xml:"http://www.onvif.org/ver10/schema SoapAction,omitempty"`
- }
- // BaseFault type
- type BaseFault BaseFaultType
- // BaseFaultType type
- type BaseFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsrf/bf-2 BaseFault"`
- Timestamp string `xml:"http://www.onvif.org/ver10/schema Timestamp,omitempty"`
- Originator EndpointReferenceType `xml:"Originator,omitempty"`
- ErrorCode struct {
- Dialect AnyURI `xml:"dialect,attr,omitempty"`
- } `xml:"ErrorCode,omitempty"`
- Description []struct {
- Value string
- string `xml:",attr,omitempty"`
- } `xml:"Description,omitempty"`
- FaultCause struct {
- } `xml:"FaultCause,omitempty"`
- }
- // ConcreteTopicExpression type
- type ConcreteTopicExpression string
- // SimpleTopicExpression type
- type SimpleTopicExpression QName
- // TopicNamespace type
- type TopicNamespace TopicNamespaceType
- // TopicSet type
- type TopicSet TopicSetType
- // Documentation type
- type Documentation struct {
- }
- // ExtensibleDocumented type
- type ExtensibleDocumented struct {
- Documentation Documentation `xml:"documentation,omitempty"`
- }
- // QueryExpressionType type
- type QueryExpressionType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 ProducerProperties"`
- Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
- }
- // TopicNamespaceType type
- type TopicNamespaceType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicNamespace"`
- *ExtensibleDocumented
- Topic []struct {
- *TopicType
- Parent ConcreteTopicExpression `xml:"parent,attr,omitempty"`
- } `xml:"Topic,omitempty"`
- Name NCName `xml:"name,attr,omitempty"`
- TargetNamespace AnyURI `xml:"targetNamespace,attr,omitempty"`
- Final bool `xml:"final,attr,omitempty"`
- }
- // TopicType type
- type TopicType struct {
- *ExtensibleDocumented
- MessagePattern QueryExpressionType `xml:"MessagePattern,omitempty"`
- Topic []TopicType `xml:"Topic,omitempty"`
- Name NCName `xml:"name,attr,omitempty"`
- MessageTypes string `xml:"messageTypes,attr,omitempty"`
- Final bool `xml:"final,attr,omitempty"`
- }
- // TopicSetType type
- type TopicSetType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/t-1 TopicSet"`
- *ExtensibleDocumented
- }
- // AbsoluteOrRelativeTimeType type
- type AbsoluteOrRelativeTimeType string
- // TopicExpression type
- type TopicExpression TopicExpressionType
- // FixedTopicSet type
- type FixedTopicSet bool
- // TopicExpressionDialect type
- type TopicExpressionDialect AnyURI
- // ConsumerReference type
- type ConsumerReference EndpointReferenceType
- // Filter type
- type Filter FilterType
- // SubscriptionPolicy type
- type SubscriptionPolicy SubscriptionPolicyType
- // CreationTime type
- type CreationTime time.Time
- // SubscriptionReference type
- type SubscriptionReference EndpointReferenceType
- // Topic type
- type Topic TopicExpressionType
- // ProducerReference type
- type ProducerReference EndpointReferenceType
- // NotificationMessage type
- type NotificationMessage NotificationMessageHolderType
- // Notify type
- type Notify struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Notify"`
- NotificationMessage []NotificationMessage `xml:"NotificationMessage,omitempty"`
- }
- // CurrentTime type
- type CurrentTime time.Time
- // TerminationTime type
- type TerminationTime time.Time
- // Subscribe type
- type Subscribe struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Subscribe"`
- ConsumerReference EndpointReferenceType `xml:"ConsumerReference,omitempty"`
- Filter FilterType `xml:"Filter,omitempty"`
- InitialTerminationTime AbsoluteOrRelativeTimeType `xml:"InitialTerminationTime,omitempty"`
- SubscriptionPolicy struct {
- } `xml:"SubscriptionPolicy,omitempty"`
- }
- // SubscribeCreationFailedFault type
- type SubscribeCreationFailedFault SubscribeCreationFailedFaultType
- // InvalidFilterFault type
- type InvalidFilterFault InvalidFilterFaultType
- // TopicExpressionDialectUnknownFault type
- type TopicExpressionDialectUnknownFault TopicExpressionDialectUnknownFaultType
- // InvalidTopicExpressionFault type
- type InvalidTopicExpressionFault InvalidTopicExpressionFaultType
- // TopicNotSupportedFault type
- type TopicNotSupportedFault TopicNotSupportedFaultType
- // MultipleTopicsSpecifiedFault type
- type MultipleTopicsSpecifiedFault MultipleTopicsSpecifiedFaultType
- // InvalidProducerPropertiesExpressionFault type
- type InvalidProducerPropertiesExpressionFault InvalidProducerPropertiesExpressionFaultType
- // InvalidMessageContentExpressionFault type
- type InvalidMessageContentExpressionFault InvalidMessageContentExpressionFaultType
- // UnrecognizedPolicyRequestFault type
- type UnrecognizedPolicyRequestFault UnrecognizedPolicyRequestFaultType
- // UnsupportedPolicyRequestFault type
- type UnsupportedPolicyRequestFault UnsupportedPolicyRequestFaultType
- // NotifyMessageNotSupportedFault type
- type NotifyMessageNotSupportedFault NotifyMessageNotSupportedFaultType
- // UnacceptableInitialTerminationTimeFault type
- type UnacceptableInitialTerminationTimeFault UnacceptableInitialTerminationTimeFaultType
- // NoCurrentMessageOnTopicFault type
- type NoCurrentMessageOnTopicFault NoCurrentMessageOnTopicFaultType
- // UnableToGetMessagesFault type
- type UnableToGetMessagesFault UnableToGetMessagesFaultType
- // UnableToDestroyPullPointFault type
- type UnableToDestroyPullPointFault UnableToDestroyPullPointFaultType
- // UnableToCreatePullPointFault type
- type UnableToCreatePullPointFault UnableToCreatePullPointFaultType
- // UnacceptableTerminationTimeFault type
- type UnacceptableTerminationTimeFault UnacceptableTerminationTimeFaultType
- // UnableToDestroySubscriptionFault type
- type UnableToDestroySubscriptionFault UnableToDestroySubscriptionFaultType
- // PauseFailedFault type
- type PauseFailedFault PauseFailedFaultType
- // ResumeFailedFault type
- type ResumeFailedFault ResumeFailedFaultType
- // Removed QueryExpressionType
- // TopicExpressionType type
- type TopicExpressionType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpression"`
- Dialect AnyURI `xml:"http://www.onvif.org/ver10/schema Dialect,attr,omitempty"`
- }
- // FilterType type
- type FilterType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 Filter"`
- }
- // SubscriptionPolicyType type
- type SubscriptionPolicyType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscriptionPolicy"`
- }
- // NotificationMessageHolderType type
- type NotificationMessageHolderType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotificationMessage"`
- SubscriptionReference SubscriptionReference `xml:"SubscriptionReference,omitempty"`
- Topic Topic `xml:"Topic,omitempty"`
- ProducerReference ProducerReference `xml:"ProducerReference,omitempty"`
- Message struct {
- } `xml:"Message,omitempty"`
- }
- // SubscribeCreationFailedFaultType type
- type SubscribeCreationFailedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 SubscribeCreationFailedFault"`
- *BaseFaultType
- }
- // InvalidFilterFaultType type
- type InvalidFilterFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidFilterFault"`
- *BaseFaultType
- UnknownFilter []QName `xml:"http://www.onvif.org/ver10/schema UnknownFilter,omitempty"`
- }
- // TopicExpressionDialectUnknownFaultType type
- type TopicExpressionDialectUnknownFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicExpressionDialectUnknownFault"`
- *BaseFaultType
- }
- // InvalidTopicExpressionFaultType type
- type InvalidTopicExpressionFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidTopicExpressionFault"`
- *BaseFaultType
- }
- // TopicNotSupportedFaultType type
- type TopicNotSupportedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 TopicNotSupportedFault"`
- *BaseFaultType
- }
- // MultipleTopicsSpecifiedFaultType type
- type MultipleTopicsSpecifiedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 MultipleTopicsSpecifiedFault"`
- *BaseFaultType
- }
- // InvalidProducerPropertiesExpressionFaultType type
- type InvalidProducerPropertiesExpressionFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidProducerPropertiesExpressionFault"`
- *BaseFaultType
- }
- // InvalidMessageContentExpressionFaultType type
- type InvalidMessageContentExpressionFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 InvalidMessageContentExpressionFault"`
- *BaseFaultType
- }
- // UnrecognizedPolicyRequestFaultType type
- type UnrecognizedPolicyRequestFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnrecognizedPolicyRequestFault"`
- *BaseFaultType
- UnrecognizedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnrecognizedPolicy,omitempty"`
- }
- // UnsupportedPolicyRequestFaultType type
- type UnsupportedPolicyRequestFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnsupportedPolicyRequestFault"`
- *BaseFaultType
- UnsupportedPolicy []QName `xml:"http://www.onvif.org/ver10/schema UnsupportedPolicy,omitempty"`
- }
- // NotifyMessageNotSupportedFaultType type
- type NotifyMessageNotSupportedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NotifyMessageNotSupportedFault"`
- *BaseFaultType
- }
- // UnacceptableInitialTerminationTimeFaultType type
- type UnacceptableInitialTerminationTimeFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableInitialTerminationTimeFault"`
- *BaseFaultType
- MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
- MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
- }
- // NoCurrentMessageOnTopicFaultType type
- type NoCurrentMessageOnTopicFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 NoCurrentMessageOnTopicFault"`
- *BaseFaultType
- }
- // UnableToGetMessagesFaultType type
- type UnableToGetMessagesFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToGetMessagesFault"`
- *BaseFaultType
- }
- // UnableToDestroyPullPointFaultType type
- type UnableToDestroyPullPointFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroyPullPointFault"`
- *BaseFaultType
- }
- // UnableToCreatePullPointFaultType type
- type UnableToCreatePullPointFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToCreatePullPointFault"`
- *BaseFaultType
- }
- // UnacceptableTerminationTimeFaultType type
- type UnacceptableTerminationTimeFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnacceptableTerminationTimeFault"`
- *BaseFaultType
- MinimumTime string `xml:"http://www.onvif.org/ver10/schema MinimumTime,omitempty"`
- MaximumTime string `xml:"http://www.onvif.org/ver10/schema MaximumTime,omitempty"`
- }
- // UnableToDestroySubscriptionFaultType type
- type UnableToDestroySubscriptionFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 UnableToDestroySubscriptionFault"`
- *BaseFaultType
- }
- // PauseFailedFaultType type
- type PauseFailedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 PauseFailedFault"`
- *BaseFaultType
- }
- // ResumeFailedFaultType type
- type ResumeFailedFaultType struct {
- XMLName xml.Name `xml:"http://docs.oasis-open.org/wsn/b-2 ResumeFailedFault"`
- *BaseFaultType
- }
- // Include type
- type Include struct {
- Href AnyURI `xml:"href,attr,omitempty"`
- }
- // Unique identifier for a physical or logical resource.
- // Tokens should be assigned such that they are unique within a device. Tokens must be at least unique within its class.
- // Length up to 64 characters.
- // ReferenceToken type
- type ReferenceToken string
- // MoveStatus type
- type MoveStatus string
- const (
- // MoveStatusIDLE const
- MoveStatusIDLE MoveStatus = "IDLE"
- // MoveStatusMOVING const
- MoveStatusMOVING MoveStatus = "MOVING"
- // MoveStatusUNKNOWN const
- MoveStatusUNKNOWN MoveStatus = "UNKNOWN"
- )
- // Entity type
- type Entity string
- const (
- // EntityDevice const
- EntityDevice Entity = "Device"
- // EntityVideoSource const
- EntityVideoSource Entity = "VideoSource"
- // EntityAudioSource const
- EntityAudioSource Entity = "AudioSource"
- )
- // IntRange type
- type IntRange struct {
- Min int32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
- Max int32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
- }
- // Vector2D type
- type Vector2D struct {
- X float32 `xml:"x,attr,omitempty"`
- Y float32 `xml:"y,attr,omitempty"`
- //
- // Pan/tilt coordinate space selector. The following options are defined:
- //
- Space AnyURI `xml:"space,attr,omitempty"`
- }
- // Vector1D type
- type Vector1D struct {
- X float32 `xml:"x,attr,omitempty"`
- //
- // Zoom coordinate space selector. The following options are defined:
- //
- Space AnyURI `xml:"space,attr,omitempty"`
- }
- // PTZVector type
- type PTZVector struct {
- // Pan and tilt position. The x component corresponds to pan and the y component to tilt.
- PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
- //
- // A zoom position.
- //
- Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
- }
- // PTZStatus type
- type PTZStatus struct {
- //
- // 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.
- //
- Position PTZVector `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
- //
- // Indicates if the Pan/Tilt/Zoom device unit is currently moving, idle or in an unknown state.
- //
- MoveStatus PTZMoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
- //
- // States a current PTZ error.
- //
- Error string `xml:"http://www.onvif.org/ver10/device/wsdl Error,omitempty"`
- //
- // Specifies the UTC time when this status was generated.
- //
- UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,omitempty"`
- }
- // PTZMoveStatus type
- type PTZMoveStatus struct {
- PanTilt MoveStatus `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
- Zoom MoveStatus `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
- }
- // Vector type
- type Vector struct {
- X float32 `xml:"x,attr,omitempty"`
- Y float32 `xml:"y,attr,omitempty"`
- }
- // Rectangle type
- type Rectangle struct {
- Bottom float32 `xml:"bottom,attr,omitempty"`
- Top float32 `xml:"top,attr,omitempty"`
- Right float32 `xml:"right,attr,omitempty"`
- Left float32 `xml:"left,attr,omitempty"`
- }
- // Polygon type
- type Polygon struct {
- Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
- }
- // Color type
- type Color struct {
- X float32 `xml:"http://www.onvif.org/ver10/schema X,attr,omitempty"`
- Y float32 `xml:"http://www.onvif.org/ver10/schema Y,attr,omitempty"`
- Z float32 `xml:"http://www.onvif.org/ver10/schema Z,attr,omitempty"`
- //
- // Acceptable values:
- //
- // If the Colorspace attribute is absent, YCbCr is implied.
- //
- // Deprecated values:
- //
- //
- Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,attr,omitempty"`
- }
- // Transformation type
- type Transformation struct {
- Translate Vector `xml:"http://www.onvif.org/ver10/schema Translate,omitempty"`
- Scale Vector `xml:"http://www.onvif.org/ver10/schema Scale,omitempty"`
- Extension TransformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // TransformationExtension type
- type TransformationExtension struct {
- }
- // GeoLocation type
- type GeoLocation struct {
- // East west location as angle.
- Lon float64 `xml:"lon,attr,omitempty"`
- // North south location as angle.
- Lat float64 `xml:"lat,attr,omitempty"`
- // Hight in meters above sea level.
- Elevation float32 `xml:"elevation,attr,omitempty"`
- }
- // GeoOrientation type
- type GeoOrientation struct {
- // Rotation around the x axis.
- Roll float32 `xml:"roll,attr,omitempty"`
- // Rotation around the y axis.
- Pitch float32 `xml:"pitch,attr,omitempty"`
- // Rotation around the z axis.
- Yaw float32 `xml:"yaw,attr,omitempty"`
- }
- // LocalLocation type
- type LocalLocation struct {
- // East west location as angle.
- X float32 `xml:"x,attr,omitempty"`
- // North south location as angle.
- Y float32 `xml:"y,attr,omitempty"`
- // Offset in meters from the sea level.
- Z float32 `xml:"z,attr,omitempty"`
- }
- // LocalOrientation type
- type LocalOrientation struct {
- // Rotation around the y axis.
- Pan float32 `xml:"pan,attr,omitempty"`
- // Rotation around the z axis.
- Tilt float32 `xml:"http://www.onvif.org/ver10/schema tilt,attr,omitempty"`
- // Rotation around the x axis.
- Roll float32 `xml:"roll,attr,omitempty"`
- }
- // LocationEntity type
- type LocationEntity struct {
- // Location on earth.
- GeoLocation GeoLocation `xml:"http://www.onvif.org/ver10/schema GeoLocation,omitempty"`
- // Orientation relative to earth.
- GeoOrientation GeoOrientation `xml:"http://www.onvif.org/ver10/schema GeoOrientation,omitempty"`
- // Indoor location offset.
- LocalLocation LocalLocation `xml:"http://www.onvif.org/ver10/schema LocalLocation,omitempty"`
- // Indoor orientation offset.
- LocalOrientation LocalOrientation `xml:"http://www.onvif.org/ver10/schema LocalOrientation,omitempty"`
- // Entity type the entry refers to, use a value from the tt:Entity enumeration.
- Entity string `xml:"http://www.onvif.org/ver10/device/wsdl Entity,attr,omitempty"`
- // Optional entity token.
- Token ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Token,attr,omitempty"`
- // If this value is true the entity cannot be deleted.
- Fixed bool `xml:"http://www.onvif.org/ver10/device/wsdl Fixed,attr,omitempty"`
- // Optional reference to the XAddr of another devices DeviceManagement service.
- GeoSource AnyURI `xml:"http://www.onvif.org/ver10/schema GeoSource,attr,omitempty"`
- // If set the geo location is obtained internally.
- AutoGeo bool `xml:"http://www.onvif.org/ver10/device/wsdl AutoGeo,attr,omitempty"`
- }
- // User readable name. Length up to 64 characters.
- // Name type
- type Name string
- // IntAttrList type
- type IntAttrList []int32
- // FloatAttrList type
- type FloatAttrList []float32
- // StringAttrList type
- type StringAttrList []string
- // ReferenceTokenList type
- type ReferenceTokenList []ReferenceToken
- // RotateMode type
- type RotateMode string
- const (
- // Enable the Rotate feature. Degree of rotation is specified Degree parameter.
- // RotateModeOFF const
- RotateModeOFF RotateMode = "OFF"
- // Disable the Rotate feature.
- // RotateModeON const
- RotateModeON RotateMode = "ON"
- // Rotate feature is automatically activated by the device.
- // RotateModeAUTO const
- RotateModeAUTO RotateMode = "AUTO"
- )
- // SceneOrientationMode type
- type SceneOrientationMode string
- const (
- // SceneOrientationModeMANUAL const
- SceneOrientationModeMANUAL SceneOrientationMode = "MANUAL"
- // SceneOrientationModeAUTO const
- SceneOrientationModeAUTO SceneOrientationMode = "AUTO"
- )
- // SceneOrientationOption type
- type SceneOrientationOption string
- const (
- // SceneOrientationOptionBelow const
- SceneOrientationOptionBelow SceneOrientationOption = "Below"
- // SceneOrientationOptionHorizon const
- SceneOrientationOptionHorizon SceneOrientationOption = "Horizon"
- // SceneOrientationOptionAbove const
- SceneOrientationOptionAbove SceneOrientationOption = "Above"
- )
- // Source view modes supported by device.
- // ViewModes type
- type ViewModes string
- const (
- // Undewarped viewmode from device supporting fisheye lens.
- // ViewModesTtFisheye const
- ViewModesTtFisheye ViewModes = "tt:Fisheye"
- // 360 degree panoramic view.
- // ViewModesTt360Panorama const
- ViewModesTt360Panorama ViewModes = "tt:360Panorama"
- // 180 degree panoramic view.
- // ViewModesTt180Panorama const
- ViewModesTt180Panorama ViewModes = "tt:180Panorama"
- // View mode combining four streams in single Quad, eg., applicable for devices supporting four heads.
- // ViewModesTtQuad const
- ViewModesTtQuad ViewModes = "tt:Quad"
- // Unaltered view from the sensor.
- // ViewModesTtOriginal const
- ViewModesTtOriginal ViewModes = "tt:Original"
- // Viewmode combining the left side sensors, applicable for devices supporting multiple sensors.
- // ViewModesTtLeftHalf const
- ViewModesTtLeftHalf ViewModes = "tt:LeftHalf"
- // Viewmode combining the right side sensors, applicable for devices supporting multiple sensors.
- // ViewModesTtRightHalf const
- ViewModesTtRightHalf ViewModes = "tt:RightHalf"
- // Dewarped view mode for device supporting fisheye lens.
- // ViewModesTtDewarp const
- ViewModesTtDewarp ViewModes = "tt:Dewarp"
- )
- // VideoEncoding type
- type VideoEncoding string
- const (
- // VideoEncodingJPEG const
- VideoEncodingJPEG VideoEncoding = "JPEG"
- // VideoEncodingMPEG4 const
- VideoEncodingMPEG4 VideoEncoding = "MPEG4"
- // VideoEncodingH264 const
- VideoEncodingH264 VideoEncoding = "H264"
- )
- // Mpeg4Profile type
- type Mpeg4Profile string
- const (
- // Mpeg4ProfileSP const
- Mpeg4ProfileSP Mpeg4Profile = "SP"
- // Mpeg4ProfileASP const
- Mpeg4ProfileASP Mpeg4Profile = "ASP"
- )
- // H264Profile type
- type H264Profile string
- const (
- // H264ProfileBaseline const
- H264ProfileBaseline H264Profile = "Baseline"
- // H264ProfileMain const
- H264ProfileMain H264Profile = "Main"
- // H264ProfileExtended const
- H264ProfileExtended H264Profile = "Extended"
- // H264ProfileHigh const
- H264ProfileHigh H264Profile = "High"
- )
- // Video Media Subtypes as referenced by IANA (without the leading "video/" Video Media Type). See also .
- // VideoEncodingMimeNames type
- type VideoEncodingMimeNames string
- const (
- // VideoEncodingMimeNamesJPEG const
- VideoEncodingMimeNamesJPEG VideoEncodingMimeNames = "JPEG"
- // VideoEncodingMimeNamesMPV4ES const
- VideoEncodingMimeNamesMPV4ES VideoEncodingMimeNames = "MPV4-ES"
- // VideoEncodingMimeNamesH264 const
- VideoEncodingMimeNamesH264 VideoEncodingMimeNames = "H264"
- // VideoEncodingMimeNamesH265 const
- VideoEncodingMimeNamesH265 VideoEncodingMimeNames = "H265"
- )
- // VideoEncodingProfiles type
- type VideoEncodingProfiles string
- const (
- // VideoEncodingProfilesSimple const
- VideoEncodingProfilesSimple VideoEncodingProfiles = "Simple"
- // VideoEncodingProfilesAdvancedSimple const
- VideoEncodingProfilesAdvancedSimple VideoEncodingProfiles = "AdvancedSimple"
- // VideoEncodingProfilesBaseline const
- VideoEncodingProfilesBaseline VideoEncodingProfiles = "Baseline"
- // VideoEncodingProfilesMain const
- VideoEncodingProfilesMain VideoEncodingProfiles = "Main"
- // VideoEncodingProfilesMain10 const
- VideoEncodingProfilesMain10 VideoEncodingProfiles = "Main10"
- // VideoEncodingProfilesExtended const
- VideoEncodingProfilesExtended VideoEncodingProfiles = "Extended"
- // VideoEncodingProfilesHigh const
- VideoEncodingProfilesHigh VideoEncodingProfiles = "High"
- )
- // AudioEncoding type
- type AudioEncoding string
- const (
- // AudioEncodingG711 const
- AudioEncodingG711 AudioEncoding = "G711"
- // AudioEncodingG726 const
- AudioEncodingG726 AudioEncoding = "G726"
- // AudioEncodingAAC const
- AudioEncodingAAC AudioEncoding = "AAC"
- )
- // Audio Media Subtypes as referenced by IANA (without the leading "audio/" Audio Media Type). See also .
- // AudioEncodingMimeNames type
- type AudioEncodingMimeNames string
- const (
- // AudioEncodingMimeNamesPCMU const
- AudioEncodingMimeNamesPCMU AudioEncodingMimeNames = "PCMU"
- // AudioEncodingMimeNamesG726 const
- AudioEncodingMimeNamesG726 AudioEncodingMimeNames = "G726"
- // AudioEncodingMimeNamesMP4ALATM const
- AudioEncodingMimeNamesMP4ALATM AudioEncodingMimeNames = "MP4A-LATM"
- // AudioEncodingMimeNamesMpeg4generic const
- AudioEncodingMimeNamesMpeg4generic AudioEncodingMimeNames = "mpeg4-generic"
- )
- // MetadataCompressionType type
- type MetadataCompressionType string
- const (
- // MetadataCompressionTypeNone const
- MetadataCompressionTypeNone MetadataCompressionType = "None"
- // MetadataCompressionTypeGZIP const
- MetadataCompressionTypeGZIP MetadataCompressionType = "GZIP"
- // MetadataCompressionTypeEXI const
- MetadataCompressionTypeEXI MetadataCompressionType = "EXI"
- )
- // StreamType type
- type StreamType string
- const (
- // StreamTypeRTPUnicast const
- StreamTypeRTPUnicast StreamType = "RTP-Unicast"
- // StreamTypeRTPMulticast const
- StreamTypeRTPMulticast StreamType = "RTP-Multicast"
- )
- // TransportProtocol type
- type TransportProtocol string
- const (
- // TransportProtocolUDP const
- TransportProtocolUDP TransportProtocol = "UDP"
- // This value is deprecated.
- // TransportProtocolTCP const
- TransportProtocolTCP TransportProtocol = "TCP"
- // TransportProtocolRTSP const
- TransportProtocolRTSP TransportProtocol = "RTSP"
- // TransportProtocolHTTP const
- TransportProtocolHTTP TransportProtocol = "HTTP"
- )
- // ScopeDefinition type
- type ScopeDefinition string
- const (
- // ScopeDefinitionFixed const
- ScopeDefinitionFixed ScopeDefinition = "Fixed"
- // ScopeDefinitionConfigurable const
- ScopeDefinitionConfigurable ScopeDefinition = "Configurable"
- )
- // DiscoveryMode type
- type DiscoveryMode string
- const (
- // DiscoveryModeDiscoverable const
- DiscoveryModeDiscoverable DiscoveryMode = "Discoverable"
- // DiscoveryModeNonDiscoverable const
- DiscoveryModeNonDiscoverable DiscoveryMode = "NonDiscoverable"
- )
- // NetworkInterfaceConfigPriority type
- type NetworkInterfaceConfigPriority int32
- // Duplex type
- type Duplex string
- const (
- // DuplexFull const
- DuplexFull Duplex = "Full"
- // DuplexHalf const
- DuplexHalf Duplex = "Half"
- )
- // IANAIfTypes type
- type IANAIfTypes int32
- // IPv6DHCPConfiguration type
- type IPv6DHCPConfiguration string
- const (
- // IPv6DHCPConfigurationAuto const
- IPv6DHCPConfigurationAuto IPv6DHCPConfiguration = "Auto"
- // IPv6DHCPConfigurationStateful const
- IPv6DHCPConfigurationStateful IPv6DHCPConfiguration = "Stateful"
- // IPv6DHCPConfigurationStateless const
- IPv6DHCPConfigurationStateless IPv6DHCPConfiguration = "Stateless"
- // IPv6DHCPConfigurationOff const
- IPv6DHCPConfigurationOff IPv6DHCPConfiguration = "Off"
- )
- // NetworkProtocolType type
- type NetworkProtocolType string
- const (
- // NetworkProtocolTypeHTTP const
- NetworkProtocolTypeHTTP NetworkProtocolType = "HTTP"
- // NetworkProtocolTypeHTTPS const
- NetworkProtocolTypeHTTPS NetworkProtocolType = "HTTPS"
- // NetworkProtocolTypeRTSP const
- NetworkProtocolTypeRTSP NetworkProtocolType = "RTSP"
- )
- // NetworkHostType type
- type NetworkHostType string
- const (
- // NetworkHostTypeIPv4 const
- NetworkHostTypeIPv4 NetworkHostType = "IPv4"
- // NetworkHostTypeIPv6 const
- NetworkHostTypeIPv6 NetworkHostType = "IPv6"
- // NetworkHostTypeDNS const
- NetworkHostTypeDNS NetworkHostType = "DNS"
- )
- // IPv4Address type
- type IPv4Address string
- // IPv6Address type
- type IPv6Address string
- // HwAddress type
- type HwAddress string
- // IPType type
- type IPType string
- const (
- // IPTypeIPv4 const
- IPTypeIPv4 IPType = "IPv4"
- // IPTypeIPv6 const
- IPTypeIPv6 IPType = "IPv6"
- )
- // DNSName type
- type DNSName string
- // IPAddressFilterType type
- type IPAddressFilterType string
- const (
- // IPAddressFilterTypeAllow const
- IPAddressFilterTypeAllow IPAddressFilterType = "Allow"
- // IPAddressFilterTypeDeny const
- IPAddressFilterTypeDeny IPAddressFilterType = "Deny"
- )
- // DynamicDNSType type
- type DynamicDNSType string
- const (
- // DynamicDNSTypeNoUpdate const
- DynamicDNSTypeNoUpdate DynamicDNSType = "NoUpdate"
- // DynamicDNSTypeClientUpdates const
- DynamicDNSTypeClientUpdates DynamicDNSType = "ClientUpdates"
- // DynamicDNSTypeServerUpdates const
- DynamicDNSTypeServerUpdates DynamicDNSType = "ServerUpdates"
- )
- // Dot11SSIDType type
- type Dot11SSIDType []byte
- // Dot11StationMode type
- type Dot11StationMode string
- const (
- // Dot11StationModeAdhoc const
- Dot11StationModeAdhoc Dot11StationMode = "Ad-hoc"
- // Dot11StationModeInfrastructure const
- Dot11StationModeInfrastructure Dot11StationMode = "Infrastructure"
- // Dot11StationModeExtended const
- Dot11StationModeExtended Dot11StationMode = "Extended"
- )
- // Dot11SecurityMode type
- type Dot11SecurityMode string
- const (
- // Dot11SecurityModeNone const
- Dot11SecurityModeNone Dot11SecurityMode = "None"
- // Dot11SecurityModeWEP const
- Dot11SecurityModeWEP Dot11SecurityMode = "WEP"
- // Dot11SecurityModePSK const
- Dot11SecurityModePSK Dot11SecurityMode = "PSK"
- // Dot11SecurityModeDot1X const
- Dot11SecurityModeDot1X Dot11SecurityMode = "Dot1X"
- // Dot11SecurityModeExtended const
- Dot11SecurityModeExtended Dot11SecurityMode = "Extended"
- )
- // Dot11Cipher type
- type Dot11Cipher string
- const (
- // Dot11CipherCCMP const
- Dot11CipherCCMP Dot11Cipher = "CCMP"
- // Dot11CipherTKIP const
- Dot11CipherTKIP Dot11Cipher = "TKIP"
- // Dot11CipherAny const
- Dot11CipherAny Dot11Cipher = "Any"
- // Dot11CipherExtended const
- Dot11CipherExtended Dot11Cipher = "Extended"
- )
- // Dot11PSK type
- type Dot11PSK []byte
- // Dot11PSKPassphrase type
- type Dot11PSKPassphrase string
- // Dot11SignalStrength type
- type Dot11SignalStrength string
- const (
- // Dot11SignalStrengthNone const
- Dot11SignalStrengthNone Dot11SignalStrength = "None"
- // Dot11SignalStrengthVeryBad const
- Dot11SignalStrengthVeryBad Dot11SignalStrength = "Very Bad"
- // Dot11SignalStrengthBad const
- Dot11SignalStrengthBad Dot11SignalStrength = "Bad"
- // Dot11SignalStrengthGood const
- Dot11SignalStrengthGood Dot11SignalStrength = "Good"
- // Dot11SignalStrengthVeryGood const
- Dot11SignalStrengthVeryGood Dot11SignalStrength = "Very Good"
- // Dot11SignalStrengthExtended const
- Dot11SignalStrengthExtended Dot11SignalStrength = "Extended"
- )
- // Dot11AuthAndMangementSuite type
- type Dot11AuthAndMangementSuite string
- const (
- // Dot11AuthAndMangementSuiteNone const
- Dot11AuthAndMangementSuiteNone Dot11AuthAndMangementSuite = "None"
- // Dot11AuthAndMangementSuiteDot1X const
- Dot11AuthAndMangementSuiteDot1X Dot11AuthAndMangementSuite = "Dot1X"
- // Dot11AuthAndMangementSuitePSK const
- Dot11AuthAndMangementSuitePSK Dot11AuthAndMangementSuite = "PSK"
- // Dot11AuthAndMangementSuiteExtended const
- Dot11AuthAndMangementSuiteExtended Dot11AuthAndMangementSuite = "Extended"
- )
- // CapabilityCategory type
- type CapabilityCategory string
- const (
- // CapabilityCategoryAll const
- CapabilityCategoryAll CapabilityCategory = "All"
- // CapabilityCategoryAnalytics const
- CapabilityCategoryAnalytics CapabilityCategory = "Analytics"
- // CapabilityCategoryDevice const
- CapabilityCategoryDevice CapabilityCategory = "Device"
- // CapabilityCategoryEvents const
- CapabilityCategoryEvents CapabilityCategory = "Events"
- // CapabilityCategoryImaging const
- CapabilityCategoryImaging CapabilityCategory = "Imaging"
- // CapabilityCategoryMedia const
- CapabilityCategoryMedia CapabilityCategory = "Media"
- // CapabilityCategoryPTZ const
- CapabilityCategoryPTZ CapabilityCategory = "PTZ"
- )
- // Enumeration describing the available system log modes.
- // SystemLogType type
- type SystemLogType string
- const (
- // Indicates that a system log is requested.
- // SystemLogTypeSystem const
- SystemLogTypeSystem SystemLogType = "System"
- // Indicates that a access log is requested.
- // SystemLogTypeAccess const
- SystemLogTypeAccess SystemLogType = "Access"
- )
- // Enumeration describing the available factory default modes.
- // FactoryDefaultType type
- type FactoryDefaultType string
- const (
- // Indicates that a hard factory default is requested.
- // FactoryDefaultTypeHard const
- FactoryDefaultTypeHard FactoryDefaultType = "Hard"
- // Indicates that a soft factory default is requested.
- // FactoryDefaultTypeSoft const
- FactoryDefaultTypeSoft FactoryDefaultType = "Soft"
- )
- // SetDateTimeType type
- type SetDateTimeType string
- const (
- // Indicates that the date and time are set manually.
- // SetDateTimeTypeManual const
- SetDateTimeTypeManual SetDateTimeType = "Manual"
- // Indicates that the date and time are set through NTP
- // SetDateTimeTypeNTP const
- SetDateTimeTypeNTP SetDateTimeType = "NTP"
- )
- // UserLevel type
- type UserLevel string
- const (
- // UserLevelAdministrator const
- UserLevelAdministrator UserLevel = "Administrator"
- // UserLevelOperator const
- UserLevelOperator UserLevel = "Operator"
- // UserLevelUser const
- UserLevelUser UserLevel = "User"
- // UserLevelAnonymous const
- UserLevelAnonymous UserLevel = "Anonymous"
- // UserLevelExtended const
- UserLevelExtended UserLevel = "Extended"
- )
- // RelayLogicalState type
- type RelayLogicalState string
- const (
- // RelayLogicalStateActive const
- RelayLogicalStateActive RelayLogicalState = "active"
- // RelayLogicalStateInactive const
- RelayLogicalStateInactive RelayLogicalState = "inactive"
- )
- // RelayIdleState type
- type RelayIdleState string
- const (
- // RelayIdleStateClosed const
- RelayIdleStateClosed RelayIdleState = "closed"
- // RelayIdleStateOpen const
- RelayIdleStateOpen RelayIdleState = "open"
- )
- // RelayMode type
- type RelayMode string
- const (
- // RelayModeMonostable const
- RelayModeMonostable RelayMode = "Monostable"
- // RelayModeBistable const
- RelayModeBistable RelayMode = "Bistable"
- )
- // DigitalIdleState type
- type DigitalIdleState string
- const (
- // DigitalIdleStateClosed const
- DigitalIdleStateClosed DigitalIdleState = "closed"
- // DigitalIdleStateOpen const
- DigitalIdleStateOpen DigitalIdleState = "open"
- )
- // EFlipMode type
- type EFlipMode string
- const (
- // EFlipModeOFF const
- EFlipModeOFF EFlipMode = "OFF"
- // EFlipModeON const
- EFlipModeON EFlipMode = "ON"
- // EFlipModeExtended const
- EFlipModeExtended EFlipMode = "Extended"
- )
- // ReverseMode type
- type ReverseMode string
- const (
- // ReverseModeOFF const
- ReverseModeOFF ReverseMode = "OFF"
- // ReverseModeON const
- ReverseModeON ReverseMode = "ON"
- // ReverseModeAUTO const
- ReverseModeAUTO ReverseMode = "AUTO"
- // ReverseModeExtended const
- ReverseModeExtended ReverseMode = "Extended"
- )
- // AuxiliaryData type
- type AuxiliaryData string
- // PTZPresetTourState type
- type PTZPresetTourState string
- const (
- // PTZPresetTourStateIdle const
- PTZPresetTourStateIdle PTZPresetTourState = "Idle"
- // PTZPresetTourStateTouring const
- PTZPresetTourStateTouring PTZPresetTourState = "Touring"
- // PTZPresetTourStatePaused const
- PTZPresetTourStatePaused PTZPresetTourState = "Paused"
- // PTZPresetTourStateExtended const
- PTZPresetTourStateExtended PTZPresetTourState = "Extended"
- )
- // PTZPresetTourDirection type
- type PTZPresetTourDirection string
- const (
- // PTZPresetTourDirectionForward const
- PTZPresetTourDirectionForward PTZPresetTourDirection = "Forward"
- // PTZPresetTourDirectionBackward const
- PTZPresetTourDirectionBackward PTZPresetTourDirection = "Backward"
- // PTZPresetTourDirectionExtended const
- PTZPresetTourDirectionExtended PTZPresetTourDirection = "Extended"
- )
- // PTZPresetTourOperation type
- type PTZPresetTourOperation string
- const (
- // PTZPresetTourOperationStart const
- PTZPresetTourOperationStart PTZPresetTourOperation = "Start"
- // PTZPresetTourOperationStop const
- PTZPresetTourOperationStop PTZPresetTourOperation = "Stop"
- // PTZPresetTourOperationPause const
- PTZPresetTourOperationPause PTZPresetTourOperation = "Pause"
- // PTZPresetTourOperationExtended const
- PTZPresetTourOperationExtended PTZPresetTourOperation = "Extended"
- )
- // AutoFocusMode type
- type AutoFocusMode string
- const (
- // AutoFocusModeAUTO const
- AutoFocusModeAUTO AutoFocusMode = "AUTO"
- // AutoFocusModeMANUAL const
- AutoFocusModeMANUAL AutoFocusMode = "MANUAL"
- )
- // AFModes type
- type AFModes string
- const (
- // Focus of a moving camera is updated only once after stopping a pan, tilt or zoom movement.
- // AFModesOnceAfterMove const
- AFModesOnceAfterMove AFModes = "OnceAfterMove"
- )
- // WideDynamicMode type
- type WideDynamicMode string
- const (
- // WideDynamicModeOFF const
- WideDynamicModeOFF WideDynamicMode = "OFF"
- // WideDynamicModeON const
- WideDynamicModeON WideDynamicMode = "ON"
- )
- // Enumeration describing the available backlight compenstation modes.
- // BacklightCompensationMode type
- type BacklightCompensationMode string
- const (
- // Backlight compensation is disabled.
- // BacklightCompensationModeOFF const
- BacklightCompensationModeOFF BacklightCompensationMode = "OFF"
- // Backlight compensation is enabled.
- // BacklightCompensationModeON const
- BacklightCompensationModeON BacklightCompensationMode = "ON"
- )
- // ExposurePriority type
- type ExposurePriority string
- const (
- // ExposurePriorityLowNoise const
- ExposurePriorityLowNoise ExposurePriority = "LowNoise"
- // ExposurePriorityFrameRate const
- ExposurePriorityFrameRate ExposurePriority = "FrameRate"
- )
- // ExposureMode type
- type ExposureMode string
- const (
- // ExposureModeAUTO const
- ExposureModeAUTO ExposureMode = "AUTO"
- // ExposureModeMANUAL const
- ExposureModeMANUAL ExposureMode = "MANUAL"
- )
- // Enabled type
- type Enabled string
- const (
- // EnabledENABLED const
- EnabledENABLED Enabled = "ENABLED"
- // EnabledDISABLED const
- EnabledDISABLED Enabled = "DISABLED"
- )
- // WhiteBalanceMode type
- type WhiteBalanceMode string
- const (
- // WhiteBalanceModeAUTO const
- WhiteBalanceModeAUTO WhiteBalanceMode = "AUTO"
- // WhiteBalanceModeMANUAL const
- WhiteBalanceModeMANUAL WhiteBalanceMode = "MANUAL"
- )
- // IrCutFilterMode type
- type IrCutFilterMode string
- const (
- // IrCutFilterModeON const
- IrCutFilterModeON IrCutFilterMode = "ON"
- // IrCutFilterModeOFF const
- IrCutFilterModeOFF IrCutFilterMode = "OFF"
- // IrCutFilterModeAUTO const
- IrCutFilterModeAUTO IrCutFilterMode = "AUTO"
- )
- // ImageStabilizationMode type
- type ImageStabilizationMode string
- const (
- // ImageStabilizationModeOFF const
- ImageStabilizationModeOFF ImageStabilizationMode = "OFF"
- // ImageStabilizationModeON const
- ImageStabilizationModeON ImageStabilizationMode = "ON"
- // ImageStabilizationModeAUTO const
- ImageStabilizationModeAUTO ImageStabilizationMode = "AUTO"
- // ImageStabilizationModeExtended const
- ImageStabilizationModeExtended ImageStabilizationMode = "Extended"
- )
- // IrCutFilterAutoBoundaryType type
- type IrCutFilterAutoBoundaryType string
- const (
- // IrCutFilterAutoBoundaryTypeCommon const
- IrCutFilterAutoBoundaryTypeCommon IrCutFilterAutoBoundaryType = "Common"
- // IrCutFilterAutoBoundaryTypeToOn const
- IrCutFilterAutoBoundaryTypeToOn IrCutFilterAutoBoundaryType = "ToOn"
- // IrCutFilterAutoBoundaryTypeToOff const
- IrCutFilterAutoBoundaryTypeToOff IrCutFilterAutoBoundaryType = "ToOff"
- // IrCutFilterAutoBoundaryTypeExtended const
- IrCutFilterAutoBoundaryTypeExtended IrCutFilterAutoBoundaryType = "Extended"
- )
- // ToneCompensationMode type
- type ToneCompensationMode string
- const (
- // ToneCompensationModeOFF const
- ToneCompensationModeOFF ToneCompensationMode = "OFF"
- // ToneCompensationModeON const
- ToneCompensationModeON ToneCompensationMode = "ON"
- // ToneCompensationModeAUTO const
- ToneCompensationModeAUTO ToneCompensationMode = "AUTO"
- )
- // DefoggingMode type
- type DefoggingMode string
- const (
- // DefoggingModeOFF const
- DefoggingModeOFF DefoggingMode = "OFF"
- // DefoggingModeON const
- DefoggingModeON DefoggingMode = "ON"
- // DefoggingModeAUTO const
- DefoggingModeAUTO DefoggingMode = "AUTO"
- )
- // TopicNamespaceLocation type
- type TopicNamespaceLocation AnyURI
- // PropertyOperation type
- type PropertyOperation string
- const (
- // PropertyOperationInitialized const
- PropertyOperationInitialized PropertyOperation = "Initialized"
- // PropertyOperationDeleted const
- PropertyOperationDeleted PropertyOperation = "Deleted"
- // PropertyOperationChanged const
- PropertyOperationChanged PropertyOperation = "Changed"
- )
- // Direction type
- type Direction string
- const (
- // DirectionLeft const
- DirectionLeft Direction = "Left"
- // DirectionRight const
- DirectionRight Direction = "Right"
- // DirectionAny const
- DirectionAny Direction = "Any"
- )
- //
- // Specifies a receiver connection mode.
- //
- // ReceiverMode type
- type ReceiverMode string
- const (
- // The receiver connects on demand, as required by consumers of the media streams.
- // ReceiverModeAutoConnect const
- ReceiverModeAutoConnect ReceiverMode = "AutoConnect"
- // The receiver attempts to maintain a persistent connection to the configured endpoint.
- // ReceiverModeAlwaysConnect const
- ReceiverModeAlwaysConnect ReceiverMode = "AlwaysConnect"
- // The receiver does not attempt to connect.
- // ReceiverModeNeverConnect const
- ReceiverModeNeverConnect ReceiverMode = "NeverConnect"
- // This case should never happen.
- // ReceiverModeUnknown const
- ReceiverModeUnknown ReceiverMode = "Unknown"
- )
- //
- // Specifies the current connection state of the receiver.
- //
- // ReceiverState type
- type ReceiverState string
- const (
- // The receiver is not connected.
- // ReceiverStateNotConnected const
- ReceiverStateNotConnected ReceiverState = "NotConnected"
- // The receiver is attempting to connect.
- // ReceiverStateConnecting const
- ReceiverStateConnecting ReceiverState = "Connecting"
- // The receiver is connected.
- // ReceiverStateConnected const
- ReceiverStateConnected ReceiverState = "Connected"
- // This case should never happen.
- // ReceiverStateUnknown const
- ReceiverStateUnknown ReceiverState = "Unknown"
- )
- // ReceiverReference type
- type ReceiverReference ReferenceToken
- // RecordingReference type
- type RecordingReference ReferenceToken
- // TrackReference type
- type TrackReference ReferenceToken
- // Description type
- type Description string
- // XPathExpression type
- type XPathExpression string
- // SearchState type
- type SearchState string
- const (
- // The search is queued and not yet started.
- // SearchStateQueued const
- SearchStateQueued SearchState = "Queued"
- // The search is underway and not yet completed.
- // SearchStateSearching const
- SearchStateSearching SearchState = "Searching"
- // The search has been completed and no new results will be found.
- // SearchStateCompleted const
- SearchStateCompleted SearchState = "Completed"
- // The state of the search is unknown. (This is not a valid response from GetSearchState.)
- // SearchStateUnknown const
- SearchStateUnknown SearchState = "Unknown"
- )
- // JobToken type
- type JobToken ReferenceToken
- // RecordingStatus type
- type RecordingStatus string
- const (
- // RecordingStatusInitiated const
- RecordingStatusInitiated RecordingStatus = "Initiated"
- // RecordingStatusRecording const
- RecordingStatusRecording RecordingStatus = "Recording"
- // RecordingStatusStopped const
- RecordingStatusStopped RecordingStatus = "Stopped"
- // RecordingStatusRemoving const
- RecordingStatusRemoving RecordingStatus = "Removing"
- // RecordingStatusRemoved const
- RecordingStatusRemoved RecordingStatus = "Removed"
- // This case should never happen.
- // RecordingStatusUnknown const
- RecordingStatusUnknown RecordingStatus = "Unknown"
- )
- // TrackType type
- type TrackType string
- const (
- // TrackTypeVideo const
- TrackTypeVideo TrackType = "Video"
- // TrackTypeAudio const
- TrackTypeAudio TrackType = "Audio"
- // TrackTypeMetadata const
- TrackTypeMetadata TrackType = "Metadata"
- // Placeholder for future extension.
- // TrackTypeExtended const
- TrackTypeExtended TrackType = "Extended"
- )
- // RecordingJobReference type
- type RecordingJobReference ReferenceToken
- // RecordingJobMode type
- type RecordingJobMode string
- // RecordingJobState type
- type RecordingJobState string
- // ModeOfOperation type
- type ModeOfOperation string
- const (
- // ModeOfOperationIdle const
- ModeOfOperationIdle ModeOfOperation = "Idle"
- // ModeOfOperationActive const
- ModeOfOperationActive ModeOfOperation = "Active"
- // This case should never happen.
- // ModeOfOperationUnknown const
- ModeOfOperationUnknown ModeOfOperation = "Unknown"
- )
- //
- // AudioClassType acceptable values are;
- // gun_shot, scream, glass_breaking, tire_screech
- //
- // AudioClassType type
- type AudioClassType string
- // OSDType type
- type OSDType string
- const (
- // OSDTypeText const
- OSDTypeText OSDType = "Text"
- // OSDTypeImage const
- OSDTypeImage OSDType = "Image"
- // OSDTypeExtended const
- OSDTypeExtended OSDType = "Extended"
- )
- // Message type
- type Message struct {
- XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Message"`
- // Token value pairs that triggered this message. Typically only one item is present.
- Source ItemList `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
- Key ItemList `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
- Data ItemList `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
- Extension MessageExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- UtcTime string `xml:"http://www.onvif.org/ver10/schema UtcTime,attr,omitempty"`
- PropertyOperation PropertyOperation `xml:"http://www.onvif.org/ver10/schema PropertyOperation,attr,omitempty"`
- }
- // DeviceEntity type
- type DeviceEntity struct {
- // Unique identifier referencing the physical entity.
- Token ReferenceToken `xml:"token,attr,omitempty"`
- }
- // IntRectangle type
- type IntRectangle struct {
- X int32 `xml:"x,attr,omitempty"`
- Y int32 `xml:"y,attr,omitempty"`
- Width int32 `xml:"width,attr,omitempty"`
- Height int32 `xml:"height,attr,omitempty"`
- }
- // IntRectangleRange type
- type IntRectangleRange struct {
- // Range of X-axis.
- XRange IntRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
- // Range of Y-axis.
- YRange IntRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
- // Range of width.
- WidthRange IntRange `xml:"http://www.onvif.org/ver10/schema WidthRange,omitempty"`
- // Range of height.
- HeightRange IntRange `xml:"http://www.onvif.org/ver10/schema HeightRange,omitempty"`
- }
- // FloatRange type
- type FloatRange struct {
- Min float32 `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
- Max float32 `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
- }
- // DurationRange type
- type DurationRange struct {
- Min Duration `xml:"http://www.onvif.org/ver10/schema Min,omitempty"`
- Max Duration `xml:"http://www.onvif.org/ver10/schema Max,omitempty"`
- }
- // IntList type
- type IntList struct {
- Items []int32 `xml:"http://www.onvif.org/ver10/schema Items,omitempty"`
- }
- // VideoSource type
- type VideoSource struct {
- *DeviceEntity
- // Frame rate in frames per second.
- Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
- // Horizontal and vertical resolution
- Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
- // Optional configuration of the image sensor.
- Imaging ImagingSettings `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
- Extension VideoSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoSourceExtension type
- type VideoSourceExtension struct {
- // Optional configuration of the image sensor. To be used if imaging service 2.00 is supported.
- Imaging ImagingSettings20 `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
- Extension VideoSourceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoSourceExtension2 type
- type VideoSourceExtension2 struct {
- }
- // AudioSource type
- type AudioSource struct {
- *DeviceEntity
- // number of available audio channels. (1: mono, 2: stereo)
- Channels int32 `xml:"http://www.onvif.org/ver10/schema Channels,omitempty"`
- }
- // Profile type
- type Profile struct {
- // User readable name of the profile.
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Optional configuration of the Video input.
- VideoSourceConfiguration VideoSourceConfiguration `xml:"http://www.onvif.org/ver10/schema VideoSourceConfiguration,omitempty"`
- // Optional configuration of the Audio input.
- AudioSourceConfiguration AudioSourceConfiguration `xml:"http://www.onvif.org/ver10/schema AudioSourceConfiguration,omitempty"`
- // Optional configuration of the Video encoder.
- VideoEncoderConfiguration VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema VideoEncoderConfiguration,omitempty"`
- // Optional configuration of the Audio encoder.
- AudioEncoderConfiguration AudioEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioEncoderConfiguration,omitempty"`
- // Optional configuration of the video analytics module and rule engine.
- VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/schema VideoAnalyticsConfiguration,omitempty"`
- // Optional configuration of the pan tilt zoom unit.
- PTZConfiguration PTZConfiguration `xml:"http://www.onvif.org/ver10/schema PTZConfiguration,omitempty"`
- // Optional configuration of the metadata stream.
- MetadataConfiguration MetadataConfiguration `xml:"http://www.onvif.org/ver10/schema MetadataConfiguration,omitempty"`
- // Extensions defined in ONVIF 2.0
- Extension ProfileExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Unique identifier of the profile.
- Token ReferenceToken `xml:"token,attr,omitempty"`
- // A value of true signals that the profile cannot be deleted. Default is false.
- Fixed bool `xml:"fixed,attr,omitempty"`
- }
- // ProfileExtension type
- type ProfileExtension struct {
- // Optional configuration of the Audio output.
- AudioOutputConfiguration AudioOutputConfiguration `xml:"http://www.onvif.org/ver10/schema AudioOutputConfiguration,omitempty"`
- // Optional configuration of the Audio decoder.
- AudioDecoderConfiguration AudioDecoderConfiguration `xml:"http://www.onvif.org/ver10/schema AudioDecoderConfiguration,omitempty"`
- Extension ProfileExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ProfileExtension2 type
- type ProfileExtension2 struct {
- }
- // ConfigurationEntity type
- type ConfigurationEntity struct {
- // User readable name. Length up to 64 characters.
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Number of internal references currently using this configuration.
- UseCount int32 `xml:"http://www.onvif.org/ver10/schema UseCount,omitempty"`
- // Token that uniquely references this configuration. Length up to 64 characters.
- Token ReferenceToken `xml:"token,attr,omitempty"`
- }
- // VideoSourceConfiguration type
- type VideoSourceConfiguration struct {
- *ConfigurationEntity
- // Reference to the physical input.
- SourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl SourceToken,omitempty"`
- // Rectangle specifying the Video capturing area. The capturing area shall not be larger than the whole Video source area.
- Bounds IntRectangle `xml:"http://www.onvif.org/ver10/schema Bounds,omitempty"`
- Extension VideoSourceConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Readonly parameter signalling Source configuration's view mode, for devices supporting different view modes as defined in tt:viewModes.
- ViewMode string `xml:"http://www.onvif.org/ver10/device/wsdl ViewMode,attr,omitempty"`
- }
- // VideoSourceConfigurationExtension type
- type VideoSourceConfigurationExtension struct {
- // Optional element to configure rotation of captured image.
- // What resolutions a device supports shall be unaffected by the Rotate parameters.
- // 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.
- // The device shall automatically apply the same rotation to its pan/tilt control direction depending on the following condition:
- // if Reverse=AUTO in PTControlDirection or if the device doesn’t support Reverse in PTControlDirection
- //
- Rotate Rotate `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
- Extension VideoSourceConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoSourceConfigurationExtension2 type
- type VideoSourceConfigurationExtension2 struct {
- // Optional element describing the geometric lens distortion. Multiple instances for future variable lens support.
- LensDescription []LensDescription `xml:"http://www.onvif.org/ver10/schema LensDescription,omitempty"`
- // Optional element describing the scene orientation in the camera’s field of view.
- SceneOrientation SceneOrientation `xml:"http://www.onvif.org/ver10/schema SceneOrientation,omitempty"`
- }
- // Rotate type
- type Rotate struct {
- // Parameter to enable/disable Rotation feature.
- Mode RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // 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.
- Degree int32 `xml:"http://www.onvif.org/ver10/schema Degree,omitempty"`
- Extension RotateExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RotateExtension type
- type RotateExtension struct {
- }
- // LensProjection type
- type LensProjection struct {
- // Angle of incidence.
- Angle float32 `xml:"http://www.onvif.org/ver10/schema Angle,omitempty"`
- // Mapping radius as a consequence of the emergent angle.
- Radius float32 `xml:"http://www.onvif.org/ver10/schema Radius,omitempty"`
- // Optional ray absorption at the given angle due to vignetting. A value of one means no absorption.
- Transmittance float32 `xml:"http://www.onvif.org/ver10/schema Transmittance,omitempty"`
- }
- // LensOffset type
- type LensOffset struct {
- // Optional horizontal offset of the lens center in normalized coordinates.
- X float32 `xml:"x,attr,omitempty"`
- // Optional vertical offset of the lens center in normalized coordinates.
- Y float32 `xml:"y,attr,omitempty"`
- }
- // LensDescription type
- type LensDescription struct {
- // Offset of the lens center to the imager center in normalized coordinates.
- Offset LensOffset `xml:"http://www.onvif.org/ver10/schema Offset,omitempty"`
- // Radial description of the projection characteristics. The resulting curve is defined by the B-Spline interpolation
- // over the given elements. The element for Radius zero shall not be provided. The projection points shall be ordered with ascending Radius.
- // Items outside the last projection Radius shall be assumed to be invisible (black).
- Projection []LensProjection `xml:"http://www.onvif.org/ver10/schema Projection,omitempty"`
- // Compensation of the x coordinate needed for the ONVIF normalized coordinate system.
- XFactor float32 `xml:"http://www.onvif.org/ver10/schema XFactor,omitempty"`
- // Optional focal length of the optical system.
- FocalLength float32 `xml:"http://www.onvif.org/ver10/schema FocalLength,attr,omitempty"`
- }
- // VideoSourceConfigurationOptions type
- type VideoSourceConfigurationOptions struct {
- //
- // Supported range for the capturing area.
- // Device that does not support cropped streaming shall express BoundsRange option as mentioned below
- // BoundsRange->XRange and BoundsRange->YRange with same Min/Max values HeightRange and WidthRange Min/Max values same as VideoSource Height and Width Limits.
- //
- BoundsRange IntRectangleRange `xml:"http://www.onvif.org/ver10/schema BoundsRange,omitempty"`
- // List of physical inputs.
- VideoSourceTokensAvailable []ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl VideoSourceTokensAvailable,omitempty"`
- Extension VideoSourceConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Maximum number of profiles.
- MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,attr,omitempty"`
- }
- // VideoSourceConfigurationOptionsExtension type
- type VideoSourceConfigurationOptionsExtension struct {
- // Options of parameters for Rotation feature.
- Rotate RotateOptions `xml:"http://www.onvif.org/ver10/schema Rotate,omitempty"`
- Extension VideoSourceConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoSourceConfigurationOptionsExtension2 type
- type VideoSourceConfigurationOptionsExtension2 struct {
- // Scene orientation modes supported by the device for this configuration.
- SceneOrientationMode []SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema SceneOrientationMode,omitempty"`
- }
- // RotateOptions type
- type RotateOptions struct {
- // Supported options of Rotate mode parameter.
- Mode []RotateMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // List of supported degree value for rotation.
- DegreeList IntList `xml:"http://www.onvif.org/ver10/schema DegreeList,omitempty"`
- Extension RotateOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // After setting the rotation, if a device starts to reboot this value is true.
- // If a device can handle rotation setting without rebooting this value is false.
- Reboot bool `xml:"http://www.onvif.org/ver10/device/wsdl Reboot,attr,omitempty"`
- }
- // RotateOptionsExtension type
- type RotateOptionsExtension struct {
- }
- // SceneOrientation type
- type SceneOrientation struct {
- //
- // Parameter to assign the way the camera determines the scene orientation.
- //
- Mode SceneOrientationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // Assigned or determined scene orientation based on the Mode. When assigning the Mode to AUTO, this field
- // is optional and will be ignored by the device. When assigning the Mode to MANUAL, this field is required
- // and the device will return an InvalidArgs fault if missing.
- //
- Orientation string `xml:"http://www.onvif.org/ver10/device/wsdl Orientation,omitempty"`
- }
- // VideoEncoderConfiguration type
- type VideoEncoderConfiguration struct {
- *ConfigurationEntity
- // Used video codec, either Jpeg, H.264 or Mpeg4
- Encoding VideoEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
- // Configured video resolution
- Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
- // Relative value for the video quantizers and the quality of the video. A high value within supported quality range means higher quality
- Quality float32 `xml:"http://www.onvif.org/ver10/schema Quality,omitempty"`
- // Optional element to configure rate control related parameters.
- RateControl VideoRateControl `xml:"http://www.onvif.org/ver10/schema RateControl,omitempty"`
- // Optional element to configure Mpeg4 related parameters.
- MPEG4 Mpeg4Configuration `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
- // Optional element to configure H.264 related parameters.
- H264 H264Configuration `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
- // Defines the multicast settings that could be used for video streaming.
- Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
- // The rtsp session timeout for the related video stream
- SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
- //
- // A value of true indicates that frame rate is a fixed value rather than an upper limit,
- // and that the video encoder shall prioritize frame rate over all other adaptable
- // configuration values such as bitrate. Default is false.
- //
- GuaranteedFrameRate bool `xml:"http://www.onvif.org/ver10/device/wsdl GuaranteedFrameRate,attr,omitempty"`
- }
- // VideoResolution type
- type VideoResolution struct {
- // Number of the columns of the Video image.
- Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
- // Number of the lines of the Video image.
- Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
- }
- // VideoRateControl type
- type VideoRateControl struct {
- // Maximum output framerate in fps. If an EncodingInterval is provided the resulting encoded framerate will be reduced by the given factor.
- FrameRateLimit int32 `xml:"http://www.onvif.org/ver10/schema FrameRateLimit,omitempty"`
- // 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 ...)
- EncodingInterval int32 `xml:"http://www.onvif.org/ver10/schema EncodingInterval,omitempty"`
- // the maximum output bitrate in kbps
- BitrateLimit int32 `xml:"http://www.onvif.org/ver10/schema BitrateLimit,omitempty"`
- }
- // Mpeg4Configuration type
- type Mpeg4Configuration struct {
- // 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.
- GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
- // the Mpeg4 profile, either simple profile (SP) or advanced simple profile (ASP)
- Mpeg4Profile Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4Profile,omitempty"`
- }
- // H264Configuration type
- type H264Configuration struct {
- // 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.
- GovLength int32 `xml:"http://www.onvif.org/ver10/schema GovLength,omitempty"`
- // the H.264 profile, either baseline, main, extended or high
- H264Profile H264Profile `xml:"http://www.onvif.org/ver10/schema H264Profile,omitempty"`
- }
- // VideoEncoderOptionsExtension type
- type VideoEncoderOptionsExtension struct {
- // Optional JPEG encoder settings ranges.
- JPEG JpegOptions2 `xml:"http://www.onvif.org/ver10/schema JPEG,omitempty"`
- // Optional MPEG-4 encoder settings ranges.
- MPEG4 Mpeg4Options2 `xml:"http://www.onvif.org/ver10/schema MPEG4,omitempty"`
- // Optional H.264 encoder settings ranges.
- H264 H264Options2 `xml:"http://www.onvif.org/ver10/schema H264,omitempty"`
- Extension VideoEncoderOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoEncoderOptionsExtension2 type
- type VideoEncoderOptionsExtension2 struct {
- }
- // JpegOptions type
- type JpegOptions struct {
- // List of supported image sizes.
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // Supported frame rate in fps (frames per second).
- FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
- // 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.
- EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
- }
- // JpegOptions2 type
- type JpegOptions2 struct {
- *JpegOptions
- // Supported range of encoded bitrate in kbps.
- BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
- }
- // Mpeg4Options type
- type Mpeg4Options struct {
- // List of supported image sizes.
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
- GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
- // Supported frame rate in fps (frames per second).
- FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
- // 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.
- EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
- // List of supported MPEG-4 profiles.
- Mpeg4ProfilesSupported []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema Mpeg4ProfilesSupported,omitempty"`
- }
- // Mpeg4Options2 type
- type Mpeg4Options2 struct {
- *Mpeg4Options
- // Supported range of encoded bitrate in kbps.
- BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
- }
- // H264Options type
- type H264Options struct {
- // List of supported image sizes.
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // Supported group of Video frames length. This value typically corresponds to the I-Frame distance.
- GovLengthRange IntRange `xml:"http://www.onvif.org/ver10/schema GovLengthRange,omitempty"`
- // Supported frame rate in fps (frames per second).
- FrameRateRange IntRange `xml:"http://www.onvif.org/ver10/schema FrameRateRange,omitempty"`
- // 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.
- EncodingIntervalRange IntRange `xml:"http://www.onvif.org/ver10/schema EncodingIntervalRange,omitempty"`
- // List of supported H.264 profiles.
- H264ProfilesSupported []H264Profile `xml:"http://www.onvif.org/ver10/schema H264ProfilesSupported,omitempty"`
- }
- // H264Options2 type
- type H264Options2 struct {
- *H264Options
- // Supported range of encoded bitrate in kbps.
- BitrateRange IntRange `xml:"http://www.onvif.org/ver10/schema BitrateRange,omitempty"`
- }
- // AudioSourceConfiguration type
- type AudioSourceConfiguration struct {
- *ConfigurationEntity
- // Token of the Audio Source the configuration applies to
- SourceToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl SourceToken,omitempty"`
- }
- // AudioEncoderConfiguration type
- type AudioEncoderConfiguration struct {
- *ConfigurationEntity
- // Audio codec used for encoding the audio input (either G.711, G.726 or AAC)
- Encoding AudioEncoding `xml:"http://www.onvif.org/ver10/schema Encoding,omitempty"`
- // The output bitrate in kbps.
- Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // The output sample rate in kHz.
- SampleRate int32 `xml:"http://www.onvif.org/ver10/schema SampleRate,omitempty"`
- // Defines the multicast settings that could be used for video streaming.
- Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
- // The rtsp session timeout for the related audio stream
- SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
- }
- // VideoAnalyticsConfiguration type
- type VideoAnalyticsConfiguration struct {
- *ConfigurationEntity
- AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
- RuleEngineConfiguration RuleEngineConfiguration `xml:"http://www.onvif.org/ver10/schema RuleEngineConfiguration,omitempty"`
- }
- // MetadataConfiguration type
- type MetadataConfiguration struct {
- *ConfigurationEntity
- // optional element to configure which PTZ related data is to include in the metadata stream
- PTZStatus PTZFilter `xml:"http://www.onvif.org/ver10/schema PTZStatus,omitempty"`
- // Optional element to configure the streaming of events. A client might be interested in receiving all,
- // none or some of the events produced by the device:
- //
- Events EventSubscription `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
- // Defines whether the streamed metadata will include metadata from the analytics engines (video, cell motion, audio etc.)
- Analytics bool `xml:"http://www.onvif.org/ver10/device/wsdl Analytics,omitempty"`
- // Defines the multicast settings that could be used for video streaming.
- Multicast MulticastConfiguration `xml:"http://www.onvif.org/ver10/schema Multicast,omitempty"`
- // The rtsp session timeout for the related audio stream (when using Media2 Service, this value is deprecated and ignored)
- SessionTimeout Duration `xml:"http://www.onvif.org/ver10/schema SessionTimeout,omitempty"`
- AnalyticsEngineConfiguration AnalyticsEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
- Extension MetadataConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Optional parameter to configure compression type of Metadata payload. Use values from enumeration MetadataCompressionType.
- CompressionType string `xml:"http://www.onvif.org/ver10/device/wsdl CompressionType,attr,omitempty"`
- // Optional parameter to configure if the metadata stream shall contain the Geo Location coordinates of each target.
- GeoLocation bool `xml:"http://www.onvif.org/ver10/device/wsdl GeoLocation,attr,omitempty"`
- }
- // MetadataConfigurationExtension type
- type MetadataConfigurationExtension struct {
- }
- // PTZFilter type
- type PTZFilter struct {
- // True if the metadata stream shall contain the PTZ status (IDLE, MOVING or UNKNOWN)
- Status bool `xml:"http://www.onvif.org/ver10/device/wsdl Status,omitempty"`
- // True if the metadata stream shall contain the PTZ position
- Position bool `xml:"http://www.onvif.org/ver10/device/wsdl Position,omitempty"`
- }
- // EventSubscription type
- type EventSubscription struct {
- Filter FilterType `xml:"Filter,omitempty"`
- SubscriptionPolicy struct {
- } `xml:"SubscriptionPolicy,omitempty"`
- }
- // MetadataConfigurationOptions type
- type MetadataConfigurationOptions struct {
- PTZStatusFilterOptions PTZStatusFilterOptions `xml:"http://www.onvif.org/ver10/schema PTZStatusFilterOptions,omitempty"`
- Extension MetadataConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // True if the device is able to stream the Geo Located positions of each target.
- GeoLocation bool `xml:"http://www.onvif.org/ver10/device/wsdl GeoLocation,attr,omitempty"`
- }
- // MetadataConfigurationOptionsExtension type
- type MetadataConfigurationOptionsExtension struct {
- // List of supported metadata compression type. Its options shall be chosen from tt:MetadataCompressionType.
- CompressionType []string `xml:"http://www.onvif.org/ver10/device/wsdl CompressionType,omitempty"`
- Extension MetadataConfigurationOptionsExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // MetadataConfigurationOptionsExtension2 type
- type MetadataConfigurationOptionsExtension2 struct {
- }
- // PTZStatusFilterOptions type
- type PTZStatusFilterOptions struct {
- // True if the device is able to stream pan or tilt status information.
- PanTiltStatusSupported bool `xml:"http://www.onvif.org/ver10/device/wsdl PanTiltStatusSupported,omitempty"`
- // True if the device is able to stream zoom status inforamtion.
- ZoomStatusSupported bool `xml:"http://www.onvif.org/ver10/device/wsdl ZoomStatusSupported,omitempty"`
- // True if the device is able to stream the pan or tilt position.
- PanTiltPositionSupported bool `xml:"http://www.onvif.org/ver10/device/wsdl PanTiltPositionSupported,omitempty"`
- // True if the device is able to stream zoom position information.
- ZoomPositionSupported bool `xml:"http://www.onvif.org/ver10/device/wsdl ZoomPositionSupported,omitempty"`
- Extension PTZStatusFilterOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZStatusFilterOptionsExtension type
- type PTZStatusFilterOptionsExtension struct {
- }
- // VideoOutput type
- type VideoOutput struct {
- *DeviceEntity
- Layout Layout `xml:"http://www.onvif.org/ver10/schema Layout,omitempty"`
- // Resolution of the display in Pixel.
- Resolution VideoResolution `xml:"http://www.onvif.org/ver10/schema Resolution,omitempty"`
- // Refresh rate of the display in Hertz.
- RefreshRate float32 `xml:"http://www.onvif.org/ver10/schema RefreshRate,omitempty"`
- // Aspect ratio of the display as physical extent of width divided by height.
- AspectRatio float32 `xml:"http://www.onvif.org/ver10/schema AspectRatio,omitempty"`
- Extension VideoOutputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // VideoOutputExtension type
- type VideoOutputExtension struct {
- }
- // VideoDecoderConfigurationOptions type
- type VideoDecoderConfigurationOptions struct {
- // If the device is able to decode Jpeg streams this element describes the supported codecs and configurations
- JpegDecOptions JpegDecOptions `xml:"http://www.onvif.org/ver10/schema JpegDecOptions,omitempty"`
- // If the device is able to decode H.264 streams this element describes the supported codecs and configurations
- H264DecOptions H264DecOptions `xml:"http://www.onvif.org/ver10/schema H264DecOptions,omitempty"`
- // If the device is able to decode Mpeg4 streams this element describes the supported codecs and configurations
- Mpeg4DecOptions Mpeg4DecOptions `xml:"http://www.onvif.org/ver10/schema Mpeg4DecOptions,omitempty"`
- Extension VideoDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // H264DecOptions type
- type H264DecOptions struct {
- // List of supported H.264 Video Resolutions
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // List of supported H264 Profiles (either baseline, main, extended or high)
- SupportedH264Profiles []H264Profile `xml:"http://www.onvif.org/ver10/schema SupportedH264Profiles,omitempty"`
- // Supported H.264 bitrate range in kbps
- SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
- // Supported H.264 framerate range in fps
- SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
- }
- // JpegDecOptions type
- type JpegDecOptions struct {
- // List of supported Jpeg Video Resolutions
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // Supported Jpeg bitrate range in kbps
- SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
- // Supported Jpeg framerate range in fps
- SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
- }
- // Mpeg4DecOptions type
- type Mpeg4DecOptions struct {
- // List of supported Mpeg4 Video Resolutions
- ResolutionsAvailable []VideoResolution `xml:"http://www.onvif.org/ver10/schema ResolutionsAvailable,omitempty"`
- // List of supported Mpeg4 Profiles (either SP or ASP)
- SupportedMpeg4Profiles []Mpeg4Profile `xml:"http://www.onvif.org/ver10/schema SupportedMpeg4Profiles,omitempty"`
- // Supported Mpeg4 bitrate range in kbps
- SupportedInputBitrate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedInputBitrate,omitempty"`
- // Supported Mpeg4 framerate range in fps
- SupportedFrameRate IntRange `xml:"http://www.onvif.org/ver10/schema SupportedFrameRate,omitempty"`
- }
- // VideoDecoderConfigurationOptionsExtension type
- type VideoDecoderConfigurationOptionsExtension struct {
- }
- // AudioOutput type
- type AudioOutput struct {
- *DeviceEntity
- }
- // AudioOutputConfiguration type
- type AudioOutputConfiguration struct {
- *ConfigurationEntity
- // Token of the phsycial Audio output.
- OutputToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl OutputToken,omitempty"`
- //
- // An audio channel MAY support different types of audio transmission. While for full duplex
- // operation no special handling is required, in half duplex operation the transmission direction
- // needs to be switched.
- // The optional SendPrimacy parameter inside the AudioOutputConfiguration indicates which
- // direction is currently active. An NVC can switch between different modes by setting the
- // AudioOutputConfiguration.
- // The following modes for the Send-Primacy are defined:
- // Acoustic echo cancellation is out of ONVIF scope.
- SendPrimacy AnyURI `xml:"http://www.onvif.org/ver10/schema SendPrimacy,omitempty"`
- // Volume setting of the output. The applicable range is defined via the option AudioOutputOptions.OutputLevelRange.
- OutputLevel int32 `xml:"http://www.onvif.org/ver10/schema OutputLevel,omitempty"`
- }
- // AudioDecoderConfiguration type
- type AudioDecoderConfiguration struct {
- *ConfigurationEntity
- }
- // AudioDecoderConfigurationOptions type
- type AudioDecoderConfigurationOptions struct {
- // If the device is able to decode AAC encoded audio this section describes the supported configurations
- AACDecOptions AACDecOptions `xml:"http://www.onvif.org/ver10/schema AACDecOptions,omitempty"`
- // If the device is able to decode G711 encoded audio this section describes the supported configurations
- G711DecOptions G711DecOptions `xml:"http://www.onvif.org/ver10/schema G711DecOptions,omitempty"`
- // If the device is able to decode G726 encoded audio this section describes the supported configurations
- G726DecOptions G726DecOptions `xml:"http://www.onvif.org/ver10/schema G726DecOptions,omitempty"`
- Extension AudioDecoderConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // G711DecOptions type
- type G711DecOptions struct {
- // List of supported bitrates in kbps
- Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // List of supported sample rates in kHz
- SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
- }
- // AACDecOptions type
- type AACDecOptions struct {
- // List of supported bitrates in kbps
- Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // List of supported sample rates in kHz
- SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
- }
- // G726DecOptions type
- type G726DecOptions struct {
- // List of supported bitrates in kbps
- Bitrate IntList `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // List of supported sample rates in kHz
- SampleRateRange IntList `xml:"http://www.onvif.org/ver10/schema SampleRateRange,omitempty"`
- }
- // AudioDecoderConfigurationOptionsExtension type
- type AudioDecoderConfigurationOptionsExtension struct {
- }
- // MulticastConfiguration type
- type MulticastConfiguration struct {
- // The multicast address (if this address is set to 0 no multicast streaming is enaled)
- Address IPAddress `xml:"http://www.onvif.org/ver10/device/wsdl Address,omitempty"`
- // 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.
- Port int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
- // 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.
- TTL int32 `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
- // Read only property signalling that streaming is persistant. Use the methods StartMulticastStreaming and StopMulticastStreaming to switch its state.
- AutoStart bool `xml:"http://www.onvif.org/ver10/device/wsdl AutoStart,omitempty"`
- }
- // StreamSetup type
- type StreamSetup struct {
- // Defines if a multicast or unicast stream is requested
- Stream StreamType `xml:"http://www.onvif.org/ver10/schema Stream,omitempty"`
- Transport Transport `xml:"http://www.onvif.org/ver10/schema Transport,omitempty"`
- }
- // Transport type
- type Transport struct {
- // Defines the network protocol for streaming, either UDP=RTP/UDP, RTSP=RTP/RTSP/TCP or HTTP=RTP/RTSP/HTTP/TCP
- Protocol TransportProtocol `xml:"http://www.onvif.org/ver10/schema Protocol,omitempty"`
- // Optional element to describe further tunnel options. This element is normally not needed
- Tunnel *Transport `xml:"http://www.onvif.org/ver10/schema Tunnel,omitempty"`
- }
- // Scope type
- type Scope struct {
- // Indicates if the scope is fixed or configurable.
- ScopeDef ScopeDefinition `xml:"http://www.onvif.org/ver10/schema ScopeDef,omitempty"`
- // Scope item URI.
- ScopeItem AnyURI `xml:"http://www.onvif.org/ver10/schema ScopeItem,omitempty"`
- }
- // NetworkInterface type
- type NetworkInterface struct {
- *DeviceEntity
- // Indicates whether or not an interface is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- // Network interface information
- Info NetworkInterfaceInfo `xml:"http://www.onvif.org/ver10/schema Info,omitempty"`
- // Link configuration.
- Link NetworkInterfaceLink `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
- // IPv4 network interface configuration.
- IPv4 IPv4NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
- // IPv6 network interface configuration.
- IPv6 IPv6NetworkInterface `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
- Extension NetworkInterfaceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkInterfaceExtension type
- type NetworkInterfaceExtension struct {
- InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
- // Extension point prepared for future 802.3 configuration.
- Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
- Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
- Extension NetworkInterfaceExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot3Configuration type
- type Dot3Configuration struct {
- }
- // NetworkInterfaceExtension2 type
- type NetworkInterfaceExtension2 struct {
- }
- // NetworkInterfaceLink type
- type NetworkInterfaceLink struct {
- // Configured link settings.
- AdminSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema AdminSettings,omitempty"`
- // Current active link settings.
- OperSettings NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema OperSettings,omitempty"`
- // Integer indicating interface type, for example: 6 is ethernet.
- InterfaceType IANAIfTypes `xml:"InterfaceType,omitempty"`
- }
- // NetworkInterfaceConnectionSetting type
- type NetworkInterfaceConnectionSetting struct {
- // Auto negotiation on/off.
- AutoNegotiation bool `xml:"http://www.onvif.org/ver10/device/wsdl AutoNegotiation,omitempty"`
- // Speed.
- Speed int32 `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
- // Duplex type, Half or Full.
- Duplex Duplex `xml:"http://www.onvif.org/ver10/schema Duplex,omitempty"`
- }
- // NetworkInterfaceInfo type
- type NetworkInterfaceInfo struct {
- // Network interface name, for example eth0.
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,omitempty"`
- // Network interface MAC address.
- HwAddress HwAddress `xml:"http://www.onvif.org/ver10/schema HwAddress,omitempty"`
- // Maximum transmission unit.
- MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
- }
- // IPv6NetworkInterface type
- type IPv6NetworkInterface struct {
- // Indicates whether or not IPv6 is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- // IPv6 configuration.
- Config IPv6Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
- }
- // IPv4NetworkInterface type
- type IPv4NetworkInterface struct {
- // Indicates whether or not IPv4 is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- // IPv4 configuration.
- Config IPv4Configuration `xml:"http://www.onvif.org/ver10/schema Config,omitempty"`
- }
- // IPv4Configuration type
- type IPv4Configuration struct {
- // List of manually added IPv4 addresses.
- Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
- // Link local address.
- LinkLocal PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
- // IPv4 address configured by using DHCP.
- FromDHCP PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
- // Indicates whether or not DHCP is used.
- DHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl DHCP,omitempty"`
- }
- // IPv6Configuration type
- type IPv6Configuration struct {
- // Indicates whether router advertisment is used.
- AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver10/device/wsdl AcceptRouterAdvert,omitempty"`
- // DHCP configuration.
- DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
- // List of manually entered IPv6 addresses.
- Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
- // List of link local IPv6 addresses.
- LinkLocal []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema LinkLocal,omitempty"`
- // List of IPv6 addresses configured by using DHCP.
- FromDHCP []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromDHCP,omitempty"`
- // List of IPv6 addresses configured by using router advertisment.
- FromRA []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema FromRA,omitempty"`
- Extension IPv6ConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IPv6ConfigurationExtension type
- type IPv6ConfigurationExtension struct {
- }
- // NetworkProtocol type
- type NetworkProtocol struct {
- // Network protocol type string.
- Name NetworkProtocolType `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Indicates if the protocol is enabled or not.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- // The port that is used by the protocol.
- Port []int32 `xml:"http://www.onvif.org/ver10/schema Port,omitempty"`
- Extension NetworkProtocolExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkProtocolExtension type
- type NetworkProtocolExtension struct {
- }
- // NetworkHost type
- type NetworkHost struct {
- // Network host type: IPv4, IPv6 or DNS.
- Type NetworkHostType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // IPv4 address.
- IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv4Address,omitempty"`
- // IPv6 address.
- IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv6Address,omitempty"`
- // DNS name.
- DNSname DNSName `xml:"http://www.onvif.org/ver10/device/wsdl DNSname,omitempty"`
- Extension NetworkHostExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkHostExtension type
- type NetworkHostExtension struct {
- }
- // IPAddress type
- type IPAddress struct {
- // Indicates if the address is an IPv4 or IPv6 address.
- Type IPType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // IPv4 address.
- IPv4Address IPv4Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv4Address,omitempty"`
- // IPv6 address
- IPv6Address IPv6Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv6Address,omitempty"`
- }
- // PrefixedIPv4Address type
- type PrefixedIPv4Address struct {
- // IPv4 address
- Address IPv4Address `xml:"http://www.onvif.org/ver10/device/wsdl Address,omitempty"`
- // Prefix/submask length
- PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
- }
- // PrefixedIPv6Address type
- type PrefixedIPv6Address struct {
- // IPv6 address
- Address IPv6Address `xml:"http://www.onvif.org/ver10/device/wsdl Address,omitempty"`
- // Prefix/submask length
- PrefixLength int32 `xml:"http://www.onvif.org/ver10/schema PrefixLength,omitempty"`
- }
- // HostnameInformation type
- type HostnameInformation struct {
- // Indicates whether the hostname is obtained from DHCP or not.
- FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP,omitempty"`
- // Indicates the hostname.
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,omitempty"`
- Extension HostnameInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // HostnameInformationExtension type
- type HostnameInformationExtension struct {
- }
- // DNSInformation type
- type DNSInformation struct {
- // Indicates whether or not DNS information is retrieved from DHCP.
- FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP,omitempty"`
- // Search domain.
- SearchDomain []string `xml:"http://www.onvif.org/ver10/device/wsdl SearchDomain,omitempty"`
- // List of DNS addresses received from DHCP.
- DNSFromDHCP []IPAddress `xml:"http://www.onvif.org/ver10/device/wsdl DNSFromDHCP,omitempty"`
- // List of manually entered DNS addresses.
- DNSManual []IPAddress `xml:"http://www.onvif.org/ver10/device/wsdl DNSManual,omitempty"`
- Extension DNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // DNSInformationExtension type
- type DNSInformationExtension struct {
- }
- // NTPInformation type
- type NTPInformation struct {
- // Indicates if NTP information is to be retrieved by using DHCP.
- FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP,omitempty"`
- // List of NTP addresses retrieved by using DHCP.
- NTPFromDHCP []NetworkHost `xml:"http://www.onvif.org/ver10/device/wsdl NTPFromDHCP,omitempty"`
- // List of manually entered NTP addresses.
- NTPManual []NetworkHost `xml:"http://www.onvif.org/ver10/device/wsdl NTPManual,omitempty"`
- Extension NTPInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NTPInformationExtension type
- type NTPInformationExtension struct {
- }
- // DynamicDNSInformation type
- type DynamicDNSInformation struct {
- // Dynamic DNS type.
- Type DynamicDNSType `xml:"http://www.onvif.org/ver10/device/wsdl Type,omitempty"`
- // DNS name.
- Name DNSName `xml:"http://www.onvif.org/ver10/device/wsdl Name,omitempty"`
- // Time to live.
- TTL Duration `xml:"http://www.onvif.org/ver10/schema TTL,omitempty"`
- Extension DynamicDNSInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // DynamicDNSInformationExtension type
- type DynamicDNSInformationExtension struct {
- }
- // NetworkInterfaceSetConfiguration type
- type NetworkInterfaceSetConfiguration struct {
- // Indicates whether or not an interface is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- // Link configuration.
- Link NetworkInterfaceConnectionSetting `xml:"http://www.onvif.org/ver10/schema Link,omitempty"`
- // Maximum transmission unit.
- MTU int32 `xml:"http://www.onvif.org/ver10/schema MTU,omitempty"`
- // IPv4 network interface configuration.
- IPv4 IPv4NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv4,omitempty"`
- // IPv6 network interface configuration.
- IPv6 IPv6NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/schema IPv6,omitempty"`
- Extension NetworkInterfaceSetConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkInterfaceSetConfigurationExtension type
- type NetworkInterfaceSetConfigurationExtension struct {
- Dot3 []Dot3Configuration `xml:"http://www.onvif.org/ver10/schema Dot3,omitempty"`
- Dot11 []Dot11Configuration `xml:"http://www.onvif.org/ver10/schema Dot11,omitempty"`
- Extension NetworkInterfaceSetConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IPv6NetworkInterfaceSetConfiguration type
- type IPv6NetworkInterfaceSetConfiguration struct {
- // Indicates whether or not IPv6 is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- // Indicates whether router advertisment is used.
- AcceptRouterAdvert bool `xml:"http://www.onvif.org/ver10/device/wsdl AcceptRouterAdvert,omitempty"`
- // List of manually added IPv6 addresses.
- Manual []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
- // DHCP configuration.
- DHCP IPv6DHCPConfiguration `xml:"http://www.onvif.org/ver10/schema DHCP,omitempty"`
- }
- // IPv4NetworkInterfaceSetConfiguration type
- type IPv4NetworkInterfaceSetConfiguration struct {
- // Indicates whether or not IPv4 is enabled.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- // List of manually added IPv4 addresses.
- Manual []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema Manual,omitempty"`
- // Indicates whether or not DHCP is used.
- DHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl DHCP,omitempty"`
- }
- // NetworkGateway type
- type NetworkGateway struct {
- // IPv4 address string.
- IPv4Address []IPv4Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv4Address,omitempty"`
- // IPv6 address string.
- IPv6Address []IPv6Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv6Address,omitempty"`
- }
- // NetworkZeroConfiguration type
- type NetworkZeroConfiguration struct {
- // Unique identifier of network interface.
- InterfaceToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken,omitempty"`
- // Indicates whether the zero-configuration is enabled or not.
- Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled,omitempty"`
- // The zero-configuration IPv4 address(es)
- Addresses []IPv4Address `xml:"http://www.onvif.org/ver10/device/wsdl Addresses,omitempty"`
- Extension *NetworkZeroConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkZeroConfigurationExtension type
- type NetworkZeroConfigurationExtension struct {
- // Optional array holding the configuration for the second and possibly further interfaces.
- Additional []NetworkZeroConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl Additional,omitempty"`
- Extension NetworkZeroConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkZeroConfigurationExtension2 type
- type NetworkZeroConfigurationExtension2 struct {
- }
- // IPAddressFilter type
- type IPAddressFilter struct {
- Type IPAddressFilterType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- IPv4Address []PrefixedIPv4Address `xml:"http://www.onvif.org/ver10/schema IPv4Address,omitempty"`
- IPv6Address []PrefixedIPv6Address `xml:"http://www.onvif.org/ver10/schema IPv6Address,omitempty"`
- Extension IPAddressFilterExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IPAddressFilterExtension type
- type IPAddressFilterExtension struct {
- }
- // Dot11Configuration type
- type Dot11Configuration struct {
- SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
- Mode Dot11StationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Alias Name `xml:"http://www.onvif.org/ver10/schema Alias,omitempty"`
- Priority NetworkInterfaceConfigPriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- Security Dot11SecurityConfiguration `xml:"http://www.onvif.org/ver10/schema Security,omitempty"`
- }
- // Dot11SecurityConfiguration type
- type Dot11SecurityConfiguration struct {
- Mode Dot11SecurityMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Algorithm Dot11Cipher `xml:"http://www.onvif.org/ver10/schema Algorithm,omitempty"`
- PSK Dot11PSKSet `xml:"http://www.onvif.org/ver10/schema PSK,omitempty"`
- Dot1X ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Dot1X,omitempty"`
- Extension Dot11SecurityConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot11SecurityConfigurationExtension type
- type Dot11SecurityConfigurationExtension struct {
- }
- // Dot11PSKSet type
- type Dot11PSKSet struct {
- //
- // According to IEEE802.11-2007 H.4.1 the RSNA PSK consists of 256 bits, or 64 octets when represented in hex
- // Either Key or Passphrase shall be given, if both are supplied Key shall be used by the device and Passphrase ignored.
- //
- Key Dot11PSK `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
- //
- // According to IEEE802.11-2007 H.4.1 a pass-phrase is a sequence of between 8 and 63 ASCII-encoded characters and
- // each character in the pass-phrase must have an encoding in the range of 32 to 126 (decimal),inclusive.
- // If only Passpharse is supplied the Key shall be derived using the algorithm described in IEEE802.11-2007 section H.4
- //
- Passphrase Dot11PSKPassphrase `xml:"http://www.onvif.org/ver10/schema Passphrase,omitempty"`
- Extension Dot11PSKSetExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot11PSKSetExtension type
- type Dot11PSKSetExtension struct {
- }
- // NetworkInterfaceSetConfigurationExtension2 type
- type NetworkInterfaceSetConfigurationExtension2 struct {
- }
- // Dot11Capabilities type
- type Dot11Capabilities struct {
- TKIP bool `xml:"http://www.onvif.org/ver10/device/wsdl TKIP,omitempty"`
- ScanAvailableNetworks bool `xml:"http://www.onvif.org/ver10/device/wsdl ScanAvailableNetworks,omitempty"`
- MultipleConfiguration bool `xml:"http://www.onvif.org/ver10/device/wsdl MultipleConfiguration,omitempty"`
- AdHocStationMode bool `xml:"http://www.onvif.org/ver10/device/wsdl AdHocStationMode,omitempty"`
- WEP bool `xml:"http://www.onvif.org/ver10/device/wsdl WEP,omitempty"`
- }
- // Dot11Status type
- type Dot11Status struct {
- SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
- BSSID string `xml:"http://www.onvif.org/ver10/device/wsdl BSSID,omitempty"`
- PairCipher Dot11Cipher `xml:"http://www.onvif.org/ver10/schema PairCipher,omitempty"`
- GroupCipher Dot11Cipher `xml:"http://www.onvif.org/ver10/schema GroupCipher,omitempty"`
- SignalStrength Dot11SignalStrength `xml:"http://www.onvif.org/ver10/schema SignalStrength,omitempty"`
- ActiveConfigAlias ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl ActiveConfigAlias,omitempty"`
- }
- // Dot11AvailableNetworks type
- type Dot11AvailableNetworks struct {
- SSID Dot11SSIDType `xml:"http://www.onvif.org/ver10/schema SSID,omitempty"`
- BSSID string `xml:"http://www.onvif.org/ver10/device/wsdl BSSID,omitempty"`
- // See IEEE802.11 7.3.2.25.2 for details.
- AuthAndMangementSuite []Dot11AuthAndMangementSuite `xml:"http://www.onvif.org/ver10/schema AuthAndMangementSuite,omitempty"`
- PairCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema PairCipher,omitempty"`
- GroupCipher []Dot11Cipher `xml:"http://www.onvif.org/ver10/schema GroupCipher,omitempty"`
- SignalStrength Dot11SignalStrength `xml:"http://www.onvif.org/ver10/schema SignalStrength,omitempty"`
- Extension Dot11AvailableNetworksExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot11AvailableNetworksExtension type
- type Dot11AvailableNetworksExtension struct {
- }
- // Capabilities type
- type Capabilities struct {
- // Analytics capabilities
- Analytics AnalyticsCapabilities `xml:"http://www.onvif.org/ver10/schema Analytics,omitempty"`
- // Device capabilities
- Device DeviceCapabilities `xml:"http://www.onvif.org/ver10/schema Device,omitempty"`
- // Event capabilities
- Events EventCapabilities `xml:"http://www.onvif.org/ver10/schema Events,omitempty"`
- // Imaging capabilities
- Imaging ImagingCapabilities `xml:"http://www.onvif.org/ver10/schema Imaging,omitempty"`
- // Media capabilities
- Media MediaCapabilities `xml:"http://www.onvif.org/ver10/schema Media,omitempty"`
- // PTZ capabilities
- PTZ PTZCapabilities `xml:"http://www.onvif.org/ver10/schema PTZ,omitempty"`
- Extension CapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // CapabilitiesExtension type
- type CapabilitiesExtension struct {
- DeviceIO DeviceIOCapabilities `xml:"http://www.onvif.org/ver10/schema DeviceIO,omitempty"`
- Display DisplayCapabilities `xml:"http://www.onvif.org/ver10/schema Display,omitempty"`
- Recording RecordingCapabilities `xml:"http://www.onvif.org/ver10/schema Recording,omitempty"`
- Search SearchCapabilities `xml:"http://www.onvif.org/ver10/schema Search,omitempty"`
- Replay ReplayCapabilities `xml:"http://www.onvif.org/ver10/schema Replay,omitempty"`
- Receiver ReceiverCapabilities `xml:"http://www.onvif.org/ver10/schema Receiver,omitempty"`
- AnalyticsDevice AnalyticsDeviceCapabilities `xml:"http://www.onvif.org/ver10/schema AnalyticsDevice,omitempty"`
- Extensions CapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extensions,omitempty"`
- }
- // CapabilitiesExtension2 type
- type CapabilitiesExtension2 struct {
- }
- // AnalyticsCapabilities type
- type AnalyticsCapabilities struct {
- // Analytics service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Indicates whether or not rules are supported.
- RuleSupport bool `xml:"http://www.onvif.org/ver10/device/wsdl RuleSupport,omitempty"`
- // Indicates whether or not modules are supported.
- AnalyticsModuleSupport bool `xml:"http://www.onvif.org/ver10/device/wsdl AnalyticsModuleSupport,omitempty"`
- }
- // DeviceCapabilities type
- type DeviceCapabilities struct {
- // Device service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Network capabilities.
- Network NetworkCapabilities `xml:"http://www.onvif.org/ver10/device/wsdl Network,omitempty"`
- // System capabilities.
- System SystemCapabilities `xml:"http://www.onvif.org/ver10/device/wsdl System,omitempty"`
- // I/O capabilities.
- IO IOCapabilities `xml:"http://www.onvif.org/ver10/schema IO,omitempty"`
- // Security capabilities.
- Security SecurityCapabilities `xml:"http://www.onvif.org/ver10/device/wsdl Security,omitempty"`
- Extension DeviceCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // DeviceCapabilitiesExtension type
- type DeviceCapabilitiesExtension struct {
- }
- // EventCapabilities type
- type EventCapabilities struct {
- // Event service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Indicates whether or not WS Subscription policy is supported.
- WSSubscriptionPolicySupport bool `xml:"http://www.onvif.org/ver10/device/wsdl WSSubscriptionPolicySupport,omitempty"`
- // Indicates whether or not WS Pull Point is supported.
- WSPullPointSupport bool `xml:"http://www.onvif.org/ver10/device/wsdl WSPullPointSupport,omitempty"`
- // Indicates whether or not WS Pausable Subscription Manager Interface is supported.
- WSPausableSubscriptionManagerInterfaceSupport bool `xml:"http://www.onvif.org/ver10/device/wsdl WSPausableSubscriptionManagerInterfaceSupport,omitempty"`
- }
- // IOCapabilities type
- type IOCapabilities struct {
- // Number of input connectors.
- InputConnectors int32 `xml:"http://www.onvif.org/ver10/schema InputConnectors,omitempty"`
- // Number of relay outputs.
- RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
- Extension IOCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IOCapabilitiesExtension type
- type IOCapabilitiesExtension struct {
- Auxiliary bool `xml:"http://www.onvif.org/ver10/device/wsdl Auxiliary,omitempty"`
- AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/device/wsdl AuxiliaryCommands,omitempty"`
- Extension IOCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IOCapabilitiesExtension2 type
- type IOCapabilitiesExtension2 struct {
- }
- // MediaCapabilities type
- type MediaCapabilities struct {
- // Media service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Streaming capabilities.
- StreamingCapabilities RealTimeStreamingCapabilities `xml:"http://www.onvif.org/ver10/schema StreamingCapabilities,omitempty"`
- Extension MediaCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // MediaCapabilitiesExtension type
- type MediaCapabilitiesExtension struct {
- ProfileCapabilities ProfileCapabilities `xml:"http://www.onvif.org/ver10/schema ProfileCapabilities,omitempty"`
- }
- // RealTimeStreamingCapabilities type
- type RealTimeStreamingCapabilities struct {
- // Indicates whether or not RTP multicast is supported.
- RTPMulticast bool `xml:"http://www.onvif.org/ver10/device/wsdl RTPMulticast,omitempty"`
- // Indicates whether or not RTP over TCP is supported.
- RTP_TCP bool `xml:"http://www.onvif.org/ver10/device/wsdl RTP_TCP,omitempty"`
- // Indicates whether or not RTP/RTSP/TCP is supported.
- RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/device/wsdl RTP_RTSP_TCP,omitempty"`
- Extension RealTimeStreamingCapabilitiesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RealTimeStreamingCapabilitiesExtension type
- type RealTimeStreamingCapabilitiesExtension struct {
- }
- // ProfileCapabilities type
- type ProfileCapabilities struct {
- // Maximum number of profiles.
- MaximumNumberOfProfiles int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfProfiles,omitempty"`
- }
- // NetworkCapabilitiesExtension type
- type NetworkCapabilitiesExtension struct {
- Dot11Configuration bool `xml:"http://www.onvif.org/ver10/device/wsdl Dot11Configuration,omitempty"`
- Extension NetworkCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // NetworkCapabilitiesExtension2 type
- type NetworkCapabilitiesExtension2 struct {
- }
- // SecurityCapabilitiesExtension type
- type SecurityCapabilitiesExtension struct {
- TLS10 bool `xml:"TLS1.0,omitempty"`
- Extension SecurityCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SecurityCapabilitiesExtension2 type
- type SecurityCapabilitiesExtension2 struct {
- Dot1X bool `xml:"http://www.onvif.org/ver10/device/wsdl Dot1X,omitempty"`
- // EAP Methods supported by the device. The int values refer to the .
- SupportedEAPMethod []int32 `xml:"http://www.onvif.org/ver10/schema SupportedEAPMethod,omitempty"`
- RemoteUserHandling bool `xml:"http://www.onvif.org/ver10/device/wsdl RemoteUserHandling,omitempty"`
- }
- // SystemCapabilitiesExtension type
- type SystemCapabilitiesExtension struct {
- HttpFirmwareUpgrade bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpFirmwareUpgrade,omitempty"`
- HttpSystemBackup bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpSystemBackup,omitempty"`
- HttpSystemLogging bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpSystemLogging,omitempty"`
- HttpSupportInformation bool `xml:"http://www.onvif.org/ver10/device/wsdl HttpSupportInformation,omitempty"`
- Extension SystemCapabilitiesExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SystemCapabilitiesExtension2 type
- type SystemCapabilitiesExtension2 struct {
- }
- // OnvifVersion type
- type OnvifVersion struct {
- // Major version number.
- Major int32 `xml:"http://www.onvif.org/ver10/schema Major,omitempty"`
- //
- // Two digit minor version number.
- // 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.
- // Otherwise, minor number is month of release, such as "06" for June.
- //
- Minor int32 `xml:"http://www.onvif.org/ver10/schema Minor,omitempty"`
- }
- // ImagingCapabilities type
- type ImagingCapabilities struct {
- // Imaging service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- }
- // PTZCapabilities type
- type PTZCapabilities struct {
- // PTZ service URI.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- }
- // DeviceIOCapabilities type
- type DeviceIOCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- VideoSources int32 `xml:"http://www.onvif.org/ver10/schema VideoSources,omitempty"`
- VideoOutputs int32 `xml:"http://www.onvif.org/ver10/schema VideoOutputs,omitempty"`
- AudioSources int32 `xml:"http://www.onvif.org/ver10/schema AudioSources,omitempty"`
- AudioOutputs int32 `xml:"http://www.onvif.org/ver10/schema AudioOutputs,omitempty"`
- RelayOutputs int32 `xml:"http://www.onvif.org/ver10/schema RelayOutputs,omitempty"`
- }
- // DisplayCapabilities type
- type DisplayCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Indication that the SetLayout command supports only predefined layouts.
- FixedLayout bool `xml:"http://www.onvif.org/ver10/device/wsdl FixedLayout,omitempty"`
- }
- // RecordingCapabilities type
- type RecordingCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- ReceiverSource bool `xml:"http://www.onvif.org/ver10/device/wsdl ReceiverSource,omitempty"`
- MediaProfileSource bool `xml:"http://www.onvif.org/ver10/device/wsdl MediaProfileSource,omitempty"`
- DynamicRecordings bool `xml:"http://www.onvif.org/ver10/device/wsdl DynamicRecordings,omitempty"`
- DynamicTracks bool `xml:"http://www.onvif.org/ver10/device/wsdl DynamicTracks,omitempty"`
- MaxStringLength int32 `xml:"http://www.onvif.org/ver10/schema MaxStringLength,omitempty"`
- }
- // SearchCapabilities type
- type SearchCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- MetadataSearch bool `xml:"http://www.onvif.org/ver10/device/wsdl MetadataSearch,omitempty"`
- }
- // ReplayCapabilities type
- type ReplayCapabilities struct {
- // The address of the replay service.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- }
- // ReceiverCapabilities type
- type ReceiverCapabilities struct {
- // The address of the receiver service.
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Indicates whether the device can receive RTP multicast streams.
- RTP_Multicast bool `xml:"http://www.onvif.org/ver10/device/wsdl RTP_Multicast,omitempty"`
- // Indicates whether the device can receive RTP/TCP streams
- RTP_TCP bool `xml:"http://www.onvif.org/ver10/device/wsdl RTP_TCP,omitempty"`
- // Indicates whether the device can receive RTP/RTSP/TCP streams.
- RTP_RTSP_TCP bool `xml:"http://www.onvif.org/ver10/device/wsdl RTP_RTSP_TCP,omitempty"`
- // The maximum number of receivers supported by the device.
- SupportedReceivers int32 `xml:"http://www.onvif.org/ver10/schema SupportedReceivers,omitempty"`
- // The maximum allowed length for RTSP URIs.
- MaximumRTSPURILength int32 `xml:"http://www.onvif.org/ver10/schema MaximumRTSPURILength,omitempty"`
- }
- // AnalyticsDeviceCapabilities type
- type AnalyticsDeviceCapabilities struct {
- XAddr AnyURI `xml:"http://www.onvif.org/ver10/schema XAddr,omitempty"`
- // Obsolete property.
- RuleSupport bool `xml:"http://www.onvif.org/ver10/device/wsdl RuleSupport,omitempty"`
- Extension AnalyticsDeviceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AnalyticsDeviceExtension type
- type AnalyticsDeviceExtension struct {
- }
- // SystemLog type
- type SystemLog struct {
- // The log information as attachment data.
- Binary AttachmentData `xml:"http://www.onvif.org/ver10/device/wsdl Binary,omitempty"`
- // The log information as character data.
- String string `xml:"http://www.onvif.org/ver10/device/wsdl String,omitempty"`
- }
- // SupportInformation type
- type SupportInformation struct {
- // The support information as attachment data.
- Binary AttachmentData `xml:"http://www.onvif.org/ver10/device/wsdl Binary,omitempty"`
- // The support information as character data.
- String string `xml:"http://www.onvif.org/ver10/device/wsdl String,omitempty"`
- }
- // BinaryData type
- type BinaryData struct {
- // base64 encoded binary data.
- Data []byte `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
- ContentType string `xml:"contentType,attr,omitempty"`
- }
- // AttachmentData type
- type AttachmentData struct {
- Include Include `xml:"Include,omitempty"`
- ContentType string `xml:"contentType,attr,omitempty"`
- }
- // BackupFile type
- type BackupFile struct {
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,omitempty"`
- Data AttachmentData `xml:"http://www.onvif.org/ver10/device/wsdl Data,omitempty"`
- }
- // SystemLogUriList type
- type SystemLogUriList struct {
- SystemLog []SystemLogUri `xml:"http://www.onvif.org/ver10/device/wsdl SystemLog,omitempty"`
- }
- // SystemLogUri type
- type SystemLogUri struct {
- Type SystemLogType `xml:"http://www.onvif.org/ver10/device/wsdl Type,omitempty"`
- Uri AnyURI `xml:"http://www.onvif.org/ver10/schema Uri,omitempty"`
- }
- // SystemDateTime type
- type SystemDateTime struct {
- // Indicates if the time is set manully or through NTP.
- DateTimeType SetDateTimeType `xml:"http://www.onvif.org/ver10/device/wsdl DateTimeType,omitempty"`
- // Informative indicator whether daylight savings is currently on/off.
- DaylightSavings bool `xml:"http://www.onvif.org/ver10/device/wsdl DaylightSavings,omitempty"`
- // Timezone information in Posix format.
- TimeZone TimeZone `xml:"http://www.onvif.org/ver10/device/wsdl TimeZone,omitempty"`
- // Current system date and time in UTC format. This field is mandatory since version 2.0.
- UTCDateTime string `xml:"http://www.onvif.org/ver10/schema UTCDateTime,omitempty"`
- // Date and time in local format.
- LocalDateTime string `xml:"http://www.onvif.org/ver10/schema LocalDateTime,omitempty"`
- Extension SystemDateTimeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SystemDateTimeExtension type
- type SystemDateTimeExtension struct {
- }
- // DateTime type
- type DateTime struct {
- Time string `xml:"http://www.onvif.org/ver10/schema Time,omitempty"`
- Date string `xml:"http://www.onvif.org/ver10/schema Date,omitempty"`
- }
- // Date type
- type Date struct {
- Year int32 `xml:"http://www.onvif.org/ver10/schema Year,omitempty"`
- // Range is 1 to 12.
- Month int32 `xml:"http://www.onvif.org/ver10/schema Month,omitempty"`
- // Range is 1 to 31.
- Day int32 `xml:"http://www.onvif.org/ver10/schema Day,omitempty"`
- }
- // Time type
- type Time struct {
- // Range is 0 to 23.
- Hour int32 `xml:"http://www.onvif.org/ver10/schema Hour,omitempty"`
- // Range is 0 to 59.
- Minute int32 `xml:"http://www.onvif.org/ver10/schema Minute,omitempty"`
- // Range is 0 to 61 (typically 59).
- Second int32 `xml:"http://www.onvif.org/ver10/schema Second,omitempty"`
- }
- // TimeZone type
- type TimeZone struct {
- // Posix timezone string.
- TZ string `xml:"http://www.onvif.org/ver10/device/wsdl TZ,omitempty"`
- }
- // RemoteUser type
- type RemoteUser struct {
- Username string `xml:"http://www.onvif.org/ver10/device/wsdl Username,omitempty"`
- Password string `xml:"http://www.onvif.org/ver10/device/wsdl Password,omitempty"`
- UseDerivedPassword bool `xml:"http://www.onvif.org/ver10/device/wsdl UseDerivedPassword,omitempty"`
- }
- // User type
- type User struct {
- // Username string.
- Username string `xml:"http://www.onvif.org/ver10/device/wsdl Username,omitempty"`
- // Password string.
- Password string `xml:"http://www.onvif.org/ver10/device/wsdl Password,omitempty"`
- // User level string.
- UserLevel UserLevel `xml:"http://www.onvif.org/ver10/schema UserLevel,omitempty"`
- Extension UserExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // UserExtension type
- type UserExtension struct {
- }
- // CertificateGenerationParameters type
- type CertificateGenerationParameters struct {
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- Subject string `xml:"http://www.onvif.org/ver10/device/wsdl Subject,omitempty"`
- ValidNotBefore string `xml:"http://www.onvif.org/ver10/device/wsdl ValidNotBefore,omitempty"`
- ValidNotAfter string `xml:"http://www.onvif.org/ver10/device/wsdl ValidNotAfter,omitempty"`
- Extension CertificateGenerationParametersExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // CertificateGenerationParametersExtension type
- type CertificateGenerationParametersExtension struct {
- }
- // Certificate type
- type Certificate struct {
- // Certificate id.
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- // base64 encoded DER representation of certificate.
- Certificate BinaryData `xml:"http://www.onvif.org/ver10/device/wsdl Certificate,omitempty"`
- }
- // CertificateStatus type
- type CertificateStatus struct {
- // Certificate id.
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- // Indicates whether or not a certificate is used in a HTTPS configuration.
- Status bool `xml:"http://www.onvif.org/ver10/device/wsdl Status,omitempty"`
- }
- // CertificateWithPrivateKey type
- type CertificateWithPrivateKey struct {
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- Certificate BinaryData `xml:"http://www.onvif.org/ver10/device/wsdl Certificate,omitempty"`
- PrivateKey BinaryData `xml:"http://www.onvif.org/ver10/device/wsdl PrivateKey,omitempty"`
- }
- // CertificateInformation type
- type CertificateInformation struct {
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- IssuerDN string `xml:"http://www.onvif.org/ver10/device/wsdl IssuerDN,omitempty"`
- SubjectDN string `xml:"http://www.onvif.org/ver10/device/wsdl SubjectDN,omitempty"`
- KeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema KeyUsage,omitempty"`
- ExtendedKeyUsage CertificateUsage `xml:"http://www.onvif.org/ver10/schema ExtendedKeyUsage,omitempty"`
- KeyLength int32 `xml:"http://www.onvif.org/ver10/schema KeyLength,omitempty"`
- Version string `xml:"http://www.onvif.org/ver10/device/wsdl Version,omitempty"`
- SerialNum string `xml:"http://www.onvif.org/ver10/device/wsdl SerialNum,omitempty"`
- // Validity Range is from "NotBefore" to "NotAfter"; the corresponding DateTimeRange is from "From" to "Until"
- SignatureAlgorithm string `xml:"http://www.onvif.org/ver10/device/wsdl SignatureAlgorithm,omitempty"`
- Validity DateTimeRange `xml:"http://www.onvif.org/ver10/schema Validity,omitempty"`
- Extension CertificateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // CertificateUsage type
- type CertificateUsage struct {
- Value string
- Critical bool `xml:"http://www.onvif.org/ver10/device/wsdl Critical,attr,omitempty"`
- }
- // CertificateInformationExtension type
- type CertificateInformationExtension struct {
- }
- // Dot1XConfiguration type
- type Dot1XConfiguration struct {
- Dot1XConfigurationToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfigurationToken,omitempty"`
- Identity string `xml:"http://www.onvif.org/ver10/device/wsdl Identity,omitempty"`
- AnonymousID string `xml:"http://www.onvif.org/ver10/device/wsdl AnonymousID,omitempty"`
- //
- // EAP Method type as defined in .
- //
- EAPMethod int32 `xml:"http://www.onvif.org/ver10/schema EAPMethod,omitempty"`
- CACertificateID []string `xml:"http://www.onvif.org/ver10/device/wsdl CACertificateID,omitempty"`
- EAPMethodConfiguration EAPMethodConfiguration `xml:"http://www.onvif.org/ver10/schema EAPMethodConfiguration,omitempty"`
- Extension Dot1XConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // Dot1XConfigurationExtension type
- type Dot1XConfigurationExtension struct {
- }
- // EAPMethodConfiguration type
- type EAPMethodConfiguration struct {
- // Confgiuration information for TLS Method.
- TLSConfiguration TLSConfiguration `xml:"http://www.onvif.org/ver10/schema TLSConfiguration,omitempty"`
- // Password for those EAP Methods that require a password. The password shall never be returned on a get method.
- Password string `xml:"http://www.onvif.org/ver10/device/wsdl Password,omitempty"`
- Extension EapMethodExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // EapMethodExtension type
- type EapMethodExtension struct {
- }
- // TLSConfiguration type
- type TLSConfiguration struct {
- CertificateID string `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
- }
- // RelayOutputSettings type
- type RelayOutputSettings struct {
- //
- // 'Bistable' or 'Monostable'
- //
- //
- Mode RelayMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // 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.
- DelayTime Duration `xml:"http://www.onvif.org/ver10/schema DelayTime,omitempty"`
- //
- // 'open' or 'closed'
- //
- //
- IdleState RelayIdleState `xml:"http://www.onvif.org/ver10/schema IdleState,omitempty"`
- }
- // RelayOutput type
- type RelayOutput struct {
- *DeviceEntity
- Properties RelayOutputSettings `xml:"http://www.onvif.org/ver10/device/wsdl Properties,omitempty"`
- }
- // PTZNode type
- type PTZNode struct {
- *DeviceEntity
- //
- // A unique identifier that is used to reference PTZ Nodes.
- //
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- //
- // A list of Coordinate Systems available for the PTZ Node. For each Coordinate System, the PTZ Node MUST specify its allowed range.
- //
- SupportedPTZSpaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema SupportedPTZSpaces,omitempty"`
- //
- // All preset operations MUST be available for this PTZ Node if one preset is supported.
- //
- MaximumNumberOfPresets int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresets,omitempty"`
- //
- // 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.
- //
- HomeSupported bool `xml:"http://www.onvif.org/ver10/device/wsdl HomeSupported,omitempty"`
- //
- // A list of supported Auxiliary commands. If the list is not empty, the Auxiliary Operations MUST be available for this PTZ Node.
- //
- AuxiliaryCommands []AuxiliaryData `xml:"http://www.onvif.org/ver10/device/wsdl AuxiliaryCommands,omitempty"`
- Extension PTZNodeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- //
- // Indication whether the HomePosition of a Node is fixed or it can be changed via the SetHomePosition command.
- //
- FixedHomePosition bool `xml:"http://www.onvif.org/ver10/device/wsdl FixedHomePosition,attr,omitempty"`
- //
- // Indication whether the Node supports the geo-referenced move command.
- //
- GeoMove bool `xml:"http://www.onvif.org/ver10/device/wsdl GeoMove,attr,omitempty"`
- }
- // PTZNodeExtension type
- type PTZNodeExtension struct {
- //
- // Detail of supported Preset Tour feature.
- //
- SupportedPresetTour PTZPresetTourSupported `xml:"http://www.onvif.org/ver10/schema SupportedPresetTour,omitempty"`
- Extension PTZNodeExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZNodeExtension2 type
- type PTZNodeExtension2 struct {
- }
- // PTZPresetTourSupported type
- type PTZPresetTourSupported struct {
- // 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.
- MaximumNumberOfPresetTours int32 `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfPresetTours,omitempty"`
- // Indicates which preset tour operations are available for this PTZ Node.
- PTZPresetTourOperation []PTZPresetTourOperation `xml:"http://www.onvif.org/ver10/schema PTZPresetTourOperation,omitempty"`
- Extension PTZPresetTourSupportedExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourSupportedExtension type
- type PTZPresetTourSupportedExtension struct {
- }
- // PTZConfiguration type
- type PTZConfiguration struct {
- *ConfigurationEntity
- //
- // A mandatory reference to the PTZ Node that the PTZ Configuration belongs to.
- //
- NodeToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl NodeToken,omitempty"`
- //
- // If the PTZ Node supports absolute Pan/Tilt movements, it shall specify one Absolute Pan/Tilt Position Space as default.
- //
- DefaultAbsolutePantTiltPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsolutePantTiltPositionSpace,omitempty"`
- //
- // If the PTZ Node supports absolute zoom movements, it shall specify one Absolute Zoom Position Space as default.
- //
- DefaultAbsoluteZoomPositionSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultAbsoluteZoomPositionSpace,omitempty"`
- //
- // If the PTZ Node supports relative Pan/Tilt movements, it shall specify one RelativePan/Tilt Translation Space as default.
- //
- DefaultRelativePanTiltTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativePanTiltTranslationSpace,omitempty"`
- //
- // If the PTZ Node supports relative zoom movements, it shall specify one Relative Zoom Translation Space as default.
- //
- DefaultRelativeZoomTranslationSpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultRelativeZoomTranslationSpace,omitempty"`
- //
- // If the PTZ Node supports continuous Pan/Tilt movements, it shall specify one Continuous Pan/Tilt Velocity Space as default.
- //
- DefaultContinuousPanTiltVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousPanTiltVelocitySpace,omitempty"`
- //
- // If the PTZ Node supports continuous zoom movements, it shall specify one Continuous Zoom Velocity Space as default.
- //
- DefaultContinuousZoomVelocitySpace AnyURI `xml:"http://www.onvif.org/ver10/schema DefaultContinuousZoomVelocitySpace,omitempty"`
- //
- // If the PTZ Node supports absolute or relative PTZ movements, it shall specify corresponding default Pan/Tilt and Zoom speeds.
- //
- DefaultPTZSpeed PTZSpeed `xml:"http://www.onvif.org/ver10/schema DefaultPTZSpeed,omitempty"`
- //
- // If the PTZ Node supports continuous movements, it shall specify a default timeout, after which the movement stops.
- //
- DefaultPTZTimeout Duration `xml:"http://www.onvif.org/ver10/schema DefaultPTZTimeout,omitempty"`
- //
- // 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.
- //
- PanTiltLimits PanTiltLimits `xml:"http://www.onvif.org/ver10/schema PanTiltLimits,omitempty"`
- //
- // 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.
- //
- ZoomLimits ZoomLimits `xml:"http://www.onvif.org/ver10/schema ZoomLimits,omitempty"`
- Extension PTZConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // The optional acceleration ramp used by the device when moving.
- MoveRamp int32 `xml:"http://www.onvif.org/ver10/schema MoveRamp,attr,omitempty"`
- // The optional acceleration ramp used by the device when recalling presets.
- PresetRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetRamp,attr,omitempty"`
- // The optional acceleration ramp used by the device when executing PresetTours.
- PresetTourRamp int32 `xml:"http://www.onvif.org/ver10/schema PresetTourRamp,attr,omitempty"`
- }
- // PTZConfigurationExtension type
- type PTZConfigurationExtension struct {
- // Optional element to configure PT Control Direction related features.
- PTControlDirection PTControlDirection `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
- Extension PTZConfigurationExtension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZConfigurationExtension2 type
- type PTZConfigurationExtension2 struct {
- }
- // PTControlDirection type
- type PTControlDirection struct {
- // Optional element to configure related parameters for E-Flip.
- EFlip EFlip `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
- // Optional element to configure related parameters for reversing of PT Control Direction.
- Reverse Reverse `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
- Extension PTControlDirectionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTControlDirectionExtension type
- type PTControlDirectionExtension struct {
- }
- // EFlip type
- type EFlip struct {
- // Parameter to enable/disable E-Flip feature.
- Mode EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- }
- // Reverse type
- type Reverse struct {
- // Parameter to enable/disable Reverse feature.
- Mode ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- }
- // PTZConfigurationOptions type
- type PTZConfigurationOptions struct {
- //
- // A list of supported coordinate systems including their range limitations.
- //
- Spaces PTZSpaces `xml:"http://www.onvif.org/ver10/schema Spaces,omitempty"`
- //
- // A timeout Range within which Timeouts are accepted by the PTZ Node.
- //
- PTZTimeout DurationRange `xml:"http://www.onvif.org/ver10/schema PTZTimeout,omitempty"`
- // Supported options for PT Direction Control.
- PTControlDirection PTControlDirectionOptions `xml:"http://www.onvif.org/ver10/schema PTControlDirection,omitempty"`
- Extension PTZConfigurationOptions2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- //
- // The list of acceleration ramps supported by the device. The
- // smallest acceleration value corresponds to the minimal index, the
- // highest acceleration corresponds to the maximum index.
- //
- PTZRamps IntAttrList `xml:"http://www.onvif.org/ver10/schema PTZRamps,attr,omitempty"`
- }
- // PTZConfigurationOptions2 type
- type PTZConfigurationOptions2 struct {
- }
- // PTControlDirectionOptions type
- type PTControlDirectionOptions struct {
- // Supported options for EFlip feature.
- EFlip EFlipOptions `xml:"http://www.onvif.org/ver10/schema EFlip,omitempty"`
- // Supported options for Reverse feature.
- Reverse ReverseOptions `xml:"http://www.onvif.org/ver10/schema Reverse,omitempty"`
- Extension PTControlDirectionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTControlDirectionOptionsExtension type
- type PTControlDirectionOptionsExtension struct {
- }
- // EFlipOptions type
- type EFlipOptions struct {
- // Options of EFlip mode parameter.
- Mode []EFlipMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Extension EFlipOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // EFlipOptionsExtension type
- type EFlipOptionsExtension struct {
- }
- // ReverseOptions type
- type ReverseOptions struct {
- // Options of Reverse mode parameter.
- Mode []ReverseMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Extension ReverseOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ReverseOptionsExtension type
- type ReverseOptionsExtension struct {
- }
- // PanTiltLimits type
- type PanTiltLimits struct {
- //
- // A range of pan tilt limits.
- //
- Range Space2DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
- }
- // ZoomLimits type
- type ZoomLimits struct {
- //
- // A range of zoom limit
- //
- Range Space1DDescription `xml:"http://www.onvif.org/ver10/schema Range,omitempty"`
- }
- // PTZSpaces type
- type PTZSpaces struct {
- //
- // 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.
- // 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.
- //
- AbsolutePanTiltPositionSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema AbsolutePanTiltPositionSpace,omitempty"`
- //
- // 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.
- // Instead, the range should be defined as the full range of the Zoom normalized to the range 0 (wide) to 1 (tele).
- // There is no assumption about how the generic zoom range is mapped to magnification, FOV or other physical zoom dimension.
- //
- AbsoluteZoomPositionSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema AbsoluteZoomPositionSpace,omitempty"`
- //
- // 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.
- // 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,
- // where positive translation would mean clockwise rotation or movement in right/up direction resulting in the following space description.
- //
- RelativePanTiltTranslationSpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema RelativePanTiltTranslationSpace,omitempty"`
- //
- // 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.
- // 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,
- // 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).
- // 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.
- //
- RelativeZoomTranslationSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema RelativeZoomTranslationSpace,omitempty"`
- //
- // The generic Pan/Tilt velocity space shall be provided by every PTZ node, since it does not relate to a specific physical range.
- // 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
- // 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.
- //
- ContinuousPanTiltVelocitySpace []Space2DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousPanTiltVelocitySpace,omitempty"`
- //
- // 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,
- // where a positive velocity would map to TELE direction. A generic zoom velocity space description resembles the following.
- //
- ContinuousZoomVelocitySpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ContinuousZoomVelocitySpace,omitempty"`
- //
- // The speed space specifies the speed for a Pan/Tilt movement when moving to an absolute position or to a relative translation.
- // In contrast to the velocity spaces, speed spaces do not contain any directional information. The speed of a combined Pan/Tilt
- // movement is represented by a single non-negative scalar value.
- //
- PanTiltSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltSpeedSpace,omitempty"`
- //
- // The speed space specifies the speed for a Zoom movement when moving to an absolute position or to a relative translation.
- // In contrast to the velocity spaces, speed spaces do not contain any directional information.
- //
- ZoomSpeedSpace []Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomSpeedSpace,omitempty"`
- Extension PTZSpacesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZSpacesExtension type
- type PTZSpacesExtension struct {
- }
- // Space2DDescription type
- type Space2DDescription struct {
- //
- // A URI of coordinate systems.
- //
- URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
- //
- // A range of x-axis.
- //
- XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
- //
- // A range of y-axis.
- //
- YRange FloatRange `xml:"http://www.onvif.org/ver10/schema YRange,omitempty"`
- }
- // Space1DDescription type
- type Space1DDescription struct {
- //
- // A URI of coordinate systems.
- //
- URI AnyURI `xml:"http://www.onvif.org/ver10/schema URI,omitempty"`
- //
- // A range of x-axis.
- //
- XRange FloatRange `xml:"http://www.onvif.org/ver10/schema XRange,omitempty"`
- }
- // PTZSpeed type
- type PTZSpeed struct {
- // 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.
- PanTilt Vector2D `xml:"http://www.onvif.org/ver10/schema PanTilt,omitempty"`
- //
- // A zoom speed. If omitted in a request, the current (if any) Zoom movement should not be affected.
- //
- Zoom Vector1D `xml:"http://www.onvif.org/ver10/schema Zoom,omitempty"`
- }
- // PTZPreset type
- type PTZPreset struct {
- //
- // A list of preset position name.
- //
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- //
- // A list of preset position.
- //
- PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
- Token ReferenceToken `xml:"token,attr,omitempty"`
- }
- // PTZPresetTourSpot type
- type PTZPresetTourSpot struct {
- // Detail definition of preset position of the tour spot.
- PresetDetail PTZPresetTourPresetDetail `xml:"http://www.onvif.org/ver10/schema PresetDetail,omitempty"`
- // Optional parameter to specify Pan/Tilt and Zoom speed on moving toward this tour spot.
- Speed PTZSpeed `xml:"http://www.onvif.org/ver10/schema Speed,omitempty"`
- // Optional parameter to specify time duration of staying on this tour sport.
- StayTime Duration `xml:"http://www.onvif.org/ver10/schema StayTime,omitempty"`
- Extension PTZPresetTourSpotExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourSpotExtension type
- type PTZPresetTourSpotExtension struct {
- }
- // PTZPresetTourPresetDetail type
- type PTZPresetTourPresetDetail struct {
- // Option to specify the preset position with Preset Token defined in advance.
- PresetToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl PresetToken,omitempty"`
- // 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.
- Home bool `xml:"http://www.onvif.org/ver10/device/wsdl Home,omitempty"`
- // Option to specify the preset position with vector of PTZ node directly.
- PTZPosition PTZVector `xml:"http://www.onvif.org/ver10/schema PTZPosition,omitempty"`
- TypeExtension PTZPresetTourTypeExtension `xml:"http://www.onvif.org/ver10/schema TypeExtension,omitempty"`
- }
- // PTZPresetTourTypeExtension type
- type PTZPresetTourTypeExtension struct {
- }
- // PTZPresetTourStatus type
- type PTZPresetTourStatus struct {
- // Indicates state of this preset tour by Idle/Touring/Paused.
- State PTZPresetTourState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
- // Indicates a tour spot currently staying.
- CurrentTourSpot PTZPresetTourSpot `xml:"http://www.onvif.org/ver10/schema CurrentTourSpot,omitempty"`
- Extension PTZPresetTourStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourStatusExtension type
- type PTZPresetTourStatusExtension struct {
- }
- // PTZPresetTourStartingCondition type
- type PTZPresetTourStartingCondition struct {
- // Optional parameter to specify how many times the preset tour is recurred.
- RecurringTime int32 `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
- // Optional parameter to specify how long time duration the preset tour is recurred.
- RecurringDuration Duration `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
- // Optional parameter to choose which direction the preset tour goes. Forward shall be chosen in case it is omitted.
- Direction PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
- Extension PTZPresetTourStartingConditionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // 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.
- RandomPresetOrder bool `xml:"http://www.onvif.org/ver10/device/wsdl RandomPresetOrder,attr,omitempty"`
- }
- // PTZPresetTourStartingConditionExtension type
- type PTZPresetTourStartingConditionExtension struct {
- }
- // PTZPresetTourPresetDetailOptions type
- type PTZPresetTourPresetDetailOptions struct {
- // A list of available Preset Tokens for tour spots.
- PresetToken []ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl PresetToken,omitempty"`
- // An option to indicate Home postion for tour spots.
- Home bool `xml:"http://www.onvif.org/ver10/device/wsdl Home,omitempty"`
- // Supported range of Pan and Tilt for tour spots.
- PanTiltPositionSpace Space2DDescription `xml:"http://www.onvif.org/ver10/schema PanTiltPositionSpace,omitempty"`
- // Supported range of Zoom for a tour spot.
- ZoomPositionSpace Space1DDescription `xml:"http://www.onvif.org/ver10/schema ZoomPositionSpace,omitempty"`
- Extension PTZPresetTourPresetDetailOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourPresetDetailOptionsExtension type
- type PTZPresetTourPresetDetailOptionsExtension struct {
- }
- // PTZPresetTourStartingConditionOptions type
- type PTZPresetTourStartingConditionOptions struct {
- // Supported range of Recurring Time.
- RecurringTime IntRange `xml:"http://www.onvif.org/ver10/schema RecurringTime,omitempty"`
- // Supported range of Recurring Duration.
- RecurringDuration DurationRange `xml:"http://www.onvif.org/ver10/schema RecurringDuration,omitempty"`
- // Supported options for Direction of Preset Tour.
- Direction []PTZPresetTourDirection `xml:"http://www.onvif.org/ver10/schema Direction,omitempty"`
- Extension PTZPresetTourStartingConditionOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PTZPresetTourStartingConditionOptionsExtension type
- type PTZPresetTourStartingConditionOptionsExtension struct {
- }
- // ImagingStatus type
- type ImagingStatus struct {
- FocusStatus FocusStatus `xml:"http://www.onvif.org/ver10/schema FocusStatus,omitempty"`
- }
- // FocusStatus type
- type FocusStatus struct {
- //
- // Status of focus position.
- //
- Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
- //
- // Status of focus MoveStatus.
- //
- MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
- //
- // Error status of focus.
- //
- Error string `xml:"http://www.onvif.org/ver10/device/wsdl Error,omitempty"`
- }
- // FocusConfiguration type
- type FocusConfiguration struct {
- AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
- DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
- // Parameter to set autofocus near limit (unit: meter).
- NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
- // Parameter to set autofocus far limit (unit: meter).
- // If set to 0.0, infinity will be used.
- FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
- }
- // ImagingSettings type
- type ImagingSettings struct {
- // Enabled/disabled BLC mode (on/off).
- BacklightCompensation BacklightCompensation `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
- // Image brightness (unit unspecified).
- Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
- // Color saturation of the image (unit unspecified).
- ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
- // Contrast of the image (unit unspecified).
- Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
- // Exposure mode of the device.
- Exposure Exposure `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
- // Focus configuration.
- Focus FocusConfiguration `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
- // Infrared Cutoff Filter settings.
- IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
- // Sharpness of the Video image.
- Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
- // WDR settings.
- WideDynamicRange WideDynamicRange `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
- // White balance settings.
- WhiteBalance WhiteBalance `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
- Extension ImagingSettingsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension type
- type ImagingSettingsExtension struct {
- }
- // Exposure type
- type Exposure struct {
- //
- // Exposure Mode
- //
- //
- Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // The exposure priority mode (low noise/framerate).
- //
- Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- //
- // Rectangular exposure mask.
- //
- Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
- //
- // Minimum value of exposure time range allowed to be used by the algorithm.
- //
- MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
- //
- // Maximum value of exposure time range allowed to be used by the algorithm.
- //
- MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
- //
- // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
- //
- MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
- //
- // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
- //
- MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
- //
- // Minimum value of the iris range allowed to be used by the algorithm.
- //
- MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
- //
- // Maximum value of the iris range allowed to be used by the algorithm.
- //
- MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
- //
- // The fixed exposure time used by the image sensor (μs).
- //
- ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
- //
- // The fixed gain used by the image sensor (dB).
- //
- Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
- //
- // The fixed attenuation of input light affected by the iris (dB). 0dB maps to a fully opened iris.
- //
- Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
- }
- // WideDynamicRange type
- type WideDynamicRange struct {
- //
- // White dynamic range (on/off)
- //
- Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // Optional level parameter (unitless)
- //
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // BacklightCompensation type
- type BacklightCompensation struct {
- // Backlight compensation mode (on/off).
- Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter (unit unspecified).
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // ImagingOptions type
- type ImagingOptions struct {
- BacklightCompensation BacklightCompensationOptions `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
- Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
- ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
- Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
- Exposure ExposureOptions `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
- Focus FocusOptions `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
- IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
- Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
- WideDynamicRange WideDynamicRangeOptions `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
- WhiteBalance WhiteBalanceOptions `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
- }
- // WideDynamicRangeOptions type
- type WideDynamicRangeOptions struct {
- Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // BacklightCompensationOptions type
- type BacklightCompensationOptions struct {
- Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // FocusOptions type
- type FocusOptions struct {
- AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
- DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
- NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
- FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
- }
- // ExposureOptions type
- type ExposureOptions struct {
- Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
- MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
- MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
- MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
- MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
- MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
- ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
- Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
- Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
- }
- // WhiteBalanceOptions type
- type WhiteBalanceOptions struct {
- Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
- YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
- }
- // WhiteBalance type
- type WhiteBalance struct {
- // Auto whitebalancing mode (auto/manual).
- Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Rgain (unitless).
- CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
- // Bgain (unitless).
- CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
- }
- // ImagingStatus20 type
- type ImagingStatus20 struct {
- //
- // Status of focus.
- //
- FocusStatus20 FocusStatus20 `xml:"http://www.onvif.org/ver10/schema FocusStatus20,omitempty"`
- Extension ImagingStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingStatus20Extension type
- type ImagingStatus20Extension struct {
- }
- // FocusStatus20 type
- type FocusStatus20 struct {
- //
- // Status of focus position.
- //
- Position float32 `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
- //
- // Status of focus MoveStatus.
- //
- MoveStatus MoveStatus `xml:"http://www.onvif.org/ver10/schema MoveStatus,omitempty"`
- //
- // Error status of focus.
- //
- Error string `xml:"http://www.onvif.org/ver10/device/wsdl Error,omitempty"`
- Extension FocusStatus20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // FocusStatus20Extension type
- type FocusStatus20Extension struct {
- }
- // ImagingSettings20 type
- type ImagingSettings20 struct {
- // Enabled/disabled BLC mode (on/off).
- BacklightCompensation BacklightCompensation20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
- // Image brightness (unit unspecified).
- Brightness float32 `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
- // Color saturation of the image (unit unspecified).
- ColorSaturation float32 `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
- // Contrast of the image (unit unspecified).
- Contrast float32 `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
- // Exposure mode of the device.
- Exposure Exposure20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
- // Focus configuration.
- Focus FocusConfiguration20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
- // Infrared Cutoff Filter settings.
- IrCutFilter IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilter,omitempty"`
- // Sharpness of the Video image.
- Sharpness float32 `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
- // WDR settings.
- WideDynamicRange WideDynamicRange20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
- // White balance settings.
- WhiteBalance WhiteBalance20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
- Extension ImagingSettingsExtension20 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension20 type
- type ImagingSettingsExtension20 struct {
- // Optional element to configure Image Stabilization feature.
- ImageStabilization ImageStabilization `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
- Extension ImagingSettingsExtension202 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension202 type
- type ImagingSettingsExtension202 struct {
- // An optional parameter applied to only auto mode to adjust timing of toggling Ir cut filter.
- IrCutFilterAutoAdjustment []IrCutFilterAutoAdjustment `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
- Extension ImagingSettingsExtension203 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension203 type
- type ImagingSettingsExtension203 struct {
- // Optional element to configure Image Contrast Compensation.
- ToneCompensation ToneCompensation `xml:"http://www.onvif.org/ver10/schema ToneCompensation,omitempty"`
- // Optional element to configure Image Defogging.
- Defogging Defogging `xml:"http://www.onvif.org/ver10/schema Defogging,omitempty"`
- // Optional element to configure Image Noise Reduction.
- NoiseReduction NoiseReduction `xml:"http://www.onvif.org/ver10/schema NoiseReduction,omitempty"`
- Extension ImagingSettingsExtension204 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingSettingsExtension204 type
- type ImagingSettingsExtension204 struct {
- }
- // ImageStabilization type
- type ImageStabilization struct {
- // Parameter to enable/disable Image Stabilization feature.
- Mode ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter (unit unspecified)
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- Extension ImageStabilizationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImageStabilizationExtension type
- type ImageStabilizationExtension struct {
- }
- // IrCutFilterAutoAdjustment type
- type IrCutFilterAutoAdjustment struct {
- // Specifies which boundaries to automatically toggle Ir cut filter following parameters are applied to. Its options shall be chosen from tt:IrCutFilterAutoBoundaryType.
- BoundaryType string `xml:"http://www.onvif.org/ver10/device/wsdl BoundaryType,omitempty"`
- // 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).
- BoundaryOffset float32 `xml:"http://www.onvif.org/ver10/schema BoundaryOffset,omitempty"`
- // Delay time of toggling Ir cut filter to on/off after crossing of the boundary exposure levels.
- ResponseTime Duration `xml:"http://www.onvif.org/ver10/schema ResponseTime,omitempty"`
- Extension IrCutFilterAutoAdjustmentExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IrCutFilterAutoAdjustmentExtension type
- type IrCutFilterAutoAdjustmentExtension struct {
- }
- // WideDynamicRange20 type
- type WideDynamicRange20 struct {
- // Wide dynamic range mode (on/off).
- Mode WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter (unit unspecified).
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // BacklightCompensation20 type
- type BacklightCompensation20 struct {
- // Backlight compensation mode (on/off).
- Mode BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Optional level parameter (unit unspecified).
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // Exposure20 type
- type Exposure20 struct {
- //
- // Exposure Mode
- //
- //
- Mode ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // The exposure priority mode (low noise/framerate).
- //
- Priority ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- //
- // Rectangular exposure mask.
- //
- Window Rectangle `xml:"http://www.onvif.org/ver10/schema Window,omitempty"`
- //
- // Minimum value of exposure time range allowed to be used by the algorithm.
- //
- MinExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
- //
- // Maximum value of exposure time range allowed to be used by the algorithm.
- //
- MaxExposureTime float32 `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
- //
- // Minimum value of the sensor gain range that is allowed to be used by the algorithm.
- //
- MinGain float32 `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
- //
- // Maximum value of the sensor gain range that is allowed to be used by the algorithm.
- //
- MaxGain float32 `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
- //
- // 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.
- //
- MinIris float32 `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
- //
- // 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.
- //
- MaxIris float32 `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
- //
- // The fixed exposure time used by the image sensor (μs).
- //
- ExposureTime float32 `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
- //
- // The fixed gain used by the image sensor (dB).
- //
- Gain float32 `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
- //
- // 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.
- //
- Iris float32 `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
- }
- // ToneCompensation type
- type ToneCompensation struct {
- // Parameter to enable/disable or automatic ToneCompensation feature. Its options shall be chosen from tt:ToneCompensationMode Type.
- Mode string `xml:"http://www.onvif.org/ver10/device/wsdl Mode,omitempty"`
- // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- Extension ToneCompensationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ToneCompensationExtension type
- type ToneCompensationExtension struct {
- }
- // Defogging type
- type Defogging struct {
- // Parameter to enable/disable or automatic Defogging feature. Its options shall be chosen from tt:DefoggingMode Type.
- Mode string `xml:"http://www.onvif.org/ver10/device/wsdl Mode,omitempty"`
- // Optional level parameter specified with unitless normalized value from 0.0 to +1.0.
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- Extension DefoggingExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // DefoggingExtension type
- type DefoggingExtension struct {
- }
- // NoiseReduction type
- type NoiseReduction struct {
- // Level parameter specified with unitless normalized value from 0.0 to +1.0. Level=0 means no noise reduction or minimal noise reduction.
- Level float32 `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // ImagingOptions20 type
- type ImagingOptions20 struct {
- //
- // Valid range of Backlight Compensation.
- //
- BacklightCompensation BacklightCompensationOptions20 `xml:"http://www.onvif.org/ver10/schema BacklightCompensation,omitempty"`
- //
- // Valid range of Brightness.
- //
- Brightness FloatRange `xml:"http://www.onvif.org/ver10/schema Brightness,omitempty"`
- //
- // Valid range of Color Saturation.
- //
- ColorSaturation FloatRange `xml:"http://www.onvif.org/ver10/schema ColorSaturation,omitempty"`
- //
- // Valid range of Contrast.
- //
- Contrast FloatRange `xml:"http://www.onvif.org/ver10/schema Contrast,omitempty"`
- //
- // Valid range of Exposure.
- //
- Exposure ExposureOptions20 `xml:"http://www.onvif.org/ver10/schema Exposure,omitempty"`
- //
- // Valid range of Focus.
- //
- Focus FocusOptions20 `xml:"http://www.onvif.org/ver10/schema Focus,omitempty"`
- //
- // Valid range of IrCutFilterModes.
- //
- IrCutFilterModes []IrCutFilterMode `xml:"http://www.onvif.org/ver10/schema IrCutFilterModes,omitempty"`
- //
- // Valid range of Sharpness.
- //
- Sharpness FloatRange `xml:"http://www.onvif.org/ver10/schema Sharpness,omitempty"`
- //
- // Valid range of WideDynamicRange.
- //
- WideDynamicRange WideDynamicRangeOptions20 `xml:"http://www.onvif.org/ver10/schema WideDynamicRange,omitempty"`
- //
- // Valid range of WhiteBalance.
- //
- WhiteBalance WhiteBalanceOptions20 `xml:"http://www.onvif.org/ver10/schema WhiteBalance,omitempty"`
- Extension ImagingOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingOptions20Extension type
- type ImagingOptions20Extension struct {
- // Options of parameters for Image Stabilization feature.
- ImageStabilization ImageStabilizationOptions `xml:"http://www.onvif.org/ver10/schema ImageStabilization,omitempty"`
- Extension ImagingOptions20Extension2 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingOptions20Extension2 type
- type ImagingOptions20Extension2 struct {
- // Options of parameters for adjustment of Ir cut filter auto mode.
- IrCutFilterAutoAdjustment IrCutFilterAutoAdjustmentOptions `xml:"http://www.onvif.org/ver10/schema IrCutFilterAutoAdjustment,omitempty"`
- Extension ImagingOptions20Extension3 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingOptions20Extension3 type
- type ImagingOptions20Extension3 struct {
- // Options of parameters for Tone Compensation feature.
- ToneCompensationOptions ToneCompensationOptions `xml:"http://www.onvif.org/ver10/schema ToneCompensationOptions,omitempty"`
- // Options of parameters for Defogging feature.
- DefoggingOptions DefoggingOptions `xml:"http://www.onvif.org/ver10/schema DefoggingOptions,omitempty"`
- // Options of parameter for Noise Reduction feature.
- NoiseReductionOptions NoiseReductionOptions `xml:"http://www.onvif.org/ver10/schema NoiseReductionOptions,omitempty"`
- Extension ImagingOptions20Extension4 `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImagingOptions20Extension4 type
- type ImagingOptions20Extension4 struct {
- }
- // ImageStabilizationOptions type
- type ImageStabilizationOptions struct {
- // Supported options of Image Stabilization mode parameter.
- Mode []ImageStabilizationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Valid range of the Image Stabilization.
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- Extension ImageStabilizationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ImageStabilizationOptionsExtension type
- type ImageStabilizationOptionsExtension struct {
- }
- // IrCutFilterAutoAdjustmentOptions type
- type IrCutFilterAutoAdjustmentOptions struct {
- // Supported options of boundary types for adjustment of Ir cut filter auto mode. The opptions shall be chosen from tt:IrCutFilterAutoBoundaryType.
- BoundaryType []string `xml:"http://www.onvif.org/ver10/device/wsdl BoundaryType,omitempty"`
- // Indicates whether or not boundary offset for toggling Ir cut filter is supported.
- BoundaryOffset bool `xml:"http://www.onvif.org/ver10/device/wsdl BoundaryOffset,omitempty"`
- // Supported range of delay time for toggling Ir cut filter.
- ResponseTimeRange DurationRange `xml:"http://www.onvif.org/ver10/schema ResponseTimeRange,omitempty"`
- Extension IrCutFilterAutoAdjustmentOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // IrCutFilterAutoAdjustmentOptionsExtension type
- type IrCutFilterAutoAdjustmentOptionsExtension struct {
- }
- // WideDynamicRangeOptions20 type
- type WideDynamicRangeOptions20 struct {
- Mode []WideDynamicMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // BacklightCompensationOptions20 type
- type BacklightCompensationOptions20 struct {
- //
- // 'ON' or 'OFF'
- //
- Mode []BacklightCompensationMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // Level range of BacklightCompensation.
- //
- Level FloatRange `xml:"http://www.onvif.org/ver10/schema Level,omitempty"`
- }
- // ExposureOptions20 type
- type ExposureOptions20 struct {
- //
- // Exposure Mode
- //
- //
- Mode []ExposureMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // The exposure priority mode (low noise/framerate).
- //
- Priority []ExposurePriority `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- //
- // Valid range of the Minimum ExposureTime.
- //
- MinExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MinExposureTime,omitempty"`
- //
- // Valid range of the Maximum ExposureTime.
- //
- MaxExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema MaxExposureTime,omitempty"`
- //
- // Valid range of the Minimum Gain.
- //
- MinGain FloatRange `xml:"http://www.onvif.org/ver10/schema MinGain,omitempty"`
- //
- // Valid range of the Maximum Gain.
- //
- MaxGain FloatRange `xml:"http://www.onvif.org/ver10/schema MaxGain,omitempty"`
- //
- // Valid range of the Minimum Iris.
- //
- MinIris FloatRange `xml:"http://www.onvif.org/ver10/schema MinIris,omitempty"`
- //
- // Valid range of the Maximum Iris.
- //
- MaxIris FloatRange `xml:"http://www.onvif.org/ver10/schema MaxIris,omitempty"`
- //
- // Valid range of the ExposureTime.
- //
- ExposureTime FloatRange `xml:"http://www.onvif.org/ver10/schema ExposureTime,omitempty"`
- //
- // Valid range of the Gain.
- //
- Gain FloatRange `xml:"http://www.onvif.org/ver10/schema Gain,omitempty"`
- //
- // Valid range of the Iris.
- //
- Iris FloatRange `xml:"http://www.onvif.org/ver10/schema Iris,omitempty"`
- }
- // WhiteBalance20 type
- type WhiteBalance20 struct {
- //
- // 'AUTO' or 'MANUAL'
- //
- Mode WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- //
- // Rgain (unitless).
- //
- CrGain float32 `xml:"http://www.onvif.org/ver10/schema CrGain,omitempty"`
- //
- // Bgain (unitless).
- //
- CbGain float32 `xml:"http://www.onvif.org/ver10/schema CbGain,omitempty"`
- Extension WhiteBalance20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // WhiteBalance20Extension type
- type WhiteBalance20Extension struct {
- }
- // FocusConfiguration20 type
- type FocusConfiguration20 struct {
- //
- // Mode of auto focus.
- //
- // 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.
- //
- AutoFocusMode AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusMode,omitempty"`
- DefaultSpeed float32 `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
- // Parameter to set autofocus near limit (unit: meter).
- NearLimit float32 `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
- // Parameter to set autofocus far limit (unit: meter).
- FarLimit float32 `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
- Extension FocusConfiguration20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // Zero or more modes as defined in enumeration tt:AFModes.
- AFMode StringAttrList `xml:"http://www.onvif.org/ver10/device/wsdl AFMode,attr,omitempty"`
- }
- // FocusConfiguration20Extension type
- type FocusConfiguration20Extension struct {
- }
- // WhiteBalanceOptions20 type
- type WhiteBalanceOptions20 struct {
- //
- // Mode of WhiteBalance.
- //
- //
- Mode []WhiteBalanceMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- YrGain FloatRange `xml:"http://www.onvif.org/ver10/schema YrGain,omitempty"`
- YbGain FloatRange `xml:"http://www.onvif.org/ver10/schema YbGain,omitempty"`
- Extension WhiteBalanceOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // WhiteBalanceOptions20Extension type
- type WhiteBalanceOptions20Extension struct {
- }
- // FocusOptions20 type
- type FocusOptions20 struct {
- //
- // Supported modes for auto focus.
- //
- //
- AutoFocusModes []AutoFocusMode `xml:"http://www.onvif.org/ver10/schema AutoFocusModes,omitempty"`
- //
- // Valid range of DefaultSpeed.
- //
- DefaultSpeed FloatRange `xml:"http://www.onvif.org/ver10/schema DefaultSpeed,omitempty"`
- //
- // Valid range of NearLimit.
- //
- NearLimit FloatRange `xml:"http://www.onvif.org/ver10/schema NearLimit,omitempty"`
- //
- // Valid range of FarLimit.
- //
- FarLimit FloatRange `xml:"http://www.onvif.org/ver10/schema FarLimit,omitempty"`
- Extension FocusOptions20Extension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // FocusOptions20Extension type
- type FocusOptions20Extension struct {
- // Supported options for auto focus. Options shall be chosen from tt:AFModes.
- AFModes StringAttrList `xml:"http://www.onvif.org/ver10/device/wsdl AFModes,omitempty"`
- }
- // ToneCompensationOptions type
- type ToneCompensationOptions struct {
- // Supported options for Tone Compensation mode. Its options shall be chosen from tt:ToneCompensationMode Type.
- Mode []string `xml:"http://www.onvif.org/ver10/device/wsdl Mode,omitempty"`
- // Indicates whether or not support Level parameter for Tone Compensation.
- Level bool `xml:"http://www.onvif.org/ver10/device/wsdl Level,omitempty"`
- }
- // DefoggingOptions type
- type DefoggingOptions struct {
- // Supported options for Defogging mode. Its options shall be chosen from tt:DefoggingMode Type.
- Mode []string `xml:"http://www.onvif.org/ver10/device/wsdl Mode,omitempty"`
- // Indicates whether or not support Level parameter for Defogging.
- Level bool `xml:"http://www.onvif.org/ver10/device/wsdl Level,omitempty"`
- }
- // NoiseReductionOptions type
- type NoiseReductionOptions struct {
- // Indicates whether or not support Level parameter for NoiseReduction.
- Level bool `xml:"http://www.onvif.org/ver10/device/wsdl Level,omitempty"`
- }
- // MessageExtension type
- type MessageExtension struct {
- }
- // ItemList type
- type ItemList struct {
- SimpleItem []struct {
- // Item name.
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,attr,omitempty"`
- // Item value. The type is defined in the corresponding description.
- Value AnySimpleType `xml:"Value,attr,omitempty"`
- } `xml:"SimpleItem,omitempty"`
- ElementItem []struct {
- // Item name.
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,attr,omitempty"`
- } `xml:"ElementItem,omitempty"`
- Extension ItemListExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ItemListExtension type
- type ItemListExtension struct {
- }
- // MessageDescription type
- type MessageDescription struct {
- // Set of tokens producing this message. The list may only contain SimpleItemDescription items.
- // The set of tokens identify the component within the WS-Endpoint, which is responsible for the producing the message.
- // For analytics events the token set shall include the VideoSourceConfigurationToken, the VideoAnalyticsConfigurationToken
- // and the name of the analytics module or rule.
- //
- Source ItemListDescription `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
- // Describes optional message payload parameters that may be used as key. E.g. object IDs of tracked objects are conveyed as key.
- Key ItemListDescription `xml:"http://www.onvif.org/ver10/schema Key,omitempty"`
- // Describes the payload of the message.
- Data ItemListDescription `xml:"http://www.onvif.org/ver10/schema Data,omitempty"`
- Extension MessageDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // 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.
- IsProperty bool `xml:"http://www.onvif.org/ver10/device/wsdl IsProperty,attr,omitempty"`
- }
- // MessageDescriptionExtension type
- type MessageDescriptionExtension struct {
- }
- // ItemListDescription type
- type ItemListDescription struct {
- SimpleItemDescription []struct {
- // Item name. Must be unique within a list.
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,attr,omitempty"`
- Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
- } `xml:"SimpleItemDescription,omitempty"`
- ElementItemDescription []struct {
- // Item name. Must be unique within a list.
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,attr,omitempty"`
- // The type of the item. The Type must reference a defined type.
- Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
- } `xml:"ElementItemDescription,omitempty"`
- Extension ItemListDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ItemListDescriptionExtension type
- type ItemListDescriptionExtension struct {
- }
- // Polyline type
- type Polyline struct {
- Point []Vector `xml:"http://www.onvif.org/ver10/schema Point,omitempty"`
- }
- // AnalyticsEngineConfiguration type
- type AnalyticsEngineConfiguration struct {
- AnalyticsModule []Config `xml:"http://www.onvif.org/ver10/schema AnalyticsModule,omitempty"`
- Extension AnalyticsEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AnalyticsEngineConfigurationExtension type
- type AnalyticsEngineConfigurationExtension struct {
- }
- // RuleEngineConfiguration type
- type RuleEngineConfiguration struct {
- Rule []Config `xml:"http://www.onvif.org/ver10/schema Rule,omitempty"`
- Extension RuleEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RuleEngineConfigurationExtension type
- type RuleEngineConfigurationExtension struct {
- }
- // Config type
- type Config struct {
- // List of configuration parameters as defined in the correspding description.
- Parameters ItemList `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
- // Name of the configuration.
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,attr,omitempty"`
- // 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.
- Type QName `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
- }
- // ConfigDescription type
- type ConfigDescription struct {
- //
- // List describing the configuration parameters. The names of the parameters must be unique. If possible SimpleItems
- // should be used to transport the information to ease parsing of dynamically defined messages by a client
- // application.
- //
- Parameters ItemListDescription `xml:"http://www.onvif.org/ver10/schema Parameters,omitempty"`
- Messages []struct {
- *MessageDescription
- //
- // The ParentTopic labels the message (e.g. "nn:RuleEngine/LineCrossing"). The real message can extend the ParentTopic
- // by for example the name of the instaniated rule (e.g. "nn:RuleEngine/LineCrossing/corssMyFirstLine").
- // Even without knowing the complete topic name, the subscriber will be able to distiguish the
- // messages produced by different rule instances of the same type via the Source fields of the message.
- // There the name of the rule instance, which produced the message, must be listed.
- //
- ParentTopic string `xml:"http://www.onvif.org/ver10/device/wsdl ParentTopic,omitempty"`
- } `xml:"Messages,omitempty"`
- Extension ConfigDescriptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // The Name attribute (e.g. "tt::LineDetector") uniquely identifies the type of rule, not a type definition in a schema.
- Name QName `xml:"http://www.onvif.org/ver10/schema Name,attr,omitempty"`
- // The fixed attribute signals that it is not allowed to add or remove this type of configuration.
- Fixed bool `xml:"fixed,attr,omitempty"`
- // The maxInstances attribute signals the maximum number of instances per configuration.
- MaxInstances int32 `xml:"maxInstances,attr,omitempty"`
- }
- // ConfigDescriptionExtension type
- type ConfigDescriptionExtension struct {
- }
- // SupportedRules type
- type SupportedRules struct {
- // Lists the location of all schemas that are referenced in the rules.
- RuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema RuleContentSchemaLocation,omitempty"`
- // List of rules supported by the Video Analytics configuration..
- RuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema RuleDescription,omitempty"`
- Extension SupportedRulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SupportedRulesExtension type
- type SupportedRulesExtension struct {
- }
- // SupportedAnalyticsModules type
- type SupportedAnalyticsModules struct {
- // It optionally contains a list of URLs that provide the location of schema files.
- // These schema files describe the types and elements used in the analytics module descriptions.
- // Analytics module descriptions that reference types or elements imported from any ONVIF defined schema files
- // need not explicitly list those schema files.
- AnalyticsModuleContentSchemaLocation []AnyURI `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleContentSchemaLocation,omitempty"`
- AnalyticsModuleDescription []ConfigDescription `xml:"http://www.onvif.org/ver10/schema AnalyticsModuleDescription,omitempty"`
- Extension SupportedAnalyticsModulesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SupportedAnalyticsModulesExtension type
- type SupportedAnalyticsModulesExtension struct {
- }
- // PolylineArray type
- type PolylineArray struct {
- // Contains array of Polyline
- Segment []Polyline `xml:"http://www.onvif.org/ver10/schema Segment,omitempty"`
- Extension PolylineArrayExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PolylineArrayExtension type
- type PolylineArrayExtension struct {
- }
- // PaneLayout type
- type PaneLayout struct {
- // Reference to the configuration of the streaming and coding parameters.
- Pane ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Pane,omitempty"`
- // Describes the location and size of the area on the monitor. The area coordinate values are espressed in normalized units [-1.0, 1.0].
- Area Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
- }
- // Layout type
- type Layout struct {
- // List of panes assembling the display layout.
- PaneLayout []PaneLayout `xml:"http://www.onvif.org/ver10/schema PaneLayout,omitempty"`
- Extension LayoutExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // LayoutExtension type
- type LayoutExtension struct {
- }
- // LayoutOptions type
- type LayoutOptions struct {
- // Lists the possible Pane Layouts of the Video Output
- PaneLayoutOptions []PaneLayoutOptions `xml:"http://www.onvif.org/ver10/schema PaneLayoutOptions,omitempty"`
- Extension LayoutOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // LayoutOptionsExtension type
- type LayoutOptionsExtension struct {
- }
- // PaneLayoutOptions type
- type PaneLayoutOptions struct {
- // List of areas assembling a layout. Coordinate values are in the range [-1.0, 1.0].
- Area []Rectangle `xml:"http://www.onvif.org/ver10/schema Area,omitempty"`
- Extension PaneOptionExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // PaneOptionExtension type
- type PaneOptionExtension struct {
- }
- // Receiver type
- type Receiver struct {
- // Unique identifier of the receiver.
- Token ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Token,omitempty"`
- // Describes the configuration of the receiver.
- Configuration ReceiverConfiguration `xml:"http://www.onvif.org/ver10/schema Configuration,omitempty"`
- }
- // ReceiverConfiguration type
- type ReceiverConfiguration struct {
- // The following connection modes are defined:
- Mode ReceiverMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // Details of the URI to which the receiver should connect.
- MediaUri AnyURI `xml:"http://www.onvif.org/ver10/schema MediaUri,omitempty"`
- // Stream connection parameters.
- StreamSetup StreamSetup `xml:"http://www.onvif.org/ver10/schema StreamSetup,omitempty"`
- }
- // SourceReference type
- type SourceReference struct {
- Token ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Token,omitempty"`
- Type AnyURI `xml:"http://www.onvif.org/ver10/schema Type,attr,omitempty"`
- }
- // DateTimeRange type
- type DateTimeRange struct {
- From string `xml:"http://www.onvif.org/ver10/schema From,omitempty"`
- Until string `xml:"http://www.onvif.org/ver10/schema Until,omitempty"`
- }
- // SearchScope type
- type SearchScope struct {
- // 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.
- IncludedSources []SourceReference `xml:"http://www.onvif.org/ver10/schema IncludedSources,omitempty"`
- // 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.
- IncludedRecordings []RecordingReference `xml:"http://www.onvif.org/ver10/schema IncludedRecordings,omitempty"`
- // An xpath expression used to specify what recordings to search. Only those recordings with an RecordingInformation structure that matches the filter shall be searched.
- RecordingInformationFilter XPathExpression `xml:"http://www.onvif.org/ver10/schema RecordingInformationFilter,omitempty"`
- // Extension point
- Extension SearchScopeExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SearchScopeExtension type
- type SearchScopeExtension struct {
- }
- // RecordingSourceInformation type
- type RecordingSourceInformation struct {
- //
- // Identifier for the source chosen by the client that creates the structure.
- // 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.
- SourceId AnyURI `xml:"http://www.onvif.org/ver10/schema SourceId,omitempty"`
- // Informative user readable name of the source, e.g. "Camera23". A device shall support at least 20 characters.
- Name Name `xml:"http://www.onvif.org/ver10/schema Name,omitempty"`
- // Informative description of the physical location of the source, e.g. the coordinates on a map.
- Location Description `xml:"http://www.onvif.org/ver10/schema Location,omitempty"`
- // Informative description of the source.
- Description Description `xml:"http://www.onvif.org/ver10/schema Description,omitempty"`
- // URI provided by the service supplying data to be recorded. A device shall support at least 128 characters.
- Address AnyURI `xml:"http://www.onvif.org/ver10/schema Address,omitempty"`
- }
- // TrackInformation type
- type TrackInformation struct {
- TrackToken TrackReference `xml:"http://www.onvif.org/ver10/schema TrackToken,omitempty"`
- // Type of the track: "Video", "Audio" or "Metadata".
- // The track shall only be able to hold data of that type.
- TrackType TrackType `xml:"http://www.onvif.org/ver10/schema TrackType,omitempty"`
- // Informative description of the contents of the track.
- Description Description `xml:"http://www.onvif.org/ver10/schema Description,omitempty"`
- // The start date and time of the oldest recorded data in the track.
- DataFrom string `xml:"http://www.onvif.org/ver10/schema DataFrom,omitempty"`
- // The stop date and time of the newest recorded data in the track.
- DataTo string `xml:"http://www.onvif.org/ver10/schema DataTo,omitempty"`
- }
- // TrackAttributes type
- type TrackAttributes struct {
- // The basic information about the track. Note that a track may represent a single contiguous time span or consist of multiple slices.
- TrackInformation TrackInformation `xml:"http://www.onvif.org/ver10/schema TrackInformation,omitempty"`
- // If the track is a video track, exactly one of this structure shall be present and contain the video attributes.
- VideoAttributes VideoAttributes `xml:"http://www.onvif.org/ver10/schema VideoAttributes,omitempty"`
- // If the track is an audio track, exactly one of this structure shall be present and contain the audio attributes.
- AudioAttributes AudioAttributes `xml:"http://www.onvif.org/ver10/schema AudioAttributes,omitempty"`
- // If the track is an metadata track, exactly one of this structure shall be present and contain the metadata attributes.
- MetadataAttributes MetadataAttributes `xml:"http://www.onvif.org/ver10/schema MetadataAttributes,omitempty"`
- Extension TrackAttributesExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // TrackAttributesExtension type
- type TrackAttributesExtension struct {
- }
- // VideoAttributes type
- type VideoAttributes struct {
- // Average bitrate in kbps.
- Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // The width of the video in pixels.
- Width int32 `xml:"http://www.onvif.org/ver10/schema Width,omitempty"`
- // The height of the video in pixels.
- Height int32 `xml:"http://www.onvif.org/ver10/schema Height,omitempty"`
- // Video encoding of the track. Use value from tt:VideoEncoding for MPEG4. Otherwise use values from tt:VideoEncodingMimeNames and .
- Encoding string `xml:"http://www.onvif.org/ver10/device/wsdl Encoding,omitempty"`
- // Average framerate in frames per second.
- Framerate float32 `xml:"http://www.onvif.org/ver10/schema Framerate,omitempty"`
- }
- // AudioAttributes type
- type AudioAttributes struct {
- // The bitrate in kbps.
- Bitrate int32 `xml:"http://www.onvif.org/ver10/schema Bitrate,omitempty"`
- // Audio encoding of the track. Use values from tt:AudioEncoding for G711 and AAC. Otherwise use values from tt:AudioEncodingMimeNames and .
- Encoding string `xml:"http://www.onvif.org/ver10/device/wsdl Encoding,omitempty"`
- // The sample rate in kHz.
- Samplerate int32 `xml:"http://www.onvif.org/ver10/schema Samplerate,omitempty"`
- }
- // MetadataAttributes type
- type MetadataAttributes struct {
- // Indicates that there can be PTZ data in the metadata track in the specified time interval.
- CanContainPTZ bool `xml:"http://www.onvif.org/ver10/device/wsdl CanContainPTZ,omitempty"`
- // Indicates that there can be analytics data in the metadata track in the specified time interval.
- CanContainAnalytics bool `xml:"http://www.onvif.org/ver10/device/wsdl CanContainAnalytics,omitempty"`
- // Indicates that there can be notifications in the metadata track in the specified time interval.
- CanContainNotifications bool `xml:"http://www.onvif.org/ver10/device/wsdl CanContainNotifications,omitempty"`
- // 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.
- PtzSpaces StringAttrList `xml:"http://www.onvif.org/ver10/device/wsdl PtzSpaces,attr,omitempty"`
- }
- // RecordingJobConfiguration type
- type RecordingJobConfiguration struct {
- // Identifies the recording to which this job shall store the received data.
- RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
- // The mode of the job. If it is idle, nothing shall happen. If it is active, the device shall try
- // to obtain data from the receivers. A client shall use GetRecordingJobState to determine if data transfer is really taking place.
- // The only valid values for Mode shall be “Idle” and “Active”.
- Mode RecordingJobMode `xml:"http://www.onvif.org/ver10/schema Mode,omitempty"`
- // This shall be a non-negative number. If there are multiple recording jobs that store data to
- // the same track, the device will only store the data for the recording job with the highest
- // priority. The priority is specified per recording job, but the device shall determine the priority
- // of each track individually. If there are two recording jobs with the same priority, the device
- // shall record the data corresponding to the recording job that was activated the latest.
- Priority int32 `xml:"http://www.onvif.org/ver10/schema Priority,omitempty"`
- // Source of the recording.
- Source []RecordingJobSource `xml:"http://www.onvif.org/ver10/schema Source,omitempty"`
- Extension RecordingJobConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // This attribute adds an additional requirement for activating the recording job.
- // If this optional field is provided the job shall only record if the schedule exists and is active.
- //
- ScheduleToken string `xml:"http://www.onvif.org/ver10/device/wsdl ScheduleToken,attr,omitempty"`
- }
- // RecordingJobConfigurationExtension type
- type RecordingJobConfigurationExtension struct {
- }
- // RecordingJobSource type
- type RecordingJobSource struct {
- // This field shall be a reference to the source of the data. The type of the source
- // is determined by the attribute Type in the SourceToken structure. If Type is
- // http://www.onvif.org/ver10/schema/Receiver, the token is a ReceiverReference. In this case
- // the device shall receive the data over the network. If Type is
- // http://www.onvif.org/ver10/schema/Profile, the token identifies a media profile, instructing the
- // device to obtain data from a profile that exists on the local device.
- SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
- // If this field is TRUE, and if the SourceToken is omitted, the device
- // shall create a receiver object (through the receiver service) and assign the
- // ReceiverReference to the SourceToken field. When retrieving the RecordingJobConfiguration
- // from the device, the AutoCreateReceiver field shall never be present.
- AutoCreateReceiver bool `xml:"http://www.onvif.org/ver10/device/wsdl AutoCreateReceiver,omitempty"`
- // List of tracks associated with the recording.
- Tracks []RecordingJobTrack `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
- Extension RecordingJobSourceExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RecordingJobSourceExtension type
- type RecordingJobSourceExtension struct {
- }
- // RecordingJobTrack type
- type RecordingJobTrack struct {
- // If the received RTSP stream contains multiple tracks of the same type, the
- // SourceTag differentiates between those Tracks. This field can be ignored in case of recording a local source.
- SourceTag string `xml:"http://www.onvif.org/ver10/device/wsdl SourceTag,omitempty"`
- // The destination is the tracktoken of the track to which the device shall store the
- // received data.
- Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
- }
- // RecordingJobStateInformation type
- type RecordingJobStateInformation struct {
- // Identification of the recording that the recording job records to.
- RecordingToken RecordingReference `xml:"http://www.onvif.org/ver10/schema RecordingToken,omitempty"`
- // Holds the aggregated state over the whole RecordingJobInformation structure.
- State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
- // Identifies the data source of the recording job.
- Sources []RecordingJobStateSource `xml:"http://www.onvif.org/ver10/schema Sources,omitempty"`
- Extension RecordingJobStateInformationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // RecordingJobStateInformationExtension type
- type RecordingJobStateInformationExtension struct {
- }
- // RecordingJobStateSource type
- type RecordingJobStateSource struct {
- // Identifies the data source of the recording job.
- SourceToken SourceReference `xml:"http://www.onvif.org/ver10/schema SourceToken,omitempty"`
- // Holds the aggregated state over all substructures of RecordingJobStateSource.
- State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
- // List of track items.
- Tracks RecordingJobStateTracks `xml:"http://www.onvif.org/ver10/schema Tracks,omitempty"`
- }
- // RecordingJobStateTracks type
- type RecordingJobStateTracks struct {
- Track []RecordingJobStateTrack `xml:"http://www.onvif.org/ver10/schema Track,omitempty"`
- }
- // RecordingJobStateTrack type
- type RecordingJobStateTrack struct {
- // Identifies the track of the data source that provides the data.
- SourceTag string `xml:"http://www.onvif.org/ver10/device/wsdl SourceTag,omitempty"`
- // Indicates the destination track.
- Destination TrackReference `xml:"http://www.onvif.org/ver10/schema Destination,omitempty"`
- // Optionally holds an implementation defined string value that describes the error.
- // The string should be in the English language.
- Error string `xml:"http://www.onvif.org/ver10/device/wsdl Error,omitempty"`
- // Provides the job state of the track. The valid
- // 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.
- State RecordingJobState `xml:"http://www.onvif.org/ver10/schema State,omitempty"`
- }
- // AnalyticsEngine type
- type AnalyticsEngine struct {
- *ConfigurationEntity
- AnalyticsEngineConfiguration AnalyticsDeviceEngineConfiguration `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineConfiguration,omitempty"`
- }
- // AnalyticsDeviceEngineConfiguration type
- type AnalyticsDeviceEngineConfiguration struct {
- EngineConfiguration []EngineConfiguration `xml:"http://www.onvif.org/ver10/schema EngineConfiguration,omitempty"`
- Extension AnalyticsDeviceEngineConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AnalyticsDeviceEngineConfigurationExtension type
- type AnalyticsDeviceEngineConfigurationExtension struct {
- }
- // EngineConfiguration type
- type EngineConfiguration struct {
- VideoAnalyticsConfiguration VideoAnalyticsConfiguration `xml:"http://www.onvif.org/ver10/schema VideoAnalyticsConfiguration,omitempty"`
- AnalyticsEngineInputInfo AnalyticsEngineInputInfo `xml:"http://www.onvif.org/ver10/schema AnalyticsEngineInputInfo,omitempty"`
- }
- // AnalyticsEngineInputInfo type
- type AnalyticsEngineInputInfo struct {
- InputInfo Config `xml:"http://www.onvif.org/ver10/schema InputInfo,omitempty"`
- Extension AnalyticsEngineInputInfoExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AnalyticsEngineInputInfoExtension type
- type AnalyticsEngineInputInfoExtension struct {
- }
- // AnalyticsEngineInput type
- type AnalyticsEngineInput struct {
- *ConfigurationEntity
- SourceIdentification SourceIdentification `xml:"http://www.onvif.org/ver10/schema SourceIdentification,omitempty"`
- VideoInput VideoEncoderConfiguration `xml:"http://www.onvif.org/ver10/schema VideoInput,omitempty"`
- MetadataInput MetadataInput `xml:"http://www.onvif.org/ver10/schema MetadataInput,omitempty"`
- }
- // SourceIdentification type
- type SourceIdentification struct {
- Name string `xml:"http://www.onvif.org/ver10/device/wsdl Name,omitempty"`
- Token []ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Token,omitempty"`
- Extension SourceIdentificationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // SourceIdentificationExtension type
- type SourceIdentificationExtension struct {
- }
- // MetadataInput type
- type MetadataInput struct {
- MetadataConfig []Config `xml:"http://www.onvif.org/ver10/schema MetadataConfig,omitempty"`
- Extension MetadataInputExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // MetadataInputExtension type
- type MetadataInputExtension struct {
- }
- // ActionEngineEventPayload type
- type ActionEngineEventPayload struct {
- // Request Message
- RequestInfo Envelope `xml:"RequestInfo,omitempty"`
- // Response Message
- ResponseInfo Envelope `xml:"ResponseInfo,omitempty"`
- // Fault Message
- Fault Fault `xml:"Fault,omitempty"`
- Extension ActionEngineEventPayloadExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ActionEngineEventPayloadExtension type
- type ActionEngineEventPayloadExtension struct {
- }
- // AudioClassCandidate type
- type AudioClassCandidate struct {
- // Indicates audio class label
- Type AudioClassType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // A likelihood/probability that the corresponding audio event belongs to this class. The sum of the likelihoods shall NOT exceed 1
- Likelihood float32 `xml:"http://www.onvif.org/ver10/schema Likelihood,omitempty"`
- }
- // AudioClassDescriptor type
- type AudioClassDescriptor struct {
- // Array of audio class label and class probability
- ClassCandidate []AudioClassCandidate `xml:"http://www.onvif.org/ver10/schema ClassCandidate,omitempty"`
- Extension AudioClassDescriptorExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // AudioClassDescriptorExtension type
- type AudioClassDescriptorExtension struct {
- }
- // ActiveConnection type
- type ActiveConnection struct {
- CurrentBitrate float32 `xml:"http://www.onvif.org/ver10/schema CurrentBitrate,omitempty"`
- CurrentFps float32 `xml:"http://www.onvif.org/ver10/schema CurrentFps,omitempty"`
- }
- // ProfileStatus type
- type ProfileStatus struct {
- ActiveConnections []ActiveConnection `xml:"http://www.onvif.org/ver10/schema ActiveConnections,omitempty"`
- Extension ProfileStatusExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ProfileStatusExtension type
- type ProfileStatusExtension struct {
- }
- // OSDReference type
- type OSDReference struct {
- Value ReferenceToken
- }
- // OSDPosConfiguration type
- type OSDPosConfiguration struct {
- // For OSD position type, following are the pre-defined:
- //
- Type string `xml:"http://www.onvif.org/ver10/device/wsdl Type,omitempty"`
- Pos Vector `xml:"http://www.onvif.org/ver10/schema Pos,omitempty"`
- Extension OSDPosConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDPosConfigurationExtension type
- type OSDPosConfigurationExtension struct {
- }
- // OSDColor type
- type OSDColor struct {
- Color Color `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
- Transparent int32 `xml:"http://www.onvif.org/ver10/schema Transparent,attr,omitempty"`
- }
- // OSDTextConfiguration type
- type OSDTextConfiguration struct {
- //
- // The following OSD Text Type are defined:
- //
- Type string `xml:"http://www.onvif.org/ver10/device/wsdl Type,omitempty"`
- //
- // 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:
- //
- DateFormat string `xml:"http://www.onvif.org/ver10/device/wsdl DateFormat,omitempty"`
- //
- // 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:
- //
- TimeFormat string `xml:"http://www.onvif.org/ver10/device/wsdl TimeFormat,omitempty"`
- // Font size of the text in pt.
- FontSize int32 `xml:"http://www.onvif.org/ver10/schema FontSize,omitempty"`
- // Font color of the text.
- FontColor OSDColor `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
- // Background color of the text.
- BackgroundColor OSDColor `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
- // The content of text to be displayed.
- PlainText string `xml:"http://www.onvif.org/ver10/device/wsdl PlainText,omitempty"`
- Extension OSDTextConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // 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.
- IsPersistentText bool `xml:"http://www.onvif.org/ver10/device/wsdl IsPersistentText,attr,omitempty"`
- }
- // OSDTextConfigurationExtension type
- type OSDTextConfigurationExtension struct {
- }
- // OSDImgConfiguration type
- type OSDImgConfiguration struct {
- // The URI of the image which to be displayed.
- ImgPath AnyURI `xml:"http://www.onvif.org/ver10/schema ImgPath,omitempty"`
- Extension OSDImgConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDImgConfigurationExtension type
- type OSDImgConfigurationExtension struct {
- }
- // ColorspaceRange type
- type ColorspaceRange struct {
- X FloatRange `xml:"http://www.onvif.org/ver10/schema X,omitempty"`
- Y FloatRange `xml:"http://www.onvif.org/ver10/schema Y,omitempty"`
- Z FloatRange `xml:"http://www.onvif.org/ver10/schema Z,omitempty"`
- //
- // Acceptable values are the same as in tt:Color.
- //
- Colorspace AnyURI `xml:"http://www.onvif.org/ver10/schema Colorspace,omitempty"`
- }
- // ColorOptions type
- type ColorOptions struct {
- // List the supported color.
- ColorList []Color `xml:"http://www.onvif.org/ver10/schema ColorList,omitempty"`
- // Define the range of color supported.
- ColorspaceRange []ColorspaceRange `xml:"http://www.onvif.org/ver10/schema ColorspaceRange,omitempty"`
- }
- // OSDColorOptions type
- type OSDColorOptions struct {
- // Optional list of supported colors.
- Color ColorOptions `xml:"http://www.onvif.org/ver10/schema Color,omitempty"`
- // Range of the transparent level. Larger means more tranparent.
- Transparent IntRange `xml:"http://www.onvif.org/ver10/schema Transparent,omitempty"`
- Extension OSDColorOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDColorOptionsExtension type
- type OSDColorOptionsExtension struct {
- }
- // OSDTextOptions type
- type OSDTextOptions struct {
- // List of supported OSD text type. When a device indicates the supported number relating to Text type in MaximumNumberOfOSDs, the type shall be presented.
- Type []string `xml:"http://www.onvif.org/ver10/device/wsdl Type,omitempty"`
- // Range of the font size value.
- FontSizeRange IntRange `xml:"http://www.onvif.org/ver10/schema FontSizeRange,omitempty"`
- // List of supported date format.
- DateFormat []string `xml:"http://www.onvif.org/ver10/device/wsdl DateFormat,omitempty"`
- // List of supported time format.
- TimeFormat []string `xml:"http://www.onvif.org/ver10/device/wsdl TimeFormat,omitempty"`
- // List of supported font color.
- FontColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema FontColor,omitempty"`
- // List of supported background color.
- BackgroundColor OSDColorOptions `xml:"http://www.onvif.org/ver10/schema BackgroundColor,omitempty"`
- Extension OSDTextOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDTextOptionsExtension type
- type OSDTextOptionsExtension struct {
- }
- // OSDImgOptions type
- type OSDImgOptions struct {
- // List of available image URIs.
- ImagePath []AnyURI `xml:"http://www.onvif.org/ver10/schema ImagePath,omitempty"`
- Extension OSDImgOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- // List of supported image MIME types, such as "image/png".
- FormatsSupported StringAttrList `xml:"http://www.onvif.org/ver10/device/wsdl FormatsSupported,attr,omitempty"`
- // The maximum size (in bytes) of the image that can be uploaded.
- MaxSize int32 `xml:"http://www.onvif.org/ver10/schema MaxSize,attr,omitempty"`
- // The maximum width (in pixels) of the image that can be uploaded.
- MaxWidth int32 `xml:"http://www.onvif.org/ver10/schema MaxWidth,attr,omitempty"`
- // The maximum height (in pixels) of the image that can be uploaded.
- MaxHeight int32 `xml:"http://www.onvif.org/ver10/schema MaxHeight,attr,omitempty"`
- }
- // OSDImgOptionsExtension type
- type OSDImgOptionsExtension struct {
- }
- // OSDConfiguration type
- type OSDConfiguration struct {
- *DeviceEntity
- // Reference to the video source configuration.
- VideoSourceConfigurationToken OSDReference `xml:"http://www.onvif.org/ver10/schema VideoSourceConfigurationToken,omitempty"`
- // Type of OSD.
- Type OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // Position configuration of OSD.
- Position OSDPosConfiguration `xml:"http://www.onvif.org/ver10/schema Position,omitempty"`
- // Text configuration of OSD. It shall be present when the value of Type field is Text.
- TextString OSDTextConfiguration `xml:"http://www.onvif.org/ver10/schema TextString,omitempty"`
- // Image configuration of OSD. It shall be present when the value of Type field is Image
- Image OSDImgConfiguration `xml:"http://www.onvif.org/ver10/schema Image,omitempty"`
- Extension OSDConfigurationExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDConfigurationExtension type
- type OSDConfigurationExtension struct {
- }
- // MaximumNumberOfOSDs type
- type MaximumNumberOfOSDs struct {
- Total int32 `xml:"http://www.onvif.org/ver10/schema Total,attr,omitempty"`
- Image int32 `xml:"http://www.onvif.org/ver10/schema Image,attr,omitempty"`
- PlainText int32 `xml:"http://www.onvif.org/ver10/schema PlainText,attr,omitempty"`
- Date int32 `xml:"http://www.onvif.org/ver10/schema Date,attr,omitempty"`
- Time int32 `xml:"http://www.onvif.org/ver10/schema Time,attr,omitempty"`
- DateAndTime int32 `xml:"http://www.onvif.org/ver10/schema DateAndTime,attr,omitempty"`
- }
- // OSDConfigurationOptions type
- type OSDConfigurationOptions struct {
- // 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.
- MaximumNumberOfOSDs MaximumNumberOfOSDs `xml:"http://www.onvif.org/ver10/schema MaximumNumberOfOSDs,omitempty"`
- // 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.
- Type []OSDType `xml:"http://www.onvif.org/ver10/schema Type,omitempty"`
- // List available OSD position type. Following are the pre-defined:
- //
- PositionOption []string `xml:"http://www.onvif.org/ver10/device/wsdl PositionOption,omitempty"`
- // Option of the OSD text configuration. This element shall be returned if the device is signaling the support for Text.
- TextOption OSDTextOptions `xml:"http://www.onvif.org/ver10/schema TextOption,omitempty"`
- // Option of the OSD image configuration. This element shall be returned if the device is signaling the support for Image.
- ImageOption OSDImgOptions `xml:"http://www.onvif.org/ver10/schema ImageOption,omitempty"`
- Extension OSDConfigurationOptionsExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // OSDConfigurationOptionsExtension type
- type OSDConfigurationOptionsExtension struct {
- }
- // FileProgress type
- type FileProgress struct {
- // Exported file name
- FileName string `xml:"http://www.onvif.org/ver10/device/wsdl FileName,omitempty"`
- // Normalized percentage completion for uploading the exported file
- Progress float32 `xml:"http://www.onvif.org/ver10/schema Progress,omitempty"`
- }
- // ArrayOfFileProgress type
- type ArrayOfFileProgress struct {
- // Exported file name and export progress information
- FileProgress []FileProgress `xml:"http://www.onvif.org/ver10/schema FileProgress,omitempty"`
- Extension ArrayOfFileProgressExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // ArrayOfFileProgressExtension type
- type ArrayOfFileProgressExtension struct {
- }
- // StorageReferencePath type
- type StorageReferencePath struct {
- // identifier of an existing Storage Configuration.
- StorageToken ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl StorageToken,omitempty"`
- // gives the relative directory path on the storage
- RelativePath string `xml:"http://www.onvif.org/ver10/device/wsdl RelativePath,omitempty"`
- Extension StorageReferencePathExtension `xml:"http://www.onvif.org/ver10/schema Extension,omitempty"`
- }
- // StorageReferencePathExtension type
- type StorageReferencePathExtension struct {
- }
- // Device type
- type Device interface {
- /* Returns information about services on the device. */
- GetServices(request *GetServices) (*GetServicesResponse, error)
- GetServicesContext(ctx context.Context, request *GetServices) (*GetServicesResponse, error)
- /* Returns the capabilities of the device service. The result is returned in a typed answer. */
- GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
- GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error)
- /* This operation gets basic device information from the device. */
- GetDeviceInformation(request *GetDeviceInformation) (*GetDeviceInformationResponse, error)
- GetDeviceInformationContext(ctx context.Context, request *GetDeviceInformation) (*GetDeviceInformationResponse, error)
- /* This operation sets the device system date and time. The device shall support the
- configuration of the daylight saving setting and of the manual system date and time (if
- applicable) or indication of NTP time (if applicable) through the SetSystemDateAndTime
- command.
- If system time and date are set manually, the client shall include UTCDateTime in the request.
- A TimeZone token which is not formed according to the rules of IEEE 1003.1 section 8.3 is considered as invalid timezone.
- The DayLightSavings flag should be set to true to activate any DST settings of the TimeZone string.
- Clear the DayLightSavings flag if the DST portion of the TimeZone settings should be ignored.
- */
- SetSystemDateAndTime(request *SetSystemDateAndTime) (*SetSystemDateAndTimeResponse, error)
- SetSystemDateAndTimeContext(ctx context.Context, request *SetSystemDateAndTime) (*SetSystemDateAndTimeResponse, error)
- /* This operation gets the device system date and time. The device shall support the return of
- the daylight saving setting and of the manual system date and time (if applicable) or indication
- of NTP time (if applicable) through the GetSystemDateAndTime command.
- A device shall provide the UTCDateTime information. */
- GetSystemDateAndTime(request *GetSystemDateAndTime) (*GetSystemDateAndTimeResponse, error)
- GetSystemDateAndTimeContext(ctx context.Context, request *GetSystemDateAndTime) (*GetSystemDateAndTimeResponse, error)
- /* This operation reloads the parameters on the device to their factory default values. */
- SetSystemFactoryDefault(request *SetSystemFactoryDefault) (*SetSystemFactoryDefaultResponse, error)
- SetSystemFactoryDefaultContext(ctx context.Context, request *SetSystemFactoryDefault) (*SetSystemFactoryDefaultResponse, error)
- /* This operation upgrades a device firmware version. After a successful upgrade the response
- message is sent before the device reboots. The device should support firmware upgrade
- through the UpgradeSystemFirmware command. The exact format of the firmware data is
- outside the scope of this standard. */
- UpgradeSystemFirmware(request *UpgradeSystemFirmware) (*UpgradeSystemFirmwareResponse, error)
- UpgradeSystemFirmwareContext(ctx context.Context, request *UpgradeSystemFirmware) (*UpgradeSystemFirmwareResponse, error)
- /* This operation reboots the device. */
- SystemReboot(request *SystemReboot) (*SystemRebootResponse, error)
- SystemRebootContext(ctx context.Context, request *SystemReboot) (*SystemRebootResponse, error)
- /* This operation restores the system backup configuration files(s) previously retrieved from a
- device. The device should support restore of backup configuration file(s) through the
- RestoreSystem command. The exact format of the backup configuration file(s) is outside the
- scope of this standard. If the command is supported, it shall accept backup files returned by
- the GetSystemBackup command. */
- RestoreSystem(request *RestoreSystem) (*RestoreSystemResponse, error)
- RestoreSystemContext(ctx context.Context, request *RestoreSystem) (*RestoreSystemResponse, error)
- /* This operation is retrieves system backup configuration file(s) from a device. The device
- should support return of back up configuration file(s) through the GetSystemBackup command.
- The backup is returned with reference to a name and mime-type together with binary data.
- The exact format of the backup configuration files is outside the scope of this standard. */
- GetSystemBackup(request *GetSystemBackup) (*GetSystemBackupResponse, error)
- GetSystemBackupContext(ctx context.Context, request *GetSystemBackup) (*GetSystemBackupResponse, error)
- /* This operation gets a system log from the device. The exact format of the system logs is outside the scope of this standard. */
- GetSystemLog(request *GetSystemLog) (*GetSystemLogResponse, error)
- GetSystemLogContext(ctx context.Context, request *GetSystemLog) (*GetSystemLogResponse, error)
- /* This operation gets arbitary device diagnostics information from the device. */
- GetSystemSupportInformation(request *GetSystemSupportInformation) (*GetSystemSupportInformationResponse, error)
- GetSystemSupportInformationContext(ctx context.Context, request *GetSystemSupportInformation) (*GetSystemSupportInformationResponse, error)
- /* This operation requests the scope parameters of a device. The scope parameters are used in
- the device discovery to match a probe message, see Section 7. The Scope parameters are of
- two different types:
- Fixed scope parameters are permanent device characteristics and cannot be removed through the device management interface.
- The scope type is indicated in the scope list returned in the get scope parameters response. A device shall support
- retrieval of discovery scope parameters through the GetScopes command. As some scope parameters are mandatory,
- the device shall return a non-empty scope list in the response. */
- GetScopes(request *GetScopes) (*GetScopesResponse, error)
- GetScopesContext(ctx context.Context, request *GetScopes) (*GetScopesResponse, error)
- /* This operation sets the scope parameters of a device. The scope parameters are used in the
- device discovery to match a probe message.
- This operation replaces all existing configurable scope parameters (not fixed parameters). If
- this shall be avoided, one should use the scope add command instead. The device shall
- support configuration of discovery scope parameters through the SetScopes command. */
- SetScopes(request *SetScopes) (*SetScopesResponse, error)
- SetScopesContext(ctx context.Context, request *SetScopes) (*SetScopesResponse, error)
- /* This operation adds new configurable scope parameters to a device. The scope parameters
- are used in the device discovery to match a probe message. The device shall
- support addition of discovery scope parameters through the AddScopes command. */
- AddScopes(request *AddScopes) (*AddScopesResponse, error)
- AddScopesContext(ctx context.Context, request *AddScopes) (*AddScopesResponse, error)
- /* This operation deletes scope-configurable scope parameters from a device. The scope
- parameters are used in the device discovery to match a probe message, see Section 7. The
- device shall support deletion of discovery scope parameters through the RemoveScopes
- command.
- Table */
- RemoveScopes(request *RemoveScopes) (*RemoveScopesResponse, error)
- RemoveScopesContext(ctx context.Context, request *RemoveScopes) (*RemoveScopesResponse, error)
- /* This operation gets the discovery mode of a device. See Section 7.2 for the definition of the
- different device discovery modes. The device shall support retrieval of the discovery mode
- setting through the GetDiscoveryMode command. */
- GetDiscoveryMode(request *GetDiscoveryMode) (*GetDiscoveryModeResponse, error)
- GetDiscoveryModeContext(ctx context.Context, request *GetDiscoveryMode) (*GetDiscoveryModeResponse, error)
- /* This operation sets the discovery mode operation of a device. See Section 7.2 for the
- definition of the different device discovery modes. The device shall support configuration of
- the discovery mode setting through the SetDiscoveryMode command. */
- SetDiscoveryMode(request *SetDiscoveryMode) (*SetDiscoveryModeResponse, error)
- SetDiscoveryModeContext(ctx context.Context, request *SetDiscoveryMode) (*SetDiscoveryModeResponse, error)
- /* This operation gets the remote discovery mode of a device. See Section 7.4 for the definition
- of remote discovery extensions. A device that supports remote discovery shall support
- retrieval of the remote discovery mode setting through the GetRemoteDiscoveryMode
- command. */
- GetRemoteDiscoveryMode(request *GetRemoteDiscoveryMode) (*GetRemoteDiscoveryModeResponse, error)
- GetRemoteDiscoveryModeContext(ctx context.Context, request *GetRemoteDiscoveryMode) (*GetRemoteDiscoveryModeResponse, error)
- /* This operation sets the remote discovery mode of operation of a device. See Section 7.4 for
- the definition of remote discovery remote extensions. A device that supports remote discovery
- shall support configuration of the discovery mode setting through the
- SetRemoteDiscoveryMode command. */
- SetRemoteDiscoveryMode(request *SetRemoteDiscoveryMode) (*SetRemoteDiscoveryModeResponse, error)
- SetRemoteDiscoveryModeContext(ctx context.Context, request *SetRemoteDiscoveryMode) (*SetRemoteDiscoveryModeResponse, error)
- /* This operation gets the remote DP address or addresses from a device. If the device supports
- remote discovery, as specified in Section 7.4, the device shall support retrieval of the remote
- DP address(es) through the GetDPAddresses command. */
- GetDPAddresses(request *GetDPAddresses) (*GetDPAddressesResponse, error)
- GetDPAddressesContext(ctx context.Context, request *GetDPAddresses) (*GetDPAddressesResponse, error)
- /* This operation sets the remote DP address or addresses on a device. If the device supports
- remote discovery, as specified in Section 7.4, the device shall support configuration of the
- remote DP address(es) through the SetDPAddresses command. */
- SetDPAddresses(request *SetDPAddresses) (*SetDPAddressesResponse, error)
- SetDPAddressesContext(ctx context.Context, request *SetDPAddresses) (*SetDPAddressesResponse, error)
- /* A client can ask for the device service endpoint reference address property that can be used
- to derive the password equivalent for remote user operation. The device shall support the
- GetEndpointReference command returning the address property of the device service
- endpoint reference. */
- GetEndpointReference(request *GetEndpointReference) (*GetEndpointReferenceResponse, error)
- GetEndpointReferenceContext(ctx context.Context, request *GetEndpointReference) (*GetEndpointReferenceResponse, error)
- /* This operation returns the configured remote user (if any). A device supporting remote user
- handling shall support this operation. The user is only valid for the WS-UserToken profile or
- as a HTTP / RTSP user.
- The algorithm to use for deriving the password is described in section 5.12.2.1 of the core specification. */
- GetRemoteUser(request *GetRemoteUser) (*GetRemoteUserResponse, error)
- GetRemoteUserContext(ctx context.Context, request *GetRemoteUser) (*GetRemoteUserResponse, error)
- /* This operation sets the remote user. A device supporting remote user handling shall support this
- operation. The user is only valid for the WS-UserToken profile or as a HTTP / RTSP user.
- The password that is set shall always be the original (not derived) password.
- If UseDerivedPassword is set password derivation shall be done by the device when connecting to a
- remote device.The algorithm to use for deriving the password is described in section 5.12.2.1 of the core specification.
- To remove the remote user SetRemoteUser should be called without the RemoteUser parameter. */
- SetRemoteUser(request *SetRemoteUser) (*SetRemoteUserResponse, error)
- SetRemoteUserContext(ctx context.Context, request *SetRemoteUser) (*SetRemoteUserResponse, error)
- /* This operation lists the registered users and corresponding credentials on a device. The
- device shall support retrieval of registered device users and their credentials for the user
- token through the GetUsers command. */
- GetUsers(request *GetUsers) (*GetUsersResponse, error)
- GetUsersContext(ctx context.Context, request *GetUsers) (*GetUsersResponse, error)
- /* This operation creates new device users and corresponding credentials on a device for authentication purposes.
- The device shall support creation of device users and their credentials through the CreateUsers
- command. Either all users are created successfully or a fault message shall be returned
- without creating any user.
- ONVIF compliant devices are recommended to support password length of at least 28 bytes,
- as clients may follow the password derivation mechanism which results in 'password
- equivalent' of length 28 bytes, as described in section 3.1.2 of the ONVIF security white paper. */
- CreateUsers(request *CreateUsers) (*CreateUsersResponse, error)
- CreateUsersContext(ctx context.Context, request *CreateUsers) (*CreateUsersResponse, error)
- /* This operation deletes users on a device. The device shall support deletion of device users and their credentials
- through the DeleteUsers command. A device may have one or more fixed users
- that cannot be deleted to ensure access to the unit. Either all users are deleted successfully or a
- fault message shall be returned and no users be deleted. */
- DeleteUsers(request *DeleteUsers) (*DeleteUsersResponse, error)
- DeleteUsersContext(ctx context.Context, request *DeleteUsers) (*DeleteUsersResponse, error)
- /* This operation updates the settings for one or several users on a device for authentication purposes.
- The device shall support update of device users and their credentials through the SetUser command.
- Either all change requests are processed successfully or a fault message shall be returned and no change requests be processed. */
- SetUser(request *SetUser) (*SetUserResponse, error)
- SetUserContext(ctx context.Context, request *SetUser) (*SetUserResponse, error)
- /* It is possible for an endpoint to request a URL that can be used to retrieve the complete
- schema and WSDL definitions of a device. The command gives in return a URL entry point
- where all the necessary product specific WSDL and schema definitions can be retrieved. The
- device shall provide a URL for WSDL and schema download through the GetWsdlUrl command. */
- GetWsdlUrl(request *GetWsdlUrl) (*GetWsdlUrlResponse, error)
- GetWsdlUrlContext(ctx context.Context, request *GetWsdlUrl) (*GetWsdlUrlResponse, error)
- /* This method has been replaced by the more generic GetServices method.
- For capabilities of individual services refer to the GetServiceCapabilities methods. */
- GetCapabilities(request *GetCapabilities) (*GetCapabilitiesResponse, error)
- GetCapabilitiesContext(ctx context.Context, request *GetCapabilities) (*GetCapabilitiesResponse, error)
- /* This operation is used by an endpoint to get the hostname from a device. The device shall
- return its hostname configurations through the GetHostname command. */
- GetHostname(request *GetHostname) (*GetHostnameResponse, error)
- GetHostnameContext(ctx context.Context, request *GetHostname) (*GetHostnameResponse, error)
- /* This operation sets the hostname on a device. It shall be possible to set the device hostname
- configurations through the SetHostname command.
- A device shall accept string formated according to RFC 1123 section 2.1 or alternatively to RFC 952,
- other string shall be considered as invalid strings.
- */
- SetHostname(request *SetHostname) (*SetHostnameResponse, error)
- SetHostnameContext(ctx context.Context, request *SetHostname) (*SetHostnameResponse, error)
- /* This operation controls whether the hostname is set manually or retrieved via DHCP. */
- SetHostnameFromDHCP(request *SetHostnameFromDHCP) (*SetHostnameFromDHCPResponse, error)
- SetHostnameFromDHCPContext(ctx context.Context, request *SetHostnameFromDHCP) (*SetHostnameFromDHCPResponse, error)
- /* This operation gets the DNS settings from a device. The device shall return its DNS
- configurations through the GetDNS command. */
- GetDNS(request *GetDNS) (*GetDNSResponse, error)
- GetDNSContext(ctx context.Context, request *GetDNS) (*GetDNSResponse, error)
- /* This operation sets the DNS settings on a device. It shall be possible to set the device DNS
- configurations through the SetDNS command. */
- SetDNS(request *SetDNS) (*SetDNSResponse, error)
- SetDNSContext(ctx context.Context, request *SetDNS) (*SetDNSResponse, error)
- /* This operation gets the NTP settings from a device. If the device supports NTP, it shall be
- possible to get the NTP server settings through the GetNTP command. */
- GetNTP(request *GetNTP) (*GetNTPResponse, error)
- GetNTPContext(ctx context.Context, request *GetNTP) (*GetNTPResponse, error)
- /* This operation sets the NTP settings on a device. If the device supports NTP, it shall be
- possible to set the NTP server settings through the SetNTP command.
- A device shall accept string formated according to RFC 1123 section 2.1 or alternatively to RFC 952,
- other string shall be considered as invalid strings.
- Changes to the NTP server list will not affect the clock mode DateTimeType. Use SetSystemDateAndTime to activate NTP operation.
- */
- SetNTP(request *SetNTP) (*SetNTPResponse, error)
- SetNTPContext(ctx context.Context, request *SetNTP) (*SetNTPResponse, error)
- /* This operation gets the dynamic DNS settings from a device. If the device supports dynamic
- DNS as specified in [RFC 2136] and [RFC 4702], it shall be possible to get the type, name
- and TTL through the GetDynamicDNS command. */
- GetDynamicDNS(request *GetDynamicDNS) (*GetDynamicDNSResponse, error)
- GetDynamicDNSContext(ctx context.Context, request *GetDynamicDNS) (*GetDynamicDNSResponse, error)
- /* This operation sets the dynamic DNS settings on a device. If the device supports dynamic
- DNS as specified in [RFC 2136] and [RFC 4702], it shall be possible to set the type, name
- and TTL through the SetDynamicDNS command. */
- SetDynamicDNS(request *SetDynamicDNS) (*SetDynamicDNSResponse, error)
- SetDynamicDNSContext(ctx context.Context, request *SetDynamicDNS) (*SetDynamicDNSResponse, error)
- /* This operation gets the network interface configuration from a device. The device shall
- support return of network interface configuration settings as defined by the NetworkInterface
- type through the GetNetworkInterfaces command. */
- GetNetworkInterfaces(request *GetNetworkInterfaces) (*GetNetworkInterfacesResponse, error)
- GetNetworkInterfacesContext(ctx context.Context, request *GetNetworkInterfaces) (*GetNetworkInterfacesResponse, error)
- /* This operation sets the network interface configuration on a device. The device shall support
- network configuration of supported network interfaces through the SetNetworkInterfaces
- command.
- For interoperability with a client unaware of the IEEE 802.11 extension a device shall retain
- its IEEE 802.11 configuration if the IEEE 802.11 configuration element isn’t present in the
- request. */
- SetNetworkInterfaces(request *SetNetworkInterfaces) (*SetNetworkInterfacesResponse, error)
- SetNetworkInterfacesContext(ctx context.Context, request *SetNetworkInterfaces) (*SetNetworkInterfacesResponse, error)
- /* This operation gets defined network protocols from a device. The device shall support the
- GetNetworkProtocols command returning configured network protocols. */
- GetNetworkProtocols(request *GetNetworkProtocols) (*GetNetworkProtocolsResponse, error)
- GetNetworkProtocolsContext(ctx context.Context, request *GetNetworkProtocols) (*GetNetworkProtocolsResponse, error)
- /* This operation configures defined network protocols on a device. The device shall support
- configuration of defined network protocols through the SetNetworkProtocols command. */
- SetNetworkProtocols(request *SetNetworkProtocols) (*SetNetworkProtocolsResponse, error)
- SetNetworkProtocolsContext(ctx context.Context, request *SetNetworkProtocols) (*SetNetworkProtocolsResponse, error)
- /* This operation gets the default gateway settings from a device. The device shall support the
- GetNetworkDefaultGateway command returning configured default gateway address(es). */
- GetNetworkDefaultGateway(request *GetNetworkDefaultGateway) (*GetNetworkDefaultGatewayResponse, error)
- GetNetworkDefaultGatewayContext(ctx context.Context, request *GetNetworkDefaultGateway) (*GetNetworkDefaultGatewayResponse, error)
- /* This operation sets the default gateway settings on a device. The device shall support
- configuration of default gateway through the SetNetworkDefaultGateway command. */
- SetNetworkDefaultGateway(request *SetNetworkDefaultGateway) (*SetNetworkDefaultGatewayResponse, error)
- SetNetworkDefaultGatewayContext(ctx context.Context, request *SetNetworkDefaultGateway) (*SetNetworkDefaultGatewayResponse, error)
- /* This operation gets the zero-configuration from a device. If the device supports dynamic IP
- configuration according to [RFC3927], it shall support the return of IPv4 zero configuration
- address and status through the GetZeroConfiguration command.
- Devices supporting zero configuration on more than one interface shall use the extension to list the additional interface settings. */
- GetZeroConfiguration(request *GetZeroConfiguration) (*GetZeroConfigurationResponse, error)
- GetZeroConfigurationContext(ctx context.Context, request *GetZeroConfiguration) (*GetZeroConfigurationResponse, error)
- /* This operation sets the zero-configuration. Use GetCapalities to get if zero-zero-configuration is supported or not. */
- SetZeroConfiguration(request *SetZeroConfiguration) (*SetZeroConfigurationResponse, error)
- SetZeroConfigurationContext(ctx context.Context, request *SetZeroConfiguration) (*SetZeroConfigurationResponse, error)
- /* This operation gets the IP address filter settings from a device. If the device supports device
- access control based on IP filtering rules (denied or accepted ranges of IP addresses), the
- device shall support the GetIPAddressFilter command. */
- GetIPAddressFilter(request *GetIPAddressFilter) (*GetIPAddressFilterResponse, error)
- GetIPAddressFilterContext(ctx context.Context, request *GetIPAddressFilter) (*GetIPAddressFilterResponse, error)
- /* This operation sets the IP address filter settings on a device. If the device supports device
- access control based on IP filtering rules (denied or accepted ranges of IP addresses), the
- device shall support configuration of IP filtering rules through the SetIPAddressFilter
- command. */
- SetIPAddressFilter(request *SetIPAddressFilter) (*SetIPAddressFilterResponse, error)
- SetIPAddressFilterContext(ctx context.Context, request *SetIPAddressFilter) (*SetIPAddressFilterResponse, error)
- /* This operation adds an IP filter address to a device. If the device supports device access
- control based on IP filtering rules (denied or accepted ranges of IP addresses), the device
- shall support adding of IP filtering addresses through the AddIPAddressFilter command. */
- AddIPAddressFilter(request *AddIPAddressFilter) (*AddIPAddressFilterResponse, error)
- AddIPAddressFilterContext(ctx context.Context, request *AddIPAddressFilter) (*AddIPAddressFilterResponse, error)
- /* This operation deletes an IP filter address from a device. If the device supports device access
- control based on IP filtering rules (denied or accepted ranges of IP addresses), the device
- shall support deletion of IP filtering addresses through the RemoveIPAddressFilter command. */
- RemoveIPAddressFilter(request *RemoveIPAddressFilter) (*RemoveIPAddressFilterResponse, error)
- RemoveIPAddressFilterContext(ctx context.Context, request *RemoveIPAddressFilter) (*RemoveIPAddressFilterResponse, error)
- /* Access to different services and sub-sets of services should be subject to access control. The
- WS-Security framework gives the prerequisite for end-point authentication. Authorization
- decisions can then be taken using an access security policy. This standard does not mandate
- any particular policy description format or security policy but this is up to the device
- manufacturer or system provider to choose policy and policy description format of choice.
- However, an access policy (in arbitrary format) can be requested using this command. If the
- device supports access policy settings based on WS-Security authentication, then the device
- shall support this command. */
- GetAccessPolicy(request *GetAccessPolicy) (*GetAccessPolicyResponse, error)
- GetAccessPolicyContext(ctx context.Context, request *GetAccessPolicy) (*GetAccessPolicyResponse, error)
- /* This command sets the device access security policy (for more details on the access security
- policy see the Get command). If the device supports access policy settings
- based on WS-Security authentication, then the device shall support this command. */
- SetAccessPolicy(request *SetAccessPolicy) (*SetAccessPolicyResponse, error)
- SetAccessPolicyContext(ctx context.Context, request *SetAccessPolicy) (*SetAccessPolicyResponse, error)
- /* This operation generates a private/public key pair and also can create a self-signed device
- certificate as a result of key pair generation. The certificate is created using a suitable
- onboard key pair generation mechanism.
- If a device supports onboard key pair generation, the device that supports TLS shall support
- this certificate creation command. And also, if a device supports onboard key pair generation,
- the device that support IEEE 802.1X shall support this command for the purpose of key pair
- generation. Certificates and key pairs are identified using certificate IDs. These IDs are either
- chosen by the certificate generation requester or by the device (in case that no ID value is
- given). */
- CreateCertificate(request *CreateCertificate) (*CreateCertificateResponse, error)
- CreateCertificateContext(ctx context.Context, request *CreateCertificate) (*CreateCertificateResponse, error)
- /* This operation gets all device server certificates (including self-signed) for the purpose of TLS
- authentication and all device client certificates for the purpose of IEEE 802.1X authentication.
- This command lists only the TLS server certificates and IEEE 802.1X client certificates for the
- device (neither trusted CA certificates nor trusted root certificates). The certificates are
- returned as binary data. A device that supports TLS shall support this command and the
- certificates shall be encoded using ASN.1 [X.681], [X.682], [X.683] DER [X.690] encoding
- rules. */
- GetCertificates(request *GetCertificates) (*GetCertificatesResponse, error)
- GetCertificatesContext(ctx context.Context, request *GetCertificates) (*GetCertificatesResponse, error)
- /* This operation is specific to TLS functionality. This operation gets the status
- (enabled/disabled) of the device TLS server certificates. A device that supports TLS shall
- support this command. */
- GetCertificatesStatus(request *GetCertificatesStatus) (*GetCertificatesStatusResponse, error)
- GetCertificatesStatusContext(ctx context.Context, request *GetCertificatesStatus) (*GetCertificatesStatusResponse, error)
- /* This operation is specific to TLS functionality. This operation sets the status (enable/disable)
- of the device TLS server certificates. A device that supports TLS shall support this command.
- Typically only one device server certificate is allowed to be enabled at a time. */
- SetCertificatesStatus(request *SetCertificatesStatus) (*SetCertificatesStatusResponse, error)
- SetCertificatesStatusContext(ctx context.Context, request *SetCertificatesStatus) (*SetCertificatesStatusResponse, error)
- /* This operation deletes a certificate or multiple certificates. The device MAY also delete a
- private/public key pair which is coupled with the certificate to be deleted. The device that
- support either TLS or IEEE 802.1X shall support the deletion of a certificate or multiple
- certificates through this command. Either all certificates are deleted successfully or a fault
- message shall be returned without deleting any certificate. */
- DeleteCertificates(request *DeleteCertificates) (*DeleteCertificatesResponse, error)
- DeleteCertificatesContext(ctx context.Context, request *DeleteCertificates) (*DeleteCertificatesResponse, error)
- /* This operation requests a PKCS #10 certificate signature request from the device. The
- returned information field shall be either formatted exactly as specified in [PKCS#10] or PEM
- encoded [PKCS#10] format. In order for this command to work, the device must already have
- a private/public key pair. This key pair should be referred by CertificateID as specified in the
- input parameter description. This CertificateID refers to the key pair generated using
- CreateCertificate command.
- A device that support onboard key pair generation that supports either TLS or IEEE 802.1X
- using client certificate shall support this command. */
- GetPkcs10Request(request *GetPkcs10Request) (*GetPkcs10RequestResponse, error)
- GetPkcs10RequestContext(ctx context.Context, request *GetPkcs10Request) (*GetPkcs10RequestResponse, error)
- /* TLS server certificate(s) or IEEE 802.1X client certificate(s) created using the PKCS#10
- certificate request command can be loaded into the device using this command (see Section
- 8.4.13). The certificate ID in the request shall be present. The device may sort the received
- certificate(s) based on the public key and subject information in the certificate(s).
- The certificate ID in the request will be the ID value the client wish to have. The device is
- supposed to scan the generated key pairs present in the device to identify which is the
- correspondent key pair with the loaded certificate and then make the link between the
- certificate and the key pair.
- A device that supports onboard key pair generation that support either TLS or IEEE 802.1X
- shall support this command.
- The certificates shall be encoded using ASN.1 [X.681], [X.682], [X.683] DER [X.690] encoding
- rules.
- This command is applicable to any device type, although the parameter name is called for
- historical reasons NVTCertificate. */
- LoadCertificates(request *LoadCertificates) (*LoadCertificatesResponse, error)
- LoadCertificatesContext(ctx context.Context, request *LoadCertificates) (*LoadCertificatesResponse, error)
- /* This operation is specific to TLS functionality. This operation gets the status
- (enabled/disabled) of the device TLS client authentication. A device that supports TLS shall
- support this command. */
- GetClientCertificateMode(request *GetClientCertificateMode) (*GetClientCertificateModeResponse, error)
- GetClientCertificateModeContext(ctx context.Context, request *GetClientCertificateMode) (*GetClientCertificateModeResponse, error)
- /* This operation is specific to TLS functionality. This operation sets the status
- (enabled/disabled) of the device TLS client authentication. A device that supports TLS shall
- support this command. */
- SetClientCertificateMode(request *SetClientCertificateMode) (*SetClientCertificateModeResponse, error)
- SetClientCertificateModeContext(ctx context.Context, request *SetClientCertificateMode) (*SetClientCertificateModeResponse, error)
- /* This operation gets a list of all available relay outputs and their settings.
- This method has been depricated with version 2.0. Refer to the DeviceIO service. */
- GetRelayOutputs(request *GetRelayOutputs) (*GetRelayOutputsResponse, error)
- GetRelayOutputsContext(ctx context.Context, request *GetRelayOutputs) (*GetRelayOutputsResponse, error)
- /* This operation sets the settings of a relay output.
- This method has been depricated with version 2.0. Refer to the DeviceIO service. */
- SetRelayOutputSettings(request *SetRelayOutputSettings) (*SetRelayOutputSettingsResponse, error)
- SetRelayOutputSettingsContext(ctx context.Context, request *SetRelayOutputSettings) (*SetRelayOutputSettingsResponse, error)
- /* This operation sets the state of a relay output.
- This method has been depricated with version 2.0. Refer to the DeviceIO service. */
- SetRelayOutputState(request *SetRelayOutputState) (*SetRelayOutputStateResponse, error)
- SetRelayOutputStateContext(ctx context.Context, request *SetRelayOutputState) (*SetRelayOutputStateResponse, error)
- /* Manage auxiliary commands supported by a device, such as controlling an Infrared (IR) lamp,
- a heater or a wiper or a thermometer that is connected to the device.
- The supported commands can be retrieved via the AuxiliaryCommands capability.
- Although the name of the auxiliary commands can be freely defined, commands starting with the prefix tt: are
- reserved to define frequently used commands and these reserved commands shall all share the "tt:command|parameter" syntax.
- A device that indicates auxiliary service capability shall support this command. */
- SendAuxiliaryCommand(request *SendAuxiliaryCommand) (*SendAuxiliaryCommandResponse, error)
- SendAuxiliaryCommandContext(ctx context.Context, request *SendAuxiliaryCommand) (*SendAuxiliaryCommandResponse, error)
- /* CA certificates will be loaded into a device and be used for the sake of following two cases.
- The one is for the purpose of TLS client authentication in TLS server function. The other one
- is for the purpose of Authentication Server authentication in IEEE 802.1X function. This
- operation gets all CA certificates loaded into a device. A device that supports either TLS client
- authentication or IEEE 802.1X shall support this command and the returned certificates shall
- be encoded using ASN.1 [X.681], [X.682], [X.683] DER [X.690] encoding rules. */
- GetCACertificates(request *GetCACertificates) (*GetCACertificatesResponse, error)
- GetCACertificatesContext(ctx context.Context, request *GetCACertificates) (*GetCACertificatesResponse, error)
- /* There might be some cases that a Certificate Authority or some other equivalent creates a
- certificate without having PKCS#10 certificate signing request. In such cases, the certificate
- will be bundled in conjunction with its private key. This command will be used for such use
- case scenarios. The certificate ID in the request is optionally set to the ID value the client
- wish to have. If the certificate ID is not specified in the request, device can choose the ID
- accordingly.
- This operation imports a private/public key pair into the device.
- The certificates shall be encoded using ASN.1 [X.681], [X.682], [X.683] DER [X.690] encoding
- rules.
- A device that does not support onboard key pair generation and support either TLS or IEEE
- 802.1X using client certificate shall support this command. A device that support onboard key
- pair generation MAY support this command. The security policy of a device that supports this
- operation should make sure that the private key is sufficiently protected. */
- LoadCertificateWithPrivateKey(request *LoadCertificateWithPrivateKey) (*LoadCertificateWithPrivateKeyResponse, error)
- LoadCertificateWithPrivateKeyContext(ctx context.Context, request *LoadCertificateWithPrivateKey) (*LoadCertificateWithPrivateKeyResponse, error)
- /* This operation requests the information of a certificate specified by certificate ID. The device
- should respond with its “Issuer DN”, “Subject DN”, “Key usage”, "Extended key usage”, “Key
- Length”, “Version”, “Serial Number”, “Signature Algorithm” and “Validity” data as the
- information of the certificate, as long as the device can retrieve such information from the
- specified certificate.
- A device that supports either TLS or IEEE 802.1X should support this command. */
- GetCertificateInformation(request *GetCertificateInformation) (*GetCertificateInformationResponse, error)
- GetCertificateInformationContext(ctx context.Context, request *GetCertificateInformation) (*GetCertificateInformationResponse, error)
- /* This command is used when it is necessary to load trusted CA certificates or trusted root
- certificates for the purpose of verification for its counterpart i.e. client certificate verification in
- TLS function or server certificate verification in IEEE 802.1X function.
- A device that support either TLS or IEEE 802.1X shall support this command. As for the
- supported certificate format, either DER format or PEM format is possible to be used. But a
- device that support this command shall support at least DER format as supported format type.
- The device may sort the received certificate(s) based on the public key and subject
- information in the certificate(s). Either all CA certificates are loaded successfully or a fault
- message shall be returned without loading any CA certificate. */
- LoadCACertificates(request *LoadCACertificates) (*LoadCACertificatesResponse, error)
- LoadCACertificatesContext(ctx context.Context, request *LoadCACertificates) (*LoadCACertificatesResponse, error)
- /* This operation newly creates IEEE 802.1X configuration parameter set of the device. The
- device shall support this command if it supports IEEE 802.1X. If the device receives this
- request with already existing configuration token (Dot1XConfigurationToken) specification, the
- device should respond with 'ter:ReferenceToken ' error to indicate there is some configuration
- conflict. */
- CreateDot1XConfiguration(request *CreateDot1XConfiguration) (*CreateDot1XConfigurationResponse, error)
- CreateDot1XConfigurationContext(ctx context.Context, request *CreateDot1XConfiguration) (*CreateDot1XConfigurationResponse, error)
- /* While the CreateDot1XConfiguration command is trying to create a new configuration
- parameter set, this operation modifies existing IEEE 802.1X configuration parameter set of
- the device. A device that support IEEE 802.1X shall support this command. */
- SetDot1XConfiguration(request *SetDot1XConfiguration) (*SetDot1XConfigurationResponse, error)
- SetDot1XConfigurationContext(ctx context.Context, request *SetDot1XConfiguration) (*SetDot1XConfigurationResponse, error)
- /* This operation gets one IEEE 802.1X configuration parameter set from the device by
- specifying the configuration token (Dot1XConfigurationToken).
- A device that supports IEEE 802.1X shall support this command.
- Regardless of whether the 802.1X method in the retrieved configuration has a password or
- not, the device shall not include the Password element in the response. */
- GetDot1XConfiguration(request *GetDot1XConfiguration) (*GetDot1XConfigurationResponse, error)
- GetDot1XConfigurationContext(ctx context.Context, request *GetDot1XConfiguration) (*GetDot1XConfigurationResponse, error)
- /* This operation gets all the existing IEEE 802.1X configuration parameter sets from the device.
- The device shall respond with all the IEEE 802.1X configurations so that the client can get to
- know how many IEEE 802.1X configurations are existing and how they are configured.
- A device that support IEEE 802.1X shall support this command.
- Regardless of whether the 802.1X method in the retrieved configuration has a password or
- not, the device shall not include the Password element in the response. */
- GetDot1XConfigurations(request *GetDot1XConfigurations) (*GetDot1XConfigurationsResponse, error)
- GetDot1XConfigurationsContext(ctx context.Context, request *GetDot1XConfigurations) (*GetDot1XConfigurationsResponse, error)
- /* This operation deletes an IEEE 802.1X configuration parameter set from the device. Which
- configuration should be deleted is specified by the 'Dot1XConfigurationToken' in the request.
- A device that support IEEE 802.1X shall support this command. */
- DeleteDot1XConfiguration(request *DeleteDot1XConfiguration) (*DeleteDot1XConfigurationResponse, error)
- DeleteDot1XConfigurationContext(ctx context.Context, request *DeleteDot1XConfiguration) (*DeleteDot1XConfigurationResponse, error)
- /* This operation returns the IEEE802.11 capabilities. The device shall support
- this operation. */
- GetDot11Capabilities(request *GetDot11Capabilities) (*GetDot11CapabilitiesResponse, error)
- GetDot11CapabilitiesContext(ctx context.Context, request *GetDot11Capabilities) (*GetDot11CapabilitiesResponse, error)
- /* This operation returns the status of a wireless network interface. The device shall support this
- command. */
- GetDot11Status(request *GetDot11Status) (*GetDot11StatusResponse, error)
- GetDot11StatusContext(ctx context.Context, request *GetDot11Status) (*GetDot11StatusResponse, error)
- /* This operation returns a lists of the wireless networks in range of the device. A device should
- support this operation. */
- ScanAvailableDot11Networks(request *ScanAvailableDot11Networks) (*ScanAvailableDot11NetworksResponse, error)
- ScanAvailableDot11NetworksContext(ctx context.Context, request *ScanAvailableDot11Networks) (*ScanAvailableDot11NetworksResponse, error)
- /* This operation is used to retrieve URIs from which system information may be downloaded
- using HTTP. URIs may be returned for the following system information:
- System Logs. Multiple system logs may be returned, of different types. The exact format of
- the system logs is outside the scope of this specification.
- Support Information. This consists of arbitrary device diagnostics information from a device.
- The exact format of the diagnostic information is outside the scope of this specification.
- System Backup. The received file is a backup file that can be used to restore the current
- device configuration at a later date. The exact format of the backup configuration file is
- outside the scope of this specification.
- If the device allows retrieval of system logs, support information or system backup data, it
- should make them available via HTTP GET. If it does, it shall support the GetSystemUris
- command. */
- GetSystemUris(request *GetSystemUris) (*GetSystemUrisResponse, error)
- GetSystemUrisContext(ctx context.Context, request *GetSystemUris) (*GetSystemUrisResponse, error)
- /* This operation initiates a firmware upgrade using the HTTP POST mechanism. The response
- to the command includes an HTTP URL to which the upgrade file may be uploaded. The
- actual upgrade takes place as soon as the HTTP POST operation has completed. The device
- should support firmware upgrade through the StartFirmwareUpgrade command. The exact
- format of the firmware data is outside the scope of this specification.
- Firmware upgrade over HTTP may be achieved using the following steps:
- If the firmware upgrade fails because the upgrade file was invalid, the HTTP POST response
- shall be “415 Unsupported Media Type”. If the firmware upgrade fails due to an error at the
- device, the HTTP POST response shall be “500 Internal Server Error”.
- The value of the Content-Type header in the HTTP POST request shall be “application/octetstream”. */
- StartFirmwareUpgrade(request *StartFirmwareUpgrade) (*StartFirmwareUpgradeResponse, error)
- StartFirmwareUpgradeContext(ctx context.Context, request *StartFirmwareUpgrade) (*StartFirmwareUpgradeResponse, error)
- /* This operation initiates a system restore from backed up configuration data using the HTTP
- POST mechanism. The response to the command includes an HTTP URL to which the backup
- file may be uploaded. The actual restore takes place as soon as the HTTP POST operation
- has completed. Devices should support system restore through the StartSystemRestore
- command. The exact format of the backup configuration data is outside the scope of this
- specification.
- System restore over HTTP may be achieved using the following steps:
- If the system restore fails because the uploaded file was invalid, the HTTP POST response
- shall be “415 Unsupported Media Type”. If the system restore fails due to an error at the
- device, the HTTP POST response shall be “500 Internal Server Error”.
- The value of the Content-Type header in the HTTP POST request shall be “application/octetstream”. */
- StartSystemRestore(request *StartSystemRestore) (*StartSystemRestoreResponse, error)
- StartSystemRestoreContext(ctx context.Context, request *StartSystemRestore) (*StartSystemRestoreResponse, error)
- /*
- This operation lists all existing storage configurations for the device.
- */
- GetStorageConfigurations(request *GetStorageConfigurations) (*GetStorageConfigurationsResponse, error)
- GetStorageConfigurationsContext(ctx context.Context, request *GetStorageConfigurations) (*GetStorageConfigurationsResponse, error)
- /*
- This operation creates a new storage configuration.
- The configuration data shall be created in the device and shall be persistent (remain after reboot).
- */
- CreateStorageConfiguration(request *CreateStorageConfiguration) (*CreateStorageConfigurationResponse, error)
- CreateStorageConfigurationContext(ctx context.Context, request *CreateStorageConfiguration) (*CreateStorageConfigurationResponse, error)
- /*
- This operation retrieves the Storage configuration associated with the given storage configuration token.
- */
- GetStorageConfiguration(request *GetStorageConfiguration) (*GetStorageConfigurationResponse, error)
- GetStorageConfigurationContext(ctx context.Context, request *GetStorageConfiguration) (*GetStorageConfigurationResponse, error)
- /*
- This operation modifies an existing Storage configuration.
- */
- SetStorageConfiguration(request *SetStorageConfiguration) (*SetStorageConfigurationResponse, error)
- SetStorageConfigurationContext(ctx context.Context, request *SetStorageConfiguration) (*SetStorageConfigurationResponse, error)
- /*
- This operation deletes the given storage configuration and configuration change shall always be persistent.
- */
- DeleteStorageConfiguration(request *DeleteStorageConfiguration) (*DeleteStorageConfigurationResponse, error)
- DeleteStorageConfigurationContext(ctx context.Context, request *DeleteStorageConfiguration) (*DeleteStorageConfigurationResponse, error)
- /*
- This operation lists all existing geo location configurations for the device.
- */
- GetGeoLocation(request *GetGeoLocation) (*GetGeoLocationResponse, error)
- GetGeoLocationContext(ctx context.Context, request *GetGeoLocation) (*GetGeoLocationResponse, error)
- /*
- This operation allows to modify one or more geo configuration entries.
- */
- SetGeoLocation(request *SetGeoLocation) (*SetGeoLocationResponse, error)
- SetGeoLocationContext(ctx context.Context, request *SetGeoLocation) (*SetGeoLocationResponse, error)
- /*
- This operation deletes the given geo location entries.
- */
- DeleteGeoLocation(request *DeleteGeoLocation) (*DeleteGeoLocationResponse, error)
- DeleteGeoLocationContext(ctx context.Context, request *DeleteGeoLocation) (*DeleteGeoLocationResponse, error)
- }
- // device type
- type device struct {
- client *soap.Client
- xaddr string
- }
- func NewDevice(client *soap.Client, xaddr string) Device {
- return &device{
- client: client,
- xaddr: xaddr,
- }
- }
- func (service *device) GetServicesContext(ctx context.Context, request *GetServices) (*GetServicesResponse, error) {
- response := new(GetServicesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetServices", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetServices(request *GetServices) (*GetServicesResponse, error) {
- return service.GetServicesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetServiceCapabilitiesContext(ctx context.Context, request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
- response := new(GetServiceCapabilitiesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetServiceCapabilities", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetServiceCapabilities(request *GetServiceCapabilities) (*GetServiceCapabilitiesResponse, error) {
- return service.GetServiceCapabilitiesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDeviceInformationContext(ctx context.Context, request *GetDeviceInformation) (*GetDeviceInformationResponse, error) {
- response := new(GetDeviceInformationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDeviceInformation", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDeviceInformation(request *GetDeviceInformation) (*GetDeviceInformationResponse, error) {
- return service.GetDeviceInformationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetSystemDateAndTimeContext(ctx context.Context, request *SetSystemDateAndTime) (*SetSystemDateAndTimeResponse, error) {
- response := new(SetSystemDateAndTimeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetSystemDateAndTime", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetSystemDateAndTime(request *SetSystemDateAndTime) (*SetSystemDateAndTimeResponse, error) {
- return service.SetSystemDateAndTimeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetSystemDateAndTimeContext(ctx context.Context, request *GetSystemDateAndTime) (*GetSystemDateAndTimeResponse, error) {
- response := new(GetSystemDateAndTimeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetSystemDateAndTime(request *GetSystemDateAndTime) (*GetSystemDateAndTimeResponse, error) {
- return service.GetSystemDateAndTimeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetSystemFactoryDefaultContext(ctx context.Context, request *SetSystemFactoryDefault) (*SetSystemFactoryDefaultResponse, error) {
- response := new(SetSystemFactoryDefaultResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetSystemFactoryDefault", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetSystemFactoryDefault(request *SetSystemFactoryDefault) (*SetSystemFactoryDefaultResponse, error) {
- return service.SetSystemFactoryDefaultContext(
- context.Background(),
- request,
- )
- }
- func (service *device) UpgradeSystemFirmwareContext(ctx context.Context, request *UpgradeSystemFirmware) (*UpgradeSystemFirmwareResponse, error) {
- response := new(UpgradeSystemFirmwareResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/UpgradeSystemFirmware", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) UpgradeSystemFirmware(request *UpgradeSystemFirmware) (*UpgradeSystemFirmwareResponse, error) {
- return service.UpgradeSystemFirmwareContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SystemRebootContext(ctx context.Context, request *SystemReboot) (*SystemRebootResponse, error) {
- response := new(SystemRebootResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SystemReboot", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SystemReboot(request *SystemReboot) (*SystemRebootResponse, error) {
- return service.SystemRebootContext(
- context.Background(),
- request,
- )
- }
- func (service *device) RestoreSystemContext(ctx context.Context, request *RestoreSystem) (*RestoreSystemResponse, error) {
- response := new(RestoreSystemResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/RestoreSystem", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) RestoreSystem(request *RestoreSystem) (*RestoreSystemResponse, error) {
- return service.RestoreSystemContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetSystemBackupContext(ctx context.Context, request *GetSystemBackup) (*GetSystemBackupResponse, error) {
- response := new(GetSystemBackupResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetSystemBackup", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetSystemBackup(request *GetSystemBackup) (*GetSystemBackupResponse, error) {
- return service.GetSystemBackupContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetSystemLogContext(ctx context.Context, request *GetSystemLog) (*GetSystemLogResponse, error) {
- response := new(GetSystemLogResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetSystemLog", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetSystemLog(request *GetSystemLog) (*GetSystemLogResponse, error) {
- return service.GetSystemLogContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetSystemSupportInformationContext(ctx context.Context, request *GetSystemSupportInformation) (*GetSystemSupportInformationResponse, error) {
- response := new(GetSystemSupportInformationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetSystemSupportInformation", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetSystemSupportInformation(request *GetSystemSupportInformation) (*GetSystemSupportInformationResponse, error) {
- return service.GetSystemSupportInformationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetScopesContext(ctx context.Context, request *GetScopes) (*GetScopesResponse, error) {
- response := new(GetScopesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetScopes", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetScopes(request *GetScopes) (*GetScopesResponse, error) {
- return service.GetScopesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetScopesContext(ctx context.Context, request *SetScopes) (*SetScopesResponse, error) {
- response := new(SetScopesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetScopes", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetScopes(request *SetScopes) (*SetScopesResponse, error) {
- return service.SetScopesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) AddScopesContext(ctx context.Context, request *AddScopes) (*AddScopesResponse, error) {
- response := new(AddScopesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/AddScopes", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) AddScopes(request *AddScopes) (*AddScopesResponse, error) {
- return service.AddScopesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) RemoveScopesContext(ctx context.Context, request *RemoveScopes) (*RemoveScopesResponse, error) {
- response := new(RemoveScopesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/RemoveScopes", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) RemoveScopes(request *RemoveScopes) (*RemoveScopesResponse, error) {
- return service.RemoveScopesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDiscoveryModeContext(ctx context.Context, request *GetDiscoveryMode) (*GetDiscoveryModeResponse, error) {
- response := new(GetDiscoveryModeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDiscoveryMode", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDiscoveryMode(request *GetDiscoveryMode) (*GetDiscoveryModeResponse, error) {
- return service.GetDiscoveryModeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetDiscoveryModeContext(ctx context.Context, request *SetDiscoveryMode) (*SetDiscoveryModeResponse, error) {
- response := new(SetDiscoveryModeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetDiscoveryMode", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetDiscoveryMode(request *SetDiscoveryMode) (*SetDiscoveryModeResponse, error) {
- return service.SetDiscoveryModeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetRemoteDiscoveryModeContext(ctx context.Context, request *GetRemoteDiscoveryMode) (*GetRemoteDiscoveryModeResponse, error) {
- response := new(GetRemoteDiscoveryModeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetRemoteDiscoveryMode", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetRemoteDiscoveryMode(request *GetRemoteDiscoveryMode) (*GetRemoteDiscoveryModeResponse, error) {
- return service.GetRemoteDiscoveryModeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetRemoteDiscoveryModeContext(ctx context.Context, request *SetRemoteDiscoveryMode) (*SetRemoteDiscoveryModeResponse, error) {
- response := new(SetRemoteDiscoveryModeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetRemoteDiscoveryMode", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetRemoteDiscoveryMode(request *SetRemoteDiscoveryMode) (*SetRemoteDiscoveryModeResponse, error) {
- return service.SetRemoteDiscoveryModeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDPAddressesContext(ctx context.Context, request *GetDPAddresses) (*GetDPAddressesResponse, error) {
- response := new(GetDPAddressesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDPAddresses", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDPAddresses(request *GetDPAddresses) (*GetDPAddressesResponse, error) {
- return service.GetDPAddressesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetDPAddressesContext(ctx context.Context, request *SetDPAddresses) (*SetDPAddressesResponse, error) {
- response := new(SetDPAddressesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetDPAddresses", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetDPAddresses(request *SetDPAddresses) (*SetDPAddressesResponse, error) {
- return service.SetDPAddressesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetEndpointReferenceContext(ctx context.Context, request *GetEndpointReference) (*GetEndpointReferenceResponse, error) {
- response := new(GetEndpointReferenceResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetEndpointReference", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetEndpointReference(request *GetEndpointReference) (*GetEndpointReferenceResponse, error) {
- return service.GetEndpointReferenceContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetRemoteUserContext(ctx context.Context, request *GetRemoteUser) (*GetRemoteUserResponse, error) {
- response := new(GetRemoteUserResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetRemoteUser", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetRemoteUser(request *GetRemoteUser) (*GetRemoteUserResponse, error) {
- return service.GetRemoteUserContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetRemoteUserContext(ctx context.Context, request *SetRemoteUser) (*SetRemoteUserResponse, error) {
- response := new(SetRemoteUserResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetRemoteUser", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetRemoteUser(request *SetRemoteUser) (*SetRemoteUserResponse, error) {
- return service.SetRemoteUserContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetUsersContext(ctx context.Context, request *GetUsers) (*GetUsersResponse, error) {
- response := new(GetUsersResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetUsers", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetUsers(request *GetUsers) (*GetUsersResponse, error) {
- return service.GetUsersContext(
- context.Background(),
- request,
- )
- }
- func (service *device) CreateUsersContext(ctx context.Context, request *CreateUsers) (*CreateUsersResponse, error) {
- response := new(CreateUsersResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/CreateUsers", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) CreateUsers(request *CreateUsers) (*CreateUsersResponse, error) {
- return service.CreateUsersContext(
- context.Background(),
- request,
- )
- }
- func (service *device) DeleteUsersContext(ctx context.Context, request *DeleteUsers) (*DeleteUsersResponse, error) {
- response := new(DeleteUsersResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/DeleteUsers", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) DeleteUsers(request *DeleteUsers) (*DeleteUsersResponse, error) {
- return service.DeleteUsersContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetUserContext(ctx context.Context, request *SetUser) (*SetUserResponse, error) {
- response := new(SetUserResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetUser", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetUser(request *SetUser) (*SetUserResponse, error) {
- return service.SetUserContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetWsdlUrlContext(ctx context.Context, request *GetWsdlUrl) (*GetWsdlUrlResponse, error) {
- response := new(GetWsdlUrlResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetWsdlUrl", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetWsdlUrl(request *GetWsdlUrl) (*GetWsdlUrlResponse, error) {
- return service.GetWsdlUrlContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetCapabilitiesContext(ctx context.Context, request *GetCapabilities) (*GetCapabilitiesResponse, error) {
- response := new(GetCapabilitiesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetCapabilities", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetCapabilities(request *GetCapabilities) (*GetCapabilitiesResponse, error) {
- return service.GetCapabilitiesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetHostnameContext(ctx context.Context, request *GetHostname) (*GetHostnameResponse, error) {
- response := new(GetHostnameResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetHostname", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetHostname(request *GetHostname) (*GetHostnameResponse, error) {
- return service.GetHostnameContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetHostnameContext(ctx context.Context, request *SetHostname) (*SetHostnameResponse, error) {
- response := new(SetHostnameResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetHostname", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetHostname(request *SetHostname) (*SetHostnameResponse, error) {
- return service.SetHostnameContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetHostnameFromDHCPContext(ctx context.Context, request *SetHostnameFromDHCP) (*SetHostnameFromDHCPResponse, error) {
- response := new(SetHostnameFromDHCPResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetHostnameFromDHCP", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetHostnameFromDHCP(request *SetHostnameFromDHCP) (*SetHostnameFromDHCPResponse, error) {
- return service.SetHostnameFromDHCPContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDNSContext(ctx context.Context, request *GetDNS) (*GetDNSResponse, error) {
- response := new(GetDNSResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDNS", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDNS(request *GetDNS) (*GetDNSResponse, error) {
- return service.GetDNSContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetDNSContext(ctx context.Context, request *SetDNS) (*SetDNSResponse, error) {
- response := new(SetDNSResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetDNS", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetDNS(request *SetDNS) (*SetDNSResponse, error) {
- return service.SetDNSContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetNTPContext(ctx context.Context, request *GetNTP) (*GetNTPResponse, error) {
- response := new(GetNTPResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetNTP", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetNTP(request *GetNTP) (*GetNTPResponse, error) {
- return service.GetNTPContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetNTPContext(ctx context.Context, request *SetNTP) (*SetNTPResponse, error) {
- response := new(SetNTPResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetNTP", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetNTP(request *SetNTP) (*SetNTPResponse, error) {
- return service.SetNTPContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDynamicDNSContext(ctx context.Context, request *GetDynamicDNS) (*GetDynamicDNSResponse, error) {
- response := new(GetDynamicDNSResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDynamicDNS", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDynamicDNS(request *GetDynamicDNS) (*GetDynamicDNSResponse, error) {
- return service.GetDynamicDNSContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetDynamicDNSContext(ctx context.Context, request *SetDynamicDNS) (*SetDynamicDNSResponse, error) {
- response := new(SetDynamicDNSResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetDynamicDNS", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetDynamicDNS(request *SetDynamicDNS) (*SetDynamicDNSResponse, error) {
- return service.SetDynamicDNSContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetNetworkInterfacesContext(ctx context.Context, request *GetNetworkInterfaces) (*GetNetworkInterfacesResponse, error) {
- response := new(GetNetworkInterfacesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetNetworkInterfaces", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetNetworkInterfaces(request *GetNetworkInterfaces) (*GetNetworkInterfacesResponse, error) {
- return service.GetNetworkInterfacesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetNetworkInterfacesContext(ctx context.Context, request *SetNetworkInterfaces) (*SetNetworkInterfacesResponse, error) {
- response := new(SetNetworkInterfacesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetNetworkInterfaces", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetNetworkInterfaces(request *SetNetworkInterfaces) (*SetNetworkInterfacesResponse, error) {
- return service.SetNetworkInterfacesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetNetworkProtocolsContext(ctx context.Context, request *GetNetworkProtocols) (*GetNetworkProtocolsResponse, error) {
- response := new(GetNetworkProtocolsResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetNetworkProtocols", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetNetworkProtocols(request *GetNetworkProtocols) (*GetNetworkProtocolsResponse, error) {
- return service.GetNetworkProtocolsContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetNetworkProtocolsContext(ctx context.Context, request *SetNetworkProtocols) (*SetNetworkProtocolsResponse, error) {
- response := new(SetNetworkProtocolsResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetNetworkProtocols", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetNetworkProtocols(request *SetNetworkProtocols) (*SetNetworkProtocolsResponse, error) {
- return service.SetNetworkProtocolsContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetNetworkDefaultGatewayContext(ctx context.Context, request *GetNetworkDefaultGateway) (*GetNetworkDefaultGatewayResponse, error) {
- response := new(GetNetworkDefaultGatewayResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetNetworkDefaultGateway", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetNetworkDefaultGateway(request *GetNetworkDefaultGateway) (*GetNetworkDefaultGatewayResponse, error) {
- return service.GetNetworkDefaultGatewayContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetNetworkDefaultGatewayContext(ctx context.Context, request *SetNetworkDefaultGateway) (*SetNetworkDefaultGatewayResponse, error) {
- response := new(SetNetworkDefaultGatewayResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetNetworkDefaultGateway", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetNetworkDefaultGateway(request *SetNetworkDefaultGateway) (*SetNetworkDefaultGatewayResponse, error) {
- return service.SetNetworkDefaultGatewayContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetZeroConfigurationContext(ctx context.Context, request *GetZeroConfiguration) (*GetZeroConfigurationResponse, error) {
- response := new(GetZeroConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetZeroConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetZeroConfiguration(request *GetZeroConfiguration) (*GetZeroConfigurationResponse, error) {
- return service.GetZeroConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetZeroConfigurationContext(ctx context.Context, request *SetZeroConfiguration) (*SetZeroConfigurationResponse, error) {
- response := new(SetZeroConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetZeroConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetZeroConfiguration(request *SetZeroConfiguration) (*SetZeroConfigurationResponse, error) {
- return service.SetZeroConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetIPAddressFilterContext(ctx context.Context, request *GetIPAddressFilter) (*GetIPAddressFilterResponse, error) {
- response := new(GetIPAddressFilterResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetIPAddressFilter", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetIPAddressFilter(request *GetIPAddressFilter) (*GetIPAddressFilterResponse, error) {
- return service.GetIPAddressFilterContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetIPAddressFilterContext(ctx context.Context, request *SetIPAddressFilter) (*SetIPAddressFilterResponse, error) {
- response := new(SetIPAddressFilterResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetIPAddressFilter", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetIPAddressFilter(request *SetIPAddressFilter) (*SetIPAddressFilterResponse, error) {
- return service.SetIPAddressFilterContext(
- context.Background(),
- request,
- )
- }
- func (service *device) AddIPAddressFilterContext(ctx context.Context, request *AddIPAddressFilter) (*AddIPAddressFilterResponse, error) {
- response := new(AddIPAddressFilterResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/AddIPAddressFilter", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) AddIPAddressFilter(request *AddIPAddressFilter) (*AddIPAddressFilterResponse, error) {
- return service.AddIPAddressFilterContext(
- context.Background(),
- request,
- )
- }
- func (service *device) RemoveIPAddressFilterContext(ctx context.Context, request *RemoveIPAddressFilter) (*RemoveIPAddressFilterResponse, error) {
- response := new(RemoveIPAddressFilterResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/RemoveIPAddressFilter", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) RemoveIPAddressFilter(request *RemoveIPAddressFilter) (*RemoveIPAddressFilterResponse, error) {
- return service.RemoveIPAddressFilterContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetAccessPolicyContext(ctx context.Context, request *GetAccessPolicy) (*GetAccessPolicyResponse, error) {
- response := new(GetAccessPolicyResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetAccessPolicy", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetAccessPolicy(request *GetAccessPolicy) (*GetAccessPolicyResponse, error) {
- return service.GetAccessPolicyContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetAccessPolicyContext(ctx context.Context, request *SetAccessPolicy) (*SetAccessPolicyResponse, error) {
- response := new(SetAccessPolicyResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetAccessPolicy", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetAccessPolicy(request *SetAccessPolicy) (*SetAccessPolicyResponse, error) {
- return service.SetAccessPolicyContext(
- context.Background(),
- request,
- )
- }
- func (service *device) CreateCertificateContext(ctx context.Context, request *CreateCertificate) (*CreateCertificateResponse, error) {
- response := new(CreateCertificateResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/CreateCertificate", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) CreateCertificate(request *CreateCertificate) (*CreateCertificateResponse, error) {
- return service.CreateCertificateContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetCertificatesContext(ctx context.Context, request *GetCertificates) (*GetCertificatesResponse, error) {
- response := new(GetCertificatesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetCertificates", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetCertificates(request *GetCertificates) (*GetCertificatesResponse, error) {
- return service.GetCertificatesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetCertificatesStatusContext(ctx context.Context, request *GetCertificatesStatus) (*GetCertificatesStatusResponse, error) {
- response := new(GetCertificatesStatusResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetCertificatesStatus", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetCertificatesStatus(request *GetCertificatesStatus) (*GetCertificatesStatusResponse, error) {
- return service.GetCertificatesStatusContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetCertificatesStatusContext(ctx context.Context, request *SetCertificatesStatus) (*SetCertificatesStatusResponse, error) {
- response := new(SetCertificatesStatusResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetCertificatesStatus", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetCertificatesStatus(request *SetCertificatesStatus) (*SetCertificatesStatusResponse, error) {
- return service.SetCertificatesStatusContext(
- context.Background(),
- request,
- )
- }
- func (service *device) DeleteCertificatesContext(ctx context.Context, request *DeleteCertificates) (*DeleteCertificatesResponse, error) {
- response := new(DeleteCertificatesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/DeleteCertificates", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) DeleteCertificates(request *DeleteCertificates) (*DeleteCertificatesResponse, error) {
- return service.DeleteCertificatesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetPkcs10RequestContext(ctx context.Context, request *GetPkcs10Request) (*GetPkcs10RequestResponse, error) {
- response := new(GetPkcs10RequestResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetPkcs10Request", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetPkcs10Request(request *GetPkcs10Request) (*GetPkcs10RequestResponse, error) {
- return service.GetPkcs10RequestContext(
- context.Background(),
- request,
- )
- }
- func (service *device) LoadCertificatesContext(ctx context.Context, request *LoadCertificates) (*LoadCertificatesResponse, error) {
- response := new(LoadCertificatesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/LoadCertificates", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) LoadCertificates(request *LoadCertificates) (*LoadCertificatesResponse, error) {
- return service.LoadCertificatesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetClientCertificateModeContext(ctx context.Context, request *GetClientCertificateMode) (*GetClientCertificateModeResponse, error) {
- response := new(GetClientCertificateModeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetClientCertificateMode", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetClientCertificateMode(request *GetClientCertificateMode) (*GetClientCertificateModeResponse, error) {
- return service.GetClientCertificateModeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetClientCertificateModeContext(ctx context.Context, request *SetClientCertificateMode) (*SetClientCertificateModeResponse, error) {
- response := new(SetClientCertificateModeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetClientCertificateMode", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetClientCertificateMode(request *SetClientCertificateMode) (*SetClientCertificateModeResponse, error) {
- return service.SetClientCertificateModeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetRelayOutputsContext(ctx context.Context, request *GetRelayOutputs) (*GetRelayOutputsResponse, error) {
- response := new(GetRelayOutputsResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetRelayOutputs", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetRelayOutputs(request *GetRelayOutputs) (*GetRelayOutputsResponse, error) {
- return service.GetRelayOutputsContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetRelayOutputSettingsContext(ctx context.Context, request *SetRelayOutputSettings) (*SetRelayOutputSettingsResponse, error) {
- response := new(SetRelayOutputSettingsResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetRelayOutputSettings", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetRelayOutputSettings(request *SetRelayOutputSettings) (*SetRelayOutputSettingsResponse, error) {
- return service.SetRelayOutputSettingsContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetRelayOutputStateContext(ctx context.Context, request *SetRelayOutputState) (*SetRelayOutputStateResponse, error) {
- response := new(SetRelayOutputStateResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetRelayOutputState", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetRelayOutputState(request *SetRelayOutputState) (*SetRelayOutputStateResponse, error) {
- return service.SetRelayOutputStateContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SendAuxiliaryCommandContext(ctx context.Context, request *SendAuxiliaryCommand) (*SendAuxiliaryCommandResponse, error) {
- response := new(SendAuxiliaryCommandResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SendAuxiliaryCommand", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SendAuxiliaryCommand(request *SendAuxiliaryCommand) (*SendAuxiliaryCommandResponse, error) {
- return service.SendAuxiliaryCommandContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetCACertificatesContext(ctx context.Context, request *GetCACertificates) (*GetCACertificatesResponse, error) {
- response := new(GetCACertificatesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetCACertificates", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetCACertificates(request *GetCACertificates) (*GetCACertificatesResponse, error) {
- return service.GetCACertificatesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) LoadCertificateWithPrivateKeyContext(ctx context.Context, request *LoadCertificateWithPrivateKey) (*LoadCertificateWithPrivateKeyResponse, error) {
- response := new(LoadCertificateWithPrivateKeyResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/LoadCertificateWithPrivateKey", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) LoadCertificateWithPrivateKey(request *LoadCertificateWithPrivateKey) (*LoadCertificateWithPrivateKeyResponse, error) {
- return service.LoadCertificateWithPrivateKeyContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetCertificateInformationContext(ctx context.Context, request *GetCertificateInformation) (*GetCertificateInformationResponse, error) {
- response := new(GetCertificateInformationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetCertificateInformation", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetCertificateInformation(request *GetCertificateInformation) (*GetCertificateInformationResponse, error) {
- return service.GetCertificateInformationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) LoadCACertificatesContext(ctx context.Context, request *LoadCACertificates) (*LoadCACertificatesResponse, error) {
- response := new(LoadCACertificatesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/LoadCACertificates", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) LoadCACertificates(request *LoadCACertificates) (*LoadCACertificatesResponse, error) {
- return service.LoadCACertificatesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) CreateDot1XConfigurationContext(ctx context.Context, request *CreateDot1XConfiguration) (*CreateDot1XConfigurationResponse, error) {
- response := new(CreateDot1XConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/CreateDot1XConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) CreateDot1XConfiguration(request *CreateDot1XConfiguration) (*CreateDot1XConfigurationResponse, error) {
- return service.CreateDot1XConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetDot1XConfigurationContext(ctx context.Context, request *SetDot1XConfiguration) (*SetDot1XConfigurationResponse, error) {
- response := new(SetDot1XConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetDot1XConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetDot1XConfiguration(request *SetDot1XConfiguration) (*SetDot1XConfigurationResponse, error) {
- return service.SetDot1XConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDot1XConfigurationContext(ctx context.Context, request *GetDot1XConfiguration) (*GetDot1XConfigurationResponse, error) {
- response := new(GetDot1XConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDot1XConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDot1XConfiguration(request *GetDot1XConfiguration) (*GetDot1XConfigurationResponse, error) {
- return service.GetDot1XConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDot1XConfigurationsContext(ctx context.Context, request *GetDot1XConfigurations) (*GetDot1XConfigurationsResponse, error) {
- response := new(GetDot1XConfigurationsResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDot1XConfigurations", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDot1XConfigurations(request *GetDot1XConfigurations) (*GetDot1XConfigurationsResponse, error) {
- return service.GetDot1XConfigurationsContext(
- context.Background(),
- request,
- )
- }
- func (service *device) DeleteDot1XConfigurationContext(ctx context.Context, request *DeleteDot1XConfiguration) (*DeleteDot1XConfigurationResponse, error) {
- response := new(DeleteDot1XConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/DeleteDot1XConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) DeleteDot1XConfiguration(request *DeleteDot1XConfiguration) (*DeleteDot1XConfigurationResponse, error) {
- return service.DeleteDot1XConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDot11CapabilitiesContext(ctx context.Context, request *GetDot11Capabilities) (*GetDot11CapabilitiesResponse, error) {
- response := new(GetDot11CapabilitiesResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDot11Capabilities", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDot11Capabilities(request *GetDot11Capabilities) (*GetDot11CapabilitiesResponse, error) {
- return service.GetDot11CapabilitiesContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetDot11StatusContext(ctx context.Context, request *GetDot11Status) (*GetDot11StatusResponse, error) {
- response := new(GetDot11StatusResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetDot11Status", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetDot11Status(request *GetDot11Status) (*GetDot11StatusResponse, error) {
- return service.GetDot11StatusContext(
- context.Background(),
- request,
- )
- }
- func (service *device) ScanAvailableDot11NetworksContext(ctx context.Context, request *ScanAvailableDot11Networks) (*ScanAvailableDot11NetworksResponse, error) {
- response := new(ScanAvailableDot11NetworksResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/ScanAvailableDot11Networks", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) ScanAvailableDot11Networks(request *ScanAvailableDot11Networks) (*ScanAvailableDot11NetworksResponse, error) {
- return service.ScanAvailableDot11NetworksContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetSystemUrisContext(ctx context.Context, request *GetSystemUris) (*GetSystemUrisResponse, error) {
- response := new(GetSystemUrisResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetSystemUris", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetSystemUris(request *GetSystemUris) (*GetSystemUrisResponse, error) {
- return service.GetSystemUrisContext(
- context.Background(),
- request,
- )
- }
- func (service *device) StartFirmwareUpgradeContext(ctx context.Context, request *StartFirmwareUpgrade) (*StartFirmwareUpgradeResponse, error) {
- response := new(StartFirmwareUpgradeResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/StartFirmwareUpgrade", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) StartFirmwareUpgrade(request *StartFirmwareUpgrade) (*StartFirmwareUpgradeResponse, error) {
- return service.StartFirmwareUpgradeContext(
- context.Background(),
- request,
- )
- }
- func (service *device) StartSystemRestoreContext(ctx context.Context, request *StartSystemRestore) (*StartSystemRestoreResponse, error) {
- response := new(StartSystemRestoreResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/StartSystemRestore", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) StartSystemRestore(request *StartSystemRestore) (*StartSystemRestoreResponse, error) {
- return service.StartSystemRestoreContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetStorageConfigurationsContext(ctx context.Context, request *GetStorageConfigurations) (*GetStorageConfigurationsResponse, error) {
- response := new(GetStorageConfigurationsResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetStorageConfigurations", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetStorageConfigurations(request *GetStorageConfigurations) (*GetStorageConfigurationsResponse, error) {
- return service.GetStorageConfigurationsContext(
- context.Background(),
- request,
- )
- }
- func (service *device) CreateStorageConfigurationContext(ctx context.Context, request *CreateStorageConfiguration) (*CreateStorageConfigurationResponse, error) {
- response := new(CreateStorageConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/CreateStorageConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) CreateStorageConfiguration(request *CreateStorageConfiguration) (*CreateStorageConfigurationResponse, error) {
- return service.CreateStorageConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetStorageConfigurationContext(ctx context.Context, request *GetStorageConfiguration) (*GetStorageConfigurationResponse, error) {
- response := new(GetStorageConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetStorageConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetStorageConfiguration(request *GetStorageConfiguration) (*GetStorageConfigurationResponse, error) {
- return service.GetStorageConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetStorageConfigurationContext(ctx context.Context, request *SetStorageConfiguration) (*SetStorageConfigurationResponse, error) {
- response := new(SetStorageConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetStorageConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetStorageConfiguration(request *SetStorageConfiguration) (*SetStorageConfigurationResponse, error) {
- return service.SetStorageConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) DeleteStorageConfigurationContext(ctx context.Context, request *DeleteStorageConfiguration) (*DeleteStorageConfigurationResponse, error) {
- response := new(DeleteStorageConfigurationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/DeleteStorageConfiguration", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) DeleteStorageConfiguration(request *DeleteStorageConfiguration) (*DeleteStorageConfigurationResponse, error) {
- return service.DeleteStorageConfigurationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) GetGeoLocationContext(ctx context.Context, request *GetGeoLocation) (*GetGeoLocationResponse, error) {
- response := new(GetGeoLocationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/GetGeoLocation", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) GetGeoLocation(request *GetGeoLocation) (*GetGeoLocationResponse, error) {
- return service.GetGeoLocationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) SetGeoLocationContext(ctx context.Context, request *SetGeoLocation) (*SetGeoLocationResponse, error) {
- response := new(SetGeoLocationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/SetGeoLocation", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) SetGeoLocation(request *SetGeoLocation) (*SetGeoLocationResponse, error) {
- return service.SetGeoLocationContext(
- context.Background(),
- request,
- )
- }
- func (service *device) DeleteGeoLocationContext(ctx context.Context, request *DeleteGeoLocation) (*DeleteGeoLocationResponse, error) {
- response := new(DeleteGeoLocationResponse)
- err := service.client.CallContext(ctx, service.xaddr, "http://www.onvif.org/ver10/device/wsdl/DeleteGeoLocation", request, response)
- if err != nil {
- return nil, err
- }
- return response, nil
- }
- func (service *device) DeleteGeoLocation(request *DeleteGeoLocation) (*DeleteGeoLocationResponse, error) {
- return service.DeleteGeoLocationContext(
- context.Background(),
- request,
- )
- }
- // AnyURI type
- type AnyURI string
- // Duration type
- type Duration string
- // QName type
- type QName string
- // NCName type
- type NCName string
- // AnySimpleType type
- type AnySimpleType string
- // String type
- type String string
|