/// <summary>
 /// Initializes a new instance of the ServerRegistrationRequestApiModel
 /// class.
 /// </summary>
 /// <param name="discoveryUrl">Discovery url to use for
 /// registration</param>
 /// <param name="id">Registration id</param>
 /// <param name="callback">An optional callback hook to
 /// register.</param>
 /// <param name="activationFilter">Upon discovery, activate all
 /// endpoints with this filter.</param>
 public ServerRegistrationRequestApiModel(string discoveryUrl, string id = default(string), CallbackApiModel callback = default(CallbackApiModel), EndpointActivationFilterApiModel activationFilter = default(EndpointActivationFilterApiModel))
 {
     DiscoveryUrl     = discoveryUrl;
     Id               = id;
     Callback         = callback;
     ActivationFilter = activationFilter;
     CustomInit();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the DiscoveryConfigApiModel class.
 /// </summary>
 /// <param name="addressRangesToScan">Address ranges to scan (null ==
 /// all wired nics)</param>
 /// <param name="networkProbeTimeoutMs">Network probe timeout</param>
 /// <param name="maxNetworkProbes">Max network probes that should ever
 /// run.</param>
 /// <param name="portRangesToScan">Port ranges to scan (null == all
 /// unassigned)</param>
 /// <param name="portProbeTimeoutMs">Port probe timeout</param>
 /// <param name="maxPortProbes">Max port probes that should ever
 /// run.</param>
 /// <param name="minPortProbesPercent">Probes that must always be there
 /// as percent of max.</param>
 /// <param name="idleTimeBetweenScansSec">Delay time between discovery
 /// sweeps in seconds</param>
 /// <param name="discoveryUrls">List of preset discovery urls to
 /// use</param>
 /// <param name="locales">List of locales to filter with during
 /// discovery</param>
 /// <param name="callbacks">Callbacks to invoke once onboarding
 /// finishes</param>
 /// <param name="activationFilter">Activate all twins with this filter
 /// during onboarding.</param>
 public DiscoveryConfigApiModel(string addressRangesToScan = default(string), int?networkProbeTimeoutMs = default(int?), int?maxNetworkProbes = default(int?), string portRangesToScan = default(string), int?portProbeTimeoutMs = default(int?), int?maxPortProbes = default(int?), int?minPortProbesPercent = default(int?), int?idleTimeBetweenScansSec = default(int?), IList <string> discoveryUrls = default(IList <string>), IList <string> locales = default(IList <string>), IList <CallbackApiModel> callbacks = default(IList <CallbackApiModel>), EndpointActivationFilterApiModel activationFilter = default(EndpointActivationFilterApiModel))
 {
     AddressRangesToScan     = addressRangesToScan;
     NetworkProbeTimeoutMs   = networkProbeTimeoutMs;
     MaxNetworkProbes        = maxNetworkProbes;
     PortRangesToScan        = portRangesToScan;
     PortProbeTimeoutMs      = portProbeTimeoutMs;
     MaxPortProbes           = maxPortProbes;
     MinPortProbesPercent    = minPortProbesPercent;
     IdleTimeBetweenScansSec = idleTimeBetweenScansSec;
     DiscoveryUrls           = discoveryUrls;
     Locales          = locales;
     Callbacks        = callbacks;
     ActivationFilter = activationFilter;
     CustomInit();
 }