Package com.auth0.client.mgmt
Class TenantsEntity
java.lang.Object
com.auth0.client.mgmt.TenantsEntity
Class that provides an implementation of the Tenant Settings methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Tenants
This class is not thread-safe.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final okhttp3.HttpUrl
protected final Auth0HttpClient
protected final TokenProvider
-
Method Summary
Modifier and TypeMethodDescriptionget
(FieldsFilter filter) Request the Tenant Settings.protected <T> Request<T>
request
(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer) Update the Tenant Settings.voidRequest
(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer)
-
Field Details
-
client
-
baseUrl
protected final okhttp3.HttpUrl baseUrl -
tokenProvider
-
-
Method Details
-
get
Request the Tenant Settings. A token with scope read:tenant_settings is needed. See https://auth0.com/docs/api/management/v2#!/Tenants/get_settings- Parameters:
filter
- the filter to use. Can be null.- Returns:
- a Request to execute.
-
update
Update the Tenant Settings. A token with scope update:tenant_settings is needed. See https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings- Parameters:
tenant
- the tenant data to set.- Returns:
- a Request to execute.
-
voidRequest
protected Request<Void> voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer) -
request
protected <T> Request<T> request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer)
-