// Client for UPnP Device Control Protocol Internet Gateway Device v1. // // This DCP is documented in detail at: // - http://upnp.org/specs/gw/UPnP-gw-InternetGatewayDevice-v1-Device.pdf // // Typically, use one of the New* functions to create clients for services.
package internetgateway1 // *********************************************************** // GENERATED FILE - DO NOT EDIT BY HAND. See README.md // *********************************************************** import ( ) // Hack to avoid Go complaining if time isn't used. var _ time.Time // Device URNs: const ( URN_LANDevice_1 = "urn:schemas-upnp-org:device:LANDevice:1" URN_WANConnectionDevice_1 = "urn:schemas-upnp-org:device:WANConnectionDevice:1" URN_WANDevice_1 = "urn:schemas-upnp-org:device:WANDevice:1" ) // Service URNs: const ( URN_LANHostConfigManagement_1 = "urn:schemas-upnp-org:service:LANHostConfigManagement:1" URN_Layer3Forwarding_1 = "urn:schemas-upnp-org:service:Layer3Forwarding:1" URN_WANCableLinkConfig_1 = "urn:schemas-upnp-org:service:WANCableLinkConfig:1" URN_WANCommonInterfaceConfig_1 = "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1" URN_WANDSLLinkConfig_1 = "urn:schemas-upnp-org:service:WANDSLLinkConfig:1" URN_WANEthernetLinkConfig_1 = "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1" URN_WANIPConnection_1 = "urn:schemas-upnp-org:service:WANIPConnection:1" URN_WANPOTSLinkConfig_1 = "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1" URN_WANPPPConnection_1 = "urn:schemas-upnp-org:service:WANPPPConnection:1" ) // LANHostConfigManagement1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:LANHostConfigManagement:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type LANHostConfigManagement1 struct { goupnp.ServiceClient } // NewLANHostConfigManagement1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*LANHostConfigManagement1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_LANHostConfigManagement_1); != nil { return } = newLANHostConfigManagement1ClientsFromGenericClients() return } // NewLANHostConfigManagement1Clients is the legacy version of NewLANHostConfigManagement1ClientsCtx, but uses // context.Background() as the context. func () ( []*LANHostConfigManagement1, []error, error) { return NewLANHostConfigManagement1ClientsCtx(context.Background()) } // NewLANHostConfigManagement1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*LANHostConfigManagement1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_LANHostConfigManagement_1) if != nil { return nil, } return newLANHostConfigManagement1ClientsFromGenericClients(), nil } // NewLANHostConfigManagement1ClientsByURL is the legacy version of NewLANHostConfigManagement1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*LANHostConfigManagement1, error) { return NewLANHostConfigManagement1ClientsByURLCtx(context.Background(), ) } // NewLANHostConfigManagement1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*LANHostConfigManagement1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_LANHostConfigManagement_1) if != nil { return nil, } return newLANHostConfigManagement1ClientsFromGenericClients(), nil } func newLANHostConfigManagement1ClientsFromGenericClients( []goupnp.ServiceClient) []*LANHostConfigManagement1 { := make([]*LANHostConfigManagement1, len()) for := range { [] = &LANHostConfigManagement1{[]} } return } func ( *LANHostConfigManagement1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "DeleteDNSServer", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // DeleteDNSServer is the legacy version of DeleteDNSServerCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string) ( error) { return .DeleteDNSServerCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "DeleteIPRouter", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // DeleteIPRouter is the legacy version of DeleteIPRouterCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string) ( error) { return .DeleteIPRouterCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "DeleteReservedAddress", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // DeleteReservedAddress is the legacy version of DeleteReservedAddressCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string) ( error) { return .DeleteReservedAddressCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, ) ( string, string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "GetAddressRange", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetAddressRange is the legacy version of GetAddressRangeCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) () ( string, string, error) { return .GetAddressRangeCtx(context.Background()) } func ( *LANHostConfigManagement1) ( context.Context, ) ( bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "GetDHCPRelay", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetDHCPRelay is the legacy version of GetDHCPRelayCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) () ( bool, error) { return .GetDHCPRelayCtx(context.Background()) } func ( *LANHostConfigManagement1) ( context.Context, ) ( bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "GetDHCPServerConfigurable", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetDHCPServerConfigurable is the legacy version of GetDHCPServerConfigurableCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) () ( bool, error) { return .GetDHCPServerConfigurableCtx(context.Background()) } func ( *LANHostConfigManagement1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "GetDNSServers", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDNSServers is the legacy version of GetDNSServersCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) () ( string, error) { return .GetDNSServersCtx(context.Background()) } func ( *LANHostConfigManagement1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "GetDomainName", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDomainName is the legacy version of GetDomainNameCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) () ( string, error) { return .GetDomainNameCtx(context.Background()) } func ( *LANHostConfigManagement1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "GetIPRoutersList", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetIPRoutersList is the legacy version of GetIPRoutersListCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) () ( string, error) { return .GetIPRoutersListCtx(context.Background()) } func ( *LANHostConfigManagement1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "GetReservedAddresses", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetReservedAddresses is the legacy version of GetReservedAddressesCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) () ( string, error) { return .GetReservedAddressesCtx(context.Background()) } func ( *LANHostConfigManagement1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "GetSubnetMask", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetSubnetMask is the legacy version of GetSubnetMaskCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) () ( string, error) { return .GetSubnetMaskCtx(context.Background()) } func ( *LANHostConfigManagement1) ( context.Context, string, string, ) ( error) { // Request structure. := &struct { string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "SetAddressRange", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetAddressRange is the legacy version of SetAddressRangeCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string, string) ( error) { return .SetAddressRangeCtx(context.Background(), , , ) } func ( *LANHostConfigManagement1) ( context.Context, bool, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalBoolean(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "SetDHCPRelay", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetDHCPRelay is the legacy version of SetDHCPRelayCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( bool) ( error) { return .SetDHCPRelayCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, bool, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalBoolean(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "SetDHCPServerConfigurable", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetDHCPServerConfigurable is the legacy version of SetDHCPServerConfigurableCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( bool) ( error) { return .SetDHCPServerConfigurableCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "SetDNSServer", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetDNSServer is the legacy version of SetDNSServerCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string) ( error) { return .SetDNSServerCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "SetDomainName", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetDomainName is the legacy version of SetDomainNameCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string) ( error) { return .SetDomainNameCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "SetIPRouter", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetIPRouter is the legacy version of SetIPRouterCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string) ( error) { return .SetIPRouterCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "SetReservedAddress", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetReservedAddress is the legacy version of SetReservedAddressCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string) ( error) { return .SetReservedAddressCtx(context.Background(), , ) } func ( *LANHostConfigManagement1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_LANHostConfigManagement_1, "SetSubnetMask", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetSubnetMask is the legacy version of SetSubnetMaskCtx, but uses // context.Background() as the context. func ( *LANHostConfigManagement1) ( string) ( error) { return .SetSubnetMaskCtx(context.Background(), , ) } // Layer3Forwarding1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:Layer3Forwarding:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type Layer3Forwarding1 struct { goupnp.ServiceClient } // NewLayer3Forwarding1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*Layer3Forwarding1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_Layer3Forwarding_1); != nil { return } = newLayer3Forwarding1ClientsFromGenericClients() return } // NewLayer3Forwarding1Clients is the legacy version of NewLayer3Forwarding1ClientsCtx, but uses // context.Background() as the context. func () ( []*Layer3Forwarding1, []error, error) { return NewLayer3Forwarding1ClientsCtx(context.Background()) } // NewLayer3Forwarding1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*Layer3Forwarding1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_Layer3Forwarding_1) if != nil { return nil, } return newLayer3Forwarding1ClientsFromGenericClients(), nil } // NewLayer3Forwarding1ClientsByURL is the legacy version of NewLayer3Forwarding1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*Layer3Forwarding1, error) { return NewLayer3Forwarding1ClientsByURLCtx(context.Background(), ) } // NewLayer3Forwarding1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*Layer3Forwarding1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_Layer3Forwarding_1) if != nil { return nil, } return newLayer3Forwarding1ClientsFromGenericClients(), nil } func newLayer3Forwarding1ClientsFromGenericClients( []goupnp.ServiceClient) []*Layer3Forwarding1 { := make([]*Layer3Forwarding1, len()) for := range { [] = &Layer3Forwarding1{[]} } return } func ( *Layer3Forwarding1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_Layer3Forwarding_1, "GetDefaultConnectionService", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDefaultConnectionService is the legacy version of GetDefaultConnectionServiceCtx, but uses // context.Background() as the context. func ( *Layer3Forwarding1) () ( string, error) { return .GetDefaultConnectionServiceCtx(context.Background()) } func ( *Layer3Forwarding1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_Layer3Forwarding_1, "SetDefaultConnectionService", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetDefaultConnectionService is the legacy version of SetDefaultConnectionServiceCtx, but uses // context.Background() as the context. func ( *Layer3Forwarding1) ( string) ( error) { return .SetDefaultConnectionServiceCtx(context.Background(), , ) } // WANCableLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCableLinkConfig:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type WANCableLinkConfig1 struct { goupnp.ServiceClient } // NewWANCableLinkConfig1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*WANCableLinkConfig1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_WANCableLinkConfig_1); != nil { return } = newWANCableLinkConfig1ClientsFromGenericClients() return } // NewWANCableLinkConfig1Clients is the legacy version of NewWANCableLinkConfig1ClientsCtx, but uses // context.Background() as the context. func () ( []*WANCableLinkConfig1, []error, error) { return NewWANCableLinkConfig1ClientsCtx(context.Background()) } // NewWANCableLinkConfig1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*WANCableLinkConfig1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_WANCableLinkConfig_1) if != nil { return nil, } return newWANCableLinkConfig1ClientsFromGenericClients(), nil } // NewWANCableLinkConfig1ClientsByURL is the legacy version of NewWANCableLinkConfig1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*WANCableLinkConfig1, error) { return NewWANCableLinkConfig1ClientsByURLCtx(context.Background(), ) } // NewWANCableLinkConfig1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*WANCableLinkConfig1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_WANCableLinkConfig_1) if != nil { return nil, } return newWANCableLinkConfig1ClientsFromGenericClients(), nil } func newWANCableLinkConfig1ClientsFromGenericClients( []goupnp.ServiceClient) []*WANCableLinkConfig1 { := make([]*WANCableLinkConfig1, len()) for := range { [] = &WANCableLinkConfig1{[]} } return } func ( *WANCableLinkConfig1) ( context.Context, ) ( bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetBPIEncryptionEnabled", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetBPIEncryptionEnabled is the legacy version of GetBPIEncryptionEnabledCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( bool, error) { return .GetBPIEncryptionEnabledCtx(context.Background()) } // // Return values: // // * NewCableLinkConfigState: allowed values: notReady, dsSyncComplete, usParamAcquired, rangingComplete, ipComplete, todEstablished, paramTransferComplete, registrationComplete, operational, accessDenied // // * NewLinkType: allowed values: Ethernet func ( *WANCableLinkConfig1) ( context.Context, ) ( string, string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetCableLinkConfigInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetCableLinkConfigInfo is the legacy version of GetCableLinkConfigInfoCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( string, string, error) { return .GetCableLinkConfigInfoCtx(context.Background()) } func ( *WANCableLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetConfigFile", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetConfigFile is the legacy version of GetConfigFileCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( string, error) { return .GetConfigFileCtx(context.Background()) } func ( *WANCableLinkConfig1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetDownstreamFrequency", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetDownstreamFrequency is the legacy version of GetDownstreamFrequencyCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( uint32, error) { return .GetDownstreamFrequencyCtx(context.Background()) } // // Return values: // // * NewDownstreamModulation: allowed values: 64QAM, 256QAM func ( *WANCableLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetDownstreamModulation", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDownstreamModulation is the legacy version of GetDownstreamModulationCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( string, error) { return .GetDownstreamModulationCtx(context.Background()) } func ( *WANCableLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetTFTPServer", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetTFTPServer is the legacy version of GetTFTPServerCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( string, error) { return .GetTFTPServerCtx(context.Background()) } func ( *WANCableLinkConfig1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetUpstreamChannelID", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetUpstreamChannelID is the legacy version of GetUpstreamChannelIDCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( uint32, error) { return .GetUpstreamChannelIDCtx(context.Background()) } func ( *WANCableLinkConfig1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetUpstreamFrequency", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetUpstreamFrequency is the legacy version of GetUpstreamFrequencyCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( uint32, error) { return .GetUpstreamFrequencyCtx(context.Background()) } // // Return values: // // * NewUpstreamModulation: allowed values: QPSK, 16QAM func ( *WANCableLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetUpstreamModulation", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetUpstreamModulation is the legacy version of GetUpstreamModulationCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( string, error) { return .GetUpstreamModulationCtx(context.Background()) } func ( *WANCableLinkConfig1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCableLinkConfig_1, "GetUpstreamPowerLevel", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetUpstreamPowerLevel is the legacy version of GetUpstreamPowerLevelCtx, but uses // context.Background() as the context. func ( *WANCableLinkConfig1) () ( uint32, error) { return .GetUpstreamPowerLevelCtx(context.Background()) } // WANCommonInterfaceConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type WANCommonInterfaceConfig1 struct { goupnp.ServiceClient } // NewWANCommonInterfaceConfig1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*WANCommonInterfaceConfig1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_WANCommonInterfaceConfig_1); != nil { return } = newWANCommonInterfaceConfig1ClientsFromGenericClients() return } // NewWANCommonInterfaceConfig1Clients is the legacy version of NewWANCommonInterfaceConfig1ClientsCtx, but uses // context.Background() as the context. func () ( []*WANCommonInterfaceConfig1, []error, error) { return NewWANCommonInterfaceConfig1ClientsCtx(context.Background()) } // NewWANCommonInterfaceConfig1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*WANCommonInterfaceConfig1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_WANCommonInterfaceConfig_1) if != nil { return nil, } return newWANCommonInterfaceConfig1ClientsFromGenericClients(), nil } // NewWANCommonInterfaceConfig1ClientsByURL is the legacy version of NewWANCommonInterfaceConfig1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*WANCommonInterfaceConfig1, error) { return NewWANCommonInterfaceConfig1ClientsByURLCtx(context.Background(), ) } // NewWANCommonInterfaceConfig1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*WANCommonInterfaceConfig1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_WANCommonInterfaceConfig_1) if != nil { return nil, } return newWANCommonInterfaceConfig1ClientsFromGenericClients(), nil } func newWANCommonInterfaceConfig1ClientsFromGenericClients( []goupnp.ServiceClient) []*WANCommonInterfaceConfig1 { := make([]*WANCommonInterfaceConfig1, len()) for := range { [] = &WANCommonInterfaceConfig1{[]} } return } func ( *WANCommonInterfaceConfig1) ( context.Context, uint16, ) ( string, string, error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi2(); != nil { return } // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetActiveConnection", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetActiveConnection is the legacy version of GetActiveConnectionCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) ( uint16) ( string, string, error) { return .GetActiveConnectionCtx(context.Background(), , ) } // // Return values: // // * NewWANAccessType: allowed values: DSL, POTS, Cable, Ethernet // // * NewPhysicalLinkStatus: allowed values: Up, Down func ( *WANCommonInterfaceConfig1) ( context.Context, ) ( string, uint32, uint32, string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetCommonLinkProperties", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetCommonLinkProperties is the legacy version of GetCommonLinkPropertiesCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) () ( string, uint32, uint32, string, error) { return .GetCommonLinkPropertiesCtx(context.Background()) } func ( *WANCommonInterfaceConfig1) ( context.Context, ) ( bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetEnabledForInternet", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetEnabledForInternet is the legacy version of GetEnabledForInternetCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) () ( bool, error) { return .GetEnabledForInternetCtx(context.Background()) } // // Return values: // // * NewMaximumActiveConnections: allowed value range: minimum=1, step=1 func ( *WANCommonInterfaceConfig1) ( context.Context, ) ( uint16, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetMaximumActiveConnections", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi2(.); != nil { return } // END Unmarshal arguments from response. return } // GetMaximumActiveConnections is the legacy version of GetMaximumActiveConnectionsCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) () ( uint16, error) { return .GetMaximumActiveConnectionsCtx(context.Background()) } func ( *WANCommonInterfaceConfig1) ( context.Context, ) ( uint64, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetTotalBytesReceived", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi8(.); != nil { return } // END Unmarshal arguments from response. return } // GetTotalBytesReceived is the legacy version of GetTotalBytesReceivedCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) () ( uint64, error) { return .GetTotalBytesReceivedCtx(context.Background()) } func ( *WANCommonInterfaceConfig1) ( context.Context, ) ( uint64, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetTotalBytesSent", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi8(.); != nil { return } // END Unmarshal arguments from response. return } // GetTotalBytesSent is the legacy version of GetTotalBytesSentCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) () ( uint64, error) { return .GetTotalBytesSentCtx(context.Background()) } func ( *WANCommonInterfaceConfig1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetTotalPacketsReceived", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetTotalPacketsReceived is the legacy version of GetTotalPacketsReceivedCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) () ( uint32, error) { return .GetTotalPacketsReceivedCtx(context.Background()) } func ( *WANCommonInterfaceConfig1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetTotalPacketsSent", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetTotalPacketsSent is the legacy version of GetTotalPacketsSentCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) () ( uint32, error) { return .GetTotalPacketsSentCtx(context.Background()) } func ( *WANCommonInterfaceConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "GetWANAccessProvider", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetWANAccessProvider is the legacy version of GetWANAccessProviderCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) () ( string, error) { return .GetWANAccessProviderCtx(context.Background()) } func ( *WANCommonInterfaceConfig1) ( context.Context, bool, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalBoolean(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANCommonInterfaceConfig_1, "SetEnabledForInternet", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetEnabledForInternet is the legacy version of SetEnabledForInternetCtx, but uses // context.Background() as the context. func ( *WANCommonInterfaceConfig1) ( bool) ( error) { return .SetEnabledForInternetCtx(context.Background(), , ) } // WANDSLLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANDSLLinkConfig:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type WANDSLLinkConfig1 struct { goupnp.ServiceClient } // NewWANDSLLinkConfig1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*WANDSLLinkConfig1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_WANDSLLinkConfig_1); != nil { return } = newWANDSLLinkConfig1ClientsFromGenericClients() return } // NewWANDSLLinkConfig1Clients is the legacy version of NewWANDSLLinkConfig1ClientsCtx, but uses // context.Background() as the context. func () ( []*WANDSLLinkConfig1, []error, error) { return NewWANDSLLinkConfig1ClientsCtx(context.Background()) } // NewWANDSLLinkConfig1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*WANDSLLinkConfig1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_WANDSLLinkConfig_1) if != nil { return nil, } return newWANDSLLinkConfig1ClientsFromGenericClients(), nil } // NewWANDSLLinkConfig1ClientsByURL is the legacy version of NewWANDSLLinkConfig1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*WANDSLLinkConfig1, error) { return NewWANDSLLinkConfig1ClientsByURLCtx(context.Background(), ) } // NewWANDSLLinkConfig1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*WANDSLLinkConfig1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_WANDSLLinkConfig_1) if != nil { return nil, } return newWANDSLLinkConfig1ClientsFromGenericClients(), nil } func newWANDSLLinkConfig1ClientsFromGenericClients( []goupnp.ServiceClient) []*WANDSLLinkConfig1 { := make([]*WANDSLLinkConfig1, len()) for := range { [] = &WANDSLLinkConfig1{[]} } return } func ( *WANDSLLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "GetATMEncapsulation", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetATMEncapsulation is the legacy version of GetATMEncapsulationCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) () ( string, error) { return .GetATMEncapsulationCtx(context.Background()) } func ( *WANDSLLinkConfig1) ( context.Context, ) ( bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "GetAutoConfig", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetAutoConfig is the legacy version of GetAutoConfigCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) () ( bool, error) { return .GetAutoConfigCtx(context.Background()) } // // Return values: // // * NewLinkStatus: allowed values: Up, Down func ( *WANDSLLinkConfig1) ( context.Context, ) ( string, string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "GetDSLLinkInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDSLLinkInfo is the legacy version of GetDSLLinkInfoCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) () ( string, string, error) { return .GetDSLLinkInfoCtx(context.Background()) } func ( *WANDSLLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "GetDestinationAddress", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDestinationAddress is the legacy version of GetDestinationAddressCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) () ( string, error) { return .GetDestinationAddressCtx(context.Background()) } func ( *WANDSLLinkConfig1) ( context.Context, ) ( bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "GetFCSPreserved", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetFCSPreserved is the legacy version of GetFCSPreservedCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) () ( bool, error) { return .GetFCSPreservedCtx(context.Background()) } func ( *WANDSLLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "GetModulationType", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetModulationType is the legacy version of GetModulationTypeCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) () ( string, error) { return .GetModulationTypeCtx(context.Background()) } func ( *WANDSLLinkConfig1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "SetATMEncapsulation", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetATMEncapsulation is the legacy version of SetATMEncapsulationCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) ( string) ( error) { return .SetATMEncapsulationCtx(context.Background(), , ) } func ( *WANDSLLinkConfig1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "SetDSLLinkType", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetDSLLinkType is the legacy version of SetDSLLinkTypeCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) ( string) ( error) { return .SetDSLLinkTypeCtx(context.Background(), , ) } func ( *WANDSLLinkConfig1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "SetDestinationAddress", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetDestinationAddress is the legacy version of SetDestinationAddressCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) ( string) ( error) { return .SetDestinationAddressCtx(context.Background(), , ) } func ( *WANDSLLinkConfig1) ( context.Context, bool, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalBoolean(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANDSLLinkConfig_1, "SetFCSPreserved", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetFCSPreserved is the legacy version of SetFCSPreservedCtx, but uses // context.Background() as the context. func ( *WANDSLLinkConfig1) ( bool) ( error) { return .SetFCSPreservedCtx(context.Background(), , ) } // WANEthernetLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type WANEthernetLinkConfig1 struct { goupnp.ServiceClient } // NewWANEthernetLinkConfig1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*WANEthernetLinkConfig1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_WANEthernetLinkConfig_1); != nil { return } = newWANEthernetLinkConfig1ClientsFromGenericClients() return } // NewWANEthernetLinkConfig1Clients is the legacy version of NewWANEthernetLinkConfig1ClientsCtx, but uses // context.Background() as the context. func () ( []*WANEthernetLinkConfig1, []error, error) { return NewWANEthernetLinkConfig1ClientsCtx(context.Background()) } // NewWANEthernetLinkConfig1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*WANEthernetLinkConfig1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_WANEthernetLinkConfig_1) if != nil { return nil, } return newWANEthernetLinkConfig1ClientsFromGenericClients(), nil } // NewWANEthernetLinkConfig1ClientsByURL is the legacy version of NewWANEthernetLinkConfig1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*WANEthernetLinkConfig1, error) { return NewWANEthernetLinkConfig1ClientsByURLCtx(context.Background(), ) } // NewWANEthernetLinkConfig1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*WANEthernetLinkConfig1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_WANEthernetLinkConfig_1) if != nil { return nil, } return newWANEthernetLinkConfig1ClientsFromGenericClients(), nil } func newWANEthernetLinkConfig1ClientsFromGenericClients( []goupnp.ServiceClient) []*WANEthernetLinkConfig1 { := make([]*WANEthernetLinkConfig1, len()) for := range { [] = &WANEthernetLinkConfig1{[]} } return } // // Return values: // // * NewEthernetLinkStatus: allowed values: Up, Down func ( *WANEthernetLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANEthernetLinkConfig_1, "GetEthernetLinkStatus", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetEthernetLinkStatus is the legacy version of GetEthernetLinkStatusCtx, but uses // context.Background() as the context. func ( *WANEthernetLinkConfig1) () ( string, error) { return .GetEthernetLinkStatusCtx(context.Background()) } // WANIPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPConnection:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type WANIPConnection1 struct { goupnp.ServiceClient } // NewWANIPConnection1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*WANIPConnection1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_WANIPConnection_1); != nil { return } = newWANIPConnection1ClientsFromGenericClients() return } // NewWANIPConnection1Clients is the legacy version of NewWANIPConnection1ClientsCtx, but uses // context.Background() as the context. func () ( []*WANIPConnection1, []error, error) { return NewWANIPConnection1ClientsCtx(context.Background()) } // NewWANIPConnection1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*WANIPConnection1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_WANIPConnection_1) if != nil { return nil, } return newWANIPConnection1ClientsFromGenericClients(), nil } // NewWANIPConnection1ClientsByURL is the legacy version of NewWANIPConnection1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*WANIPConnection1, error) { return NewWANIPConnection1ClientsByURLCtx(context.Background(), ) } // NewWANIPConnection1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*WANIPConnection1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_WANIPConnection_1) if != nil { return nil, } return newWANIPConnection1ClientsFromGenericClients(), nil } func newWANIPConnection1ClientsFromGenericClients( []goupnp.ServiceClient) []*WANIPConnection1 { := make([]*WANIPConnection1, len()) for := range { [] = &WANIPConnection1{[]} } return } // // Arguments: // // * NewProtocol: allowed values: TCP, UDP func ( *WANIPConnection1) ( context.Context, string, uint16, string, uint16, string, bool, string, uint32, ) ( error) { // Request structure. := &struct { string string string string string string string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi2(); != nil { return } if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi2(); != nil { return } if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalBoolean(); != nil { return } if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "AddPortMapping", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // AddPortMapping is the legacy version of AddPortMappingCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) ( string, uint16, string, uint16, string, bool, string, uint32) ( error) { return .AddPortMappingCtx(context.Background(), , , , , , , , , ) } // // Arguments: // // * NewProtocol: allowed values: TCP, UDP func ( *WANIPConnection1) ( context.Context, string, uint16, string, ) ( error) { // Request structure. := &struct { string string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi2(); != nil { return } if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "DeletePortMapping", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // DeletePortMapping is the legacy version of DeletePortMappingCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) ( string, uint16, string) ( error) { return .DeletePortMappingCtx(context.Background(), , , , ) } func ( *WANIPConnection1) ( context.Context, ) ( error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "ForceTermination", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // ForceTermination is the legacy version of ForceTerminationCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( error) { return .ForceTerminationCtx(context.Background()) } func ( *WANIPConnection1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetAutoDisconnectTime", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetAutoDisconnectTime is the legacy version of GetAutoDisconnectTimeCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( uint32, error) { return .GetAutoDisconnectTimeCtx(context.Background()) } // // Return values: // // * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, IP_Bridged func ( *WANIPConnection1) ( context.Context, ) ( string, string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetConnectionTypeInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetConnectionTypeInfo is the legacy version of GetConnectionTypeInfoCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( string, string, error) { return .GetConnectionTypeInfoCtx(context.Background()) } func ( *WANIPConnection1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetExternalIPAddress", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetExternalIPAddress is the legacy version of GetExternalIPAddressCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( string, error) { return .GetExternalIPAddressCtx(context.Background()) } // // Return values: // // * NewProtocol: allowed values: TCP, UDP func ( *WANIPConnection1) ( context.Context, uint16, ) ( string, uint16, string, uint16, string, bool, string, uint32, error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi2(); != nil { return } // END Marshal arguments into request. // Response structure. := &struct { string string string string string string string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetGenericPortMappingEntry", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi2(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi2(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalBoolean(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetGenericPortMappingEntry is the legacy version of GetGenericPortMappingEntryCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) ( uint16) ( string, uint16, string, uint16, string, bool, string, uint32, error) { return .GetGenericPortMappingEntryCtx(context.Background(), , ) } func ( *WANIPConnection1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetIdleDisconnectTime", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetIdleDisconnectTime is the legacy version of GetIdleDisconnectTimeCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( uint32, error) { return .GetIdleDisconnectTimeCtx(context.Background()) } func ( *WANIPConnection1) ( context.Context, ) ( bool, bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetNATRSIPStatus", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetNATRSIPStatus is the legacy version of GetNATRSIPStatusCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( bool, bool, error) { return .GetNATRSIPStatusCtx(context.Background()) } // // Arguments: // // * NewProtocol: allowed values: TCP, UDP func ( *WANIPConnection1) ( context.Context, string, uint16, string, ) ( uint16, string, bool, string, uint32, error) { // Request structure. := &struct { string string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi2(); != nil { return } if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := &struct { string string string string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetSpecificPortMappingEntry", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi2(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalBoolean(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetSpecificPortMappingEntry is the legacy version of GetSpecificPortMappingEntryCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) ( string, uint16, string) ( uint16, string, bool, string, uint32, error) { return .GetSpecificPortMappingEntryCtx(context.Background(), , , , ) } // // Return values: // // * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected // // * NewLastConnectionError: allowed values: ERROR_NONE func ( *WANIPConnection1) ( context.Context, ) ( string, string, uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetStatusInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetStatusInfo is the legacy version of GetStatusInfoCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( string, string, uint32, error) { return .GetStatusInfoCtx(context.Background()) } func ( *WANIPConnection1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "GetWarnDisconnectDelay", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetWarnDisconnectDelay is the legacy version of GetWarnDisconnectDelayCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( uint32, error) { return .GetWarnDisconnectDelayCtx(context.Background()) } func ( *WANIPConnection1) ( context.Context, ) ( error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "RequestConnection", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // RequestConnection is the legacy version of RequestConnectionCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( error) { return .RequestConnectionCtx(context.Background()) } func ( *WANIPConnection1) ( context.Context, ) ( error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "RequestTermination", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // RequestTermination is the legacy version of RequestTerminationCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) () ( error) { return .RequestTerminationCtx(context.Background()) } func ( *WANIPConnection1) ( context.Context, uint32, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "SetAutoDisconnectTime", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetAutoDisconnectTime is the legacy version of SetAutoDisconnectTimeCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) ( uint32) ( error) { return .SetAutoDisconnectTimeCtx(context.Background(), , ) } func ( *WANIPConnection1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "SetConnectionType", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetConnectionType is the legacy version of SetConnectionTypeCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) ( string) ( error) { return .SetConnectionTypeCtx(context.Background(), , ) } func ( *WANIPConnection1) ( context.Context, uint32, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "SetIdleDisconnectTime", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetIdleDisconnectTime is the legacy version of SetIdleDisconnectTimeCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) ( uint32) ( error) { return .SetIdleDisconnectTimeCtx(context.Background(), , ) } func ( *WANIPConnection1) ( context.Context, uint32, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANIPConnection_1, "SetWarnDisconnectDelay", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetWarnDisconnectDelay is the legacy version of SetWarnDisconnectDelayCtx, but uses // context.Background() as the context. func ( *WANIPConnection1) ( uint32) ( error) { return .SetWarnDisconnectDelayCtx(context.Background(), , ) } // WANPOTSLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type WANPOTSLinkConfig1 struct { goupnp.ServiceClient } // NewWANPOTSLinkConfig1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*WANPOTSLinkConfig1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_WANPOTSLinkConfig_1); != nil { return } = newWANPOTSLinkConfig1ClientsFromGenericClients() return } // NewWANPOTSLinkConfig1Clients is the legacy version of NewWANPOTSLinkConfig1ClientsCtx, but uses // context.Background() as the context. func () ( []*WANPOTSLinkConfig1, []error, error) { return NewWANPOTSLinkConfig1ClientsCtx(context.Background()) } // NewWANPOTSLinkConfig1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*WANPOTSLinkConfig1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_WANPOTSLinkConfig_1) if != nil { return nil, } return newWANPOTSLinkConfig1ClientsFromGenericClients(), nil } // NewWANPOTSLinkConfig1ClientsByURL is the legacy version of NewWANPOTSLinkConfig1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*WANPOTSLinkConfig1, error) { return NewWANPOTSLinkConfig1ClientsByURLCtx(context.Background(), ) } // NewWANPOTSLinkConfig1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*WANPOTSLinkConfig1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_WANPOTSLinkConfig_1) if != nil { return nil, } return newWANPOTSLinkConfig1ClientsFromGenericClients(), nil } func newWANPOTSLinkConfig1ClientsFromGenericClients( []goupnp.ServiceClient) []*WANPOTSLinkConfig1 { := make([]*WANPOTSLinkConfig1, len()) for := range { [] = &WANPOTSLinkConfig1{[]} } return } func ( *WANPOTSLinkConfig1) ( context.Context, ) ( uint32, uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "GetCallRetryInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetCallRetryInfo is the legacy version of GetCallRetryInfoCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) () ( uint32, uint32, error) { return .GetCallRetryInfoCtx(context.Background()) } func ( *WANPOTSLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "GetDataCompression", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDataCompression is the legacy version of GetDataCompressionCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) () ( string, error) { return .GetDataCompressionCtx(context.Background()) } func ( *WANPOTSLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "GetDataModulationSupported", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDataModulationSupported is the legacy version of GetDataModulationSupportedCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) () ( string, error) { return .GetDataModulationSupportedCtx(context.Background()) } func ( *WANPOTSLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "GetDataProtocol", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetDataProtocol is the legacy version of GetDataProtocolCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) () ( string, error) { return .GetDataProtocolCtx(context.Background()) } func ( *WANPOTSLinkConfig1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "GetFclass", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetFclass is the legacy version of GetFclassCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) () ( string, error) { return .GetFclassCtx(context.Background()) } // // Return values: // // * NewLinkType: allowed values: PPP_Dialup func ( *WANPOTSLinkConfig1) ( context.Context, ) ( string, string, string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "GetISPInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetISPInfo is the legacy version of GetISPInfoCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) () ( string, string, string, error) { return .GetISPInfoCtx(context.Background()) } func ( *WANPOTSLinkConfig1) ( context.Context, ) ( bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "GetPlusVTRCommandSupported", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetPlusVTRCommandSupported is the legacy version of GetPlusVTRCommandSupportedCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) () ( bool, error) { return .GetPlusVTRCommandSupportedCtx(context.Background()) } func ( *WANPOTSLinkConfig1) ( context.Context, uint32, uint32, ) ( error) { // Request structure. := &struct { string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi4(); != nil { return } if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "SetCallRetryInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetCallRetryInfo is the legacy version of SetCallRetryInfoCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) ( uint32, uint32) ( error) { return .SetCallRetryInfoCtx(context.Background(), , , ) } // // Arguments: // // * NewLinkType: allowed values: PPP_Dialup func ( *WANPOTSLinkConfig1) ( context.Context, string, string, string, ) ( error) { // Request structure. := &struct { string string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPOTSLinkConfig_1, "SetISPInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetISPInfo is the legacy version of SetISPInfoCtx, but uses // context.Background() as the context. func ( *WANPOTSLinkConfig1) ( string, string, string) ( error) { return .SetISPInfoCtx(context.Background(), , , , ) } // WANPPPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPPPConnection:1". See // goupnp.ServiceClient, which contains RootDevice and Service attributes which // are provided for informational value. type WANPPPConnection1 struct { goupnp.ServiceClient } // NewWANPPPConnection1ClientsCtx discovers instances of the service on the network, // and returns clients to any that are found. errors will contain an error for // any devices that replied but which could not be queried, and err will be set // if the discovery process failed outright. // // This is a typical entry calling point into this package. func ( context.Context) ( []*WANPPPConnection1, []error, error) { var []goupnp.ServiceClient if , , = goupnp.NewServiceClientsCtx(, URN_WANPPPConnection_1); != nil { return } = newWANPPPConnection1ClientsFromGenericClients() return } // NewWANPPPConnection1Clients is the legacy version of NewWANPPPConnection1ClientsCtx, but uses // context.Background() as the context. func () ( []*WANPPPConnection1, []error, error) { return NewWANPPPConnection1ClientsCtx(context.Background()) } // NewWANPPPConnection1ClientsByURLCtx discovers instances of the service at the given // URL, and returns clients to any that are found. An error is returned if // there was an error probing the service. // // This is a typical entry calling point into this package when reusing an // previously discovered service URL. func ( context.Context, *url.URL) ([]*WANPPPConnection1, error) { , := goupnp.NewServiceClientsByURLCtx(, , URN_WANPPPConnection_1) if != nil { return nil, } return newWANPPPConnection1ClientsFromGenericClients(), nil } // NewWANPPPConnection1ClientsByURL is the legacy version of NewWANPPPConnection1ClientsByURLCtx, but uses // context.Background() as the context. func ( *url.URL) ([]*WANPPPConnection1, error) { return NewWANPPPConnection1ClientsByURLCtx(context.Background(), ) } // NewWANPPPConnection1ClientsFromRootDevice discovers instances of the service in // a given root device, and returns clients to any that are found. An error is // returned if there was not at least one instance of the service within the // device. The location parameter is simply assigned to the Location attribute // of the wrapped ServiceClient(s). // // This is a typical entry calling point into this package when reusing an // previously discovered root device. func ( *goupnp.RootDevice, *url.URL) ([]*WANPPPConnection1, error) { , := goupnp.NewServiceClientsFromRootDevice(, , URN_WANPPPConnection_1) if != nil { return nil, } return newWANPPPConnection1ClientsFromGenericClients(), nil } func newWANPPPConnection1ClientsFromGenericClients( []goupnp.ServiceClient) []*WANPPPConnection1 { := make([]*WANPPPConnection1, len()) for := range { [] = &WANPPPConnection1{[]} } return } // // Arguments: // // * NewProtocol: allowed values: TCP, UDP func ( *WANPPPConnection1) ( context.Context, string, uint16, string, uint16, string, bool, string, uint32, ) ( error) { // Request structure. := &struct { string string string string string string string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi2(); != nil { return } if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi2(); != nil { return } if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalBoolean(); != nil { return } if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "AddPortMapping", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // AddPortMapping is the legacy version of AddPortMappingCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( string, uint16, string, uint16, string, bool, string, uint32) ( error) { return .AddPortMappingCtx(context.Background(), , , , , , , , , ) } func ( *WANPPPConnection1) ( context.Context, string, string, ) ( error) { // Request structure. := &struct { string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "ConfigureConnection", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // ConfigureConnection is the legacy version of ConfigureConnectionCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( string, string) ( error) { return .ConfigureConnectionCtx(context.Background(), , , ) } // // Arguments: // // * NewProtocol: allowed values: TCP, UDP func ( *WANPPPConnection1) ( context.Context, string, uint16, string, ) ( error) { // Request structure. := &struct { string string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi2(); != nil { return } if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "DeletePortMapping", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // DeletePortMapping is the legacy version of DeletePortMappingCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( string, uint16, string) ( error) { return .DeletePortMappingCtx(context.Background(), , , , ) } func ( *WANPPPConnection1) ( context.Context, ) ( error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "ForceTermination", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // ForceTermination is the legacy version of ForceTerminationCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( error) { return .ForceTerminationCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetAutoDisconnectTime", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetAutoDisconnectTime is the legacy version of GetAutoDisconnectTimeCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( uint32, error) { return .GetAutoDisconnectTimeCtx(context.Background()) } // // Return values: // // * NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, DHCP_Spoofed, PPPoE_Bridged, PPTP_Relay, L2TP_Relay, PPPoE_Relay func ( *WANPPPConnection1) ( context.Context, ) ( string, string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetConnectionTypeInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetConnectionTypeInfo is the legacy version of GetConnectionTypeInfoCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( string, string, error) { return .GetConnectionTypeInfoCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetExternalIPAddress", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetExternalIPAddress is the legacy version of GetExternalIPAddressCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( string, error) { return .GetExternalIPAddressCtx(context.Background()) } // // Return values: // // * NewProtocol: allowed values: TCP, UDP func ( *WANPPPConnection1) ( context.Context, uint16, ) ( string, uint16, string, uint16, string, bool, string, uint32, error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi2(); != nil { return } // END Marshal arguments into request. // Response structure. := &struct { string string string string string string string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetGenericPortMappingEntry", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi2(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi2(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalBoolean(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetGenericPortMappingEntry is the legacy version of GetGenericPortMappingEntryCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( uint16) ( string, uint16, string, uint16, string, bool, string, uint32, error) { return .GetGenericPortMappingEntryCtx(context.Background(), , ) } func ( *WANPPPConnection1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetIdleDisconnectTime", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetIdleDisconnectTime is the legacy version of GetIdleDisconnectTimeCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( uint32, error) { return .GetIdleDisconnectTimeCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( uint32, uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetLinkLayerMaxBitRates", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetLinkLayerMaxBitRates is the legacy version of GetLinkLayerMaxBitRatesCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( uint32, uint32, error) { return .GetLinkLayerMaxBitRatesCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( bool, bool, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetNATRSIPStatus", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalBoolean(.); != nil { return } if , = soap.UnmarshalBoolean(.); != nil { return } // END Unmarshal arguments from response. return } // GetNATRSIPStatus is the legacy version of GetNATRSIPStatusCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( bool, bool, error) { return .GetNATRSIPStatusCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetPPPAuthenticationProtocol", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetPPPAuthenticationProtocol is the legacy version of GetPPPAuthenticationProtocolCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( string, error) { return .GetPPPAuthenticationProtocolCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetPPPCompressionProtocol", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetPPPCompressionProtocol is the legacy version of GetPPPCompressionProtocolCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( string, error) { return .GetPPPCompressionProtocolCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetPPPEncryptionProtocol", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetPPPEncryptionProtocol is the legacy version of GetPPPEncryptionProtocolCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( string, error) { return .GetPPPEncryptionProtocolCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetPassword", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetPassword is the legacy version of GetPasswordCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( string, error) { return .GetPasswordCtx(context.Background()) } // // Arguments: // // * NewProtocol: allowed values: TCP, UDP func ( *WANPPPConnection1) ( context.Context, string, uint16, string, ) ( uint16, string, bool, string, uint32, error) { // Request structure. := &struct { string string string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } if ., = soap.MarshalUi2(); != nil { return } if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := &struct { string string string string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetSpecificPortMappingEntry", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi2(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalBoolean(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetSpecificPortMappingEntry is the legacy version of GetSpecificPortMappingEntryCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( string, uint16, string) ( uint16, string, bool, string, uint32, error) { return .GetSpecificPortMappingEntryCtx(context.Background(), , , , ) } // // Return values: // // * NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected // // * NewLastConnectionError: allowed values: ERROR_NONE func ( *WANPPPConnection1) ( context.Context, ) ( string, string, uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string string string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetStatusInfo", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalString(.); != nil { return } if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetStatusInfo is the legacy version of GetStatusInfoCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( string, string, uint32, error) { return .GetStatusInfoCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( string, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetUserName", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalString(.); != nil { return } // END Unmarshal arguments from response. return } // GetUserName is the legacy version of GetUserNameCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( string, error) { return .GetUserNameCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( uint32, error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := &struct { string }{} // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "GetWarnDisconnectDelay", , ); != nil { return } // BEGIN Unmarshal arguments from response. if , = soap.UnmarshalUi4(.); != nil { return } // END Unmarshal arguments from response. return } // GetWarnDisconnectDelay is the legacy version of GetWarnDisconnectDelayCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( uint32, error) { return .GetWarnDisconnectDelayCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "RequestConnection", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // RequestConnection is the legacy version of RequestConnectionCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( error) { return .RequestConnectionCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, ) ( error) { // Request structure. := interface{}(nil) // BEGIN Marshal arguments into request. // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "RequestTermination", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // RequestTermination is the legacy version of RequestTerminationCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) () ( error) { return .RequestTerminationCtx(context.Background()) } func ( *WANPPPConnection1) ( context.Context, uint32, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "SetAutoDisconnectTime", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetAutoDisconnectTime is the legacy version of SetAutoDisconnectTimeCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( uint32) ( error) { return .SetAutoDisconnectTimeCtx(context.Background(), , ) } func ( *WANPPPConnection1) ( context.Context, string, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalString(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "SetConnectionType", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetConnectionType is the legacy version of SetConnectionTypeCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( string) ( error) { return .SetConnectionTypeCtx(context.Background(), , ) } func ( *WANPPPConnection1) ( context.Context, uint32, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "SetIdleDisconnectTime", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetIdleDisconnectTime is the legacy version of SetIdleDisconnectTimeCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( uint32) ( error) { return .SetIdleDisconnectTimeCtx(context.Background(), , ) } func ( *WANPPPConnection1) ( context.Context, uint32, ) ( error) { // Request structure. := &struct { string }{} // BEGIN Marshal arguments into request. if ., = soap.MarshalUi4(); != nil { return } // END Marshal arguments into request. // Response structure. := interface{}(nil) // Perform the SOAP call. if = .SOAPClient.PerformActionCtx(, URN_WANPPPConnection_1, "SetWarnDisconnectDelay", , ); != nil { return } // BEGIN Unmarshal arguments from response. // END Unmarshal arguments from response. return } // SetWarnDisconnectDelay is the legacy version of SetWarnDisconnectDelayCtx, but uses // context.Background() as the context. func ( *WANPPPConnection1) ( uint32) ( error) { return .SetWarnDisconnectDelayCtx(context.Background(), , ) }