authenticationbehavior.go 250 KB

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