Class TenantSettingsClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Contains methods to access the /tenants/settings endpoints.
public class TenantSettingsClient : BaseClient, ITenantSettingsClient
- Inheritance
-
TenantSettingsClient
- Implements
- Inherited Members
Constructors
TenantSettingsClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance of TenantSettingsClient.
public TenantSettingsClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnectionIManagementConnection used to make all API calls.
baseUri
UriUri of the endpoint to use in making API calls.
defaultHeaders
IDictionary<string, string>Dictionary containing default headers included with every request this client makes.
Methods
GetAsync(string, bool, CancellationToken)
Gets the settings for the tenant.
public Task<TenantSettings> GetAsync(string fields = null, bool includeFields = true, CancellationToken cancellationToken = default)
Parameters
fields
stringA comma-separated list of fields to include or exclude (depending on includeFields) from the result, empty to retrieve all fields.
includeFields
booltrue if the fields specified are to be included in the result, false otherwise (defaults to true).
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<TenantSettings>
A TenantSettings containing the settings for the tenant.
UpdateAsync(TenantSettingsUpdateRequest, CancellationToken)
Updates the settings for the tenant.
public Task<TenantSettings> UpdateAsync(TenantSettingsUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
request
TenantSettingsUpdateRequestTenantSettingsUpdateRequest containing the settings for the tenant which are to be updated.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<TenantSettings>
A TenantSettings containing the updated settings for the tenant.