/// <summary> /// Initializes a new instance of the <see cref="KapiAuthnResp" /> class. /// </summary> /// <param name="accessGroup">accessGroup.</param> /// <param name="authMethod">authMethod (required).</param> /// <param name="authNonce">authNonce.</param> /// <param name="authPassword">authPassword (required).</param> /// <param name="authUsername">authUsername.</param> /// <param name="customChannelVars">customChannelVars.</param> /// <param name="customSIPHeaders">customSIPHeaders.</param> /// <param name="eventCategory">eventCategory.</param> /// <param name="eventName">eventName.</param> /// <param name="expires">expires.</param> /// <param name="registerOverwriteNotify">registerOverwriteNotify.</param> /// <param name="suppressUnregisterNotifications">suppressUnregisterNotifications.</param> /// <param name="tenantID">tenantID.</param> public KapiAuthnResp(string accessGroup = default(string), AuthMethodEnum authMethod = default(AuthMethodEnum), string authNonce = default(string), string authPassword = default(string), string authUsername = default(string), Object customChannelVars = default(Object), Object customSIPHeaders = default(Object), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string expires = default(string), string registerOverwriteNotify = default(string), string suppressUnregisterNotifications = default(string), string tenantID = default(string)) { // to ensure "authMethod" is required (not null) if (authMethod == null) { throw new InvalidDataException("authMethod is a required property for KapiAuthnResp and cannot be null"); } else { this.AuthMethod = authMethod; } // to ensure "authPassword" is required (not null) if (authPassword == null) { throw new InvalidDataException("authPassword is a required property for KapiAuthnResp and cannot be null"); } else { this.AuthPassword = authPassword; } this.AccessGroup = accessGroup; this.AuthNonce = authNonce; this.AuthUsername = authUsername; this.CustomChannelVars = customChannelVars; this.CustomSIPHeaders = customSIPHeaders; this.EventCategory = eventCategory; this.EventName = eventName; this.Expires = expires; this.RegisterOverwriteNotify = registerOverwriteNotify; this.SuppressUnregisterNotifications = suppressUnregisterNotifications; this.TenantID = tenantID; }
/// <summary> /// Initializes a new instance of the <see cref="TrunkstoreAuth" /> class. /// </summary> /// <param name="authMethod">What type of auth mechanism to use (required).</param> /// <param name="authPassword">Password of the user@auth_realm (required).</param> /// <param name="authUser">Username for authentication (required).</param> public TrunkstoreAuth(AuthMethodEnum authMethod = default(AuthMethodEnum), string authPassword = default(string), string authUser = default(string)) { // to ensure "authMethod" is required (not null) if (authMethod == null) { throw new InvalidDataException("authMethod is a required property for TrunkstoreAuth and cannot be null"); } else { this.AuthMethod = authMethod; } // to ensure "authPassword" is required (not null) if (authPassword == null) { throw new InvalidDataException("authPassword is a required property for TrunkstoreAuth and cannot be null"); } else { this.AuthPassword = authPassword; } // to ensure "authUser" is required (not null) if (authUser == null) { throw new InvalidDataException("authUser is a required property for TrunkstoreAuth and cannot be null"); } else { this.AuthUser = authUser; } }
/// <summary> /// Initializes a new instance of the <see cref="HTTPNotificationEndpoint" /> class. /// </summary> /// <param name="url">url (required).</param> /// <param name="username">username.</param> /// <param name="password">password.</param> /// <param name="token">token.</param> /// <param name="method">method (required).</param> /// <param name="authMethod">authMethod (required).</param> /// <param name="contentTemplate">contentTemplate.</param> public HTTPNotificationEndpoint(string url = default(string), string username = default(string), string password = default(string), string token = default(string), MethodEnum method = default(MethodEnum), AuthMethodEnum authMethod = default(AuthMethodEnum), string contentTemplate = default(string), string id = default(string), string orgID = default(string), string userID = default(string), string description = default(string), string name = default(string), StatusEnum?status = StatusEnum.Active, List <Label> labels = default(List <Label>), NotificationEndpointType type = default(NotificationEndpointType)) : base(id, orgID, userID, description, name, status, labels, type) { // to ensure "url" is required (not null) if (url == null) { throw new InvalidDataException("url is a required property for HTTPNotificationEndpoint and cannot be null"); } else { this.Url = url; } // to ensure "method" is required (not null) if (method == null) { throw new InvalidDataException("method is a required property for HTTPNotificationEndpoint and cannot be null"); } else { this.Method = method; } // to ensure "authMethod" is required (not null) if (authMethod == null) { throw new InvalidDataException("authMethod is a required property for HTTPNotificationEndpoint and cannot be null"); } else { this.AuthMethod = authMethod; } this.Username = username; this.Password = password; this.Token = token; this.ContentTemplate = contentTemplate; }
/// <summary> /// Initializes a new instance of the <see cref="ConnectivityAuth" /> class. /// </summary> /// <param name="authMethod">What type of auth mechanism to use (required) (default to AuthMethodEnum.Password).</param> /// <param name="authPassword">Password of the user@auth_realm.</param> /// <param name="authUser">Username for authentication.</param> /// <param name="ip">IP (sip) address for this device.</param> /// <param name="port">Port to send SIP traffic for the remote device.</param> public ConnectivityAuth(AuthMethodEnum authMethod = AuthMethodEnum.Password, string authPassword = default(string), string authUser = default(string), string ip = default(string), int?port = default(int?)) { // to ensure "authMethod" is required (not null) if (authMethod == null) { throw new InvalidDataException("authMethod is a required property for ConnectivityAuth and cannot be null"); } else { this.AuthMethod = authMethod; } this.AuthPassword = authPassword; this.AuthUser = authUser; this.Ip = ip; this.Port = port; }