Ejemplo n.º 1
0
 public bool ShowDrivers(out string outputs,
                         string @interface = null)
 {
     return(Execute("show drivers"
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Ejemplo n.º 2
0
 public bool ShowCacheState(out string outputs,
                            string url = null)
 {
     return(Execute("show cachestate"
                    + ParameterUtil.Optional(nameof(url), url),
                    out outputs));
 }
Ejemplo n.º 3
0
 public bool ShowHostedNetwork(out string outputs,
                               ShowHostedNetworkSetting showHostedNetworkSetting = null)
 {
     return(Execute("show hostednetwork"
                    + ParameterUtil.Optional(nameof(showHostedNetworkSetting), showHostedNetworkSetting),
                    out outputs));
 }
Ejemplo n.º 4
0
 public bool Disconnect(out string outputs,
                        string @interface = null)
 {
     return(Execute("disconnect"
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Ejemplo n.º 5
0
 public bool SetTracing(out string outputs,
                        TracingMode mode)
 {
     return(Execute("set tracing"
                    + ParameterUtil.Optional(nameof(mode), mode),
                    out outputs));
 }
Ejemplo n.º 6
0
 public bool ExportProfile(out string outputs,
                           string folder,
                           string @interface = null)
 {
     return(Execute("export profile"
                    + ParameterUtil.Required(nameof(folder), folder, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Ejemplo n.º 7
0
 public bool ShowNetworks(out string outputs,
                          string @interface = null,
                          NetworkMode mode  = null)
 {
     return(Execute("show networks"
                    + ParameterUtil.Optional(nameof(@interface), @interface, true)
                    + ParameterUtil.Optional(nameof(mode), mode),
                    out outputs));
 }
Ejemplo n.º 8
0
 public bool DeleteProfile(out string outputs,
                           string filename,
                           string @interface = null)
 {
     return(Execute("delete profile"
                    + ParameterUtil.Required(nameof(filename), filename, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Ejemplo n.º 9
0
 public bool ShowServiceState(out string outputs,
                              ServiceStateView view = null,
                              bool?verbose          = null)
 {
     return(Execute("show servicestate"
                    + ParameterUtil.Optional(nameof(view), view, true)
                    + ParameterUtil.Optional(nameof(verbose), verbose, "yes", "no"),
                    out outputs));
 }
Ejemplo n.º 10
0
 public bool DeleteCache(out string outputs,
                         string url,
                         bool?recursive = null)
 {
     return(Execute("delete cache"
                    + ParameterUtil.Required(nameof(url), url)
                    + ParameterUtil.Optional(nameof(recursive), recursive, "yes", "no"),
                    out outputs));
 }
Ejemplo n.º 11
0
 public bool SetProfileType(out string outputs,
                            string name,
                            ProfileType profiletype,
                            string @interface = null)
 {
     return(Execute("set profiletype"
                    + ParameterUtil.Required(nameof(name), name, true)
                    + ParameterUtil.Required(nameof(profiletype), profiletype)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Ejemplo n.º 12
0
 public bool AddFilter(out string outputs,
                       FilterPermission filterPermission = null,
                       string ssid = null,
                       FilterNetworkType networktype = null)
 {
     return(Execute("add filter"
                    + ParameterUtil.Optional(nameof(filterPermission), filterPermission)
                    + ParameterUtil.Optional(nameof(ssid), ssid, true)
                    + ParameterUtil.Optional(nameof(networktype), networktype),
                    out outputs));
 }
Ejemplo n.º 13
0
 public bool ShowWlanReport(out string outputs,
                            string duration = null,
                            string log      = null,
                            string logger   = null)
 {
     return(Execute("show wlanreport"
                    + ParameterUtil.Optional(nameof(duration), duration, true)
                    + ParameterUtil.Optional(nameof(log), log, true)
                    + ParameterUtil.Optional(nameof(logger), logger, true),
                    out outputs));
 }
Ejemplo n.º 14
0
 public bool AddProfile(out string outputs,
                        string filename,
                        string @interface       = null,
                        ProfileUser profileUser = null)
 {
     return(Execute("add profile"
                    + ParameterUtil.Required(nameof(filename), filename, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true)
                    + ParameterUtil.Optional(nameof(profileUser), profileUser),
                    out outputs));
 }
Ejemplo n.º 15
0
 public bool ShowProfile(out string outputs,
                         string name       = null,
                         string @interface = null,
                         string key        = null)
 {
     return(Execute("show profile"
                    + ParameterUtil.Optional(nameof(name), name, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true)
                    + ParameterUtil.Optional(nameof(key), key),
                    out outputs));
 }
Ejemplo n.º 16
0
 public bool Connect(out string outputs,
                     string name,
                     string ssid       = null,
                     string @interface = null)
 {
     return(Execute("connect"
                    + ParameterUtil.Required(nameof(name), name, true)
                    + ParameterUtil.Optional(nameof(ssid), ssid, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Ejemplo n.º 17
0
 public bool SetHostedNetwork(out string outputs,
                              bool?mode   = null,
                              string ssid = null,
                              string key  = null,
                              HostedNetworkKeyUsage hostedNetworkKeyUsage = null)
 {
     return(Execute("set hostednetwork"
                    + ParameterUtil.Optional(nameof(mode), mode, "allow", "disallow")
                    + ParameterUtil.Optional(nameof(mode), ssid, true)
                    + ParameterUtil.Optional(nameof(mode), key)
                    + ParameterUtil.Optional(nameof(mode), hostedNetworkKeyUsage),
                    out outputs));
 }
Ejemplo n.º 18
0
 public bool AddUrlAcl(out string outputs,
                       string url,
                       string user     = null,
                       bool?listen     = null,
                       bool? @delegate = null,
                       string sddl     = null)
 {
     return(Execute("add urlacl"
                    + ParameterUtil.Required(nameof(url), url)
                    + ParameterUtil.Optional(nameof(user), user)
                    + ParameterUtil.Optional(nameof(listen), listen, "yes", "no")
                    + ParameterUtil.Optional(nameof(@delegate), @delegate, "yes", "no")
                    + ParameterUtil.Optional(nameof(sddl), sddl),
                    out outputs));
 }
Ejemplo n.º 19
0
 public bool AddSslCert(out string outputs,
                        Port port,
                        string appid,
                        string certhash                 = null,
                        string certstorename            = null,
                        bool?verifyclientcertrevocation = null,
                        bool?verifyrevocationwithcachedclientcertonly = null,
                        bool?usagecheck = null,
                        uint?revocationfreshnesstime = null,
                        uint?urlretrievaltimeout     = null,
                        string sslctlidentifier      = null,
                        string sslctlstorename       = null,
                        bool?dsmapperusage           = null,
                        bool?clientcertnegotiation   = null,
                        bool?reject              = null,
                        bool?disablehttp2        = null,
                        bool?disablequic         = null,
                        bool?disabletls13        = null,
                        bool?disableocspstapling = null)
 {
     return(Execute("add sslcert"
                    + ParameterUtil.Required(port.TypeName, port)
                    + ParameterUtil.Required(nameof(appid), appid)
                    + ParameterUtil.Optional(nameof(certhash), certhash)
                    + ParameterUtil.Optional(nameof(certstorename), certstorename)
                    + ParameterUtil.Optional(nameof(verifyclientcertrevocation), verifyclientcertrevocation, "enable", "disable")
                    + ParameterUtil.Optional(nameof(verifyrevocationwithcachedclientcertonly),
                                             verifyrevocationwithcachedclientcertonly,
                                             "enable", "disable")
                    + ParameterUtil.Optional(nameof(usagecheck), usagecheck, "enable", "disable")
                    + ParameterUtil.Optional(nameof(revocationfreshnesstime), revocationfreshnesstime)
                    + ParameterUtil.Optional(nameof(urlretrievaltimeout), urlretrievaltimeout)
                    + ParameterUtil.Optional(nameof(sslctlidentifier), sslctlidentifier)
                    + ParameterUtil.Optional(nameof(sslctlstorename), sslctlstorename)
                    + ParameterUtil.Optional(nameof(dsmapperusage), dsmapperusage, "enable", "disable")
                    + ParameterUtil.Optional(nameof(clientcertnegotiation), clientcertnegotiation, "enable", "disable")
                    + ParameterUtil.Optional(nameof(reject), reject, "enable", "disable")
                    + ParameterUtil.Optional(nameof(disablehttp2), disablehttp2, "enable", "disable")
                    + ParameterUtil.Optional(nameof(disablequic), disablequic, "enable", "disable")
                    + ParameterUtil.Optional(nameof(disabletls13), disabletls13, "enable", "disable")
                    + ParameterUtil.Optional(nameof(disableocspstapling), disableocspstapling, "enable", "disable"),
                    out outputs));
 }
Ejemplo n.º 20
0
 public bool SetProfileParameter(out string outputs,
                                 string @interface        = null,
                                 ProfileAuthMode autoMode = null,
                                 ProfileSsoMode ssoMode   = null,
                                 int?maxDelay             = null,
                                 bool?allowDialog         = null,
                                 bool?userVLAN            = null,
                                 bool?oneXEnabled         = null,
                                 bool?oneXEnforced        = null)
 {
     return(Execute("set profileparameter"
                    + ParameterUtil.Optional(nameof(@interface), @interface, true)
                    + ParameterUtil.Optional(nameof(autoMode), autoMode)
                    + ParameterUtil.Optional(nameof(ssoMode), ssoMode)
                    + ParameterUtil.Optional(nameof(maxDelay), maxDelay)
                    + ParameterUtil.Optional(nameof(allowDialog), allowDialog, "yes", "no")
                    + ParameterUtil.Optional(nameof(userVLAN), userVLAN, "yes", "no")
                    + ParameterUtil.Optional(nameof(oneXEnabled), oneXEnabled, "yes", "no")
                    + ParameterUtil.Optional(nameof(oneXEnforced), oneXEnforced, "yes", "no"),
                    out outputs));
 }
Ejemplo n.º 21
0
 public bool SetProfileParameter(out string outputs,
                                 string name,
                                 string @interface = null,
                                 string SSIDname   = null,
                                 ProfileConnectionType profileConnectionType = null,
                                 bool?autoSwitch = null,
                                 ProfileConnectionMode profileConnectionMode = null,
                                 bool?nonBroadCast = null,
                                 ProfileRandomization profileRandomization   = null,
                                 ProfileAuthentication profileAuthentication = null,
                                 ProfileEncryption profileEncryption         = null,
                                 ProfileKeyType profileKeyType = null,
                                 int?keyIndex                    = null,
                                 string keyMaterial              = null,
                                 bool?PMKCacheMode               = null,
                                 int?PMKCacheSize                = null,
                                 int?PMKCacheTTL                 = null,
                                 bool?preAuthMode                = null,
                                 int?preAuthThrottle             = null,
                                 bool?FIPS                       = null,
                                 bool?useOneX                    = null,
                                 ProfileAuthMode profileAuthMode = null,
                                 ProfileSsoMode profileSsoMode   = null,
                                 int?maxDelay                    = null,
                                 bool?allowDialog                = null,
                                 bool?userVLAN                   = null,
                                 int?heldPeriod                  = null,
                                 int?AuthPeriod                  = null,
                                 int?StartPeriod                 = null,
                                 int?maxStart                    = null,
                                 int?maxAuthFailures             = null,
                                 bool?cacheUserData              = null,
                                 ProfileCost profileCost         = null)
 {
     return(Execute("set profileparameter"
                    + ParameterUtil.Required(nameof(name), name, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true)
                    + ParameterUtil.Optional(nameof(SSIDname), SSIDname, true)
                    + ParameterUtil.Optional(nameof(profileConnectionType), profileConnectionType)
                    + ParameterUtil.Optional(nameof(autoSwitch), autoSwitch, "yes", "no")
                    + ParameterUtil.Optional(nameof(profileRandomization), profileRandomization)
                    + ParameterUtil.Optional(nameof(profileAuthentication), profileAuthentication)
                    + ParameterUtil.Optional(nameof(profileEncryption), profileEncryption)
                    + ParameterUtil.Optional(nameof(profileKeyType), profileKeyType)
                    + ParameterUtil.Optional(nameof(keyIndex), keyIndex)
                    + ParameterUtil.Optional(nameof(keyMaterial), keyMaterial, true)
                    + ParameterUtil.Optional(nameof(PMKCacheMode), PMKCacheMode, "yes", "no")
                    + ParameterUtil.Optional(nameof(PMKCacheSize), PMKCacheSize)
                    + ParameterUtil.Optional(nameof(PMKCacheTTL), PMKCacheTTL)
                    + ParameterUtil.Optional(nameof(preAuthMode), preAuthMode, "yes", "no")
                    + ParameterUtil.Optional(nameof(preAuthThrottle), preAuthThrottle)
                    + ParameterUtil.Optional(nameof(FIPS), FIPS, "yes", "no")
                    + ParameterUtil.Optional(nameof(useOneX), useOneX, "yes", "no")
                    + ParameterUtil.Optional(nameof(profileAuthMode), profileAuthMode)
                    + ParameterUtil.Optional(nameof(profileSsoMode), profileSsoMode)
                    + ParameterUtil.Optional(nameof(maxDelay), maxDelay)
                    + ParameterUtil.Optional(nameof(allowDialog), allowDialog, "yes", "no")
                    + ParameterUtil.Optional(nameof(userVLAN), userVLAN, "yes", "no")
                    + ParameterUtil.Optional(nameof(heldPeriod), heldPeriod)
                    + ParameterUtil.Optional(nameof(AuthPeriod), AuthPeriod)
                    + ParameterUtil.Optional(nameof(StartPeriod), StartPeriod)
                    + ParameterUtil.Optional(nameof(maxStart), maxStart)
                    + ParameterUtil.Optional(nameof(maxAuthFailures), maxAuthFailures)
                    + ParameterUtil.Optional(nameof(cacheUserData), cacheUserData, "yes", "no")
                    + ParameterUtil.Optional(nameof(profileCost), profileCost),
                    out outputs));
 }