Class RulesConfigClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Contains methods to access the /rules-configs endpoint
public class RulesConfigClient : BaseClient, IRulesConfigClient
- Inheritance
-
RulesConfigClient
- Implements
- Inherited Members
Constructors
RulesConfigClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance of RulesConfigClient.
public RulesConfigClient(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
CreateOrUpdateAsync(RulesConfigCreateOrUpdateRequest, CancellationToken)
Creates or updates a rules config variable according to the request.
public Task<RulesConfig> CreateOrUpdateAsync(RulesConfigCreateOrUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
request
RulesConfigCreateOrUpdateRequestThe RulesConfigCreateOrUpdateRequest containing the details of the rule to create or update.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<RulesConfig>
The newly created Rule.
DeleteAsync(string, CancellationToken)
Deletes a rules config variable.
public Task DeleteAsync(string key, CancellationToken cancellationToken = default)
Parameters
key
stringThe key of the rules-config to delete.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.