Provide a sdk package with 1 call per method

Modify the template in ./sdk/codegen/main.go

Use "go generate" from ./sdk/{ptz,media,device} to regenerate the files.
This commit is contained in:
Jean-Francois Smigielski
2022-05-10 23:37:02 +02:00
parent 6f1154fc4d
commit 7d78e6b76e
201 changed files with 6199 additions and 0 deletions

78
sdk/codegen/main.go Normal file
View File

@@ -0,0 +1,78 @@
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package main
import (
"flag"
"log"
"os"
"text/template"
)
var mainTemplate = `// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package {{.Package}}
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/{{.StructPackage}}"
)
// Call_{{.TypeRequest}} forwards the call to dev.CallMethod() then parses the payload of the reply as a {{.TypeReply}}.
func Call_{{.TypeRequest}}(ctx context.Context, dev *onvif.Device, request {{.StructPackage}}.{{.TypeRequest}}) ({{.StructPackage}}.{{.TypeReply}}, error) {
type Envelope struct {
Header struct{}
Body struct {
{{.TypeReply}} {{.StructPackage}}.{{.TypeReply}}
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.{{.TypeReply}}, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "{{.TypeRequest}}")
return reply.Body.{{.TypeReply}}, errors.Annotate(err, "reply")
}
}
`
type parserEnv struct {
Package string
StructPackage string
TypeReply string
TypeRequest string
}
func main() {
flag.Parse()
env := parserEnv{
Package: flag.Arg(0),
StructPackage: flag.Arg(1),
TypeRequest: flag.Arg(2),
TypeReply: flag.Arg(2) + "Response",
}
log.Println(env)
body, err := template.New("body").Parse(mainTemplate)
if err != nil {
log.Fatalln(err)
}
fout, err := os.Create(env.TypeRequest + "_auto.go")
if err != nil {
log.Fatalln(err)
}
defer fout.Close()
err = body.Execute(fout, &env)
if err != nil {
log.Fatalln(err)
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_AddIPAddressFilter forwards the call to dev.CallMethod() then parses the payload of the reply as a AddIPAddressFilterResponse.
func Call_AddIPAddressFilter(ctx context.Context, dev *onvif.Device, request device.AddIPAddressFilter) (device.AddIPAddressFilterResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddIPAddressFilterResponse device.AddIPAddressFilterResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddIPAddressFilterResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddIPAddressFilter")
return reply.Body.AddIPAddressFilterResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_AddScopes forwards the call to dev.CallMethod() then parses the payload of the reply as a AddScopesResponse.
func Call_AddScopes(ctx context.Context, dev *onvif.Device, request device.AddScopes) (device.AddScopesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddScopesResponse device.AddScopesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddScopesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddScopes")
return reply.Body.AddScopesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_CreateCertificate forwards the call to dev.CallMethod() then parses the payload of the reply as a CreateCertificateResponse.
func Call_CreateCertificate(ctx context.Context, dev *onvif.Device, request device.CreateCertificate) (device.CreateCertificateResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
CreateCertificateResponse device.CreateCertificateResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.CreateCertificateResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "CreateCertificate")
return reply.Body.CreateCertificateResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_CreateDot1XConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a CreateDot1XConfigurationResponse.
func Call_CreateDot1XConfiguration(ctx context.Context, dev *onvif.Device, request device.CreateDot1XConfiguration) (device.CreateDot1XConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
CreateDot1XConfigurationResponse device.CreateDot1XConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.CreateDot1XConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "CreateDot1XConfiguration")
return reply.Body.CreateDot1XConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_CreateStorageConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a CreateStorageConfigurationResponse.
func Call_CreateStorageConfiguration(ctx context.Context, dev *onvif.Device, request device.CreateStorageConfiguration) (device.CreateStorageConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
CreateStorageConfigurationResponse device.CreateStorageConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.CreateStorageConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "CreateStorageConfiguration")
return reply.Body.CreateStorageConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_CreateUsers forwards the call to dev.CallMethod() then parses the payload of the reply as a CreateUsersResponse.
func Call_CreateUsers(ctx context.Context, dev *onvif.Device, request device.CreateUsers) (device.CreateUsersResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
CreateUsersResponse device.CreateUsersResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.CreateUsersResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "CreateUsers")
return reply.Body.CreateUsersResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_DeleteCertificates forwards the call to dev.CallMethod() then parses the payload of the reply as a DeleteCertificatesResponse.
func Call_DeleteCertificates(ctx context.Context, dev *onvif.Device, request device.DeleteCertificates) (device.DeleteCertificatesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
DeleteCertificatesResponse device.DeleteCertificatesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.DeleteCertificatesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "DeleteCertificates")
return reply.Body.DeleteCertificatesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_DeleteDot1XConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a DeleteDot1XConfigurationResponse.
func Call_DeleteDot1XConfiguration(ctx context.Context, dev *onvif.Device, request device.DeleteDot1XConfiguration) (device.DeleteDot1XConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
DeleteDot1XConfigurationResponse device.DeleteDot1XConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.DeleteDot1XConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "DeleteDot1XConfiguration")
return reply.Body.DeleteDot1XConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_DeleteGeoLocation forwards the call to dev.CallMethod() then parses the payload of the reply as a DeleteGeoLocationResponse.
func Call_DeleteGeoLocation(ctx context.Context, dev *onvif.Device, request device.DeleteGeoLocation) (device.DeleteGeoLocationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
DeleteGeoLocationResponse device.DeleteGeoLocationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.DeleteGeoLocationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "DeleteGeoLocation")
return reply.Body.DeleteGeoLocationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_DeleteStorageConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a DeleteStorageConfigurationResponse.
func Call_DeleteStorageConfiguration(ctx context.Context, dev *onvif.Device, request device.DeleteStorageConfiguration) (device.DeleteStorageConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
DeleteStorageConfigurationResponse device.DeleteStorageConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.DeleteStorageConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "DeleteStorageConfiguration")
return reply.Body.DeleteStorageConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_DeleteUsers forwards the call to dev.CallMethod() then parses the payload of the reply as a DeleteUsersResponse.
func Call_DeleteUsers(ctx context.Context, dev *onvif.Device, request device.DeleteUsers) (device.DeleteUsersResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
DeleteUsersResponse device.DeleteUsersResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.DeleteUsersResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "DeleteUsers")
return reply.Body.DeleteUsersResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetAccessPolicy forwards the call to dev.CallMethod() then parses the payload of the reply as a GetAccessPolicyResponse.
func Call_GetAccessPolicy(ctx context.Context, dev *onvif.Device, request device.GetAccessPolicy) (device.GetAccessPolicyResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetAccessPolicyResponse device.GetAccessPolicyResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetAccessPolicyResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetAccessPolicy")
return reply.Body.GetAccessPolicyResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetCACertificates forwards the call to dev.CallMethod() then parses the payload of the reply as a GetCACertificatesResponse.
func Call_GetCACertificates(ctx context.Context, dev *onvif.Device, request device.GetCACertificates) (device.GetCACertificatesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetCACertificatesResponse device.GetCACertificatesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetCACertificatesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetCACertificates")
return reply.Body.GetCACertificatesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetCapabilities forwards the call to dev.CallMethod() then parses the payload of the reply as a GetCapabilitiesResponse.
func Call_GetCapabilities(ctx context.Context, dev *onvif.Device, request device.GetCapabilities) (device.GetCapabilitiesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetCapabilitiesResponse device.GetCapabilitiesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetCapabilitiesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetCapabilities")
return reply.Body.GetCapabilitiesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetCertificateInformation forwards the call to dev.CallMethod() then parses the payload of the reply as a GetCertificateInformationResponse.
func Call_GetCertificateInformation(ctx context.Context, dev *onvif.Device, request device.GetCertificateInformation) (device.GetCertificateInformationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetCertificateInformationResponse device.GetCertificateInformationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetCertificateInformationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetCertificateInformation")
return reply.Body.GetCertificateInformationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetCertificatesStatus forwards the call to dev.CallMethod() then parses the payload of the reply as a GetCertificatesStatusResponse.
func Call_GetCertificatesStatus(ctx context.Context, dev *onvif.Device, request device.GetCertificatesStatus) (device.GetCertificatesStatusResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetCertificatesStatusResponse device.GetCertificatesStatusResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetCertificatesStatusResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetCertificatesStatus")
return reply.Body.GetCertificatesStatusResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetCertificates forwards the call to dev.CallMethod() then parses the payload of the reply as a GetCertificatesResponse.
func Call_GetCertificates(ctx context.Context, dev *onvif.Device, request device.GetCertificates) (device.GetCertificatesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetCertificatesResponse device.GetCertificatesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetCertificatesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetCertificates")
return reply.Body.GetCertificatesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetClientCertificateMode forwards the call to dev.CallMethod() then parses the payload of the reply as a GetClientCertificateModeResponse.
func Call_GetClientCertificateMode(ctx context.Context, dev *onvif.Device, request device.GetClientCertificateMode) (device.GetClientCertificateModeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetClientCertificateModeResponse device.GetClientCertificateModeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetClientCertificateModeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetClientCertificateMode")
return reply.Body.GetClientCertificateModeResponse, errors.Annotate(err, "reply")
}
}

30
sdk/device/GetDNS_auto.go Normal file
View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDNS forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDNSResponse.
func Call_GetDNS(ctx context.Context, dev *onvif.Device, request device.GetDNS) (device.GetDNSResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDNSResponse device.GetDNSResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDNSResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDNS")
return reply.Body.GetDNSResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDPAddresses forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDPAddressesResponse.
func Call_GetDPAddresses(ctx context.Context, dev *onvif.Device, request device.GetDPAddresses) (device.GetDPAddressesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDPAddressesResponse device.GetDPAddressesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDPAddressesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDPAddresses")
return reply.Body.GetDPAddressesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDeviceInformation forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDeviceInformationResponse.
func Call_GetDeviceInformation(ctx context.Context, dev *onvif.Device, request device.GetDeviceInformation) (device.GetDeviceInformationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDeviceInformationResponse device.GetDeviceInformationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDeviceInformationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDeviceInformation")
return reply.Body.GetDeviceInformationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDiscoveryMode forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDiscoveryModeResponse.
func Call_GetDiscoveryMode(ctx context.Context, dev *onvif.Device, request device.GetDiscoveryMode) (device.GetDiscoveryModeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDiscoveryModeResponse device.GetDiscoveryModeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDiscoveryModeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDiscoveryMode")
return reply.Body.GetDiscoveryModeResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDot11Capabilities forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDot11CapabilitiesResponse.
func Call_GetDot11Capabilities(ctx context.Context, dev *onvif.Device, request device.GetDot11Capabilities) (device.GetDot11CapabilitiesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDot11CapabilitiesResponse device.GetDot11CapabilitiesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDot11CapabilitiesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDot11Capabilities")
return reply.Body.GetDot11CapabilitiesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDot11Status forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDot11StatusResponse.
func Call_GetDot11Status(ctx context.Context, dev *onvif.Device, request device.GetDot11Status) (device.GetDot11StatusResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDot11StatusResponse device.GetDot11StatusResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDot11StatusResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDot11Status")
return reply.Body.GetDot11StatusResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDot1XConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDot1XConfigurationResponse.
func Call_GetDot1XConfiguration(ctx context.Context, dev *onvif.Device, request device.GetDot1XConfiguration) (device.GetDot1XConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDot1XConfigurationResponse device.GetDot1XConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDot1XConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDot1XConfiguration")
return reply.Body.GetDot1XConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDot1XConfigurations forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDot1XConfigurationsResponse.
func Call_GetDot1XConfigurations(ctx context.Context, dev *onvif.Device, request device.GetDot1XConfigurations) (device.GetDot1XConfigurationsResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDot1XConfigurationsResponse device.GetDot1XConfigurationsResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDot1XConfigurationsResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDot1XConfigurations")
return reply.Body.GetDot1XConfigurationsResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetDynamicDNS forwards the call to dev.CallMethod() then parses the payload of the reply as a GetDynamicDNSResponse.
func Call_GetDynamicDNS(ctx context.Context, dev *onvif.Device, request device.GetDynamicDNS) (device.GetDynamicDNSResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetDynamicDNSResponse device.GetDynamicDNSResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetDynamicDNSResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetDynamicDNS")
return reply.Body.GetDynamicDNSResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetEndpointReference forwards the call to dev.CallMethod() then parses the payload of the reply as a GetEndpointReferenceResponse.
func Call_GetEndpointReference(ctx context.Context, dev *onvif.Device, request device.GetEndpointReference) (device.GetEndpointReferenceResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetEndpointReferenceResponse device.GetEndpointReferenceResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetEndpointReferenceResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetEndpointReference")
return reply.Body.GetEndpointReferenceResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetGeoLocation forwards the call to dev.CallMethod() then parses the payload of the reply as a GetGeoLocationResponse.
func Call_GetGeoLocation(ctx context.Context, dev *onvif.Device, request device.GetGeoLocation) (device.GetGeoLocationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetGeoLocationResponse device.GetGeoLocationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetGeoLocationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetGeoLocation")
return reply.Body.GetGeoLocationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetHostname forwards the call to dev.CallMethod() then parses the payload of the reply as a GetHostnameResponse.
func Call_GetHostname(ctx context.Context, dev *onvif.Device, request device.GetHostname) (device.GetHostnameResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetHostnameResponse device.GetHostnameResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetHostnameResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetHostname")
return reply.Body.GetHostnameResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetIPAddressFilter forwards the call to dev.CallMethod() then parses the payload of the reply as a GetIPAddressFilterResponse.
func Call_GetIPAddressFilter(ctx context.Context, dev *onvif.Device, request device.GetIPAddressFilter) (device.GetIPAddressFilterResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetIPAddressFilterResponse device.GetIPAddressFilterResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetIPAddressFilterResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetIPAddressFilter")
return reply.Body.GetIPAddressFilterResponse, errors.Annotate(err, "reply")
}
}

30
sdk/device/GetNTP_auto.go Normal file
View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetNTP forwards the call to dev.CallMethod() then parses the payload of the reply as a GetNTPResponse.
func Call_GetNTP(ctx context.Context, dev *onvif.Device, request device.GetNTP) (device.GetNTPResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetNTPResponse device.GetNTPResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetNTPResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetNTP")
return reply.Body.GetNTPResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetNetworkDefaultGateway forwards the call to dev.CallMethod() then parses the payload of the reply as a GetNetworkDefaultGatewayResponse.
func Call_GetNetworkDefaultGateway(ctx context.Context, dev *onvif.Device, request device.GetNetworkDefaultGateway) (device.GetNetworkDefaultGatewayResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetNetworkDefaultGatewayResponse device.GetNetworkDefaultGatewayResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetNetworkDefaultGatewayResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetNetworkDefaultGateway")
return reply.Body.GetNetworkDefaultGatewayResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetNetworkInterfaces forwards the call to dev.CallMethod() then parses the payload of the reply as a GetNetworkInterfacesResponse.
func Call_GetNetworkInterfaces(ctx context.Context, dev *onvif.Device, request device.GetNetworkInterfaces) (device.GetNetworkInterfacesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetNetworkInterfacesResponse device.GetNetworkInterfacesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetNetworkInterfacesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetNetworkInterfaces")
return reply.Body.GetNetworkInterfacesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetNetworkProtocols forwards the call to dev.CallMethod() then parses the payload of the reply as a GetNetworkProtocolsResponse.
func Call_GetNetworkProtocols(ctx context.Context, dev *onvif.Device, request device.GetNetworkProtocols) (device.GetNetworkProtocolsResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetNetworkProtocolsResponse device.GetNetworkProtocolsResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetNetworkProtocolsResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetNetworkProtocols")
return reply.Body.GetNetworkProtocolsResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetPkcs10Request forwards the call to dev.CallMethod() then parses the payload of the reply as a GetPkcs10RequestResponse.
func Call_GetPkcs10Request(ctx context.Context, dev *onvif.Device, request device.GetPkcs10Request) (device.GetPkcs10RequestResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetPkcs10RequestResponse device.GetPkcs10RequestResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetPkcs10RequestResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetPkcs10Request")
return reply.Body.GetPkcs10RequestResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetRelayOutputs forwards the call to dev.CallMethod() then parses the payload of the reply as a GetRelayOutputsResponse.
func Call_GetRelayOutputs(ctx context.Context, dev *onvif.Device, request device.GetRelayOutputs) (device.GetRelayOutputsResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetRelayOutputsResponse device.GetRelayOutputsResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetRelayOutputsResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetRelayOutputs")
return reply.Body.GetRelayOutputsResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetRemoteDiscoveryMode forwards the call to dev.CallMethod() then parses the payload of the reply as a GetRemoteDiscoveryModeResponse.
func Call_GetRemoteDiscoveryMode(ctx context.Context, dev *onvif.Device, request device.GetRemoteDiscoveryMode) (device.GetRemoteDiscoveryModeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetRemoteDiscoveryModeResponse device.GetRemoteDiscoveryModeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetRemoteDiscoveryModeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetRemoteDiscoveryMode")
return reply.Body.GetRemoteDiscoveryModeResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetRemoteUser forwards the call to dev.CallMethod() then parses the payload of the reply as a GetRemoteUserResponse.
func Call_GetRemoteUser(ctx context.Context, dev *onvif.Device, request device.GetRemoteUser) (device.GetRemoteUserResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetRemoteUserResponse device.GetRemoteUserResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetRemoteUserResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetRemoteUser")
return reply.Body.GetRemoteUserResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetScopes forwards the call to dev.CallMethod() then parses the payload of the reply as a GetScopesResponse.
func Call_GetScopes(ctx context.Context, dev *onvif.Device, request device.GetScopes) (device.GetScopesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetScopesResponse device.GetScopesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetScopesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetScopes")
return reply.Body.GetScopesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetServiceCapabilities forwards the call to dev.CallMethod() then parses the payload of the reply as a GetServiceCapabilitiesResponse.
func Call_GetServiceCapabilities(ctx context.Context, dev *onvif.Device, request device.GetServiceCapabilities) (device.GetServiceCapabilitiesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetServiceCapabilitiesResponse device.GetServiceCapabilitiesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetServiceCapabilitiesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetServiceCapabilities")
return reply.Body.GetServiceCapabilitiesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetServices forwards the call to dev.CallMethod() then parses the payload of the reply as a GetServicesResponse.
func Call_GetServices(ctx context.Context, dev *onvif.Device, request device.GetServices) (device.GetServicesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetServicesResponse device.GetServicesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetServicesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetServices")
return reply.Body.GetServicesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetStorageConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a GetStorageConfigurationResponse.
func Call_GetStorageConfiguration(ctx context.Context, dev *onvif.Device, request device.GetStorageConfiguration) (device.GetStorageConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetStorageConfigurationResponse device.GetStorageConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetStorageConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetStorageConfiguration")
return reply.Body.GetStorageConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetStorageConfigurations forwards the call to dev.CallMethod() then parses the payload of the reply as a GetStorageConfigurationsResponse.
func Call_GetStorageConfigurations(ctx context.Context, dev *onvif.Device, request device.GetStorageConfigurations) (device.GetStorageConfigurationsResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetStorageConfigurationsResponse device.GetStorageConfigurationsResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetStorageConfigurationsResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetStorageConfigurations")
return reply.Body.GetStorageConfigurationsResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetSystemBackup forwards the call to dev.CallMethod() then parses the payload of the reply as a GetSystemBackupResponse.
func Call_GetSystemBackup(ctx context.Context, dev *onvif.Device, request device.GetSystemBackup) (device.GetSystemBackupResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetSystemBackupResponse device.GetSystemBackupResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetSystemBackupResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetSystemBackup")
return reply.Body.GetSystemBackupResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetSystemDateAndTime forwards the call to dev.CallMethod() then parses the payload of the reply as a GetSystemDateAndTimeResponse.
func Call_GetSystemDateAndTime(ctx context.Context, dev *onvif.Device, request device.GetSystemDateAndTime) (device.GetSystemDateAndTimeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetSystemDateAndTimeResponse device.GetSystemDateAndTimeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetSystemDateAndTimeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetSystemDateAndTime")
return reply.Body.GetSystemDateAndTimeResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetSystemLog forwards the call to dev.CallMethod() then parses the payload of the reply as a GetSystemLogResponse.
func Call_GetSystemLog(ctx context.Context, dev *onvif.Device, request device.GetSystemLog) (device.GetSystemLogResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetSystemLogResponse device.GetSystemLogResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetSystemLogResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetSystemLog")
return reply.Body.GetSystemLogResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetSystemSupportInformation forwards the call to dev.CallMethod() then parses the payload of the reply as a GetSystemSupportInformationResponse.
func Call_GetSystemSupportInformation(ctx context.Context, dev *onvif.Device, request device.GetSystemSupportInformation) (device.GetSystemSupportInformationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetSystemSupportInformationResponse device.GetSystemSupportInformationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetSystemSupportInformationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetSystemSupportInformation")
return reply.Body.GetSystemSupportInformationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetSystemUris forwards the call to dev.CallMethod() then parses the payload of the reply as a GetSystemUrisResponse.
func Call_GetSystemUris(ctx context.Context, dev *onvif.Device, request device.GetSystemUris) (device.GetSystemUrisResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetSystemUrisResponse device.GetSystemUrisResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetSystemUrisResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetSystemUris")
return reply.Body.GetSystemUrisResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetUsers forwards the call to dev.CallMethod() then parses the payload of the reply as a GetUsersResponse.
func Call_GetUsers(ctx context.Context, dev *onvif.Device, request device.GetUsers) (device.GetUsersResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetUsersResponse device.GetUsersResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetUsersResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetUsers")
return reply.Body.GetUsersResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetWsdlUrl forwards the call to dev.CallMethod() then parses the payload of the reply as a GetWsdlUrlResponse.
func Call_GetWsdlUrl(ctx context.Context, dev *onvif.Device, request device.GetWsdlUrl) (device.GetWsdlUrlResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetWsdlUrlResponse device.GetWsdlUrlResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetWsdlUrlResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetWsdlUrl")
return reply.Body.GetWsdlUrlResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_GetZeroConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a GetZeroConfigurationResponse.
func Call_GetZeroConfiguration(ctx context.Context, dev *onvif.Device, request device.GetZeroConfiguration) (device.GetZeroConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetZeroConfigurationResponse device.GetZeroConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetZeroConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetZeroConfiguration")
return reply.Body.GetZeroConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_LoadCACertificates forwards the call to dev.CallMethod() then parses the payload of the reply as a LoadCACertificatesResponse.
func Call_LoadCACertificates(ctx context.Context, dev *onvif.Device, request device.LoadCACertificates) (device.LoadCACertificatesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
LoadCACertificatesResponse device.LoadCACertificatesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.LoadCACertificatesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "LoadCACertificates")
return reply.Body.LoadCACertificatesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_LoadCertificateWithPrivateKey forwards the call to dev.CallMethod() then parses the payload of the reply as a LoadCertificateWithPrivateKeyResponse.
func Call_LoadCertificateWithPrivateKey(ctx context.Context, dev *onvif.Device, request device.LoadCertificateWithPrivateKey) (device.LoadCertificateWithPrivateKeyResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
LoadCertificateWithPrivateKeyResponse device.LoadCertificateWithPrivateKeyResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.LoadCertificateWithPrivateKeyResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "LoadCertificateWithPrivateKey")
return reply.Body.LoadCertificateWithPrivateKeyResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_LoadCertificates forwards the call to dev.CallMethod() then parses the payload of the reply as a LoadCertificatesResponse.
func Call_LoadCertificates(ctx context.Context, dev *onvif.Device, request device.LoadCertificates) (device.LoadCertificatesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
LoadCertificatesResponse device.LoadCertificatesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.LoadCertificatesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "LoadCertificates")
return reply.Body.LoadCertificatesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_RemoveIPAddressFilter forwards the call to dev.CallMethod() then parses the payload of the reply as a RemoveIPAddressFilterResponse.
func Call_RemoveIPAddressFilter(ctx context.Context, dev *onvif.Device, request device.RemoveIPAddressFilter) (device.RemoveIPAddressFilterResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
RemoveIPAddressFilterResponse device.RemoveIPAddressFilterResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.RemoveIPAddressFilterResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "RemoveIPAddressFilter")
return reply.Body.RemoveIPAddressFilterResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_RemoveScopes forwards the call to dev.CallMethod() then parses the payload of the reply as a RemoveScopesResponse.
func Call_RemoveScopes(ctx context.Context, dev *onvif.Device, request device.RemoveScopes) (device.RemoveScopesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
RemoveScopesResponse device.RemoveScopesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.RemoveScopesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "RemoveScopes")
return reply.Body.RemoveScopesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_RestoreSystem forwards the call to dev.CallMethod() then parses the payload of the reply as a RestoreSystemResponse.
func Call_RestoreSystem(ctx context.Context, dev *onvif.Device, request device.RestoreSystem) (device.RestoreSystemResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
RestoreSystemResponse device.RestoreSystemResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.RestoreSystemResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "RestoreSystem")
return reply.Body.RestoreSystemResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_ScanAvailableDot11Networks forwards the call to dev.CallMethod() then parses the payload of the reply as a ScanAvailableDot11NetworksResponse.
func Call_ScanAvailableDot11Networks(ctx context.Context, dev *onvif.Device, request device.ScanAvailableDot11Networks) (device.ScanAvailableDot11NetworksResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
ScanAvailableDot11NetworksResponse device.ScanAvailableDot11NetworksResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.ScanAvailableDot11NetworksResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "ScanAvailableDot11Networks")
return reply.Body.ScanAvailableDot11NetworksResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SendAuxiliaryCommand forwards the call to dev.CallMethod() then parses the payload of the reply as a SendAuxiliaryCommandResponse.
func Call_SendAuxiliaryCommand(ctx context.Context, dev *onvif.Device, request device.SendAuxiliaryCommand) (device.SendAuxiliaryCommandResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SendAuxiliaryCommandResponse device.SendAuxiliaryCommandResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SendAuxiliaryCommandResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SendAuxiliaryCommand")
return reply.Body.SendAuxiliaryCommandResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetAccessPolicy forwards the call to dev.CallMethod() then parses the payload of the reply as a SetAccessPolicyResponse.
func Call_SetAccessPolicy(ctx context.Context, dev *onvif.Device, request device.SetAccessPolicy) (device.SetAccessPolicyResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetAccessPolicyResponse device.SetAccessPolicyResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetAccessPolicyResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetAccessPolicy")
return reply.Body.SetAccessPolicyResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetCertificatesStatus forwards the call to dev.CallMethod() then parses the payload of the reply as a SetCertificatesStatusResponse.
func Call_SetCertificatesStatus(ctx context.Context, dev *onvif.Device, request device.SetCertificatesStatus) (device.SetCertificatesStatusResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetCertificatesStatusResponse device.SetCertificatesStatusResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetCertificatesStatusResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetCertificatesStatus")
return reply.Body.SetCertificatesStatusResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetClientCertificateMode forwards the call to dev.CallMethod() then parses the payload of the reply as a SetClientCertificateModeResponse.
func Call_SetClientCertificateMode(ctx context.Context, dev *onvif.Device, request device.SetClientCertificateMode) (device.SetClientCertificateModeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetClientCertificateModeResponse device.SetClientCertificateModeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetClientCertificateModeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetClientCertificateMode")
return reply.Body.SetClientCertificateModeResponse, errors.Annotate(err, "reply")
}
}

30
sdk/device/SetDNS_auto.go Normal file
View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetDNS forwards the call to dev.CallMethod() then parses the payload of the reply as a SetDNSResponse.
func Call_SetDNS(ctx context.Context, dev *onvif.Device, request device.SetDNS) (device.SetDNSResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetDNSResponse device.SetDNSResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetDNSResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetDNS")
return reply.Body.SetDNSResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetDiscoveryMode forwards the call to dev.CallMethod() then parses the payload of the reply as a SetDiscoveryModeResponse.
func Call_SetDiscoveryMode(ctx context.Context, dev *onvif.Device, request device.SetDiscoveryMode) (device.SetDiscoveryModeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetDiscoveryModeResponse device.SetDiscoveryModeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetDiscoveryModeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetDiscoveryMode")
return reply.Body.SetDiscoveryModeResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetDot1XConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a SetDot1XConfigurationResponse.
func Call_SetDot1XConfiguration(ctx context.Context, dev *onvif.Device, request device.SetDot1XConfiguration) (device.SetDot1XConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetDot1XConfigurationResponse device.SetDot1XConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetDot1XConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetDot1XConfiguration")
return reply.Body.SetDot1XConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetDynamicDNS forwards the call to dev.CallMethod() then parses the payload of the reply as a SetDynamicDNSResponse.
func Call_SetDynamicDNS(ctx context.Context, dev *onvif.Device, request device.SetDynamicDNS) (device.SetDynamicDNSResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetDynamicDNSResponse device.SetDynamicDNSResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetDynamicDNSResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetDynamicDNS")
return reply.Body.SetDynamicDNSResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetGeoLocation forwards the call to dev.CallMethod() then parses the payload of the reply as a SetGeoLocationResponse.
func Call_SetGeoLocation(ctx context.Context, dev *onvif.Device, request device.SetGeoLocation) (device.SetGeoLocationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetGeoLocationResponse device.SetGeoLocationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetGeoLocationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetGeoLocation")
return reply.Body.SetGeoLocationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetHostnameFromDHCP forwards the call to dev.CallMethod() then parses the payload of the reply as a SetHostnameFromDHCPResponse.
func Call_SetHostnameFromDHCP(ctx context.Context, dev *onvif.Device, request device.SetHostnameFromDHCP) (device.SetHostnameFromDHCPResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetHostnameFromDHCPResponse device.SetHostnameFromDHCPResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetHostnameFromDHCPResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetHostnameFromDHCP")
return reply.Body.SetHostnameFromDHCPResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetHostname forwards the call to dev.CallMethod() then parses the payload of the reply as a SetHostnameResponse.
func Call_SetHostname(ctx context.Context, dev *onvif.Device, request device.SetHostname) (device.SetHostnameResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetHostnameResponse device.SetHostnameResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetHostnameResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetHostname")
return reply.Body.SetHostnameResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetIPAddressFilter forwards the call to dev.CallMethod() then parses the payload of the reply as a SetIPAddressFilterResponse.
func Call_SetIPAddressFilter(ctx context.Context, dev *onvif.Device, request device.SetIPAddressFilter) (device.SetIPAddressFilterResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetIPAddressFilterResponse device.SetIPAddressFilterResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetIPAddressFilterResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetIPAddressFilter")
return reply.Body.SetIPAddressFilterResponse, errors.Annotate(err, "reply")
}
}

30
sdk/device/SetNTP_auto.go Normal file
View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetNTP forwards the call to dev.CallMethod() then parses the payload of the reply as a SetNTPResponse.
func Call_SetNTP(ctx context.Context, dev *onvif.Device, request device.SetNTP) (device.SetNTPResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetNTPResponse device.SetNTPResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetNTPResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetNTP")
return reply.Body.SetNTPResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetNetworkDefaultGateway forwards the call to dev.CallMethod() then parses the payload of the reply as a SetNetworkDefaultGatewayResponse.
func Call_SetNetworkDefaultGateway(ctx context.Context, dev *onvif.Device, request device.SetNetworkDefaultGateway) (device.SetNetworkDefaultGatewayResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetNetworkDefaultGatewayResponse device.SetNetworkDefaultGatewayResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetNetworkDefaultGatewayResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetNetworkDefaultGateway")
return reply.Body.SetNetworkDefaultGatewayResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetNetworkInterfaces forwards the call to dev.CallMethod() then parses the payload of the reply as a SetNetworkInterfacesResponse.
func Call_SetNetworkInterfaces(ctx context.Context, dev *onvif.Device, request device.SetNetworkInterfaces) (device.SetNetworkInterfacesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetNetworkInterfacesResponse device.SetNetworkInterfacesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetNetworkInterfacesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetNetworkInterfaces")
return reply.Body.SetNetworkInterfacesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetNetworkProtocols forwards the call to dev.CallMethod() then parses the payload of the reply as a SetNetworkProtocolsResponse.
func Call_SetNetworkProtocols(ctx context.Context, dev *onvif.Device, request device.SetNetworkProtocols) (device.SetNetworkProtocolsResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetNetworkProtocolsResponse device.SetNetworkProtocolsResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetNetworkProtocolsResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetNetworkProtocols")
return reply.Body.SetNetworkProtocolsResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetRelayOutputSettings forwards the call to dev.CallMethod() then parses the payload of the reply as a SetRelayOutputSettingsResponse.
func Call_SetRelayOutputSettings(ctx context.Context, dev *onvif.Device, request device.SetRelayOutputSettings) (device.SetRelayOutputSettingsResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetRelayOutputSettingsResponse device.SetRelayOutputSettingsResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetRelayOutputSettingsResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetRelayOutputSettings")
return reply.Body.SetRelayOutputSettingsResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetRelayOutputState forwards the call to dev.CallMethod() then parses the payload of the reply as a SetRelayOutputStateResponse.
func Call_SetRelayOutputState(ctx context.Context, dev *onvif.Device, request device.SetRelayOutputState) (device.SetRelayOutputStateResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetRelayOutputStateResponse device.SetRelayOutputStateResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetRelayOutputStateResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetRelayOutputState")
return reply.Body.SetRelayOutputStateResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetRemoteDiscoveryMode forwards the call to dev.CallMethod() then parses the payload of the reply as a SetRemoteDiscoveryModeResponse.
func Call_SetRemoteDiscoveryMode(ctx context.Context, dev *onvif.Device, request device.SetRemoteDiscoveryMode) (device.SetRemoteDiscoveryModeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetRemoteDiscoveryModeResponse device.SetRemoteDiscoveryModeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetRemoteDiscoveryModeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetRemoteDiscoveryMode")
return reply.Body.SetRemoteDiscoveryModeResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetRemoteUser forwards the call to dev.CallMethod() then parses the payload of the reply as a SetRemoteUserResponse.
func Call_SetRemoteUser(ctx context.Context, dev *onvif.Device, request device.SetRemoteUser) (device.SetRemoteUserResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetRemoteUserResponse device.SetRemoteUserResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetRemoteUserResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetRemoteUser")
return reply.Body.SetRemoteUserResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetScopes forwards the call to dev.CallMethod() then parses the payload of the reply as a SetScopesResponse.
func Call_SetScopes(ctx context.Context, dev *onvif.Device, request device.SetScopes) (device.SetScopesResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetScopesResponse device.SetScopesResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetScopesResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetScopes")
return reply.Body.SetScopesResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetStorageConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a SetStorageConfigurationResponse.
func Call_SetStorageConfiguration(ctx context.Context, dev *onvif.Device, request device.SetStorageConfiguration) (device.SetStorageConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetStorageConfigurationResponse device.SetStorageConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetStorageConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetStorageConfiguration")
return reply.Body.SetStorageConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetSystemDateAndTime forwards the call to dev.CallMethod() then parses the payload of the reply as a SetSystemDateAndTimeResponse.
func Call_SetSystemDateAndTime(ctx context.Context, dev *onvif.Device, request device.SetSystemDateAndTime) (device.SetSystemDateAndTimeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetSystemDateAndTimeResponse device.SetSystemDateAndTimeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetSystemDateAndTimeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetSystemDateAndTime")
return reply.Body.SetSystemDateAndTimeResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetSystemFactoryDefault forwards the call to dev.CallMethod() then parses the payload of the reply as a SetSystemFactoryDefaultResponse.
func Call_SetSystemFactoryDefault(ctx context.Context, dev *onvif.Device, request device.SetSystemFactoryDefault) (device.SetSystemFactoryDefaultResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetSystemFactoryDefaultResponse device.SetSystemFactoryDefaultResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetSystemFactoryDefaultResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetSystemFactoryDefault")
return reply.Body.SetSystemFactoryDefaultResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetUser forwards the call to dev.CallMethod() then parses the payload of the reply as a SetUserResponse.
func Call_SetUser(ctx context.Context, dev *onvif.Device, request device.SetUser) (device.SetUserResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetUserResponse device.SetUserResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetUserResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetUser")
return reply.Body.SetUserResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SetZeroConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a SetZeroConfigurationResponse.
func Call_SetZeroConfiguration(ctx context.Context, dev *onvif.Device, request device.SetZeroConfiguration) (device.SetZeroConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetZeroConfigurationResponse device.SetZeroConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetZeroConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetZeroConfiguration")
return reply.Body.SetZeroConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_StartFirmwareUpgrade forwards the call to dev.CallMethod() then parses the payload of the reply as a StartFirmwareUpgradeResponse.
func Call_StartFirmwareUpgrade(ctx context.Context, dev *onvif.Device, request device.StartFirmwareUpgrade) (device.StartFirmwareUpgradeResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
StartFirmwareUpgradeResponse device.StartFirmwareUpgradeResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.StartFirmwareUpgradeResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "StartFirmwareUpgrade")
return reply.Body.StartFirmwareUpgradeResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_StartSystemRestore forwards the call to dev.CallMethod() then parses the payload of the reply as a StartSystemRestoreResponse.
func Call_StartSystemRestore(ctx context.Context, dev *onvif.Device, request device.StartSystemRestore) (device.StartSystemRestoreResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
StartSystemRestoreResponse device.StartSystemRestoreResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.StartSystemRestoreResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "StartSystemRestore")
return reply.Body.StartSystemRestoreResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_SystemReboot forwards the call to dev.CallMethod() then parses the payload of the reply as a SystemRebootResponse.
func Call_SystemReboot(ctx context.Context, dev *onvif.Device, request device.SystemReboot) (device.SystemRebootResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SystemRebootResponse device.SystemRebootResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SystemRebootResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SystemReboot")
return reply.Body.SystemRebootResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/device"
)
// Call_UpgradeSystemFirmware forwards the call to dev.CallMethod() then parses the payload of the reply as a UpgradeSystemFirmwareResponse.
func Call_UpgradeSystemFirmware(ctx context.Context, dev *onvif.Device, request device.UpgradeSystemFirmware) (device.UpgradeSystemFirmwareResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
UpgradeSystemFirmwareResponse device.UpgradeSystemFirmwareResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.UpgradeSystemFirmwareResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "UpgradeSystemFirmware")
return reply.Body.UpgradeSystemFirmwareResponse, errors.Annotate(err, "reply")
}
}

91
sdk/device/device.go Normal file
View File

@@ -0,0 +1,91 @@
package device
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetServices
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetServiceCapabilities
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDeviceInformation
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetSystemDateAndTime
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetSystemDateAndTime
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetSystemFactoryDefault
//go:generate go run github.com/use-go/onvif/sdk/codegen device device UpgradeSystemFirmware
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SystemReboot
//go:generate go run github.com/use-go/onvif/sdk/codegen device device RestoreSystem
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetSystemBackup
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetSystemLog
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetSystemSupportInformation
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetScopes
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetScopes
//go:generate go run github.com/use-go/onvif/sdk/codegen device device AddScopes
//go:generate go run github.com/use-go/onvif/sdk/codegen device device RemoveScopes
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDiscoveryMode
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetDiscoveryMode
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetRemoteDiscoveryMode
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetRemoteDiscoveryMode
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDPAddresses
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetEndpointReference
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetRemoteUser
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetRemoteUser
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetUsers
//go:generate go run github.com/use-go/onvif/sdk/codegen device device CreateUsers
//go:generate go run github.com/use-go/onvif/sdk/codegen device device DeleteUsers
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetUser
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetWsdlUrl
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetCapabilities
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetHostname
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetHostname
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetHostnameFromDHCP
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDNS
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetDNS
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetNTP
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetNTP
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDynamicDNS
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetDynamicDNS
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetNetworkInterfaces
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetNetworkInterfaces
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetNetworkProtocols
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetNetworkProtocols
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetNetworkDefaultGateway
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetNetworkDefaultGateway
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetZeroConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetZeroConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetIPAddressFilter
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetIPAddressFilter
//go:generate go run github.com/use-go/onvif/sdk/codegen device device AddIPAddressFilter
//go:generate go run github.com/use-go/onvif/sdk/codegen device device RemoveIPAddressFilter
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetAccessPolicy
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetAccessPolicy
//go:generate go run github.com/use-go/onvif/sdk/codegen device device CreateCertificate
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetCertificates
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetCertificatesStatus
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetCertificatesStatus
//go:generate go run github.com/use-go/onvif/sdk/codegen device device DeleteCertificates
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetPkcs10Request
//go:generate go run github.com/use-go/onvif/sdk/codegen device device LoadCertificates
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetClientCertificateMode
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetClientCertificateMode
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetRelayOutputs
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetRelayOutputSettings
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetRelayOutputState
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SendAuxiliaryCommand
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetCACertificates
//go:generate go run github.com/use-go/onvif/sdk/codegen device device LoadCertificateWithPrivateKey
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetCertificateInformation
//go:generate go run github.com/use-go/onvif/sdk/codegen device device LoadCACertificates
//go:generate go run github.com/use-go/onvif/sdk/codegen device device CreateDot1XConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetDot1XConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDot1XConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDot1XConfigurations
//go:generate go run github.com/use-go/onvif/sdk/codegen device device DeleteDot1XConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDot11Capabilities
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetDot11Status
//go:generate go run github.com/use-go/onvif/sdk/codegen device device ScanAvailableDot11Networks
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetSystemUris
//go:generate go run github.com/use-go/onvif/sdk/codegen device device StartFirmwareUpgrade
//go:generate go run github.com/use-go/onvif/sdk/codegen device device StartSystemRestore
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetStorageConfigurations
//go:generate go run github.com/use-go/onvif/sdk/codegen device device CreateStorageConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetStorageConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetStorageConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device DeleteStorageConfiguration
//go:generate go run github.com/use-go/onvif/sdk/codegen device device GetGeoLocation
//go:generate go run github.com/use-go/onvif/sdk/codegen device device SetGeoLocation
//go:generate go run github.com/use-go/onvif/sdk/codegen device device DeleteGeoLocation

39
sdk/doc.go Normal file
View File

@@ -0,0 +1,39 @@
package sdk
import (
"context"
"encoding/xml"
"github.com/juju/errors"
"github.com/rs/zerolog"
"io/ioutil"
"net/http"
"os"
"time"
)
var (
// LoggerContext is the builder of a zerolog.Logger that is exposed to the application so that
// options at the CLI might alter the formatting and the output of the logs.
LoggerContext = zerolog.
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).
With().Timestamp()
// Logger is a zerolog logger, that can be safely used from any part of the application.
// It gathers the format and the output.
Logger = LoggerContext.Logger()
)
func ReadAndParse(ctx context.Context, httpReply *http.Response, reply interface{}, tag string) error {
Logger.Debug().
Str("msg", httpReply.Status).
Int("status", httpReply.StatusCode).
Str("action", tag).
Msg("RPC")
// TODO(jfsmig): extract the deadline from ctx.Deadline() and apply it on the reply reading
if b, err := ioutil.ReadAll(httpReply.Body); err != nil {
return errors.Annotate(err, "read")
} else {
err = xml.Unmarshal(b, reply)
return errors.Annotate(err, "decode")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/media"
)
// Call_AddAudioDecoderConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a AddAudioDecoderConfigurationResponse.
func Call_AddAudioDecoderConfiguration(ctx context.Context, dev *onvif.Device, request media.AddAudioDecoderConfiguration) (media.AddAudioDecoderConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddAudioDecoderConfigurationResponse media.AddAudioDecoderConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddAudioDecoderConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddAudioDecoderConfiguration")
return reply.Body.AddAudioDecoderConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/media"
)
// Call_AddAudioEncoderConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a AddAudioEncoderConfigurationResponse.
func Call_AddAudioEncoderConfiguration(ctx context.Context, dev *onvif.Device, request media.AddAudioEncoderConfiguration) (media.AddAudioEncoderConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddAudioEncoderConfigurationResponse media.AddAudioEncoderConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddAudioEncoderConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddAudioEncoderConfiguration")
return reply.Body.AddAudioEncoderConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/media"
)
// Call_AddAudioOutputConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a AddAudioOutputConfigurationResponse.
func Call_AddAudioOutputConfiguration(ctx context.Context, dev *onvif.Device, request media.AddAudioOutputConfiguration) (media.AddAudioOutputConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddAudioOutputConfigurationResponse media.AddAudioOutputConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddAudioOutputConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddAudioOutputConfiguration")
return reply.Body.AddAudioOutputConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/media"
)
// Call_AddAudioSourceConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a AddAudioSourceConfigurationResponse.
func Call_AddAudioSourceConfiguration(ctx context.Context, dev *onvif.Device, request media.AddAudioSourceConfiguration) (media.AddAudioSourceConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddAudioSourceConfigurationResponse media.AddAudioSourceConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddAudioSourceConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddAudioSourceConfiguration")
return reply.Body.AddAudioSourceConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/media"
)
// Call_AddMetadataConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a AddMetadataConfigurationResponse.
func Call_AddMetadataConfiguration(ctx context.Context, dev *onvif.Device, request media.AddMetadataConfiguration) (media.AddMetadataConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddMetadataConfigurationResponse media.AddMetadataConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddMetadataConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddMetadataConfiguration")
return reply.Body.AddMetadataConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/media"
)
// Call_AddPTZConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a AddPTZConfigurationResponse.
func Call_AddPTZConfiguration(ctx context.Context, dev *onvif.Device, request media.AddPTZConfiguration) (media.AddPTZConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddPTZConfigurationResponse media.AddPTZConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddPTZConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddPTZConfiguration")
return reply.Body.AddPTZConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/media"
)
// Call_AddVideoAnalyticsConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a AddVideoAnalyticsConfigurationResponse.
func Call_AddVideoAnalyticsConfiguration(ctx context.Context, dev *onvif.Device, request media.AddVideoAnalyticsConfiguration) (media.AddVideoAnalyticsConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddVideoAnalyticsConfigurationResponse media.AddVideoAnalyticsConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddVideoAnalyticsConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddVideoAnalyticsConfiguration")
return reply.Body.AddVideoAnalyticsConfigurationResponse, errors.Annotate(err, "reply")
}
}

View File

@@ -0,0 +1,30 @@
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"github.com/juju/errors"
"github.com/use-go/onvif"
"github.com/use-go/onvif/sdk"
"github.com/use-go/onvif/media"
)
// Call_AddVideoEncoderConfiguration forwards the call to dev.CallMethod() then parses the payload of the reply as a AddVideoEncoderConfigurationResponse.
func Call_AddVideoEncoderConfiguration(ctx context.Context, dev *onvif.Device, request media.AddVideoEncoderConfiguration) (media.AddVideoEncoderConfigurationResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AddVideoEncoderConfigurationResponse media.AddVideoEncoderConfigurationResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AddVideoEncoderConfigurationResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AddVideoEncoderConfiguration")
return reply.Body.AddVideoEncoderConfigurationResponse, errors.Annotate(err, "reply")
}
}

Some files were not shown because too many files have changed in this diff Show More