/// <summary> /// Initializes a new instance of the DiscoveryRequestApiModel class. /// </summary> /// <param name="id">Id of discovery request</param> /// <param name="discovery">Discovery mode to use. Possible values /// include: 'Off', 'Local', 'Network', 'Fast', 'Scan'</param> /// <param name="configuration">Scan configuration to use</param> public DiscoveryRequestApiModel(string id = default(string), DiscoveryMode?discovery = default(DiscoveryMode?), DiscoveryConfigApiModel configuration = default(DiscoveryConfigApiModel)) { Id = id; Discovery = discovery; Configuration = configuration; CustomInit(); }
/// <summary> /// Initializes a new instance of the SupervisorUpdateApiModel class. /// </summary> /// <param name="siteId">Site of the supervisor</param> /// <param name="discovery">Whether the supervisor is in discovery /// mode. /// If null, does not change. Possible values include: 'Off', 'Local', /// 'Network', 'Fast', 'Scan'</param> /// <param name="discoveryConfig">Supervisor discovery /// configuration</param> /// <param name="discoveryCallbacks">Callbacks to add or remove (see /// below)</param> /// <param name="removeDiscoveryCallbacks">Whether to add or remove /// callbacks</param> /// <param name="logLevel">Current log level. Possible values include: /// 'Error', 'Information', 'Debug', 'Verbose'</param> public SupervisorUpdateApiModel(string siteId = default(string), DiscoveryMode?discovery = default(DiscoveryMode?), DiscoveryConfigApiModel discoveryConfig = default(DiscoveryConfigApiModel), IList <CallbackApiModel> discoveryCallbacks = default(IList <CallbackApiModel>), bool?removeDiscoveryCallbacks = default(bool?), SupervisorLogLevel?logLevel = default(SupervisorLogLevel?)) { SiteId = siteId; Discovery = discovery; DiscoveryConfig = discoveryConfig; DiscoveryCallbacks = discoveryCallbacks; RemoveDiscoveryCallbacks = removeDiscoveryCallbacks; LogLevel = logLevel; CustomInit(); }
/// <summary> /// Initializes a new instance of the SupervisorApiModel class. /// </summary> /// <param name="id">Supervisor id</param> /// <param name="siteId">Site of the supervisor</param> /// <param name="discovery">Whether the supervisor is in discovery /// mode. Possible values include: 'Off', 'Local', 'Network', 'Fast', /// 'Scan'</param> /// <param name="discoveryConfig">Supervisor configuration</param> /// <param name="certificate">Supervisor public client cert</param> /// <param name="logLevel">Current log level. Possible values include: /// 'Error', 'Information', 'Debug', 'Verbose'</param> /// <param name="outOfSync">Whether the registration is out of sync /// between /// client (module) and server (service) (default: false).</param> /// <param name="connected">Whether supervisor is connected on this /// registration</param> public SupervisorApiModel(string id, string siteId = default(string), DiscoveryMode?discovery = default(DiscoveryMode?), DiscoveryConfigApiModel discoveryConfig = default(DiscoveryConfigApiModel), byte[] certificate = default(byte[]), SupervisorLogLevel?logLevel = default(SupervisorLogLevel?), bool?outOfSync = default(bool?), bool?connected = default(bool?)) { Id = id; SiteId = siteId; Discovery = discovery; DiscoveryConfig = discoveryConfig; Certificate = certificate; LogLevel = logLevel; OutOfSync = outOfSync; Connected = connected; CustomInit(); }