-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtypes.go
930 lines (726 loc) · 29.8 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
package device
import (
"time"
"github.com/faceterteam/onvif4go/onvif"
"github.com/faceterteam/onvif4go/xsd"
)
type Service struct {
Namespace xsd.AnyURI
XAddr xsd.AnyURI
Capabilities
Version onvif.OnvifVersion
}
type Capabilities struct {
Any string
}
type DeviceServiceCapabilities struct {
Network NetworkCapabilities
Security SecurityCapabilities
System SystemCapabilities
Misc *MiscCapabilities
}
type NetworkCapabilities struct {
IPFilter bool `xml:"IPFilter,attr"`
ZeroConfiguration bool `xml:"ZeroConfiguration,attr"`
IPVersion6 bool `xml:"IPVersion6,attr"`
DynDNS bool `xml:"DynDNS,attr"`
Dot11Configuration bool `xml:"Dot11Configuration,attr"`
Dot1XConfigurations int `xml:"Dot1XConfigurations,attr"`
HostnameFromDHCP bool `xml:"HostnameFromDHCP,attr"`
NTP int `xml:"NTP,attr"`
DHCPv6 bool `xml:"DHCPv6,attr"`
}
type SecurityCapabilities struct {
TLS1_0 bool `xml:"TLS1_0,attr"`
TLS1_1 bool `xml:"TLS1_1,attr"`
TLS1_2 bool `xml:"TLS1_2,attr"`
OnboardKeyGeneration bool `xml:"OnboardKeyGeneration,attr"`
AccessPolicyConfig bool `xml:"AccessPolicyConfig,attr"`
DefaultAccessPolicy bool `xml:"DefaultAccessPolicy,attr"`
Dot1X bool `xml:"Dot1X,attr"`
RemoteUserHandling bool `xml:"RemoteUserHandling,attr"`
X509Token bool `xml:"X_509Token,attr"`
SAMLToken bool `xml:"SAMLToken,attr"`
KerberosToken bool `xml:"KerberosToken,attr"`
UsernameToken bool `xml:"UsernameToken,attr"`
HTTPDigest bool `xml:"HttpDigest,attr"`
RELToken bool `xml:"RELToken,attr"`
SupportedEAPMethods EAPMethodTypes `xml:"SupportedEAPMethods,attr"`
MaxUsers int `xml:"MaxUsers,attr"`
MaxUserNameLength int `xml:"MaxUserNameLength,attr"`
MaxPasswordLength int `xml:"MaxPasswordLength,attr"`
}
//TODO: <xs:list itemType="xs:int"/>
type EAPMethodTypes struct {
Types []int
}
type SystemCapabilities struct {
DiscoveryResolve bool `xml:"DiscoveryResolve,attr"`
DiscoveryBye bool `xml:"DiscoveryBye,attr"`
RemoteDiscovery bool `xml:"RemoteDiscovery,attr"`
SystemBackup bool `xml:"SystemBackup,attr"`
SystemLogging bool `xml:"SystemLogging,attr"`
FirmwareUpgrade bool `xml:"FirmwareUpgrade,attr"`
HTTPFirmwareUpgrade bool `xml:"HttpFirmwareUpgrade,attr"`
HTTPSystemBackup bool `xml:"HttpSystemBackup,attr"`
HTTPSystemLogging bool `xml:"HttpSystemLogging,attr"`
HTTPSupportInformation bool `xml:"HttpSupportInformation,attr"`
StorageConfiguration bool `xml:"StorageConfiguration,attr"`
MaxStorageConfigurations int `xml:"MaxStorageConfigurations,attr"`
GeoLocationEntries int `xml:"GeoLocationEntries,attr"`
AutoGeo string `xml:"AutoGeo,attr"`
}
type MiscCapabilities struct {
AuxiliaryCommands onvif.StringAttrList `xml:"AuxiliaryCommands,attr"`
}
type StorageConfiguration struct {
onvif.DeviceEntity
Data StorageConfigurationData `xml:"http://www.onvif.org/ver10/device/wsdl Data"`
}
type StorageConfigurationData struct {
Type string `xml:"type,attr"`
LocalPath *xsd.AnyURI `xml:"http://www.onvif.org/ver10/device/wsdl LocalPath"`
StorageURI *xsd.AnyURI `xml:"http://www.onvif.org/ver10/device/wsdl StorageUri"`
User *UserCredential `xml:"http://www.onvif.org/ver10/device/wsdl User"`
Extension *xsd.AnyType `xml:"http://www.onvif.org/ver10/device/wsdl Extension"`
}
type UserCredential struct {
UserName string `xml:"http://www.onvif.org/ver10/device/wsdl UserName"`
Password *string `xml:"http://www.onvif.org/ver10/device/wsdl Password"`
Extension *xsd.AnyType `xml:"http://www.onvif.org/ver10/device/wsdl Extension"`
}
type GetServices struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetServices"`
IncludeCapability bool `xml:"http://www.onvif.org/ver10/device/wsdl IncludeCapability"`
}
type GetServicesResponse struct {
Service []Service
}
type GetServiceCapabilities struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetServiceCapabilities"`
}
type GetServiceCapabilitiesResponse struct {
Capabilities DeviceServiceCapabilities
}
type GetDeviceInformation struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDeviceInformation"`
}
type GetDeviceInformationResponse struct {
Manufacturer string `xml:"http://www.onvif.org/ver10/device/wsdl Manufacturer"`
Model string `xml:"http://www.onvif.org/ver10/device/wsdl Model"`
FirmwareVersion string `xml:"http://www.onvif.org/ver10/device/wsdl FirmwareVersion"`
SerialNumber string `xml:"http://www.onvif.org/ver10/device/wsdl SerialNumber"`
HardwareID string `xml:"http://www.onvif.org/ver10/device/wsdl HardwareId"`
}
type SetSystemDateAndTime struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetSystemDateAndTime"`
DateTimeType onvif.SetDateTimeType `xml:"http://www.onvif.org/ver10/device/wsdl DateTimeType"`
DaylightSavings bool `xml:"http://www.onvif.org/ver10/device/wsdl DaylightSavings"`
TimeZone *onvif.TimeZone `xml:"http://www.onvif.org/ver10/device/wsdl TimeZone"`
UTCDateTime *onvif.DateTime `xml:"http://www.onvif.org/ver10/device/wsdl UTCDateTime"`
}
func NewSetSystemDateAndTimeNTP(timeZone string, useDST bool) (s SetSystemDateAndTime, err error) {
if timeZone != "" {
var ns xsd.NormalizedString
ns, err = xsd.NewNormalizedString(timeZone)
if err != nil {
return
}
var token xsd.Token
token, err = xsd.NewToken(ns)
if err != nil {
return
}
tz := onvif.TimeZone{TZ:token}
s.TimeZone = &tz
}
s.DaylightSavings = useDST
s.DateTimeType = onvif.SetDateTimeType("NTP")
return
}
func NewSetSystemDateAndTimeManual(datetime time.Time, timeZone string, useDST bool) (s SetSystemDateAndTime, err error) {
if timeZone != "" {
var ns xsd.NormalizedString
ns, err = xsd.NewNormalizedString(timeZone)
if err != nil {
return
}
var token xsd.Token
token, err = xsd.NewToken(ns)
if err != nil {
return
}
tz := onvif.TimeZone{TZ:token}
s.TimeZone = &tz
}
dt := onvif.DateTime{
Time: onvif.Time{
Hour: datetime.Hour(),
Minute: datetime.Minute(),
Second: datetime.Second(),
},
Date: onvif.Date{
Day: datetime.Day(),
Month: int(datetime.Month()),
Year: datetime.Year(),
},
}
s.UTCDateTime = &dt
s.DaylightSavings = useDST
s.DateTimeType = onvif.SetDateTimeType("Manual")
return
}
type SetSystemDateAndTimeResponse struct {
}
type GetSystemDateAndTime struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemDateAndTime"`
}
type GetSystemDateAndTimeResponse struct {
SystemDateAndTime onvif.SystemDateTime
}
type SetSystemFactoryDefault struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetSystemFactoryDefault"`
FactoryDefault onvif.FactoryDefaultType `xml:"http://www.onvif.org/ver10/device/wsdl FactoryDefault"`
}
type SetSystemFactoryDefaultResponse struct {
}
type UpgradeSystemFirmware struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl UpgradeSystemFirmware"`
Firmware onvif.AttachmentData `xml:"http://www.onvif.org/ver10/device/wsdl Firmware"`
}
type UpgradeSystemFirmwareResponse struct {
Message string
}
type SystemReboot struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SystemReboot"`
}
type SystemRebootResponse struct {
Message string
}
type RestoreSystem struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl RestoreSystem"`
BackupFiles []onvif.BackupFile `xml:"http://www.onvif.org/ver10/device/wsdl BackupFiles"`
}
type RestoreSystemResponse struct {
}
type GetSystemBackup struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemBackup"`
}
type GetSystemBackupResponse struct {
BackupFiles []onvif.BackupFile
}
type GetSystemLog struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemLog"`
LogType onvif.SystemLogType `xml:"http://www.onvif.org/ver10/device/wsdl LogType"`
}
type GetSystemLogResponse struct {
SystemLog onvif.SystemLog
}
type GetSystemSupportInformation struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemSupportInformation"`
}
type GetSystemSupportInformationResponse struct {
SupportInformation onvif.SupportInformation
}
type GetScopes struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetScopes"`
}
type GetScopesResponse struct {
Scopes []onvif.Scope
}
type SetScopes struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetScopes"`
Scopes []xsd.AnyURI `xml:"http://www.onvif.org/ver10/device/wsdl Scopes"`
}
type SetScopesResponse struct {
}
type AddScopes struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl AddScopes"`
ScopeItem []xsd.AnyURI `xml:"http://www.onvif.org/ver10/device/wsdl ScopeItem"`
}
type AddScopesResponse struct {
}
type RemoveScopes struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl RemoveScopes"`
ScopeItem []xsd.AnyURI `xml:"http://www.onvif.org/ver10/schema onvif:ScopeItem"`
}
type RemoveScopesResponse struct {
ScopeItem []xsd.AnyURI `xml:"http://www.onvif.org/ver10/device/wsdl ScopeItem"`
}
type GetDiscoveryMode struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDiscoveryMode"`
}
type GetDiscoveryModeResponse struct {
DiscoveryMode onvif.DiscoveryMode
}
type SetDiscoveryMode struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetDiscoveryMode"`
DiscoveryMode onvif.DiscoveryMode `xml:"http://www.onvif.org/ver10/device/wsdl DiscoveryMode"`
}
type SetDiscoveryModeResponse struct {
}
type GetRemoteDiscoveryMode struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetRemoteDiscoveryMode"`
}
type GetRemoteDiscoveryModeResponse struct {
RemoteDiscoveryMode onvif.DiscoveryMode
}
type SetRemoteDiscoveryMode struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetRemoteDiscoveryMode"`
RemoteDiscoveryMode onvif.DiscoveryMode `xml:"http://www.onvif.org/ver10/device/wsdl RemoteDiscoveryMode"`
}
type SetRemoteDiscoveryModeResponse struct {
}
type GetDPAddresses struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDPAddresses"`
}
type GetDPAddressesResponse struct {
DPAddress []onvif.NetworkHost
}
type SetDPAddresses struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetDPAddresses"`
DPAddress []onvif.NetworkHost `xml:"http://www.onvif.org/ver10/device/wsdl DPAddress"`
}
type SetDPAddressesResponse struct {
}
type GetEndpointReference struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetEndpointReference"`
}
type GetEndpointReferenceResponse struct {
GUID string
}
type GetRemoteUser struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetRemoteUser"`
}
type GetRemoteUserResponse struct {
RemoteUser *onvif.RemoteUser
}
type SetRemoteUser struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetRemoteUser"`
RemoteUser *onvif.RemoteUser `xml:"http://www.onvif.org/ver10/device/wsdl RemoteUser"`
}
type SetRemoteUserResponse struct {
}
type GetUsers struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetUsers"`
}
type GetUsersResponse struct {
User []onvif.User
}
type CreateUsers struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl CreateUsers"`
Users []onvif.User `xml:"http://www.onvif.org/ver10/device/wsdl User"`
}
type CreateUsersResponse struct {
}
type DeleteUsers struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl DeleteUsers"`
Usernames []string `xml:"http://www.onvif.org/ver10/device/wsdl Username"`
}
type DeleteUsersResponse struct {
}
type SetUser struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetUser"`
Users []onvif.User `xml:"http://www.onvif.org/ver10/device/wsdl User"`
}
type SetUserResponse struct {
}
type GetWsdlUrl struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetWsdlUrl"`
}
type GetWsdlUrlResponse struct {
WsdlURL xsd.AnyURI `xml:"http://www.onvif.org/ver10/device/wsdl WsdlUrl"`
}
type GetCapabilities struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetCapabilities"`
Category []onvif.CapabilityCategory `xml:"http://www.onvif.org/ver10/device/wsdl Category"`
}
type GetCapabilitiesResponse struct {
Capabilities onvif.Capabilities
}
type GetHostname struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetHostname"`
}
type GetHostnameResponse struct {
HostnameInformation onvif.HostnameInformation
}
type SetHostname struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetHostname"`
Name xsd.Token `xml:"http://www.onvif.org/ver10/device/wsdl Name"`
}
type SetHostnameResponse struct {
}
type SetHostnameFromDHCP struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetHostnameFromDHCP"`
FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP"`
}
type SetHostnameFromDHCPResponse struct {
RebootNeeded bool
}
type GetDNS struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDNS"`
}
type GetDNSResponse struct {
DNSInformation onvif.DNSInformation
}
type SetDNS struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetDNS"`
FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP"`
SearchDomain []xsd.Token `xml:"http://www.onvif.org/ver10/device/wsdl SearchDomain"`
DNSManual []onvif.IPAddress `xml:"http://www.onvif.org/ver10/device/wsdl DNSManual"`
}
type SetDNSResponse struct {
}
type GetNTP struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetNTP"`
}
type GetNTPResponse struct {
NTPInformation onvif.NTPInformation
}
type SetNTP struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetNTP"`
FromDHCP bool `xml:"http://www.onvif.org/ver10/device/wsdl FromDHCP"`
NTPManual []onvif.NetworkHost `xml:"http://www.onvif.org/ver10/device/wsdl NTPManual"`
}
type SetNTPResponse struct {
}
type GetDynamicDNS struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDynamicDNS"`
}
type GetDynamicDNSResponse struct {
DynamicDNSInformation onvif.DynamicDNSInformation
}
type SetDynamicDNS struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetDynamicDNS"`
Type onvif.DynamicDNSType `xml:"http://www.onvif.org/ver10/device/wsdl Type"`
Name *onvif.DNSName `xml:"http://www.onvif.org/ver10/device/wsdl Name"`
TTL *xsd.Duration `xml:"http://www.onvif.org/ver10/device/wsdl TTL"`
}
type SetDynamicDNSResponse struct {
}
type GetNetworkInterfaces struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetNetworkInterfaces"`
}
type GetNetworkInterfacesResponse struct {
NetworkInterfaces []onvif.NetworkInterface
}
type SetNetworkInterfaces struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetNetworkInterfaces"`
InterfaceToken onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken"`
NetworkInterface onvif.NetworkInterfaceSetConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl NetworkInterface"`
}
type SetNetworkInterfacesResponse struct {
RebootNeeded bool
}
type GetNetworkProtocols struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetNetworkProtocols"`
}
type GetNetworkProtocolsResponse struct {
NetworkProtocols []onvif.NetworkProtocol
}
type SetNetworkProtocols struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetNetworkProtocols"`
NetworkProtocols []onvif.NetworkProtocol `xml:"http://www.onvif.org/ver10/device/wsdl NetworkProtocols"`
}
type SetNetworkProtocolsResponse struct {
}
type GetNetworkDefaultGateway struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetNetworkDefaultGateway"`
}
type GetNetworkDefaultGatewayResponse struct {
NetworkGateway onvif.NetworkGateway
}
type SetNetworkDefaultGateway struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetNetworkDefaultGateway"`
IPv4Address []onvif.IPv4Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv4Address"`
IPv6Address []onvif.IPv6Address `xml:"http://www.onvif.org/ver10/device/wsdl IPv6Address"`
}
type SetNetworkDefaultGatewayResponse struct {
}
type GetZeroConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetZeroConfiguration"`
}
type GetZeroConfigurationResponse struct {
ZeroConfiguration onvif.NetworkZeroConfiguration
}
type SetZeroConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetZeroConfiguration"`
InterfaceToken onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken"`
Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled"`
}
type SetZeroConfigurationResponse struct {
}
type GetIPAddressFilter struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetIPAddressFilter"`
}
type GetIPAddressFilterResponse struct {
IPAddressFilter onvif.IPAddressFilter
}
type SetIPAddressFilter struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetIPAddressFilter"`
IPAddressFilter onvif.IPAddressFilter `xml:"http://www.onvif.org/ver10/device/wsdl IPAddressFilter"`
}
type SetIPAddressFilterResponse struct {
}
type AddIPAddressFilter struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl AddIPAddressFilter"`
IPAddressFilter onvif.IPAddressFilter `xml:"http://www.onvif.org/ver10/device/wsdl IPAddressFilter"`
}
type AddIPAddressFilterResponse struct {
}
type RemoveIPAddressFilter struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl RemoveIPAddressFilter"`
IPAddressFilter onvif.IPAddressFilter `xml:"http://www.onvif.org/ver10/schema onvif:IPAddressFilter"`
}
type RemoveIPAddressFilterResponse struct {
}
type GetAccessPolicy struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetAccessPolicy"`
}
type GetAccessPolicyResponse struct {
PolicyFile onvif.BinaryData
}
type SetAccessPolicy struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetAccessPolicy"`
PolicyFile onvif.BinaryData `xml:"http://www.onvif.org/ver10/device/wsdl PolicyFile"`
}
type SetAccessPolicyResponse struct {
}
type CreateCertificate struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl CreateCertificate"`
CertificateID *xsd.Token `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID,omitempty"`
Subject *string `xml:"http://www.onvif.org/ver10/device/wsdl Subject,omitempty"`
ValidNotBefore *xsd.DateTime `xml:"http://www.onvif.org/ver10/device/wsdl ValidNotBefore,omitempty"`
ValidNotAfter *xsd.DateTime `xml:"http://www.onvif.org/ver10/device/wsdl ValidNotAfter,omitempty"`
}
type CreateCertificateResponse struct {
NvtCertificate onvif.Certificate
}
type GetCertificates struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetCertificates"`
}
type GetCertificatesResponse struct {
NvtCertificate []onvif.Certificate `xml:"http://www.onvif.org/ver10/device/wsdl NvtCertificate"`
}
type GetCertificatesStatus struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetCertificatesStatus"`
}
type GetCertificatesStatusResponse struct {
CertificateStatus []onvif.CertificateStatus `xml:"http://www.onvif.org/ver10/device/wsdl CertificateStatus"`
}
type SetCertificatesStatus struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetCertificatesStatus"`
CertificateStatus []onvif.CertificateStatus `xml:"http://www.onvif.org/ver10/device/wsdl CertificateStatus"`
}
type SetCertificatesStatusResponse struct {
}
type DeleteCertificates struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl DeleteCertificates"`
CertificateID []xsd.Token `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID"`
}
type DeleteCertificatesResponse struct {
}
type GetPkcs10Request struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetPkcs10Request"`
CertificateID xsd.Token `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID"`
Subject *string `xml:"http://www.onvif.org/ver10/device/wsdl Subject"`
Attributes *onvif.BinaryData `xml:"http://www.onvif.org/ver10/device/wsdl Attributes"`
}
type GetPkcs10RequestResponse struct {
Pkcs10Request onvif.BinaryData
}
type LoadCertificates struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl LoadCertificates"`
NVTCertificate []onvif.Certificate `xml:"http://www.onvif.org/ver10/device/wsdl NVTCertificate"`
}
type LoadCertificatesResponse struct {
}
type GetClientCertificateMode struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetClientCertificateMode"`
}
type GetClientCertificateModeResponse struct {
Enabled bool
}
type SetClientCertificateMode struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetClientCertificateMode"`
Enabled bool `xml:"http://www.onvif.org/ver10/device/wsdl Enabled"`
}
type SetClientCertificateModeResponse struct {
}
type GetRelayOutputs struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetRelayOutputs"`
}
type GetRelayOutputsResponse struct {
RelayOutputs []onvif.RelayOutput `xml:"http://www.onvif.org/ver10/device/wsdl RelayOutputs"`
}
type SetRelayOutputSettings struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetRelayOutputSettings"`
RelayOutputToken onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl RelayOutputToken"`
Properties onvif.RelayOutputSettings `xml:"http://www.onvif.org/ver10/device/wsdl Properties"`
}
type SetRelayOutputSettingsResponse struct {
}
type SetRelayOutputState struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetRelayOutputState"`
RelayOutputToken onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl RelayOutputToken"`
LogicalState onvif.RelayLogicalState `xml:"http://www.onvif.org/ver10/device/wsdl LogicalState"`
}
type SetRelayOutputStateResponse struct {
}
type SendAuxiliaryCommand struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SendAuxiliaryCommand"`
AuxiliaryCommand onvif.AuxiliaryData `xml:"http://www.onvif.org/ver10/device/wsdl AuxiliaryCommand"`
}
type SendAuxiliaryCommandResponse struct {
AuxiliaryCommandResponse *onvif.AuxiliaryData
}
type GetCACertificates struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetCACertificates"`
}
type GetCACertificatesResponse struct {
CACertificate []onvif.Certificate
}
type LoadCertificateWithPrivateKey struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl LoadCertificateWithPrivateKey"`
CertificateWithPrivateKey []onvif.CertificateWithPrivateKey `xml:"http://www.onvif.org/ver10/device/wsdl CertificateWithPrivateKey"`
}
type LoadCertificateWithPrivateKeyResponse struct {
}
type GetCertificateInformation struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetCertificateInformation"`
CertificateID xsd.Token `xml:"http://www.onvif.org/ver10/device/wsdl CertificateID"`
}
type GetCertificateInformationResponse struct {
CertificateInformation onvif.CertificateInformation
}
type LoadCACertificates struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl LoadCACertificates"`
CACertificate []onvif.Certificate `xml:"http://www.onvif.org/ver10/device/wsdl CACertificate"`
}
type LoadCACertificatesResponse struct {
}
type CreateDot1XConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl CreateDot1XConfiguration"`
Dot1XConfiguration onvif.Dot1XConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfiguration"`
}
type CreateDot1XConfigurationResponse struct {
}
type SetDot1XConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetDot1XConfiguration"`
Dot1XConfiguration onvif.Dot1XConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfiguration"`
}
type SetDot1XConfigurationResponse struct {
}
type GetDot1XConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDot1XConfiguration"`
Dot1XConfigurationToken onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfigurationToken"`
}
type GetDot1XConfigurationResponse struct {
Dot1XConfiguration onvif.Dot1XConfiguration
}
type GetDot1XConfigurations struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDot1XConfigurations"`
}
type GetDot1XConfigurationsResponse struct {
Dot1XConfiguration []onvif.Dot1XConfiguration
}
type DeleteDot1XConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl DeleteDot1XConfiguration"`
Dot1XConfigurationToken []onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Dot1XConfigurationToken"`
}
type DeleteDot1XConfigurationResponse struct {
}
type GetDot11Capabilities struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDot11Capabilities"`
}
type GetDot11CapabilitiesResponse struct {
Capabilities onvif.Dot11Capabilities
}
type GetDot11Status struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetDot11Status"`
InterfaceToken onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken"`
}
type GetDot11StatusResponse struct {
Status onvif.Dot11Status
}
type ScanAvailableDot11Networks struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl ScanAvailableDot11Networks"`
InterfaceToken onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl InterfaceToken"`
}
type ScanAvailableDot11NetworksResponse struct {
Networks []onvif.Dot11AvailableNetworks `xml:"http://www.onvif.org/ver10/device/wsdl Networks"`
}
type GetSystemUris struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetSystemUris"`
}
type GetSystemUrisResponse struct {
SystemLogUris *onvif.SystemLogUriList `xml:"http://www.onvif.org/ver10/device/wsdl SystemLogUris"`
SupportInfoURI *xsd.AnyURI `xml:"http://www.onvif.org/ver10/device/wsdl SupportInfoUri"`
SystemBackupURI *xsd.AnyURI `xml:"http://www.onvif.org/ver10/device/wsdl SystemBackupUri"`
Extension *xsd.AnyType `xml:"http://www.onvif.org/ver10/device/wsdl Extension"`
}
type StartFirmwareUpgrade struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl StartFirmwareUpgrade"`
}
type StartFirmwareUpgradeResponse struct {
UploadUri xsd.AnyURI
UploadDelay xsd.Duration
ExpectedDownTime xsd.Duration
}
type StartSystemRestore struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl StartSystemRestore"`
}
type StartSystemRestoreResponse struct {
UploadUri xsd.AnyURI
ExpectedDownTime xsd.Duration
}
type GetStorageConfigurations struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetStorageConfigurations"`
}
type GetStorageConfigurationsResponse struct {
StorageConfigurations []StorageConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl StorageConfigurations"`
}
type CreateStorageConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl CreateStorageConfiguration"`
StorageConfiguration StorageConfigurationData
}
type CreateStorageConfigurationResponse struct {
Token onvif.ReferenceToken
}
type GetStorageConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetStorageConfiguration"`
Token onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Token"`
}
type GetStorageConfigurationResponse struct {
StorageConfiguration StorageConfiguration
}
type SetStorageConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetStorageConfiguration"`
StorageConfiguration StorageConfiguration `xml:"http://www.onvif.org/ver10/device/wsdl StorageConfiguration"`
}
type SetStorageConfigurationResponse struct {
}
type DeleteStorageConfiguration struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl DeleteStorageConfiguration"`
Token onvif.ReferenceToken `xml:"http://www.onvif.org/ver10/device/wsdl Token"`
}
type DeleteStorageConfigurationResponse struct {
}
type GetGeoLocation struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl GetGeoLocation"`
}
type GetGeoLocationResponse struct {
Location []onvif.LocationEntity `xml:"http://www.onvif.org/ver10/device/wsdl Location"`
}
type SetGeoLocation struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl SetGeoLocation"`
Location []onvif.LocationEntity `xml:"http://www.onvif.org/ver10/device/wsdl Location"`
}
type SetGeoLocationResponse struct {
}
type DeleteGeoLocation struct {
XMLName string `xml:"http://www.onvif.org/ver10/device/wsdl DeleteGeoLocation"`
Location []onvif.LocationEntity `xml:"http://www.onvif.org/ver10/device/wsdl Location"`
}
type DeleteGeoLocationResponse struct {
}