From 98f2d39016ee961e6feafb4562aafa1fb7a352b5 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Tue, 24 Mar 2026 04:24:48 +0000
Subject: [PATCH] SDK regeneration
---
reference.md | 121 +++-
.../client/mgmt/AsyncCustomDomainsClient.java | 33 +
.../mgmt/AsyncRawCustomDomainsClient.java | 171 +++++
.../client/mgmt/CustomDomainsClient.java | 32 +
.../client/mgmt/RawCustomDomainsClient.java | 131 ++++
.../PostClientCredentialRequestContent.java | 58 +-
.../AsyncDiscoveryDomainsClient.java | 8 +
.../AsyncRawDiscoveryDomainsClient.java | 8 +
.../organizations/DiscoveryDomainsClient.java | 8 +
.../RawDiscoveryDomainsClient.java | 8 +
.../types/UpdateAculRequestContent.java | 86 ++-
.../UpdateTenantSettingsRequestContent.java | 42 +-
.../client/mgmt/types/AculConfigsItem.java | 112 +++-
.../com/auth0/client/mgmt/types/Client.java | 42 +-
.../ClientRefreshTokenConfiguration.java | 61 +-
.../ClientSessionTransferConfiguration.java | 55 +-
.../types/ConnectionDpopSigningAlgEnum.java | 85 ---
.../types/ConnectionOptionsCommonOidc.java | 33 -
.../types/ConnectionOptionsGoogleApps.java | 32 +
.../mgmt/types/ConnectionOptionsMiicard.java | 291 --------
.../mgmt/types/ConnectionOptionsOidc.java | 33 -
.../mgmt/types/ConnectionOptionsOkta.java | 33 -
.../mgmt/types/ConnectionOptionsRenren.java | 291 --------
.../types/ConnectionPropertiesOptions.java | 105 ++-
.../ConnectionResponseContentMiicard.java | 457 -------------
...nectionResponseContentMiicardStrategy.java | 75 ---
.../ConnectionResponseContentRenren.java | 457 -------------
...nnectionResponseContentRenrenStrategy.java | 75 ---
.../CreateClientGrantRequestContent.java | 64 +-
.../types/CreateClientResponseContent.java | 42 +-
...CreateConnectionRequestContentMiicard.java | 325 ---------
...nnectionRequestContentMiicardStrategy.java | 75 ---
.../CreateConnectionRequestContentRenren.java | 325 ---------
...teDirectoryProvisioningRequestContent.java | 31 +-
...eDirectoryProvisioningResponseContent.java | 32 +
.../CreateResourceServerRequestContent.java | 51 +-
.../CreateResourceServerResponseContent.java | 42 +-
.../mgmt/types/DirectoryProvisioning.java | 32 +
.../mgmt/types/GetAculResponseContent.java | 86 ++-
.../mgmt/types/GetClientResponseContent.java | 42 +-
...DefaultCanonicalDomainResponseContent.java | 130 ++++
...GetDefaultCustomDomainResponseContent.java | 632 ++++++++++++++++++
.../GetDefaultDomainResponseContent.java | 97 +++
...tDirectoryProvisioningResponseContent.java | 32 +
.../mgmt/types/GetGroupResponseContent.java | 177 +----
.../GetResourceServerResponseContent.java | 42 +-
.../GetTenantSettingsResponseContent.java | 42 +-
.../com/auth0/client/mgmt/types/Group.java | 136 +---
.../types/IConnectionOptionsCommonOidc.java | 2 -
.../com/auth0/client/mgmt/types/IGroup.java | 5 -
.../types/ListAculsResponseContentItem.java | 86 ++-
.../types/ListClientsRequestParameters.java | 4 +-
.../ListCustomDomainsRequestParameters.java | 4 +-
.../types/ListUsersRequestParameters.java | 4 +-
.../client/mgmt/types/PromptLanguageEnum.java | 10 +
.../mgmt/types/PublicKeyCredential.java | 49 +-
.../client/mgmt/types/ResourceServer.java | 42 +-
.../RotateClientSecretResponseContent.java | 42 +-
...viceProfileSsoTicketConnectionOptions.java | 42 +-
.../SetDefaultCustomDomainRequestContent.java | 130 ++++
.../client/mgmt/types/SupportedLocales.java | 10 +
...tegy.java => SynchronizeGroupsEaEnum.java} | 37 +-
.../TenantSettingsSupportedLocalesEnum.java | 11 +
.../mgmt/types/UpdateAculResponseContent.java | 86 ++-
.../UpdateClientGrantRequestContent.java | 42 +-
.../types/UpdateClientRequestContent.java | 95 ++-
.../types/UpdateClientResponseContent.java | 42 +-
.../mgmt/types/UpdateConnectionOptions.java | 105 ++-
.../types/UpdateConnectionRequestContent.java | 42 +-
...UpdateConnectionRequestContentMiicard.java | 212 ------
.../UpdateConnectionRequestContentRenren.java | 212 ------
...DefaultCanonicalDomainResponseContent.java | 130 ++++
...ateDefaultCustomDomainResponseContent.java | 632 ++++++++++++++++++
.../UpdateDefaultDomainResponseContent.java | 99 +++
...teDirectoryProvisioningRequestContent.java | 31 +-
...eDirectoryProvisioningResponseContent.java | 32 +
.../mgmt/types/UpdateFlowRequestContent.java | 47 +-
.../UpdateResourceServerRequestContent.java | 42 +-
.../UpdateResourceServerResponseContent.java | 42 +-
.../UpdateTenantSettingsResponseContent.java | 42 +-
.../mgmt/types/UserGroupsResponseSchema.java | 127 +---
.../client/mgmt/ClientGrantsWireTest.java | 4 +-
...nectionsDirectoryProvisioningWireTest.java | 11 +-
.../client/mgmt/CustomDomainsWireTest.java | 193 ++++++
.../com/auth0/client/mgmt/GroupsWireTest.java | 6 +-
.../client/mgmt/UsersGroupsWireTest.java | 2 +-
86 files changed, 4427 insertions(+), 3705 deletions(-)
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicardStrategy.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenrenStrategy.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicardStrategy.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java
create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java
create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java
create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetDefaultDomainResponseContent.java
create mode 100644 src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java
rename src/main/java/com/auth0/client/mgmt/types/{CreateConnectionRequestContentRenrenStrategy.java => SynchronizeGroupsEaEnum.java} (56%)
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java
delete mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java
create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java
create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java
create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateDefaultDomainResponseContent.java
diff --git a/reference.md b/reference.md
index 1f58e0516..5febfe7a7 100644
--- a/reference.md
+++ b/reference.md
@@ -873,7 +873,6 @@ Create a client grant for a machine-to-machine login flow. To learn more, read <
client.clientGrants().create(
CreateClientGrantRequestContent
.builder()
- .clientId("client_id")
.audience("audience")
.build()
);
@@ -891,7 +890,7 @@ client.clientGrants().create(
-
-**clientId:** `String` — ID of the client.
+**clientId:** `Optional` — ID of the client.
@@ -1337,7 +1336,7 @@ client.clients().list(
-
-**q:** `Optional` — Advanced Query in Lucene syntax.
Permitted Queries:
- client_grant.organization_id:{organization_id}
- client_grant.allow_any_organization:true
Additional Restrictions:
- Cannot be used in combination with other filters
- Requires use of the from and take paging parameters (checkpoint paginatinon)
- Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results
+**q:** `Optional` — Advanced Query in Lucene syntax.
Permitted Queries:
- client_grant.organization_id:{organization_id}
- client_grant.allow_any_organization:true
Additional Restrictions:
- Cannot be used in combination with other filters
- Requires use of the from and take paging parameters (checkpoint paginatinon)
- Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results
@@ -3648,7 +3647,7 @@ client.customDomains().list(
-
-**q:** `Optional` — Query in Lucene query string syntax.
+**q:** `Optional` — Query in Lucene query string syntax.
@@ -3801,6 +3800,104 @@ client.customDomains().create(
+
+
+
+
+client.customDomains.getDefault() -> GetDefaultDomainResponseContent
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieve the tenant's default domain.
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.customDomains().getDefault();
+```
+
+
+
+
+
+
+
+
+
+
+client.customDomains.setDefault(request) -> UpdateDefaultDomainResponseContent
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Set the default custom domain for the tenant.
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.customDomains().setDefault(
+ SetDefaultCustomDomainRequestContent
+ .builder()
+ .domain("domain")
+ .build()
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**domain:** `String` — The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.
+
+
+
+
+
+
+
@@ -12694,7 +12791,7 @@ client.users().list(
-
-**q:** `Optional` — Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields.
+**q:** `Optional` — Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields.
@@ -17229,6 +17326,14 @@ client.clients().credentials().create(
**expiresAt:** `Optional` — The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type.
+
+
+
+
+-
+
+**kid:** `Optional` — Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}
+
@@ -23755,6 +23860,7 @@ client.organizations().clientGrants().delete("id", "grant_id");
Retrieve list of all organization discovery domains associated with the specified organization.
+This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
@@ -23920,7 +24026,7 @@ client.organizations().discoveryDomains().create(
Retrieve details about a single organization discovery domain specified by domain name.
-
+This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
@@ -23982,7 +24088,8 @@ client.organizations().discoveryDomains().getByName("id", "discovery_domain");
-
-Retrieve details about a single organization discovery domain specified by ID.
+Retrieve details about a single organization discovery domain specified by ID.
+This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java
index be8502d7d..ebde78fa5 100644
--- a/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java
@@ -9,10 +9,13 @@
import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent;
import com.auth0.client.mgmt.types.CustomDomain;
import com.auth0.client.mgmt.types.GetCustomDomainResponseContent;
+import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent;
import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters;
+import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent;
import com.auth0.client.mgmt.types.TestCustomDomainResponseContent;
import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent;
import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent;
+import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent;
import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent;
import java.util.List;
import java.util.concurrent.CompletableFuture;
@@ -100,6 +103,36 @@ public CompletableFuture create(
return this.rawClient.create(request, requestOptions).thenApply(response -> response.body());
}
+ /**
+ * Retrieve the tenant's default domain.
+ */
+ public CompletableFuture getDefault() {
+ return this.rawClient.getDefault().thenApply(response -> response.body());
+ }
+
+ /**
+ * Retrieve the tenant's default domain.
+ */
+ public CompletableFuture getDefault(RequestOptions requestOptions) {
+ return this.rawClient.getDefault(requestOptions).thenApply(response -> response.body());
+ }
+
+ /**
+ * Set the default custom domain for the tenant.
+ */
+ public CompletableFuture setDefault(
+ SetDefaultCustomDomainRequestContent request) {
+ return this.rawClient.setDefault(request).thenApply(response -> response.body());
+ }
+
+ /**
+ * Set the default custom domain for the tenant.
+ */
+ public CompletableFuture setDefault(
+ SetDefaultCustomDomainRequestContent request, RequestOptions requestOptions) {
+ return this.rawClient.setDefault(request, requestOptions).thenApply(response -> response.body());
+ }
+
/**
* Retrieve a custom domain configuration and status.
*/
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java
index 0f0e3c6ef..ae9aed4e7 100644
--- a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java
@@ -21,10 +21,13 @@
import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent;
import com.auth0.client.mgmt.types.CustomDomain;
import com.auth0.client.mgmt.types.GetCustomDomainResponseContent;
+import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent;
import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters;
+import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent;
import com.auth0.client.mgmt.types.TestCustomDomainResponseContent;
import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent;
import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent;
+import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent;
import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
@@ -283,6 +286,174 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
return future;
}
+ /**
+ * Retrieve the tenant's default domain.
+ */
+ public CompletableFuture> getDefault() {
+ return getDefault(null);
+ }
+
+ /**
+ * Retrieve the tenant's default domain.
+ */
+ public CompletableFuture> getDefault(
+ RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("custom-domains/default");
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl.build())
+ .method("GET", null)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ CompletableFuture> future =
+ new CompletableFuture<>();
+ client.newCall(okhttpRequest).enqueue(new Callback() {
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try (ResponseBody responseBody = response.body()) {
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ if (response.isSuccessful()) {
+ future.complete(new ManagementApiHttpResponse<>(
+ ObjectMappers.JSON_MAPPER.readValue(
+ responseBodyString, GetDefaultDomainResponseContent.class),
+ response));
+ return;
+ }
+ try {
+ switch (response.code()) {
+ case 401:
+ future.completeExceptionally(new UnauthorizedError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 403:
+ future.completeExceptionally(new ForbiddenError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 429:
+ future.completeExceptionally(new TooManyRequestsError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ }
+ } catch (JsonProcessingException ignored) {
+ // unable to map error response, throwing generic error
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ future.completeExceptionally(new ManagementApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response));
+ return;
+ } catch (IOException e) {
+ future.completeExceptionally(new ManagementException("Network error executing HTTP request", e));
+ }
+ }
+
+ @Override
+ public void onFailure(@NotNull Call call, @NotNull IOException e) {
+ future.completeExceptionally(new ManagementException("Network error executing HTTP request", e));
+ }
+ });
+ return future;
+ }
+
+ /**
+ * Set the default custom domain for the tenant.
+ */
+ public CompletableFuture> setDefault(
+ SetDefaultCustomDomainRequestContent request) {
+ return setDefault(request, null);
+ }
+
+ /**
+ * Set the default custom domain for the tenant.
+ */
+ public CompletableFuture> setDefault(
+ SetDefaultCustomDomainRequestContent request, RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("custom-domains/default");
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ RequestBody body;
+ try {
+ body = RequestBody.create(
+ ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON);
+ } catch (JsonProcessingException e) {
+ throw new ManagementException("Failed to serialize request", e);
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl.build())
+ .method("PATCH", body)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Content-Type", "application/json")
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ CompletableFuture> future =
+ new CompletableFuture<>();
+ client.newCall(okhttpRequest).enqueue(new Callback() {
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try (ResponseBody responseBody = response.body()) {
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ if (response.isSuccessful()) {
+ future.complete(new ManagementApiHttpResponse<>(
+ ObjectMappers.JSON_MAPPER.readValue(
+ responseBodyString, UpdateDefaultDomainResponseContent.class),
+ response));
+ return;
+ }
+ try {
+ switch (response.code()) {
+ case 400:
+ future.completeExceptionally(new BadRequestError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 403:
+ future.completeExceptionally(new ForbiddenError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ }
+ } catch (JsonProcessingException ignored) {
+ // unable to map error response, throwing generic error
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ future.completeExceptionally(new ManagementApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response));
+ return;
+ } catch (IOException e) {
+ future.completeExceptionally(new ManagementException("Network error executing HTTP request", e));
+ }
+ }
+
+ @Override
+ public void onFailure(@NotNull Call call, @NotNull IOException e) {
+ future.completeExceptionally(new ManagementException("Network error executing HTTP request", e));
+ }
+ });
+ return future;
+ }
+
/**
* Retrieve a custom domain configuration and status.
*/
diff --git a/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java
index 304cb7223..03f7868b2 100644
--- a/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java
@@ -9,10 +9,13 @@
import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent;
import com.auth0.client.mgmt.types.CustomDomain;
import com.auth0.client.mgmt.types.GetCustomDomainResponseContent;
+import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent;
import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters;
+import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent;
import com.auth0.client.mgmt.types.TestCustomDomainResponseContent;
import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent;
import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent;
+import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent;
import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent;
import java.util.List;
@@ -98,6 +101,35 @@ public CreateCustomDomainResponseContent create(
return this.rawClient.create(request, requestOptions).body();
}
+ /**
+ * Retrieve the tenant's default domain.
+ */
+ public GetDefaultDomainResponseContent getDefault() {
+ return this.rawClient.getDefault().body();
+ }
+
+ /**
+ * Retrieve the tenant's default domain.
+ */
+ public GetDefaultDomainResponseContent getDefault(RequestOptions requestOptions) {
+ return this.rawClient.getDefault(requestOptions).body();
+ }
+
+ /**
+ * Set the default custom domain for the tenant.
+ */
+ public UpdateDefaultDomainResponseContent setDefault(SetDefaultCustomDomainRequestContent request) {
+ return this.rawClient.setDefault(request).body();
+ }
+
+ /**
+ * Set the default custom domain for the tenant.
+ */
+ public UpdateDefaultDomainResponseContent setDefault(
+ SetDefaultCustomDomainRequestContent request, RequestOptions requestOptions) {
+ return this.rawClient.setDefault(request, requestOptions).body();
+ }
+
/**
* Retrieve a custom domain configuration and status.
*/
diff --git a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java
index 573008d63..a86f00715 100644
--- a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java
@@ -21,10 +21,13 @@
import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent;
import com.auth0.client.mgmt.types.CustomDomain;
import com.auth0.client.mgmt.types.GetCustomDomainResponseContent;
+import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent;
import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters;
+import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent;
import com.auth0.client.mgmt.types.TestCustomDomainResponseContent;
import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent;
import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent;
+import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent;
import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
@@ -235,6 +238,134 @@ public ManagementApiHttpResponse create(
}
}
+ /**
+ * Retrieve the tenant's default domain.
+ */
+ public ManagementApiHttpResponse getDefault() {
+ return getDefault(null);
+ }
+
+ /**
+ * Retrieve the tenant's default domain.
+ */
+ public ManagementApiHttpResponse getDefault(RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("custom-domains/default");
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl.build())
+ .method("GET", null)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ try (Response response = client.newCall(okhttpRequest).execute()) {
+ ResponseBody responseBody = response.body();
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ if (response.isSuccessful()) {
+ return new ManagementApiHttpResponse<>(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, GetDefaultDomainResponseContent.class),
+ response);
+ }
+ try {
+ switch (response.code()) {
+ case 401:
+ throw new UnauthorizedError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 403:
+ throw new ForbiddenError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 429:
+ throw new TooManyRequestsError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ }
+ } catch (JsonProcessingException ignored) {
+ // unable to map error response, throwing generic error
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ throw new ManagementApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response);
+ } catch (IOException e) {
+ throw new ManagementException("Network error executing HTTP request", e);
+ }
+ }
+
+ /**
+ * Set the default custom domain for the tenant.
+ */
+ public ManagementApiHttpResponse setDefault(
+ SetDefaultCustomDomainRequestContent request) {
+ return setDefault(request, null);
+ }
+
+ /**
+ * Set the default custom domain for the tenant.
+ */
+ public ManagementApiHttpResponse setDefault(
+ SetDefaultCustomDomainRequestContent request, RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("custom-domains/default");
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ RequestBody body;
+ try {
+ body = RequestBody.create(
+ ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON);
+ } catch (JsonProcessingException e) {
+ throw new ManagementException("Failed to serialize request", e);
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl.build())
+ .method("PATCH", body)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Content-Type", "application/json")
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ try (Response response = client.newCall(okhttpRequest).execute()) {
+ ResponseBody responseBody = response.body();
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ if (response.isSuccessful()) {
+ return new ManagementApiHttpResponse<>(
+ ObjectMappers.JSON_MAPPER.readValue(
+ responseBodyString, UpdateDefaultDomainResponseContent.class),
+ response);
+ }
+ try {
+ switch (response.code()) {
+ case 400:
+ throw new BadRequestError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 403:
+ throw new ForbiddenError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ }
+ } catch (JsonProcessingException ignored) {
+ // unable to map error response, throwing generic error
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ throw new ManagementApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response);
+ } catch (IOException e) {
+ throw new ManagementException("Network error executing HTTP request", e);
+ }
+ }
+
/**
* Retrieve a custom domain configuration and status.
*/
diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java b/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java
index 074cdfd1f..689a43185 100644
--- a/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java
+++ b/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java
@@ -38,6 +38,8 @@ public final class PostClientCredentialRequestContent {
private final Optional expiresAt;
+ private final Optional kid;
+
private final Map additionalProperties;
private PostClientCredentialRequestContent(
@@ -48,6 +50,7 @@ private PostClientCredentialRequestContent(
Optional alg,
Optional parseExpiryFromCert,
Optional expiresAt,
+ Optional kid,
Map additionalProperties) {
this.credentialType = credentialType;
this.name = name;
@@ -56,6 +59,7 @@ private PostClientCredentialRequestContent(
this.alg = alg;
this.parseExpiryFromCert = parseExpiryFromCert;
this.expiresAt = expiresAt;
+ this.kid = kid;
this.additionalProperties = additionalProperties;
}
@@ -109,6 +113,14 @@ public Optional getExpiresAt() {
return expiresAt;
}
+ /**
+ * @return Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}
+ */
+ @JsonProperty("kid")
+ public Optional getKid() {
+ return kid;
+ }
+
@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
@@ -128,7 +140,8 @@ private boolean equalTo(PostClientCredentialRequestContent other) {
&& pem.equals(other.pem)
&& alg.equals(other.alg)
&& parseExpiryFromCert.equals(other.parseExpiryFromCert)
- && expiresAt.equals(other.expiresAt);
+ && expiresAt.equals(other.expiresAt)
+ && kid.equals(other.kid);
}
@java.lang.Override
@@ -140,7 +153,8 @@ public int hashCode() {
this.pem,
this.alg,
this.parseExpiryFromCert,
- this.expiresAt);
+ this.expiresAt,
+ this.kid);
}
@java.lang.Override
@@ -203,12 +217,21 @@ public interface _FinalStage {
_FinalStage expiresAt(Optional expiresAt);
_FinalStage expiresAt(OffsetDateTime expiresAt);
+
+ /**
+ * Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}
+ */
+ _FinalStage kid(Optional kid);
+
+ _FinalStage kid(String kid);
}
@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder implements CredentialTypeStage, _FinalStage {
private ClientCredentialTypeEnum credentialType;
+ private Optional kid = Optional.empty();
+
private Optional expiresAt = Optional.empty();
private Optional parseExpiryFromCert = Optional.empty();
@@ -235,6 +258,7 @@ public Builder from(PostClientCredentialRequestContent other) {
alg(other.getAlg());
parseExpiryFromCert(other.getParseExpiryFromCert());
expiresAt(other.getExpiresAt());
+ kid(other.getKid());
return this;
}
@@ -245,6 +269,26 @@ public _FinalStage credentialType(@NotNull ClientCredentialTypeEnum credentialTy
return this;
}
+ /**
+ * Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage kid(String kid) {
+ this.kid = Optional.ofNullable(kid);
+ return this;
+ }
+
+ /**
+ * Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}
+ */
+ @java.lang.Override
+ @JsonSetter(value = "kid", nulls = Nulls.SKIP)
+ public _FinalStage kid(Optional kid) {
+ this.kid = kid;
+ return this;
+ }
+
/**
* The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to public_key credential type.
* @return Reference to {@code this} so that method calls can be chained together.
@@ -361,7 +405,15 @@ public _FinalStage name(Optional name) {
@java.lang.Override
public PostClientCredentialRequestContent build() {
return new PostClientCredentialRequestContent(
- credentialType, name, subjectDn, pem, alg, parseExpiryFromCert, expiresAt, additionalProperties);
+ credentialType,
+ name,
+ subjectDn,
+ pem,
+ alg,
+ parseExpiryFromCert,
+ expiresAt,
+ kid,
+ additionalProperties);
}
@java.lang.Override
diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java
index d938c33fe..d06894c7d 100644
--- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java
@@ -35,6 +35,7 @@ public AsyncRawDiscoveryDomainsClient withRawResponse() {
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture> list(String id) {
return this.rawClient.list(id).thenApply(response -> response.body());
@@ -42,6 +43,7 @@ public CompletableFuture> list(S
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture> list(
String id, RequestOptions requestOptions) {
@@ -50,6 +52,7 @@ public CompletableFuture> list(
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture> list(
String id, ListOrganizationDiscoveryDomainsRequestParameters request) {
@@ -58,6 +61,7 @@ public CompletableFuture> list(
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture> list(
String id, ListOrganizationDiscoveryDomainsRequestParameters request, RequestOptions requestOptions) {
@@ -82,6 +86,7 @@ public CompletableFuture creat
/**
* Retrieve details about a single organization discovery domain specified by domain name.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture getByName(
String id, String discoveryDomain) {
@@ -90,6 +95,7 @@ public CompletableFuture ge
/**
* Retrieve details about a single organization discovery domain specified by domain name.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture getByName(
String id, String discoveryDomain, RequestOptions requestOptions) {
@@ -98,6 +104,7 @@ public CompletableFuture ge
/**
* Retrieve details about a single organization discovery domain specified by ID.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture get(String id, String discoveryDomainId) {
return this.rawClient.get(id, discoveryDomainId).thenApply(response -> response.body());
@@ -105,6 +112,7 @@ public CompletableFuture get(Stri
/**
* Retrieve details about a single organization discovery domain specified by ID.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture get(
String id, String discoveryDomainId, RequestOptions requestOptions) {
diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java
index c32528605..24bda7f45 100644
--- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java
@@ -53,6 +53,7 @@ public AsyncRawDiscoveryDomainsClient(ClientOptions clientOptions) {
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture>> list(
String id) {
@@ -62,6 +63,7 @@ public CompletableFuture>> list(
String id, RequestOptions requestOptions) {
@@ -71,6 +73,7 @@ public CompletableFuture>> list(
String id, ListOrganizationDiscoveryDomainsRequestParameters request) {
@@ -79,6 +82,7 @@ public CompletableFuture>> list(
String id, ListOrganizationDiscoveryDomainsRequestParameters request, RequestOptions requestOptions) {
@@ -297,6 +301,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
/**
* Retrieve details about a single organization discovery domain specified by domain name.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture> getByName(
String id, String discoveryDomain) {
@@ -305,6 +310,7 @@ public CompletableFuture> getByName(
String id, String discoveryDomain, RequestOptions requestOptions) {
@@ -393,6 +399,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
/**
* Retrieve details about a single organization discovery domain specified by ID.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public CompletableFuture> get(
String id, String discoveryDomainId) {
@@ -401,6 +408,7 @@ public CompletableFuture> get(
String id, String discoveryDomainId, RequestOptions requestOptions) {
diff --git a/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java
index 294ac0130..13131792d 100644
--- a/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java
@@ -34,6 +34,7 @@ public RawDiscoveryDomainsClient withRawResponse() {
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public SyncPagingIterable list(String id) {
return this.rawClient.list(id).body();
@@ -41,6 +42,7 @@ public SyncPagingIterable list(String id) {
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public SyncPagingIterable list(String id, RequestOptions requestOptions) {
return this.rawClient.list(id, requestOptions).body();
@@ -48,6 +50,7 @@ public SyncPagingIterable list(String id, RequestOp
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public SyncPagingIterable list(
String id, ListOrganizationDiscoveryDomainsRequestParameters request) {
@@ -56,6 +59,7 @@ public SyncPagingIterable list(
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public SyncPagingIterable list(
String id, ListOrganizationDiscoveryDomainsRequestParameters request, RequestOptions requestOptions) {
@@ -80,6 +84,7 @@ public CreateOrganizationDiscoveryDomainResponseContent create(
/**
* Retrieve details about a single organization discovery domain specified by domain name.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public GetOrganizationDiscoveryDomainByNameResponseContent getByName(String id, String discoveryDomain) {
return this.rawClient.getByName(id, discoveryDomain).body();
@@ -87,6 +92,7 @@ public GetOrganizationDiscoveryDomainByNameResponseContent getByName(String id,
/**
* Retrieve details about a single organization discovery domain specified by domain name.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public GetOrganizationDiscoveryDomainByNameResponseContent getByName(
String id, String discoveryDomain, RequestOptions requestOptions) {
@@ -95,6 +101,7 @@ public GetOrganizationDiscoveryDomainByNameResponseContent getByName(
/**
* Retrieve details about a single organization discovery domain specified by ID.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public GetOrganizationDiscoveryDomainResponseContent get(String id, String discoveryDomainId) {
return this.rawClient.get(id, discoveryDomainId).body();
@@ -102,6 +109,7 @@ public GetOrganizationDiscoveryDomainResponseContent get(String id, String disco
/**
* Retrieve details about a single organization discovery domain specified by ID.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public GetOrganizationDiscoveryDomainResponseContent get(
String id, String discoveryDomainId, RequestOptions requestOptions) {
diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java
index c10b3aad6..feefc9497 100644
--- a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java
@@ -48,6 +48,7 @@ public RawDiscoveryDomainsClient(ClientOptions clientOptions) {
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public ManagementApiHttpResponse> list(String id) {
return list(
@@ -56,6 +57,7 @@ public ManagementApiHttpResponse
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public ManagementApiHttpResponse> list(
String id, RequestOptions requestOptions) {
@@ -65,6 +67,7 @@ public ManagementApiHttpResponse
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public ManagementApiHttpResponse> list(
String id, ListOrganizationDiscoveryDomainsRequestParameters request) {
@@ -73,6 +76,7 @@ public ManagementApiHttpResponse
/**
* Retrieve list of all organization discovery domains associated with the specified organization.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public ManagementApiHttpResponse> list(
String id, ListOrganizationDiscoveryDomainsRequestParameters request, RequestOptions requestOptions) {
@@ -234,6 +238,7 @@ public ManagementApiHttpResponse getByName(
String id, String discoveryDomain) {
@@ -242,6 +247,7 @@ public ManagementApiHttpResponse getByName(
String id, String discoveryDomain, RequestOptions requestOptions) {
@@ -306,6 +312,7 @@ public ManagementApiHttpResponse get(
String id, String discoveryDomainId) {
@@ -314,6 +321,7 @@ public ManagementApiHttpResponse
/**
* Retrieve details about a single organization discovery domain specified by ID.
+ * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
*/
public ManagementApiHttpResponse get(
String id, String discoveryDomainId, RequestOptions requestOptions) {
diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java b/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java
index ae81ec03a..0c68fa1cd 100644
--- a/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java
+++ b/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java
@@ -30,13 +30,13 @@
public final class UpdateAculRequestContent {
private final Optional renderingMode;
- private final Optional> contextConfiguration;
+ private final OptionalNullable> contextConfiguration;
private final OptionalNullable defaultHeadTagsDisabled;
private final OptionalNullable usePageTemplate;
- private final Optional> headTags;
+ private final OptionalNullable> headTags;
private final OptionalNullable filters;
@@ -44,10 +44,10 @@ public final class UpdateAculRequestContent {
private UpdateAculRequestContent(
Optional renderingMode,
- Optional> contextConfiguration,
+ OptionalNullable> contextConfiguration,
OptionalNullable defaultHeadTagsDisabled,
OptionalNullable usePageTemplate,
- Optional> headTags,
+ OptionalNullable> headTags,
OptionalNullable filters,
Map additionalProperties) {
this.renderingMode = renderingMode;
@@ -67,8 +67,12 @@ public Optional getRenderingMode() {
return renderingMode;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("context_configuration")
- public Optional> getContextConfiguration() {
+ public OptionalNullable> getContextConfiguration() {
+ if (contextConfiguration == null) {
+ return OptionalNullable.absent();
+ }
return contextConfiguration;
}
@@ -99,8 +103,12 @@ public OptionalNullable getUsePageTemplate() {
/**
* @return An array of head tags
*/
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("head_tags")
- public Optional> getHeadTags() {
+ public OptionalNullable> getHeadTags() {
+ if (headTags == null) {
+ return OptionalNullable.absent();
+ }
return headTags;
}
@@ -113,6 +121,12 @@ public OptionalNullable getFilters() {
return filters;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("context_configuration")
+ private OptionalNullable> _getContextConfiguration() {
+ return contextConfiguration;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("default_head_tags_disabled")
private OptionalNullable _getDefaultHeadTagsDisabled() {
@@ -125,6 +139,12 @@ private OptionalNullable _getUsePageTemplate() {
return usePageTemplate;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("head_tags")
+ private OptionalNullable> _getHeadTags() {
+ return headTags;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("filters")
private OptionalNullable _getFilters() {
@@ -175,13 +195,13 @@ public static Builder builder() {
public static final class Builder {
private Optional renderingMode = Optional.empty();
- private Optional> contextConfiguration = Optional.empty();
+ private OptionalNullable> contextConfiguration = OptionalNullable.absent();
private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent();
private OptionalNullable usePageTemplate = OptionalNullable.absent();
- private Optional> headTags = Optional.empty();
+ private OptionalNullable> headTags = OptionalNullable.absent();
private OptionalNullable filters = OptionalNullable.absent();
@@ -215,13 +235,35 @@ public Builder renderingMode(AculRenderingModeEnum renderingMode) {
}
@JsonSetter(value = "context_configuration", nulls = Nulls.SKIP)
- public Builder contextConfiguration(Optional> contextConfiguration) {
+ public Builder contextConfiguration(
+ @Nullable OptionalNullable> contextConfiguration) {
this.contextConfiguration = contextConfiguration;
return this;
}
public Builder contextConfiguration(List contextConfiguration) {
- this.contextConfiguration = Optional.ofNullable(contextConfiguration);
+ this.contextConfiguration = OptionalNullable.of(contextConfiguration);
+ return this;
+ }
+
+ public Builder contextConfiguration(Optional> contextConfiguration) {
+ if (contextConfiguration.isPresent()) {
+ this.contextConfiguration = OptionalNullable.of(contextConfiguration.get());
+ } else {
+ this.contextConfiguration = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder contextConfiguration(
+ com.auth0.client.mgmt.core.Nullable> contextConfiguration) {
+ if (contextConfiguration.isNull()) {
+ this.contextConfiguration = OptionalNullable.ofNull();
+ } else if (contextConfiguration.isEmpty()) {
+ this.contextConfiguration = OptionalNullable.absent();
+ } else {
+ this.contextConfiguration = OptionalNullable.of(contextConfiguration.get());
+ }
return this;
}
@@ -297,13 +339,33 @@ public Builder usePageTemplate(com.auth0.client.mgmt.core.Nullable useP
* An array of head tags
*/
@JsonSetter(value = "head_tags", nulls = Nulls.SKIP)
- public Builder headTags(Optional> headTags) {
+ public Builder headTags(@Nullable OptionalNullable> headTags) {
this.headTags = headTags;
return this;
}
public Builder headTags(List headTags) {
- this.headTags = Optional.ofNullable(headTags);
+ this.headTags = OptionalNullable.of(headTags);
+ return this;
+ }
+
+ public Builder headTags(Optional> headTags) {
+ if (headTags.isPresent()) {
+ this.headTags = OptionalNullable.of(headTags.get());
+ } else {
+ this.headTags = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder headTags(com.auth0.client.mgmt.core.Nullable> headTags) {
+ if (headTags.isNull()) {
+ this.headTags = OptionalNullable.ofNull();
+ } else if (headTags.isEmpty()) {
+ this.headTags = OptionalNullable.absent();
+ } else {
+ this.headTags = OptionalNullable.of(headTags.get());
+ }
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java
index e11c6112d..31f5e1369 100644
--- a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java
+++ b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java
@@ -88,7 +88,7 @@ public final class UpdateTenantSettingsRequestContent {
private final OptionalNullable allowOrganizationNameInAuthenticationApi;
- private final Optional> acrValuesSupported;
+ private final OptionalNullable> acrValuesSupported;
private final OptionalNullable mtls;
@@ -133,7 +133,7 @@ private UpdateTenantSettingsRequestContent(
Optional oidcLogout,
OptionalNullable customizeMfaInPostloginAction,
OptionalNullable allowOrganizationNameInAuthenticationApi,
- Optional> acrValuesSupported,
+ OptionalNullable> acrValuesSupported,
OptionalNullable mtls,
OptionalNullable pushedAuthorizationRequestsSupported,
OptionalNullable authorizationResponseIssParameterSupported,
@@ -402,8 +402,12 @@ public OptionalNullable getAllowOrganizationNameInAuthenticationApi() {
/**
* @return Supported ACR values
*/
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("acr_values_supported")
- public Optional> getAcrValuesSupported() {
+ public OptionalNullable> getAcrValuesSupported() {
+ if (acrValuesSupported == null) {
+ return OptionalNullable.absent();
+ }
return acrValuesSupported;
}
@@ -529,6 +533,12 @@ private OptionalNullable _getAllowOrganizationNameInAuthenticationApi()
return allowOrganizationNameInAuthenticationApi;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("acr_values_supported")
+ private OptionalNullable> _getAcrValuesSupported() {
+ return acrValuesSupported;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("mtls")
private OptionalNullable _getMtls() {
@@ -705,7 +715,7 @@ public static final class Builder {
private OptionalNullable allowOrganizationNameInAuthenticationApi = OptionalNullable.absent();
- private Optional> acrValuesSupported = Optional.empty();
+ private OptionalNullable> acrValuesSupported = OptionalNullable.absent();
private OptionalNullable mtls = OptionalNullable.absent();
@@ -1297,13 +1307,33 @@ public Builder allowOrganizationNameInAuthenticationApi(
* Supported ACR values
*/
@JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP)
- public Builder acrValuesSupported(Optional> acrValuesSupported) {
+ public Builder acrValuesSupported(@Nullable OptionalNullable> acrValuesSupported) {
this.acrValuesSupported = acrValuesSupported;
return this;
}
public Builder acrValuesSupported(List acrValuesSupported) {
- this.acrValuesSupported = Optional.ofNullable(acrValuesSupported);
+ this.acrValuesSupported = OptionalNullable.of(acrValuesSupported);
+ return this;
+ }
+
+ public Builder acrValuesSupported(Optional> acrValuesSupported) {
+ if (acrValuesSupported.isPresent()) {
+ this.acrValuesSupported = OptionalNullable.of(acrValuesSupported.get());
+ } else {
+ this.acrValuesSupported = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder acrValuesSupported(com.auth0.client.mgmt.core.Nullable> acrValuesSupported) {
+ if (acrValuesSupported.isNull()) {
+ this.acrValuesSupported = OptionalNullable.ofNull();
+ } else if (acrValuesSupported.isEmpty()) {
+ this.acrValuesSupported = OptionalNullable.absent();
+ } else {
+ this.acrValuesSupported = OptionalNullable.of(acrValuesSupported.get());
+ }
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java
index 49255784e..fba469f3a 100644
--- a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java
+++ b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java
@@ -31,13 +31,13 @@ public final class AculConfigsItem {
private final Optional renderingMode;
- private final Optional> contextConfiguration;
+ private final OptionalNullable> contextConfiguration;
private final OptionalNullable defaultHeadTagsDisabled;
private final OptionalNullable usePageTemplate;
- private final Optional> headTags;
+ private final OptionalNullable> headTags;
private final OptionalNullable filters;
@@ -47,10 +47,10 @@ private AculConfigsItem(
PromptGroupNameEnum prompt,
ScreenGroupNameEnum screen,
Optional renderingMode,
- Optional> contextConfiguration,
+ OptionalNullable> contextConfiguration,
OptionalNullable defaultHeadTagsDisabled,
OptionalNullable usePageTemplate,
- Optional> headTags,
+ OptionalNullable> headTags,
OptionalNullable filters,
Map additionalProperties) {
this.prompt = prompt;
@@ -82,8 +82,12 @@ public Optional getRenderingMode() {
return renderingMode;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("context_configuration")
- public Optional> getContextConfiguration() {
+ public OptionalNullable> getContextConfiguration() {
+ if (contextConfiguration == null) {
+ return OptionalNullable.absent();
+ }
return contextConfiguration;
}
@@ -114,8 +118,12 @@ public OptionalNullable getUsePageTemplate() {
/**
* @return An array of head tags
*/
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("head_tags")
- public Optional> getHeadTags() {
+ public OptionalNullable> getHeadTags() {
+ if (headTags == null) {
+ return OptionalNullable.absent();
+ }
return headTags;
}
@@ -128,6 +136,12 @@ public OptionalNullable getFilters() {
return filters;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("context_configuration")
+ private OptionalNullable> _getContextConfiguration() {
+ return contextConfiguration;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("default_head_tags_disabled")
private OptionalNullable _getDefaultHeadTagsDisabled() {
@@ -140,6 +154,12 @@ private OptionalNullable _getUsePageTemplate() {
return usePageTemplate;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("head_tags")
+ private OptionalNullable> _getHeadTags() {
+ return headTags;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("filters")
private OptionalNullable _getFilters() {
@@ -214,10 +234,16 @@ public interface _FinalStage {
_FinalStage renderingMode(AculRenderingModeEnum renderingMode);
- _FinalStage contextConfiguration(Optional> contextConfiguration);
+ _FinalStage contextConfiguration(
+ @Nullable OptionalNullable> contextConfiguration);
_FinalStage contextConfiguration(List contextConfiguration);
+ _FinalStage contextConfiguration(Optional> contextConfiguration);
+
+ _FinalStage contextConfiguration(
+ com.auth0.client.mgmt.core.Nullable> contextConfiguration);
+
/**
* Override Universal Login default head tags
*/
@@ -243,10 +269,14 @@ public interface _FinalStage {
/**
* An array of head tags
*/
- _FinalStage headTags(Optional> headTags);
+ _FinalStage headTags(@Nullable OptionalNullable> headTags);
_FinalStage headTags(List headTags);
+ _FinalStage headTags(Optional> headTags);
+
+ _FinalStage headTags(com.auth0.client.mgmt.core.Nullable> headTags);
+
_FinalStage filters(@Nullable OptionalNullable filters);
_FinalStage filters(AculFilters filters);
@@ -264,13 +294,13 @@ public static final class Builder implements PromptStage, ScreenStage, _FinalSta
private OptionalNullable filters = OptionalNullable.absent();
- private Optional> headTags = Optional.empty();
+ private OptionalNullable> headTags = OptionalNullable.absent();
private OptionalNullable usePageTemplate = OptionalNullable.absent();
private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent();
- private Optional> contextConfiguration = Optional.empty();
+ private OptionalNullable> contextConfiguration = OptionalNullable.absent();
private Optional renderingMode = Optional.empty();
@@ -341,13 +371,43 @@ public _FinalStage filters(@Nullable OptionalNullable filters) {
return this;
}
+ /**
+ * An array of head tags
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage headTags(com.auth0.client.mgmt.core.Nullable> headTags) {
+ if (headTags.isNull()) {
+ this.headTags = OptionalNullable.ofNull();
+ } else if (headTags.isEmpty()) {
+ this.headTags = OptionalNullable.absent();
+ } else {
+ this.headTags = OptionalNullable.of(headTags.get());
+ }
+ return this;
+ }
+
+ /**
+ * An array of head tags
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage headTags(Optional> headTags) {
+ if (headTags.isPresent()) {
+ this.headTags = OptionalNullable.of(headTags.get());
+ } else {
+ this.headTags = OptionalNullable.absent();
+ }
+ return this;
+ }
+
/**
* An array of head tags
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage headTags(List headTags) {
- this.headTags = Optional.ofNullable(headTags);
+ this.headTags = OptionalNullable.of(headTags);
return this;
}
@@ -356,7 +416,7 @@ public _FinalStage headTags(List headTags) {
*/
@java.lang.Override
@JsonSetter(value = "head_tags", nulls = Nulls.SKIP)
- public _FinalStage headTags(Optional> headTags) {
+ public _FinalStage headTags(@Nullable OptionalNullable> headTags) {
this.headTags = headTags;
return this;
}
@@ -462,15 +522,39 @@ public _FinalStage defaultHeadTagsDisabled(@Nullable OptionalNullable d
return this;
}
+ @java.lang.Override
+ public _FinalStage contextConfiguration(
+ com.auth0.client.mgmt.core.Nullable> contextConfiguration) {
+ if (contextConfiguration.isNull()) {
+ this.contextConfiguration = OptionalNullable.ofNull();
+ } else if (contextConfiguration.isEmpty()) {
+ this.contextConfiguration = OptionalNullable.absent();
+ } else {
+ this.contextConfiguration = OptionalNullable.of(contextConfiguration.get());
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public _FinalStage contextConfiguration(Optional> contextConfiguration) {
+ if (contextConfiguration.isPresent()) {
+ this.contextConfiguration = OptionalNullable.of(contextConfiguration.get());
+ } else {
+ this.contextConfiguration = OptionalNullable.absent();
+ }
+ return this;
+ }
+
@java.lang.Override
public _FinalStage contextConfiguration(List contextConfiguration) {
- this.contextConfiguration = Optional.ofNullable(contextConfiguration);
+ this.contextConfiguration = OptionalNullable.of(contextConfiguration);
return this;
}
@java.lang.Override
@JsonSetter(value = "context_configuration", nulls = Nulls.SKIP)
- public _FinalStage contextConfiguration(Optional> contextConfiguration) {
+ public _FinalStage contextConfiguration(
+ @Nullable OptionalNullable> contextConfiguration) {
this.contextConfiguration = contextConfiguration;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/types/Client.java b/src/main/java/com/auth0/client/mgmt/types/Client.java
index 6ef265060..6784659ed 100644
--- a/src/main/java/com/auth0/client/mgmt/types/Client.java
+++ b/src/main/java/com/auth0/client/mgmt/types/Client.java
@@ -64,7 +64,7 @@ public final class Client {
private final Optional jwtConfiguration;
- private final Optional> signingKeys;
+ private final OptionalNullable> signingKeys;
private final OptionalNullable encryptionKey;
@@ -153,7 +153,7 @@ private Client(
Optional oidcLogout,
Optional> grantTypes,
Optional jwtConfiguration,
- Optional> signingKeys,
+ OptionalNullable> signingKeys,
OptionalNullable encryptionKey,
Optional sso,
Optional ssoDisabled,
@@ -395,8 +395,12 @@ public Optional getJwtConfiguration() {
return jwtConfiguration;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("signing_keys")
- public Optional> getSigningKeys() {
+ public OptionalNullable> getSigningKeys() {
+ if (signingKeys == null) {
+ return OptionalNullable.absent();
+ }
return signingKeys;
}
@@ -640,6 +644,12 @@ private OptionalNullable _getSessionTransfer
return sessionTransfer;
}
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("signing_keys")
+ private OptionalNullable> _getSigningKeys() {
+ return signingKeys;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("encryption_key")
private OptionalNullable _getEncryptionKey() {
@@ -853,7 +863,7 @@ public static final class Builder {
private Optional jwtConfiguration = Optional.empty();
- private Optional> signingKeys = Optional.empty();
+ private OptionalNullable> signingKeys = OptionalNullable.absent();
private OptionalNullable encryptionKey = OptionalNullable.absent();
@@ -1272,13 +1282,33 @@ public Builder jwtConfiguration(ClientJwtConfiguration jwtConfiguration) {
}
@JsonSetter(value = "signing_keys", nulls = Nulls.SKIP)
- public Builder signingKeys(Optional> signingKeys) {
+ public Builder signingKeys(@Nullable OptionalNullable> signingKeys) {
this.signingKeys = signingKeys;
return this;
}
public Builder signingKeys(List signingKeys) {
- this.signingKeys = Optional.ofNullable(signingKeys);
+ this.signingKeys = OptionalNullable.of(signingKeys);
+ return this;
+ }
+
+ public Builder signingKeys(Optional> signingKeys) {
+ if (signingKeys.isPresent()) {
+ this.signingKeys = OptionalNullable.of(signingKeys.get());
+ } else {
+ this.signingKeys = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder signingKeys(com.auth0.client.mgmt.core.Nullable> signingKeys) {
+ if (signingKeys.isNull()) {
+ this.signingKeys = OptionalNullable.ofNull();
+ } else if (signingKeys.isEmpty()) {
+ this.signingKeys = OptionalNullable.absent();
+ } else {
+ this.signingKeys = OptionalNullable.of(signingKeys.get());
+ }
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java
index b89d96d75..6fcf2c690 100644
--- a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java
+++ b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java
@@ -3,7 +3,9 @@
*/
package com.auth0.client.mgmt.types;
+import com.auth0.client.mgmt.core.NullableNonemptyFilter;
import com.auth0.client.mgmt.core.ObjectMappers;
+import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@@ -18,6 +20,7 @@
import java.util.Objects;
import java.util.Optional;
import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ClientRefreshTokenConfiguration.Builder.class)
@@ -36,7 +39,7 @@ public final class ClientRefreshTokenConfiguration {
private final Optional infiniteIdleTokenLifetime;
- private final Optional> policies;
+ private final OptionalNullable> policies;
private final Map additionalProperties;
@@ -48,7 +51,7 @@ private ClientRefreshTokenConfiguration(
Optional infiniteTokenLifetime,
Optional idleTokenLifetime,
Optional infiniteIdleTokenLifetime,
- Optional> policies,
+ OptionalNullable> policies,
Map additionalProperties) {
this.rotationType = rotationType;
this.expirationType = expirationType;
@@ -114,8 +117,18 @@ public Optional getInfiniteIdleTokenLifetime() {
/**
* @return A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers
*/
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("policies")
- public Optional> getPolicies() {
+ public OptionalNullable> getPolicies() {
+ if (policies == null) {
+ return OptionalNullable.absent();
+ }
+ return policies;
+ }
+
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("policies")
+ private OptionalNullable> _getPolicies() {
return policies;
}
@@ -218,9 +231,13 @@ public interface _FinalStage {
/**
*