namespace DataConnection.REST.Configuration { /// /// Configuration options for a REST service client. /// public class RestServiceOptions { /// /// Base URL of the REST service. /// public string? BaseUrl { get; set; } /// /// API Key, if required. /// public string? ApiKey { get; set; } /// /// Username for authentication, if required. /// public string? Username { get; set; } /// /// Password for authentication, if required. /// public string? Password { get; set; } /// /// Authentication token (e.g., Bearer token), if required. /// public string? AuthToken { get; set; } /// /// Timeout for requests in seconds. /// public int TimeoutSeconds { get; set; } = 100; // Default timeout /// /// Gets or sets a value indicating whether to ignore SSL certificate errors. /// Use with caution, especially in production environments. /// public bool IgnoreSslErrors { get; set; } = false; /// /// Salesforce OAuth2 grant type. Default: Password (retrocompatibile). /// ClientCredentials = server-to-server, senza utente. /// public CredentialManager.Models.SalesforceGrantType SalesforceGrantType { get; set; } = CredentialManager.Models.SalesforceGrantType.Password; } }