/* * dbMango * * Copyright 2025 Deutsche Bank AG * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace Rms.Risk.Mango.Interfaces; /// /// Represents the parameters required for database configuration. /// public class DatabaseParams { /// /// Gets or sets the contact information for the database. /// public string Contacts { get; set; } = ""; /// /// Gets or sets the MongoDB connection URL. /// public string MongoDbUrl { get; set; } = ""; /// /// Gets or sets the MongoDB database name. /// public string MongoDbDatabase { get; set; } = ""; /// /// Gets or sets the username for user authentication. /// public string UserAuthUser { get; set; } = "admin"; /// /// Gets or sets the password for user authentication. /// public string UserAuthPassword { get; set; } = "admin"; /// /// Gets or sets the authentication database for user authentication. /// public string? UserAuthAuthDatabase { get; set; } /// /// Gets or sets the authentication method for user authentication. /// public string? UserAuthMethod { get; set; } /// /// Gets or sets the username for admin authentication. /// public string AdminAuthUser { get; set; } = "admin"; /// /// Gets or sets the password for admin authentication. /// public string AdminAuthPassword { get; set; } = "admin"; /// /// Gets or sets the authentication database for admin authentication. /// public string? AdminAuthAuthDatabase { get; set; } /// /// Gets or sets the authentication method for admin authentication. /// public string? AdminAuthMethod { get; set; } /// /// Gets or sets a value indicating whether to use a direct connection to the database. /// public bool DirectConnection { get; set; } /// /// Gets or sets a value indicating whether to use TLS for the connection. /// public bool UseTls { get; set; } /// /// Gets or sets a value indicating whether shard access is allowed. /// public bool AllowShardAccess { get; set; } }